Home
last modified time | relevance | path

Searched refs:mWakefulnessLifecycle (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardLifecyclesDispatcher.java45 private final WakefulnessLifecycle mWakefulnessLifecycle; field in KeyguardLifecyclesDispatcher
51 mWakefulnessLifecycle = wakefulnessLifecycle; in KeyguardLifecyclesDispatcher()
96 mWakefulnessLifecycle.dispatchStartedWakingUp(msg.arg1 /* pmReason */);
99 mWakefulnessLifecycle.dispatchFinishedWakingUp();
102 mWakefulnessLifecycle.dispatchStartedGoingToSleep(msg.arg1 /* pmReason */);
105 mWakefulnessLifecycle.dispatchFinishedGoingToSleep();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenBrightnessTest.java90 WakefulnessLifecycle mWakefulnessLifecycle; field in DozeScreenBrightnessTest
134 mWakefulnessLifecycle, in setUp()
241 mWakefulnessLifecycle, in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent()
279 mWakefulnessLifecycle, in testNullSensor()
311 mWakefulnessLifecycle, in testSensorsSupportPostures_closed()
350 mWakefulnessLifecycle, in testSensorsSupportPostures_open()
393 mWakefulnessLifecycle, in testSensorsSupportPostures_swapPostures()
461 when(mWakefulnessLifecycle.getLastSleepReason()).thenReturn( in transitionToDoze_shouldClampBrightness_afterTimeout_clampsToDim()
478 when(mWakefulnessLifecycle.getLastSleepReason()).thenReturn( in transitionToDoze_shouldClampBrightness_notAfterTimeout_doesNotClampToDim()
494 when(mWakefulnessLifecycle.getLastSleepReason()).thenReturn( in transitionToDoze_noClampBrightness_afterTimeout_noScreenOff_doesNotClampToDim()
[all …]
DDozeMachineTest.java79 private WakefulnessLifecycle mWakefulnessLifecycle; field in DozeMachineTest
109 mWakefulnessLifecycle, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DBiometricsUnlockControllerTest.java111 private WakefulnessLifecycle mWakefulnessLifecycle; field in BiometricsUnlockControllerTest
149 mNotificationMediaManager, mWakefulnessLifecycle, mScreenLifecycle, in setUp()
471 when(mWakefulnessLifecycle.getLastWakeReason()) in onSideFingerprintSuccess_recentPowerButtonPress_noHaptic()
475 when(mWakefulnessLifecycle.getLastWakeTime()).thenReturn(mSystemClock.uptimeMillis()); in onSideFingerprintSuccess_recentPowerButtonPress_noHaptic()
490 when(mWakefulnessLifecycle.getLastWakeReason()) in onSideFingerprintSuccess_oldPowerButtonPress_playHaptic()
494 when(mWakefulnessLifecycle.getLastWakeTime()).thenReturn(mSystemClock.uptimeMillis()); in onSideFingerprintSuccess_oldPowerButtonPress_playHaptic()
510 when(mWakefulnessLifecycle.getLastWakeTime()).thenReturn(mSystemClock.uptimeMillis()); in onSideFingerprintSuccess_recentGestureWakeUp_playHaptic()
513 when(mWakefulnessLifecycle.getLastWakeReason()) in onSideFingerprintSuccess_recentGestureWakeUp_playHaptic()
529 when(mWakefulnessLifecycle.getLastWakeReason()) in onSideFingerprintFail_alwaysPlaysHaptic()
531 when(mWakefulnessLifecycle.getLastWakeTime()).thenReturn(mSystemClock.uptimeMillis()); in onSideFingerprintFail_alwaysPlaysHaptic()
DCentralSurfacesCommandQueueCallbacksTest.java85 @Mock private WakefulnessLifecycle mWakefulnessLifecycle; field in CentralSurfacesCommandQueueCallbacksTest
119 mWakefulnessLifecycle, in setup()
DCentralSurfacesImplTest.java251 private WakefulnessLifecycle mWakefulnessLifecycle; field in CentralSurfacesImplTest
392 mWakefulnessLifecycle = in setup()
395 mWakefulnessLifecycle.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in setup()
396 mWakefulnessLifecycle.dispatchFinishedWakingUp(); in setup()
470 mWakefulnessLifecycle, in setup()
1311 mWakefulnessLifecycle.dispatchStartedWakingUp(PowerManager.WAKE_REASON_UNKNOWN); in setKeyguardShowingAndOccluded()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DCarrierTextManager.java76 private final WakefulnessLifecycle mWakefulnessLifecycle; field in CarrierTextManager
185 mWakefulnessLifecycle = wakefulnessLifecycle; in CarrierTextManager()
266 mWakefulnessLifecycle.addObserver(mWakefulnessObserver); in handleSetListening()
279 mWakefulnessLifecycle.removeObserver(mWakefulnessObserver); in handleSetListening()
639 private final WakefulnessLifecycle mWakefulnessLifecycle; field in CarrierTextManager.Builder
663 mWakefulnessLifecycle = wakefulnessLifecycle; in Builder()
685 mTelephonyManager, mTelephonyListenerManager, mWakefulnessLifecycle, in build()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DVisualStabilityCoordinator.java68 private final WakefulnessLifecycle mWakefulnessLifecycle; field in VisualStabilityCoordinator
105 mWakefulnessLifecycle = wakefulnessLifecycle; in VisualStabilityCoordinator()
115 mWakefulnessLifecycle.addObserver(mWakefulnessObserver); in attach()
116 mSleepy = mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_ASLEEP; in attach()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenBrightness.java78 private final WakefulnessLifecycle mWakefulnessLifecycle; field in DozeScreenBrightness
123 mWakefulnessLifecycle = wakefulnessLifecycle; in DozeScreenBrightness()
279 || mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_GOING_TO_SLEEP) in clampToDimBrightnessForScreenOff()
282 && mWakefulnessLifecycle.getLastSleepReason() == GO_TO_SLEEP_REASON_TIMEOUT) { in clampToDimBrightnessForScreenOff()
DDozeMachine.java148 private final WakefulnessLifecycle mWakefulnessLifecycle; field in DozeMachine
168 mWakefulnessLifecycle = wakefulnessLifecycle; in DozeMachine()
429 @Wakefulness int wakefulness = mWakefulnessLifecycle.getWakefulness(); in resolveIntermediateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wmshell/
DWMShell.java123 private final WakefulnessLifecycle mWakefulnessLifecycle; field in WMShell
204 mWakefulnessLifecycle = wakefulnessLifecycle; in WMShell()
252 mWakefulnessLifecycle.addObserver(new WakefulnessLifecycle.Observer() { in initSplitScreen()
319 mWakefulnessLifecycle.addObserver(mWakefulnessObserver); in initOneHanded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeServiceHost.java76 private final WakefulnessLifecycle mWakefulnessLifecycle; field in DozeServiceHost
117 mWakefulnessLifecycle = wakefulnessLifecycle; in DozeServiceHost()
346 if (mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in setAnimateWakeup()
347 || mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_WAKING) { in setAnimateWakeup()
DCentralSurfacesCommandQueueCallbacks.java92 private final WakefulnessLifecycle mWakefulnessLifecycle; field in CentralSurfacesCommandQueueCallbacks
156 mWakefulnessLifecycle = wakefulnessLifecycle; in CentralSurfacesCommandQueueCallbacks()
567 return mWakefulnessLifecycle.getWakefulness() in isGoingToSleep()
572 return mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_AWAKE in isWakingUpOrAwake()
573 || mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_WAKING; in isWakingUpOrAwake()
DBiometricUnlockController.java175 private final WakefulnessLifecycle mWakefulnessLifecycle; field in BiometricUnlockController
296 mWakefulnessLifecycle = wakefulnessLifecycle; in BiometricUnlockController()
297 mWakefulnessLifecycle.addObserver(mWakefulnessObserver); in BiometricUnlockController()
759 final boolean lastWakeupFromPowerButton = mWakefulnessLifecycle.getLastWakeReason() in lastWakeupFromPowerButtonWithinHapticThreshold()
762 && mWakefulnessLifecycle.getLastWakeTime() != UNKNOWN_LAST_WAKE_TIME in lastWakeupFromPowerButtonWithinHapticThreshold()
763 && mSystemClock.uptimeMillis() - mWakefulnessLifecycle.getLastWakeTime() in lastWakeupFromPowerButtonWithinHapticThreshold()
DCentralSurfacesImpl.java642 private final WakefulnessLifecycle mWakefulnessLifecycle; field in CentralSurfacesImpl
804 mWakefulnessLifecycle = wakefulnessLifecycle; in CentralSurfacesImpl()
899 mWakefulnessLifecycle.addObserver(mWakefulnessObserver); in start()
2633 && mWakefulnessLifecycle.getWakefulness() == WAKEFULNESS_ASLEEP in dismissKeyguardThenExecute()
3339 && mWakefulnessLifecycle.getLastWakeReason() in updateRevealEffect()
3342 && mWakefulnessLifecycle.getLastSleepReason() in updateRevealEffect()
3539 && mWakefulnessLifecycle.getLastWakeReason()
3661 return mWakefulnessLifecycle.getWakefulness(); in getWakefulnessState()
3740 return mWakefulnessLifecycle.getWakefulness() in isGoingToSleep()
3745 return mWakefulnessLifecycle.getWakefulness() == WakefulnessLifecycle.WAKEFULNESS_WAKING in isWakingOrAwake()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DWMShellTest.java79 @Mock WakefulnessLifecycle mWakefulnessLifecycle; field in WMShellTest
103 mWakefulnessLifecycle, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
DThemeOverlayControllerTest.java117 private WakefulnessLifecycle mWakefulnessLifecycle; field in ThemeOverlayControllerTest
136 when(mWakefulnessLifecycle.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in setup()
151 mUserTracker, mDumpManager, mFeatureFlags, mResources, mWakefulnessLifecycle) { in setup()
164 mWakefulnessLifecycle.dispatchFinishedWakingUp(); in setup()
171 verify(mWakefulnessLifecycle).addObserver(mWakefulnessLifecycleObserver.capture()); in setup()
729 mUserTracker, mDumpManager, mFeatureFlags, mResources, mWakefulnessLifecycle) { in catchException_whenPackageNameIsOverlayName()
766 mUserTracker, mDumpManager, mFeatureFlags, mResources, mWakefulnessLifecycle) { in onWallpaperColorsChanged_defersUntilSetupIsCompleted_ifHasColors()
835 mWakefulnessLifecycle.dispatchFinishedGoingToSleep(); in onWallpaperColorsChanged_screenOff_deviceSetupNotFinished_doesNotProcessQueued()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DVisualStabilityCoordinatorTest.java74 @Mock private WakefulnessLifecycle mWakefulnessLifecycle; field in VisualStabilityCoordinatorTest
109 mWakefulnessLifecycle); in setUp()
114 verify(mWakefulnessLifecycle).addObserver(mWakefulnessObserverCaptor.capture()); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthControllerTest.java155 private WakefulnessLifecycle mWakefulnessLifecycle; field in AuthControllerTest
241 when(mWakefulnessLifecycle.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in setup()
243 verify(mWakefulnessLifecycle).addObserver(mWakefullnessObserverCaptor.capture()); in setup()
746 when(mWakefulnessLifecycle.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in testForwardsDozeEvents()
761 when(mWakefulnessLifecycle.getWakefulness()).thenReturn(WAKEFULNESS_AWAKE); in testForwardsWakeEvents()
968 sidefpsControllerFactory, mDisplayManager, mWakefulnessLifecycle, in TestableAuthController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java145 private final WakefulnessLifecycle mWakefulnessLifecycle; field in ThemeOverlayController
183 && mWakefulnessLifecycle.getWakefulness() != WAKEFULNESS_ASLEEP) {
390 mWakefulnessLifecycle = wakefulnessLifecycle; in ThemeOverlayController()
466 mWakefulnessLifecycle.addObserver(new WakefulnessLifecycle.Observer() { in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthController.java160 private final WakefulnessLifecycle mWakefulnessLifecycle; field in AuthController
755 mWakefulnessLifecycle = wakefulnessLifecycle; in AuthController()
756 mWakefulnessLifecycle.addObserver(new WakefulnessLifecycle.Observer() { in AuthController()
849 mWakefulnessLifecycle.getWakefulness()); in setBiometricContextListener()
1131 mWakefulnessLifecycle, in showDialog()
DAuthContainerView.java117 private final WakefulnessLifecycle mWakefulnessLifecycle; field in AuthContainerView
299 mWakefulnessLifecycle = wakefulnessLifecycle; in AuthContainerView()
469 mWakefulnessLifecycle.addObserver(this); in onAttachedToWindow()
609 mWakefulnessLifecycle.removeObserver(this);
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java85 private final WakefulnessLifecycle mWakefulnessLifecycle; field in PowerUI
151 mWakefulnessLifecycle = wakefulnessLifecycle; in PowerUI()
172 mWakefulnessLifecycle.addObserver(mWakefulnessObserver); in start()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogControllerImpl.java125 private final WakefulnessLifecycle mWakefulnessLifecycle; field in VolumeDialogControllerImpl
189 mWakefulnessLifecycle = wakefulnessLifecycle; in VolumeDialogControllerImpl()
223 mWakefulnessLifecycle.addObserver(mWakefullnessLifecycleObserver); in VolumeDialogControllerImpl()
447 int wakefulness = mWakefulnessLifecycle.getWakefulness(); in shouldShowUI()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DCarrierTextManagerTest.java94 private WakefulnessLifecycle mWakefulnessLifecycle; field in CarrierTextManagerTest
148 mTelephonyManager, mTelephonyListenerManager, mWakefulnessLifecycle, mMainExecutor, in setUp()

12