/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
H A D | WakefulnessLifecycleTest.java | 67 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in baseState() 76 assertEquals(WakefulnessLifecycle.WAKEFULNESS_WAKING, mWakefulness.getWakefulness()); in dispatchStartedWakingUp() 86 assertEquals(WakefulnessLifecycle.WAKEFULNESS_AWAKE, mWakefulness.getWakefulness()); in dispatchFinishedWakingUp() 99 mWakefulness.getWakefulness()); in dispatchStartedGoingToSleep() 112 mWakefulness.getWakefulness()); in dispatchFinishedGoingToSleep()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
H A D | WakefulnessLifecycle.java | 102 public @Wakefulness int getWakefulness() { in getWakefulness() method in WakefulnessLifecycle 130 if (getWakefulness() == WAKEFULNESS_WAKING) { in dispatchStartedWakingUp() 151 if (getWakefulness() == WAKEFULNESS_AWAKE) { in dispatchFinishedWakingUp() 160 if (getWakefulness() == WAKEFULNESS_GOING_TO_SLEEP) { in dispatchStartedGoingToSleep() 180 if (getWakefulness() == WAKEFULNESS_ASLEEP) { in dispatchFinishedGoingToSleep()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
H A D | VolumeDialogControllerImplTest.java | 145 when(mWakefullnessLifcycle.getWakefulness()).thenReturn( in testVolumeChangeW_deviceNotInteractiveAOD() 155 when(mWakefullnessLifcycle.getWakefulness()).thenReturn( in testVolumeChangeW_deviceInteractive() 165 when(mWakefullnessLifcycle.getWakefulness()).thenReturn( in testVolumeChangeW_deviceInteractive_StartedSleeping() 169 when(mWakefullnessLifcycle.getWakefulness()).thenReturn( in testVolumeChangeW_deviceInteractive_StartedSleeping() 179 when(mWakefullnessLifcycle.getWakefulness()).thenReturn( in testVolumeChangeW_deviceOutFromBLEHeadset_doStateChanged() 193 when(mWakefullnessLifcycle.getWakefulness()).thenReturn( in testVolumeChangeW_deviceOutFromA2DP_doStateChanged()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | CentralSurfacesCommandQueueCallbacks.java | 557 return mWakefulnessLifecycle.getWakefulness() in isGoingToSleep() 562 return mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in isWakingUpOrAwake() 563 || mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_WAKING; in isWakingUpOrAwake()
|
H A D | DozeServiceHost.java | 355 if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in setAnimateWakeup() 356 || mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_WAKING) { in setAnimateWakeup()
|
H A D | CentralSurfacesImpl.java | 3022 return mWakefulnessLifecycle.getWakefulness(); in getWakefulnessState() 3101 return mWakefulnessLifecycle.getWakefulness() in isGoingToSleep() 3106 return mWakefulnessLifecycle.getWakefulness() == WakefulnessLifecycle.WAKEFULNESS_WAKING in isWakingOrAwake() 3107 || mWakefulnessLifecycle.getWakefulness() == WakefulnessLifecycle.WAKEFULNESS_AWAKE; in isWakingOrAwake()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
H A D | DozeScreenBrightnessTest.java | 525 when(mWakefulnessLifecycle.getWakefulness()).thenReturn( in transitionToDoze_noClampBrightness_afterTimeout_clampsToDim() 538 when(mWakefulnessLifecycle.getWakefulness()).thenReturn( in transitionToDoze_noClampBrigthness_notAfterTimeout_doesNotClampToDim()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
H A D | VisualStabilityCoordinator.java | 116 mSleepy = mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_ASLEEP; in attach()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
H A D | DozeScreenBrightness.java | 286 || mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_GOING_TO_SLEEP) in clampToDimBrightnessForScreenOff()
|
H A D | DozeMachine.java | 429 @Wakefulness int wakefulness = mWakefulnessLifecycle.getWakefulness(); in resolveIntermediateState()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
H A D | ThemeOverlayController.java | 206 && mWakefulnessLifecycle.getWakefulness() != WAKEFULNESS_ASLEEP) {
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
H A D | KeyguardUpdateMonitorTest.java | 3099 when(mWakefulness.getWakefulness()).thenReturn(WAKEFULNESS_ASLEEP); in onDisplayOff_whileAsleep_doesNotStopFaceAuth() 3124 when(mWakefulness.getWakefulness()).thenReturn(WAKEFULNESS_WAKING); in onDisplayOff_whileWaking_doesNotStopFaceAuth() 3451 when(mWakefulness.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in enableStopFaceAuthOnDisplayOff()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
H A D | ThemeOverlayControllerTest.java | 143 when(mWakefulnessLifecycle.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in setup()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | VolumeDialogControllerImpl.java | 501 int wakefulness = mWakefulnessLifecycle.getWakefulness(); in shouldShowUI()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
H A D | NotificationPanelViewController.java | 2280 float factor = ShadeViewController.getFalsingThresholdFactor(getWakefulness()); in getFalsingThreshold() 2284 private WakefulnessModel getWakefulness() { in getWakefulness() method in NotificationPanelViewController 3761 /* screenOnFromTouch=*/ getWakefulness().isDeviceInteractiveFromTapOrGesture()); in endMotionEvent()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardUpdateMonitor.java | 350 if (mWakefulness.getWakefulness() == WAKEFULNESS_AWAKE
|