Home
last modified time | relevance | path

Searched refs:isAsleep (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/
DScreenIdleConditionTest.kt42 private val isAsleep = MutableStateFlow(false) constant
50 whenever(powerInteractor.isAsleep).thenReturn(isAsleep) in setup()
59 isAsleep.emit(false) in testCondition_awake()
69 isAsleep.emit(true) in testCondition_asleep()
79 isAsleep.emit(false) in testCondition_invokesRetry()
83 isAsleep.emit(true) in testCondition_invokesRetry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/domain/interactor/
DNotificationStackInteractor.kt49 powerInteractor.isAsleep, in <lambda>()
50 ) { (isOnKeyguard, isAsleep) -> in <lambda>() method
51 isOnKeyguard || isAsleep in <lambda>()
DHideNotificationsInteractor.kt101 powerInteractor.detailedWakefulness.filter { it.isAsleep() }.first() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/shared/model/
DWakefulnessModel.kt43 fun isAsleep() = !isAwake() in isAwake() method in com.android.systemui.power.shared.model.WakefulnessModel
53 isAsleep() && lastSleepReason == wakeSleepReason in isAsleepFrom()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/
DDeviceUnlockedInteractor.kt93 powerInteractor.isAsleep.flatMapLatest { isAsleep -> in <lambda>() method
94 if (isAsleep) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/domain/interactor/
DShadeInteractorImpl.kt88 powerInteractor.isAsleep, in <lambda>()
91 ) { isAsleep, goingToSleep, isPulsing -> in <lambda>() method
97 isAsleep -> isPulsing in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DTransitionInteractor.kt203 powerInteractor.isAsleep in <lambda>()
204 .filter { isAsleep -> isAsleep } in <lambda>() method
DFromGlanceableHubTransitionInteractor.kt137 powerInteractor.isAsleep in <lambda>()
138 .filterRelevantKeyguardStateAnd { isAsleep -> isAsleep } in <lambda>() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/
DScreenIdleCondition.kt32 return powerInteractorLazy.get().isAsleep
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/domain/interactor/
DPowerInteractor.kt68 val isAsleep = isAwake.map { !it } in <lambda>() constant in com.android.systemui.power.domain.interactor.PowerInteractor
104 if (repository.wakefulness.value.isAsleep() || statusBarStateController.isDozing) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/domain/startable/
DSceneContainerStartable.kt393 if (wakefulness.isAsleep()) return@collect in <lambda>()
413 powerInteractor.isAsleep.collect { isAsleep -> in <lambda>() method
414 if (isAsleep) { in <lambda>()
554 wakefulness.isAsleep() -> falsingCollector.onScreenOff() in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/
DDisplaySwitchLatencyTrackerTest.kt85 private val isAsleep = MutableStateFlow(false) constant
114 whenever(powerInteractor.isAsleep).thenReturn(isAsleep) in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DFoldLightRevealOverlayAnimation.kt150 traceAsync(TAG, "waitForGoToSleep()") { powerInteractor.isAsleep.filter { it }.first() } in <lambda>()
DDisplaySwitchLatencyTracker.kt188 return (lastWakefulnessEvent.isAsleep() && in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java204 boolean isAsleep = themeOverlayControllerWakefulnessDeprecation()
209 if (currentUser && !mAcceptColorEvents && isAsleep) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/data/repository/
DDeviceEntryFaceAuthRepository.kt323 powerInteractor.isAsleep, in observeFaceAuthResettingConditions()