Home
last modified time | relevance | path

Searched refs:isDreaming (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/
DCommunalDreamStartable.kt67 .sampleFilter(keyguardInteractor.isDreaming) { isDreaming -> !isDreaming } in <lambda>() method
83 .sampleFilter(keyguardInteractor.isDreaming) { isDreaming -> !isDreaming } in <lambda>() method
DCommunalSceneStartable.kt85 private var isDreaming: Boolean = false in <lambda>() variable
150 keyguardInteractor.isDreaming in <lambda>()
152 .collectLatest { (isDreaming, scene) -> in <lambda>() method
153 this@CommunalSceneStartable.isDreaming = isDreaming in <lambda>()
154 if (scene == CommunalScenes.Communal && isDreaming && timeoutJob == null) { in <lambda>()
181 if (isDreaming) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DDreamCoordinator.kt77 keyguardRepository.isActiveDreamLockscreenHosted.collect { isDreaming -> in <lambda>() method
78 recordDreamingState(isDreaming) in <lambda>()
87 private fun recordDreamingState(isDreaming: Boolean) { in <lambda>()
88 isLockscreenHostedDream = isDreaming in <lambda>()
89 filter.update { "recordLockscreenHostedDreamState: $isDreaming" } in <lambda>()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerVrTest.java93 assertTrue(mDm.isDreaming()); in testNap()
107 assertFalse(mDm.isDreaming()); // ensure dream is still false after waiting. in testNap()
117 private void waitForDreamState(boolean isDreaming) throws Exception { in waitForDreamState() argument
121 if (mDm.isDreaming() == isDreaming) { in waitForDreamState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/
DFromDreamingTransitionInteractor.kt135 keyguardInteractor.isDreaming, in <lambda>()
139 .filterRelevantKeyguardStateAnd { (isDreaming, _) -> !isDreaming } in <lambda>() method
146 keyguardInteractor.isDreaming in <lambda>()
155 .filterRelevantKeyguardStateAnd { (isOccluded, isDreaming) -> in <lambda>() method
156 isOccluded && !isDreaming in <lambda>()
190 (isDreaming, isKeyguardShowing, isKeyguardDismissible) -> in <lambda>() method
191 !isDreaming && isKeyguardDismissible && !isKeyguardShowing in <lambda>()
DFromPrimaryBouncerTransitionInteractor.kt144 keyguardInteractor.isDreaming, in <lambda>()
152 .collect { (_, _, occluded, isDreaming, _, isIdleOnCommunal) -> in <lambda>() method
154 if (occluded && !isDreaming) { in <lambda>()
158 } else if (isDreaming) { in <lambda>()
DKeyguardInteractor.kt192 val isDreaming: Flow<Boolean> = repository.isDreaming in <lambda>() constant
225 merge(isDreaming, isDreamingWithOverlay) in <lambda>()
226 .combine(dozeTransitionModel) { isDreaming, dozeTransitionModel -> in <lambda>() method
227 isDreaming && isDozeOff(dozeTransitionModel.to) in <lambda>()
485 fun setDreaming(isDreaming: Boolean) { in <lambda>()
486 repository.setDreaming(isDreaming) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayCallbackController.kt30 var isDreaming = false variable
42 isDreaming = false in onWakeUp()
47 isDreaming = true in onStartDream()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/animation/
DFakeDialogTransitionAnimator.kt48 private val isDreaming: Boolean = false, constant in com.android.systemui.animation.FakeCallback
52 override fun isDreaming(): Boolean = isDreaming method in com.android.systemui.animation.FakeCallback
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/
DDreamOverlayCallbackControllerTest.kt50 assertThat(underTest.isDreaming).isEqualTo(true) in onWakeUpInvokesCallback()
55 assertThat(underTest.isDreaming).isEqualTo(false) in onWakeUpInvokesCallback()
74 assertThat(underTest.isDreaming).isEqualTo(false) in onStartDreamInvokesCallback()
78 assertThat(underTest.isDreaming).isEqualTo(true) in onStartDreamInvokesCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DLockscreenHostedDreamGestureListenerTest.kt93 whenever(statusBarStateController.isDreaming).thenReturn(true) in testGestureDetector_onSingleTap_whileDreaming()
112 whenever(statusBarStateController.isDreaming).thenReturn(true) in testGestureDetector_onSingleTap_notOnKeyguard()
133 whenever(statusBarStateController.isDreaming).thenReturn(true) in testGestureDetector_onSingleTap_bouncerShown()
154 whenever(statusBarStateController.isDreaming).thenReturn(true) in testGestureDetector_onSingleTap_falsing()
173 whenever(statusBarStateController.isDreaming).thenReturn(false) in testSingleTap_notDreaming_noFalsingCheck()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/
DStatusBarStateController.java56 boolean isDreaming(); in isDreaming() method
116 default void onDreamingChanged(boolean isDreaming) {} in onDreamingChanged() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImplTest.java182 when(mStatusBarStateController.isDreaming()).thenReturn(false); in ensureStateForHeadsUpWhenAwake()
416 when(mStatusBarStateController.isDreaming()).thenReturn(true); in testShouldNotHeadsUp_deviceNotInUse()
570 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldNotFullScreen_notPendingIntent()
589 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldNotFullScreen_suppressedOnlyByDND()
608 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldNotFullScreen_suppressedByDNDAndOther()
624 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldNotFullScreen_notHighImportance()
640 when(mStatusBarStateController.isDreaming()).thenReturn(true); in testShouldNotFullScreen_isGroupAlertSilenced()
667 when(mStatusBarStateController.isDreaming()).thenReturn(true); in testShouldNotFullScreen_isSuppressedByBubbleMetadata()
694 when(mStatusBarStateController.isDreaming()).thenReturn(false); in testShouldFullScreen_notInteractive()
710 when(mStatusBarStateController.isDreaming()).thenReturn(true); in testShouldFullScreen_isDreaming()
[all …]
DVisualInterruptionDecisionProviderTestBase.kt258 ensurePeekState { isDreaming = true } in <lambda>()
922 var isDreaming: Boolean? = null, in <lambda>() variable in com.android.systemui.statusbar.notification.interruption.VisualInterruptionDecisionProviderTestBase.State
947 isDreaming?.let { statusBarStateController.dreaming = it } in <lambda>()
983 isDreaming = false in <lambda>()
1004 isDreaming = true in <lambda>()
1010 isDreaming = false in <lambda>()
1018 isDreaming = false in <lambda>()
1028 isDreaming = false in <lambda>()
1038 isDreaming = false in <lambda>()
1049 isDreaming = false in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/conditions/
DDreamConditionTest.java72 when(mDreamManager.isDreaming()).thenReturn(true); in testInitialDreamingState()
86 when(mDreamManager.isDreaming()).thenReturn(false); in testInitialNonDreamingState()
102 when(mDreamManager.isDreaming()).thenReturn(true); in testChange()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/data/repository/
DFakeKeyguardRepository.kt83 override val isDreaming: MutableStateFlow<Boolean> = _isDreaming constant in com.android.systemui.keyguard.data.repository.FakeKeyguardRepository
207 override fun setDreaming(isDreaming: Boolean) { in setDreaming()
208 _isDreaming.value = isDreaming in setDreaming()
211 fun setDreamingWithOverlay(isDreaming: Boolean) { in setDreamingWithOverlay()
212 _isDreamingWithOverlay.value = isDreaming in setDreamingWithOverlay()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/domain/startable/
DScrimStartable.kt79 keyguardInteractor.isDreaming, in <lambda>()
100 val isDreaming = flowValues[5] as Boolean in <lambda>() constant
179 if (isOnKeyguard && isDreaming && !unlocking) { in <lambda>()
186 } else if (isOnKeyguard && !unlocking && isDreaming) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDreamTile.java158 if (mDreamManager.isDreaming()) { in handleClick()
178 state.state = isDreaming() ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
208 private boolean isDreaming() { in isDreaming() method in DreamTile
210 return mDreamManager.isDreaming(); in isDreaming()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/
DKeyguardRepository.kt151 val isDreaming: MutableStateFlow<Boolean> in <lambda>() constant
254 fun setDreaming(isDreaming: Boolean) in <lambda>()
506 dreamOverlayCallbackController.isDreaming, in <lambda>()
515 override val isDreaming: MutableStateFlow<Boolean> = MutableStateFlow(false) constant
662 override fun setDreaming(isDreaming: Boolean) { in setDreaming()
663 this.isDreaming.value = isDreaming in setDreaming()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DKeyguardRepositoryImplTest.kt336 fun isDreaming() = in <lambda>() method in com.android.systemui.keyguard.data.repository.KeyguardRepositoryImplTest
338 val isDreaming by collectLastValue(underTest.isDreaming) in <lambda>() constant
339 assertThat(isDreaming).isFalse() in <lambda>()
342 assertThat(isDreaming).isTrue() in <lambda>()
345 assertThat(isDreaming).isFalse() in <lambda>()
351 whenever(dreamOverlayCallbackController.isDreaming).thenReturn(false) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DDreamTileTest.java149 when(mDreamManager.isDreaming()).thenReturn(false); in testInactiveWhenDreaming()
162 when(mDreamManager.isDreaming()).thenReturn(true); in testActive()
175 when(mDreamManager.isDreaming()).thenReturn(false); in testClick()
186 when(mDreamManager.isDreaming()).thenReturn(true); in testClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowCallback.java29 boolean panelExpanded, boolean isDreaming); in onStateChanged() argument
/frameworks/base/core/java/android/service/dreams/
DDreamManagerInternal.java47 public abstract boolean isDreaming(); in isDreaming() method in DreamManagerInternal
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarStateControllerImpl.java359 public boolean setIsDreaming(boolean isDreaming) { in setIsDreaming() argument
361 Log.d(TAG, "setIsDreaming:" + isDreaming); in setIsDreaming()
363 if (mIsDreaming == isDreaming) { in setIsDreaming()
367 mIsDreaming = isDreaming; in setIsDreaming()
373 rl.mListener.onDreamingChanged(isDreaming); in setIsDreaming()
382 public boolean isDreaming() { in isDreaming() method in StatusBarStateControllerImpl
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/startable/
DScrimStartableTest.kt171 Preconditions(isIdleOnCommunal = true, isDreaming = true), in <lambda>()
199 isDreaming = true, in <lambda>()
320 kosmos.fakeKeyguardRepository.setDreaming(preconditions.isDreaming) in <lambda>()
369 val isDreaming: Boolean = false, in <lambda>() constant in com.android.systemui.scene.domain.startable.ScrimStartableTest.Preconditions

1234