/frameworks/base/packages/SystemUI/src/com/android/systemui/power/shared/model/ |
D | WakefulnessModel.kt | 23 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/ |
D | PowerInteractorTest.kt | 106 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/ |
D | FakePowerRepository.kt | 45 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/ |
D | PowerRepository.kt | 83 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/ |
D | PulsingGestureListenerTest.kt | 124 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()
|
D | LockscreenHostedDreamGestureListenerTest.kt | 105 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/ |
D | NotificationIconContainerAlwaysOnDisplayViewModelTest.kt | 114 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/ |
D | NotificationIconContainerStatusBarViewModelTest.kt | 99 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/ |
D | ShadeInteractorImplTest.kt | 344 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/ |
D | NotificationShelfInteractorTest.kt | 127 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/ |
D | NotificationShelfViewModelTest.kt | 145 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/ |
D | UdfpsControllerOverlayTest.kt | 330 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/ |
D | FaceAuthenticationLogger.kt | 34 fun ignoredWakeupReason(lastWakeReason: WakeSleepReason) { in ignoredWakeupReason() 38 { str1 = "$lastWakeReason" }, in ignoredWakeupReason()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/ |
D | SystemUIDeviceEntryFaceAuthInteractor.kt | 139 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/ |
D | FooterViewModelTest.kt | 177 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/ |
D | PowerInteractor.kt | 148 lastWakeReason = WakeSleepReason.fromPowerManagerWakeReason(reason), in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/ |
D | LightRevealScrimRepositoryTest.kt | 80 lastWakeReason = WakeSleepReason.fromPowerManagerWakeReason(WAKE_REASON_UNKNOWN), in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/ui/viewmodel/ |
D | SideFpsProgressBarViewModelTest.kt | 160 assertThat(kosmos.fakePowerRepository.lastWakeReason) in whenFingerprintAcquiredStartsWhenNotDozing_wakesUpDevice()
|