Home
last modified time | relevance | path

Searched refs:mDreamManager (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/libs/dream/lowlight/tests/src/com.android.dream.lowlight/
DLowLightDreamManagerTest.kt46 private lateinit var mDreamManager: DreamManager variable in com.android.dream.lowlight.LowLightDreamManagerTest
73 dreamManager = mDreamManager, in setUp()
84 verify(mDreamManager, never()).setSystemDreamComponent(DREAM_COMPONENT) in setAmbientLightMode_lowLight_setSystemDream()
87 verify(mDreamManager).setSystemDreamComponent(DREAM_COMPONENT) in setAmbientLightMode_lowLight_setSystemDream()
94 verify(mDreamManager, never()).setSystemDreamComponent(null) in <lambda>()
97 verify(mDreamManager).setSystemDreamComponent(null) in <lambda>()
107 verify(mDreamManager).setSystemDreamComponent(DREAM_COMPONENT) in <lambda>()
108 clearInvocations(mDreamManager) in <lambda>()
115 verify(mDreamManager).setSystemDreamComponent(null) in <lambda>()
122 dreamManager = mDreamManager, in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/conditions/
DDreamConditionTest.java54 DreamManager mDreamManager; field in DreamConditionTest
72 when(mDreamManager.isDreaming()).thenReturn(true); in testInitialDreamingState()
73 final DreamCondition condition = new DreamCondition(mScope, mDreamManager, in testInitialDreamingState()
86 when(mDreamManager.isDreaming()).thenReturn(false); in testInitialNonDreamingState()
87 final DreamCondition condition = new DreamCondition(mScope, mDreamManager, in testInitialNonDreamingState()
102 when(mDreamManager.isDreaming()).thenReturn(true); in testChange()
103 final DreamCondition condition = new DreamCondition(mScope, mDreamManager, in testChange()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DDreamTileTest.java82 private IDreamManager mDreamManager; field in DreamTileTest
136 when(mDreamManager.getDreamComponentsForUser(mUserTracker.getUserId())).thenReturn(null); in testNotAvailable()
147 when(mDreamManager.getDreamComponentsForUser(mUserTracker.getUserId())) in testInactiveWhenDreaming()
149 when(mDreamManager.isDreaming()).thenReturn(false); in testInactiveWhenDreaming()
160 when(mDreamManager.getDreamComponentsForUser(mUserTracker.getUserId())) in testActive()
162 when(mDreamManager.isDreaming()).thenReturn(true); in testActive()
173 when(mDreamManager.getDreamComponentsForUser(mUserTracker.getUserId())) in testClick()
175 when(mDreamManager.isDreaming()).thenReturn(false); in testClick()
184 verify(mDreamManager).dream(); in testClick()
186 when(mDreamManager.isDreaming()).thenReturn(true); in testClick()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/conditions/
DDreamCondition.java33 private final DreamManager mDreamManager; field in DreamCondition
50 mDreamManager = dreamManager; in DreamCondition()
57 updateCondition(mDreamManager.isDreaming()); in start()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/dream/
DDreamBackend.java141 private final IDreamManager mDreamManager; field in DreamBackend
162 mDreamManager = IDreamManager.Stub.asInterface( in DreamBackend()
235 if (mDreamManager == null) { in getDefaultDream()
239 return mDreamManager.getDefaultDreamComponentForUser(mContext.getUserId()); in getDefaultDream()
420 if (mDreamManager == null) { in setActiveDream()
425 mDreamManager.setDreamComponents(dream == null ? null : dreams); in setActiveDream()
433 if (mDreamManager == null) { in getActiveDream()
437 ComponentName[] dreams = mDreamManager.getDreamComponents(); in getActiveDream()
462 if (mDreamManager == null || componentName == null) { in preview()
466 mDreamManager.testDream(mContext.getUserId(), componentName); in preview()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDreamTile.java70 private final IDreamManager mDreamManager; field in DreamTile
112 mDreamManager = dreamManager; in DreamTile()
158 if (mDreamManager.isDreaming()) { in handleClick()
159 mDreamManager.awaken(); in handleClick()
161 mDreamManager.dream(); in handleClick()
210 return mDreamManager.isDreaming(); in isDreaming()
219 final ComponentName[] dreams = mDreamManager.getDreamComponentsForUser( in getActiveDream()
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/
DShadeTouchHandler.java45 private final DreamManager mDreamManager; field in ShadeTouchHandler
60 mDreamManager = dreamManager; in ShadeTouchHandler()
110 if (Flags.communalHub() && !mDreamManager.isDreaming()) { in sendTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayRegistrant.java51 private final IDreamManager mDreamManager; field in DreamOverlayRegistrant
98 mDreamManager.registerDreamOverlayService( in registerOverlayService()
112 mDreamManager = IDreamManager.Stub.asInterface( in DreamOverlayRegistrant()
DDreamOverlayContainerViewController.java109 private final DreamManager mDreamManager; field in DreamOverlayContainerViewController
250 mDreamManager = dreamManager; in DreamOverlayContainerViewController()
285 mDreamManager::setDreamIsObscured, in onViewAttached()
/frameworks/base/services/tests/dreamservicetests/src/com/android/server/dreams/
DTestDreamEnvironment.java180 private final IDreamManager mDreamManager; field in TestDreamEnvironment.TestInjector
189 mDreamManager = dreamManager; in TestInjector()
229 return mDreamManager; in getDreamManager()
254 private IDreamManager mDreamManager; field in TestDreamEnvironment
296 mDreamManager, mDreamOverlayConnectionHandler, shouldShowComplications); in TestDreamEnvironment()
363 verify(mDreamManager, in createDreamActivity()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/
DShadeTouchHandlerTest.java63 DreamManager mDreamManager; field in ShadeTouchHandlerTest
82 mDreamManager, TOUCH_HEIGHT); in setup()
126 when(mDreamManager.isDreaming()).thenReturn(true); in testSwipeDown_dreaming_sentToShadeView()
/frameworks/base/core/java/android/service/dreams/
DDreamService.java250 private final IDreamManager mDreamManager; field in DreamService
404 mDreamManager = mInjector.getDreamManager(); in DreamService()
923 mDreamManager.startDozing( in updateDoze()
948 mDreamManager.stopDozing(mDreamToken); in stopDozing()
1249 mDreamManager.finishSelf(mDreamToken, true /*immediate*/); in finish()
1332 mDreamManager.finishSelf(mDreamToken, false /*immediate*/); in wakeUp()
1470 mDreamManager.finishSelf(dreamToken, true /*immediate*/); in attach()
1522 mDreamManager.startDreamActivity(i); in attach()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java101 private final IDreamManager mDreamManager; field in LegacyGlobalActions
130 mDreamManager = IDreamManager.Stub.asInterface( in LegacyGlobalActions()
181 if (mDreamManager != null) { in awakenIfNecessary()
183 if (mDreamManager.isDreaming()) { in awakenIfNecessary()
184 mDreamManager.awaken(); in awakenIfNecessary()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/
DDreamOverlayContainerViewControllerTest.java136 private DreamManager mDreamManager; field in DreamOverlayContainerViewControllerTest
177 mDreamManager); in setup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wmshell/
DBubblesManager.java106 private final IDreamManager mDreamManager; field in BubblesManager
204 mDreamManager = dreamManager; in BubblesManager()
431 return mDreamManager.isDreamingOrInPreview(); in isDreamingOrInPreview()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationActivityStarter.java126 private final IDreamManager mDreamManager; field in StatusBarNotificationActivityStarter
198 mDreamManager = dreamManager; in StatusBarNotificationActivityStarter()
639 mDreamManager.awaken(); in launchFullScreenIntent()
DCentralSurfacesImpl.java812 mDreamManager = dreamManager; in CentralSurfacesImpl()
2876 private final IDreamManager mDreamManager;
2925 mDreamManager.awaken(); in awakenDreams()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialogLite.java200 private final IDreamManager mDreamManager; field in GlobalActionsDialogLite
385 mDreamManager = iDreamManager; in GlobalActionsDialogLite()
514 if (mDreamManager != null) { in awakenIfNecessary()
516 if (mDreamManager.isDreaming()) { in awakenIfNecessary()
517 mDreamManager.awaken(); in awakenIfNecessary()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsDialogLiteTest.java109 @Mock private IDreamManager mDreamManager; field in GlobalActionsDialogLiteTest
168 mDreamManager, in setUp()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java350 private DreamManagerInternal mDreamManager; field in PowerManagerService
1362 mDreamManager = getLocalService(DreamManagerInternal.class);
1386 mDreamManager.registerDreamManagerStateListener(new DreamManagerStateListener());
3454 if (mDreamManager != null) {
3457 mDreamManager.stopDream(/* immediate= */ false,
3459 mDreamManager.startDream(wakefulness == WAKEFULNESS_DOZING,
3462 isDreaming = mDreamManager.isDreaming();
3544 mDreamManager.stopDream(/* immediate= */ false, "power manager request" /*reason*/);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DCentralSurfacesImplTest.java256 @Mock private IDreamManager mDreamManager; field in CentralSurfacesImplTest
592 mDreamManager, in createCentralSurfaces()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardUpdateMonitor.java364 private final IDreamManager mDreamManager; field in KeyguardUpdateMonitor
844 mDreamManager.awaken(); in awakenFromDream()
2193 mDreamManager = dreamManager; in KeyguardUpdateMonitor()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java228 private IDreamManager mDreamManager; field in KeyguardUpdateMonitorTest
2433 mDreamManager, mDevicePolicyManager, mSensorPrivacyManager, mTelephonyManager, in TestableKeyguardUpdateMonitor()