/frameworks/base/libs/dream/lowlight/tests/src/com.android.dream.lowlight/ |
D | LowLightDreamManagerTest.kt | 46 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/ |
D | DreamConditionTest.java | 54 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/ |
D | DreamTileTest.java | 82 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/ |
D | DreamCondition.java | 33 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/ |
D | DreamBackend.java | 141 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/ |
D | DreamTile.java | 70 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/ |
D | ShadeTouchHandler.java | 45 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/ |
D | DreamOverlayRegistrant.java | 51 private final IDreamManager mDreamManager; field in DreamOverlayRegistrant 98 mDreamManager.registerDreamOverlayService( in registerOverlayService() 112 mDreamManager = IDreamManager.Stub.asInterface( in DreamOverlayRegistrant()
|
D | DreamOverlayContainerViewController.java | 109 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/ |
D | TestDreamEnvironment.java | 180 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/ |
D | ShadeTouchHandlerTest.java | 63 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/ |
D | DreamService.java | 250 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/ |
D | LegacyGlobalActions.java | 101 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/ |
D | DreamOverlayContainerViewControllerTest.java | 136 private DreamManager mDreamManager; field in DreamOverlayContainerViewControllerTest 177 mDreamManager); in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wmshell/ |
D | BubblesManager.java | 106 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/ |
D | StatusBarNotificationActivityStarter.java | 126 private final IDreamManager mDreamManager; field in StatusBarNotificationActivityStarter 198 mDreamManager = dreamManager; in StatusBarNotificationActivityStarter() 639 mDreamManager.awaken(); in launchFullScreenIntent()
|
D | CentralSurfacesImpl.java | 812 mDreamManager = dreamManager; in CentralSurfacesImpl() 2876 private final IDreamManager mDreamManager; 2925 mDreamManager.awaken(); in awakenDreams()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsDialogLite.java | 200 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/ |
D | GlobalActionsDialogLiteTest.java | 109 @Mock private IDreamManager mDreamManager; field in GlobalActionsDialogLiteTest 168 mDreamManager, in setUp()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 350 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/ |
D | CentralSurfacesImplTest.java | 256 @Mock private IDreamManager mDreamManager; field in CentralSurfacesImplTest 592 mDreamManager, in createCentralSurfaces()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 364 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/ |
D | KeyguardUpdateMonitorTest.java | 228 private IDreamManager mDreamManager; field in KeyguardUpdateMonitorTest 2433 mDreamManager, mDevicePolicyManager, mSensorPrivacyManager, mTelephonyManager, in TestableKeyguardUpdateMonitor()
|