Loading packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java +5 −5 Original line number Diff line number Diff line Loading @@ -57,27 +57,27 @@ public interface KeyguardViewController { /** * Called when the device started going to sleep. */ void onStartedGoingToSleep(); default void onStartedGoingToSleep() {}; /** * Called when the device has finished going to sleep. */ void onFinishedGoingToSleep(); default void onFinishedGoingToSleep() {}; /** * Called when the device started waking up. */ void onStartedWakingUp(); default void onStartedWakingUp() {}; /** * Called when the device started turning on. */ void onScreenTurningOn(); default void onScreenTurningOn() {}; /** * Called when the device has finished turning on. */ void onScreenTurnedOn(); default void onScreenTurnedOn() {}; /** * Sets whether the Keyguard needs input. Loading packages/SystemUI/src/com/android/systemui/doze/DozeMachine.java +5 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ package com.android.systemui.doze; import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_WAKING; import android.annotation.MainThread; import android.hardware.display.AmbientDisplayConfiguration; import android.os.Trace; Loading Loading @@ -368,8 +371,8 @@ public class DozeMachine { case DOZE_PULSE_DONE: final State nextState; @Wakefulness int wakefulness = mWakefulnessLifecycle.getWakefulness(); if (wakefulness == WakefulnessLifecycle.WAKEFULNESS_AWAKE || wakefulness == WakefulnessLifecycle.WAKEFULNESS_WAKING) { if (state != State.INITIALIZED && (wakefulness == WAKEFULNESS_AWAKE || wakefulness == WAKEFULNESS_WAKING)) { nextState = State.FINISH; } else if (mDockManager.isDocked()) { nextState = mDockManager.isHidden() ? State.DOZE : State.DOZE_AOD_DOCKED; Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +3 −3 Original line number Diff line number Diff line Loading @@ -3338,12 +3338,12 @@ public class StatusBar extends SystemUI implements DemoMode, Trace.traceCounter(Trace.TRACE_TAG_APP, "dozing", mDozing ? 1 : 0); Trace.beginSection("StatusBar#updateDozingState"); boolean sleepingFromKeyguard = mStatusBarKeyguardViewManager.isGoingToSleepVisibleNotOccluded(); boolean visibleNotOccluded = mStatusBarKeyguardViewManager.isShowing() && !mStatusBarKeyguardViewManager.isOccluded(); boolean wakeAndUnlock = mBiometricUnlockController.getMode() == BiometricUnlockController.MODE_WAKE_AND_UNLOCK; boolean animate = (!mDozing && mDozeServiceHost.shouldAnimateWakeup() && !wakeAndUnlock) || (mDozing && mDozeServiceHost.shouldAnimateScreenOff() && sleepingFromKeyguard); || (mDozing && mDozeServiceHost.shouldAnimateScreenOff() && visibleNotOccluded); mNotificationPanelViewController.setDozing(mDozing, animate, mWakeUpTouchLocation); updateQsExpansionEnabled(); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +0 −27 Original line number Diff line number Diff line Loading @@ -168,7 +168,6 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb private boolean mLastIsDocked; private boolean mLastPulsing; private int mLastBiometricMode; private boolean mGoingToSleepVisibleNotOccluded; private boolean mLastLockVisible; private OnDismissAction mAfterKeyguardGoneAction; Loading Loading @@ -450,36 +449,11 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb } } public boolean isGoingToSleepVisibleNotOccluded() { return mGoingToSleepVisibleNotOccluded; } @Override public void onStartedGoingToSleep() { mGoingToSleepVisibleNotOccluded = isShowing() && !isOccluded(); } @Override public void onFinishedGoingToSleep() { mGoingToSleepVisibleNotOccluded = false; mBouncer.onScreenTurnedOff(); } @Override public void onStartedWakingUp() { // TODO: remove } @Override public void onScreenTurningOn() { // TODO: remove } @Override public void onScreenTurnedOn() { // TODO: remove } @Override public void onRemoteInputActive(boolean active) { mRemoteInputActive = active; Loading Loading @@ -999,7 +973,6 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb pw.println(" mOccluded: " + mOccluded); pw.println(" mRemoteInputActive: " + mRemoteInputActive); pw.println(" mDozing: " + mDozing); pw.println(" mGoingToSleepVisibleNotOccluded: " + mGoingToSleepVisibleNotOccluded); pw.println(" mAfterKeyguardGoneAction: " + mAfterKeyguardGoneAction); pw.println(" mAfterKeyguardGoneRunnables: " + mAfterKeyguardGoneRunnables); pw.println(" mPendingWakeupAction: " + mPendingWakeupAction); Loading Loading
packages/SystemUI/src/com/android/keyguard/KeyguardViewController.java +5 −5 Original line number Diff line number Diff line Loading @@ -57,27 +57,27 @@ public interface KeyguardViewController { /** * Called when the device started going to sleep. */ void onStartedGoingToSleep(); default void onStartedGoingToSleep() {}; /** * Called when the device has finished going to sleep. */ void onFinishedGoingToSleep(); default void onFinishedGoingToSleep() {}; /** * Called when the device started waking up. */ void onStartedWakingUp(); default void onStartedWakingUp() {}; /** * Called when the device started turning on. */ void onScreenTurningOn(); default void onScreenTurningOn() {}; /** * Called when the device has finished turning on. */ void onScreenTurnedOn(); default void onScreenTurnedOn() {}; /** * Sets whether the Keyguard needs input. Loading
packages/SystemUI/src/com/android/systemui/doze/DozeMachine.java +5 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ package com.android.systemui.doze; import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_AWAKE; import static com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_WAKING; import android.annotation.MainThread; import android.hardware.display.AmbientDisplayConfiguration; import android.os.Trace; Loading Loading @@ -368,8 +371,8 @@ public class DozeMachine { case DOZE_PULSE_DONE: final State nextState; @Wakefulness int wakefulness = mWakefulnessLifecycle.getWakefulness(); if (wakefulness == WakefulnessLifecycle.WAKEFULNESS_AWAKE || wakefulness == WakefulnessLifecycle.WAKEFULNESS_WAKING) { if (state != State.INITIALIZED && (wakefulness == WAKEFULNESS_AWAKE || wakefulness == WAKEFULNESS_WAKING)) { nextState = State.FINISH; } else if (mDockManager.isDocked()) { nextState = mDockManager.isHidden() ? State.DOZE : State.DOZE_AOD_DOCKED; Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +3 −3 Original line number Diff line number Diff line Loading @@ -3338,12 +3338,12 @@ public class StatusBar extends SystemUI implements DemoMode, Trace.traceCounter(Trace.TRACE_TAG_APP, "dozing", mDozing ? 1 : 0); Trace.beginSection("StatusBar#updateDozingState"); boolean sleepingFromKeyguard = mStatusBarKeyguardViewManager.isGoingToSleepVisibleNotOccluded(); boolean visibleNotOccluded = mStatusBarKeyguardViewManager.isShowing() && !mStatusBarKeyguardViewManager.isOccluded(); boolean wakeAndUnlock = mBiometricUnlockController.getMode() == BiometricUnlockController.MODE_WAKE_AND_UNLOCK; boolean animate = (!mDozing && mDozeServiceHost.shouldAnimateWakeup() && !wakeAndUnlock) || (mDozing && mDozeServiceHost.shouldAnimateScreenOff() && sleepingFromKeyguard); || (mDozing && mDozeServiceHost.shouldAnimateScreenOff() && visibleNotOccluded); mNotificationPanelViewController.setDozing(mDozing, animate, mWakeUpTouchLocation); updateQsExpansionEnabled(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManager.java +0 −27 Original line number Diff line number Diff line Loading @@ -168,7 +168,6 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb private boolean mLastIsDocked; private boolean mLastPulsing; private int mLastBiometricMode; private boolean mGoingToSleepVisibleNotOccluded; private boolean mLastLockVisible; private OnDismissAction mAfterKeyguardGoneAction; Loading Loading @@ -450,36 +449,11 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb } } public boolean isGoingToSleepVisibleNotOccluded() { return mGoingToSleepVisibleNotOccluded; } @Override public void onStartedGoingToSleep() { mGoingToSleepVisibleNotOccluded = isShowing() && !isOccluded(); } @Override public void onFinishedGoingToSleep() { mGoingToSleepVisibleNotOccluded = false; mBouncer.onScreenTurnedOff(); } @Override public void onStartedWakingUp() { // TODO: remove } @Override public void onScreenTurningOn() { // TODO: remove } @Override public void onScreenTurnedOn() { // TODO: remove } @Override public void onRemoteInputActive(boolean active) { mRemoteInputActive = active; Loading Loading @@ -999,7 +973,6 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb pw.println(" mOccluded: " + mOccluded); pw.println(" mRemoteInputActive: " + mRemoteInputActive); pw.println(" mDozing: " + mDozing); pw.println(" mGoingToSleepVisibleNotOccluded: " + mGoingToSleepVisibleNotOccluded); pw.println(" mAfterKeyguardGoneAction: " + mAfterKeyguardGoneAction); pw.println(" mAfterKeyguardGoneRunnables: " + mAfterKeyguardGoneRunnables); pw.println(" mPendingWakeupAction: " + mPendingWakeupAction); Loading