am 84dc08a2: Dump Keyguard state in SystemUI and PhoneWindowManager
* commit '84dc08a208eea7a4ddf043cadbb28987cf90ae22': Dump Keyguard state in SystemUI and PhoneWindowManager
This commit is contained in:
@@ -74,6 +74,8 @@ import com.android.systemui.statusbar.phone.ScrimController;
|
||||
import com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager;
|
||||
import com.android.systemui.statusbar.phone.StatusBarWindowManager;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.PrintWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -1625,6 +1627,30 @@ public class KeyguardViewMediator extends SystemUI {
|
||||
return mViewMediatorCallback;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
|
||||
pw.print(" mSystemReady: "); pw.println(mSystemReady);
|
||||
pw.print(" mBootCompleted: "); pw.println(mBootCompleted);
|
||||
pw.print(" mBootSendUserPresent: "); pw.println(mBootSendUserPresent);
|
||||
pw.print(" mExternallyEnabled: "); pw.println(mExternallyEnabled);
|
||||
pw.print(" mNeedToReshowWhenReenabled: "); pw.println(mNeedToReshowWhenReenabled);
|
||||
pw.print(" mShowing: "); pw.println(mShowing);
|
||||
pw.print(" mInputRestricted: "); pw.println(mInputRestricted);
|
||||
pw.print(" mOccluded: "); pw.println(mOccluded);
|
||||
pw.print(" mDelayedShowingSequence: "); pw.println(mDelayedShowingSequence);
|
||||
pw.print(" mExitSecureCallback: "); pw.println(mExitSecureCallback);
|
||||
pw.print(" mDeviceInteractive: "); pw.println(mDeviceInteractive);
|
||||
pw.print(" mGoingToSleep: "); pw.println(mGoingToSleep);
|
||||
pw.print(" mHiding: "); pw.println(mHiding);
|
||||
pw.print(" mWaitingUntilKeyguardVisible: "); pw.println(mWaitingUntilKeyguardVisible);
|
||||
pw.print(" mKeyguardDonePending: "); pw.println(mKeyguardDonePending);
|
||||
pw.print(" mHideAnimationRun: "); pw.println(mHideAnimationRun);
|
||||
pw.print(" mPendingReset: "); pw.println(mPendingReset);
|
||||
pw.print(" mPendingLock: "); pw.println(mPendingLock);
|
||||
pw.print(" mWakeAndUnlocking: "); pw.println(mWakeAndUnlocking);
|
||||
pw.print(" mDrawnCallback: "); pw.println(mDrawnCallback);
|
||||
}
|
||||
|
||||
private static class StartKeyguardExitAnimParams {
|
||||
|
||||
long startTime;
|
||||
|
||||
@@ -7029,5 +7029,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
if (mBurnInProtectionHelper != null) {
|
||||
mBurnInProtectionHelper.dump(prefix, pw);
|
||||
}
|
||||
if (mKeyguardDelegate != null) {
|
||||
mKeyguardDelegate.dump(prefix, pw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ import com.android.internal.policy.IKeyguardDrawnCallback;
|
||||
import com.android.internal.policy.IKeyguardExitCallback;
|
||||
import com.android.internal.policy.IKeyguardService;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
|
||||
/**
|
||||
* A local class that keeps a cache of keyguard state that can be restored in the event
|
||||
* keyguard crashes. It currently also allows runtime-selectable
|
||||
@@ -393,4 +395,26 @@ public class KeyguardServiceDelegate {
|
||||
mKeyguardService.onActivityDrawn();
|
||||
}
|
||||
}
|
||||
|
||||
public void dump(String prefix, PrintWriter pw) {
|
||||
pw.println(prefix + TAG);
|
||||
prefix += " ";
|
||||
pw.println(prefix + "showing=" + mKeyguardState.showing);
|
||||
pw.println(prefix + "showingAndNotOccluded=" + mKeyguardState.showingAndNotOccluded);
|
||||
pw.println(prefix + "inputRestricted=" + mKeyguardState.inputRestricted);
|
||||
pw.println(prefix + "occluded=" + mKeyguardState.occluded);
|
||||
pw.println(prefix + "secure=" + mKeyguardState.secure);
|
||||
pw.println(prefix + "dreaming=" + mKeyguardState.dreaming);
|
||||
pw.println(prefix + "systemIsReady=" + mKeyguardState.systemIsReady);
|
||||
pw.println(prefix + "deviceHasKeyguard=" + mKeyguardState.deviceHasKeyguard);
|
||||
pw.println(prefix + "enabled=" + mKeyguardState.enabled);
|
||||
pw.println(prefix + "offReason=" + mKeyguardState.offReason);
|
||||
pw.println(prefix + "currentUser=" + mKeyguardState.currentUser);
|
||||
pw.println(prefix + "bootCompleted=" + mKeyguardState.bootCompleted);
|
||||
pw.println(prefix + "screenState=" + mKeyguardState.screenState);
|
||||
pw.println(prefix + "interactiveState=" + mKeyguardState.interactiveState);
|
||||
if (mKeyguardService != null) {
|
||||
mKeyguardService.dump(prefix, pw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ import com.android.internal.policy.IKeyguardExitCallback;
|
||||
import com.android.internal.policy.IKeyguardService;
|
||||
import com.android.internal.policy.IKeyguardStateCallback;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
|
||||
/**
|
||||
* A wrapper class for KeyguardService. It implements IKeyguardService to ensure the interface
|
||||
* remains consistent.
|
||||
@@ -239,4 +241,8 @@ public class KeyguardServiceWrapper implements IKeyguardService {
|
||||
public boolean isInputRestricted() {
|
||||
return mKeyguardStateMonitor.isInputRestricted();
|
||||
}
|
||||
|
||||
public void dump(String prefix, PrintWriter pw) {
|
||||
mKeyguardStateMonitor.dump(prefix, pw);
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,8 @@ import com.android.internal.policy.IKeyguardService;
|
||||
import com.android.internal.policy.IKeyguardStateCallback;
|
||||
import com.android.internal.widget.LockPatternUtils;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
|
||||
/**
|
||||
* Maintains a cached copy of Keyguard's state.
|
||||
* @hide
|
||||
@@ -90,4 +92,13 @@ public class KeyguardStateMonitor extends IKeyguardStateCallback.Stub {
|
||||
public void onInputRestrictedStateChanged(boolean inputRestricted) {
|
||||
mInputRestricted = inputRestricted;
|
||||
}
|
||||
|
||||
public void dump(String prefix, PrintWriter pw) {
|
||||
pw.println(prefix + TAG);
|
||||
prefix += " ";
|
||||
pw.println(prefix + "mIsShowing=" + mIsShowing);
|
||||
pw.println(prefix + "mSimSecure=" + mSimSecure);
|
||||
pw.println(prefix + "mInputRestricted=" + mInputRestricted);
|
||||
pw.println(prefix + "mCurrentUserId=" + mCurrentUserId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user