Home
last modified time | relevance | path

Searched refs:lastWakeReason (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/power/shared/model/
DWakefulnessModel.kt23 val lastWakeReason: WakeSleepReason = WakeSleepReason.OTHER, constant in com.android.systemui.power.shared.model.WakefulnessModel
46 isAwake() && lastWakeReason == wakeSleepReason in isAwake()
49 return isAwake() && lastWakeReason.isTouch in isAwake()
59 (lastWakeReason == WakeSleepReason.TAP || lastWakeReason == WakeSleepReason.GESTURE) in isAsleepFrom()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/domain/interactor/
DPowerInteractorTest.kt106 assertThat(repository.lastWakeReason).isNull() in wakeUpIfDozing_notDozing_notWoken()
117 assertThat(repository.lastWakeReason).isNull() in wakeUpIfDozing_notAllowed_notWoken()
128 assertThat(repository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_GESTURE) in wakeUpIfDozing_dozingAndAllowed_wokenAndFalsingNotified()
140 assertThat(repository.lastWakeReason).isNull() in wakeUpForFullScreenIntent_notGoingToSleepAndNotDozing_notWoken()
151 assertThat(repository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_APPLICATION) in wakeUpForFullScreenIntent_startingToSleep_woken()
161 assertThat(repository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_APPLICATION) in wakeUpForFullScreenIntent_dozing_woken()
174 assertThat(repository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_GESTURE) in wakeUpIfDreaming_dreaming_woken()
187 assertThat(repository.lastWakeReason).isNull() in wakeUpIfDreaming_notDreaming_notWoken()
215 assertEquals(WakeSleepReason.POWER_BUTTON, repository.wakefulness.value.lastWakeReason) in onCameraLaunchGestureDetected_maintainsAllOtherState()
232 assertEquals(WakeSleepReason.POWER_BUTTON, repository.wakefulness.value.lastWakeReason) in onCameraLaunchGestureDetected_stillTrue_ifGestureNotDetectedOnWakingUp()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/power/data/repository/
DFakePowerRepository.kt45 var lastWakeReason: Int? = null variable in com.android.systemui.power.data.repository.FakePowerRepository
55 lastWakeReason = wakeReason in wakeUp()
64 lastWakeReason: WakeSleepReason, in updateWakefulness()
71 lastWakeReason, in updateWakefulness()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/data/repository/
DPowerRepository.kt83 lastWakeReason: WakeSleepReason = wakefulness.value.lastWakeReason, in wakeUp()
132 lastWakeReason: WakeSleepReason, in wakeUp()
139 lastWakeReason, in wakeUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DPulsingGestureListenerTest.kt124 assertThat(powerRepository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_TAP) in testGestureDetector_singleTapEnabled()
144 assertThat(powerRepository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_TAP) in testGestureDetector_doubleTapEnabled()
176 assertThat(powerRepository.lastWakeReason).isNull() in testGestureDetector_singleTapEnabled_falsing()
224 assertThat(powerRepository.lastWakeReason).isNull() in testGestureDetector_doubleTapEnabled_falsing()
244 assertThat(powerRepository.lastWakeReason).isNull() in testGestureDetector_singleTapEnabled_proxCovered()
264 assertThat(powerRepository.lastWakeReason).isNull() in testGestureDetector_doubleTapEnabled_proxCovered()
DLockscreenHostedDreamGestureListenerTest.kt105 Truth.assertThat(powerRepository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_TAP) in testGestureDetector_onSingleTap_whileDreaming()
166 Truth.assertThat(powerRepository.lastWakeReason).isNull() in testGestureDetector_onSingleTap_falsing()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/icon/ui/viewmodel/
DNotificationIconContainerAlwaysOnDisplayViewModelTest.kt114 lastWakeReason = WakeSleepReason.OTHER, in setup()
126 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isFalse_whenDeviceAsleepAndNotPulsing()
149 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isTrue_whenDeviceAsleepAndPulsing()
172 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isFalse_whenStartingToSleepAndNotControlScreenOff()
196 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isTrue_whenStartingToSleepAndControlScreenOff()
215 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isTrue_whenNotAsleep()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/icon/ui/viewmodel/
DNotificationIconContainerStatusBarViewModelTest.kt99 lastWakeReason = WakeSleepReason.OTHER, in setup()
109 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isFalse_whenDeviceAsleepAndNotPulsing()
132 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isTrue_whenDeviceAsleepAndPulsing()
155 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isFalse_whenStartingToSleepAndNotControlScreenOff()
179 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isTrue_whenStartingToSleepAndControlScreenOff()
200 lastWakeReason = WakeSleepReason.POWER_BUTTON, in animationsEnabled_isTrue_whenNotAsleep()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/domain/interactor/
DShadeInteractorImplTest.kt344 lastWakeReason = WakeSleepReason.POWER_BUTTON, in isShadeTouchable_isFalse_whenDeviceAsleepAndNotPulsing()
370 lastWakeReason = WakeSleepReason.POWER_BUTTON, in isShadeTouchable_isTrue_whenDeviceAsleepAndPulsing()
401 lastWakeReason = WakeSleepReason.POWER_BUTTON, in isShadeTouchable_isFalse_whenStartingToSleepAndNotControlScreenOff()
425 lastWakeReason = WakeSleepReason.POWER_BUTTON, in isShadeTouchable_isTrue_whenStartingToSleepAndControlScreenOff()
444 lastWakeReason = WakeSleepReason.POWER_BUTTON, in isShadeTouchable_isTrue_whenNotAsleep()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/shelf/domain/interactor/
DNotificationShelfInteractorTest.kt127 assertThat(powerRepository.lastWakeReason).isNotNull() in goToLockedShadeFromShelf_wakesUpFromDoze()
128 assertThat(powerRepository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_GESTURE) in goToLockedShadeFromShelf_wakesUpFromDoze()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/shelf/ui/viewmodel/
DNotificationShelfViewModelTest.kt145 assertThat(powerRepository.lastWakeReason).isNotNull() in onClicked_goesToLockedShade()
146 assertThat(powerRepository.lastWakeReason).isEqualTo(PowerManager.WAKE_REASON_GESTURE) in onClicked_goesToLockedShade()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsControllerOverlayTest.kt330 lastWakeReason = WakeSleepReason.POWER_BUTTON, in <lambda>()
352 lastWakeReason = WakeSleepReason.POWER_BUTTON, in <lambda>()
381 lastWakeReason = WakeSleepReason.POWER_BUTTON, in <lambda>()
425 lastWakeReason = WakeSleepReason.POWER_BUTTON, in <lambda>()
556 lastWakeReason = WakeSleepReason.POWER_BUTTON, in <lambda>()
586 lastWakeReason = WakeSleepReason.POWER_BUTTON, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/
DFaceAuthenticationLogger.kt34 fun ignoredWakeupReason(lastWakeReason: WakeSleepReason) { in ignoredWakeupReason()
38 { str1 = "$lastWakeReason" }, in ignoredWakeupReason()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/
DSystemUIDeviceEntryFaceAuthInteractor.kt139 wakefulnessModel.lastWakeReason in <lambda>()
142 faceAuthenticationLogger.ignoredWakeupReason(wakefulnessModel.lastWakeReason) in <lambda>()
149 it.lastWakeReason.powerManagerWakeReason in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/footer/ui/viewmodel/
DFooterViewModelTest.kt177 lastWakeReason = WakeSleepReason.POWER_BUTTON, in clearAllButtonAnimating_whenShadeExpandedAndTouchable()
211 lastWakeReason = WakeSleepReason.POWER_BUTTON, in clearAllButtonAnimating_whenShadeNotExpanded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/domain/interactor/
DPowerInteractor.kt148 lastWakeReason = WakeSleepReason.fromPowerManagerWakeReason(reason), in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DLightRevealScrimRepositoryTest.kt80 lastWakeReason = WakeSleepReason.fromPowerManagerWakeReason(WAKE_REASON_UNKNOWN), in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/
DSideFpsProgressBarViewModelTest.kt160 assertThat(kosmos.fakePowerRepository.lastWakeReason) in whenFingerprintAcquiredStartsWhenNotDozing_wakesUpDevice()