/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
D | SmartSpaceComplicationTest.java | 62 private DreamOverlayStateController mDreamOverlayStateController; field in SmartSpaceComplicationTest 92 verify(mDreamOverlayStateController, never()).addComplication(eq(mComplication)); in testRegistrantStart_doesNotAddComplication() 100 verify(mDreamOverlayStateController).addCallback(any()); in testRegistrantStart_featureEnabled_addOverlayStateCallback() 110 verify(mDreamOverlayStateController, never()).addCallback(any()); in testRegistrantStart_featureDisabled_doesNotAddOverlayStateCallback() 120 verify(mDreamOverlayStateController).addCallback(dreamCallbackCaptor.capture()); in testOverlayActive_addsTargetListener() 122 when(mDreamOverlayStateController.isOverlayActive()).thenReturn(true); in testOverlayActive_addsTargetListener() 138 verify(mDreamOverlayStateController).addCallback(dreamCallbackCaptor.capture()); in testOverlayActive_targetsNonEmpty_addsComplication() 140 when(mDreamOverlayStateController.isOverlayActive()).thenReturn(true); in testOverlayActive_targetsNonEmpty_addsComplication() 150 verify(mDreamOverlayStateController).addComplication(eq(mComplication)); in testOverlayActive_targetsNonEmpty_addsComplication() 160 verify(mDreamOverlayStateController).addCallback(dreamCallbackCaptor.capture()); in testOverlayActive_targetsEmpty_addsComplication() [all …]
|
D | DreamHomeControlsComplicationTest.java | 71 private DreamOverlayStateController mDreamOverlayStateController; field in DreamHomeControlsComplicationTest 135 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceNotAvailable_noFavorites_doNotAddComplication() 141 verify(mDreamOverlayStateController, never()).addComplication(mComplication); in complicationAvailability_serviceNotAvailable_noFavorites_doNotAddComplication() 148 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceAvailable_noFavorites_doNotAddComplication() 154 verify(mDreamOverlayStateController, never()).addComplication(mComplication); in complicationAvailability_serviceAvailable_noFavorites_doNotAddComplication() 161 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceAvailable_noFavorites_panel_addComplication() 167 verify(mDreamOverlayStateController).addComplication(mComplication); in complicationAvailability_serviceAvailable_noFavorites_panel_addComplication() 174 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceNotAvailable_haveFavorites_doNotAddComplication() 180 verify(mDreamOverlayStateController, never()).addComplication(mComplication); in complicationAvailability_serviceNotAvailable_haveFavorites_doNotAddComplication() 187 mDreamOverlayStateController, mControlsComponent, mMonitor, false); in complicationAvailability_serviceAvailable_haveFavorites_addComplication() [all …]
|
D | DreamMediaEntryComplicationTest.java | 64 private DreamOverlayStateController mDreamOverlayStateController; field in DreamMediaEntryComplicationTest 115 mDreamOverlayStateController, in testClickToOpenUMO() 130 verify(mDreamOverlayStateController).addComplication(mMediaComplication); in testClickToOpenUMO() 133 verify(mDreamOverlayStateController).removeComplication(mMediaComplication); in testClickToOpenUMO() 144 mDreamOverlayStateController, in testOnViewDetached() 155 verify(mDreamOverlayStateController).removeComplication(mMediaComplication); in testOnViewDetached() 174 mDreamOverlayStateController, in testClickToOpenMediaOverLockscreen() 211 mDreamOverlayStateController, in testClickToOpenMediaDismissingLockscreen()
|
D | ComplicationTypesUpdaterTest.java | 61 private DreamOverlayStateController mDreamOverlayStateController; field in ComplicationTypesUpdaterTest 79 mSecureSettings, mDreamOverlayStateController, mMonitor); in setUp() 85 verify(mDreamOverlayStateController, never()).setAvailableComplicationTypes(anyInt()); in testPushUpdateToDreamOverlayStateControllerImmediatelyOnStart() 91 verify(mDreamOverlayStateController).setAvailableComplicationTypes(anyInt()); in testPushUpdateToDreamOverlayStateControllerImmediatelyOnStart() 109 verify(mDreamOverlayStateController).setAvailableComplicationTypes( in testPushUpdateToDreamOverlayStateControllerOnChange()
|
D | DreamClockTimeComplicationTest.java | 52 private DreamOverlayStateController mDreamOverlayStateController; field in DreamClockTimeComplicationTest 99 mDreamOverlayStateController, in testComplicationAdded() 103 verify(mDreamOverlayStateController).addComplication(eq(mComplication)); in testComplicationAdded()
|
D | ComplicationHostViewControllerTest.java | 90 DreamOverlayStateController mDreamOverlayStateController; field in ComplicationHostViewControllerTest 123 mDreamOverlayStateController, in setup() 188 when(mDreamOverlayStateController.areEntryAnimationsFinished()).thenReturn(true); in testNewComplicationsAfterEntryAnimationsFinishNotSetToInvisible()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dream/ |
D | MediaDreamSentinelTest.java | 53 DreamOverlayStateController mDreamOverlayStateController; field in MediaDreamSentinelTest 77 mDreamOverlayStateController, mMediaEntryComplication, mFeatureFlags); in testOnMediaDataLoaded_complicationAddition() 85 verify(mDreamOverlayStateController, never()).addComplication(any()); in testOnMediaDataLoaded_complicationAddition() 90 verify(mDreamOverlayStateController).addComplication(eq(mMediaEntryComplication)); in testOnMediaDataLoaded_complicationAddition() 91 verify(mDreamOverlayStateController, never()).addComplication( in testOnMediaDataLoaded_complicationAddition() 98 mDreamOverlayStateController, mMediaEntryComplication, mFeatureFlags); in testOnMediaDataRemoved_complicationRemoval() 108 verify(mDreamOverlayStateController, never()).removeComplication(any()); in testOnMediaDataRemoved_complicationRemoval() 112 verify(mDreamOverlayStateController).removeComplication(eq(mMediaEntryComplication)); in testOnMediaDataRemoved_complicationRemoval() 118 mDreamOverlayStateController, mMediaEntryComplication, mFeatureFlags); in testOnMediaDataLoaded_complicationRemoval() 126 verify(mDreamOverlayStateController, never()).removeComplication(any()); in testOnMediaDataLoaded_complicationRemoval() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/ |
D | SmartSpaceComplication.java | 71 private final DreamOverlayStateController mDreamOverlayStateController; field in SmartSpaceComplication.Registrant 78 if (mDreamOverlayStateController.isOverlayActive()) { 82 mDreamOverlayStateController.removeComplication(mComplication); 91 mDreamOverlayStateController.addComplication(mComplication); 106 mDreamOverlayStateController = dreamOverlayStateController; in Registrant() 118 mDreamOverlayStateController.addCallback(mStateControllerCallback); in onStart()
|
D | ComplicationTypesUpdater.java | 46 private final DreamOverlayStateController mDreamOverlayStateController; field in ComplicationTypesUpdater 59 mDreamOverlayStateController = dreamOverlayStateController; in ComplicationTypesUpdater() 67 mExecutor.execute(() -> mDreamOverlayStateController.setAvailableComplicationTypes( in onStart()
|
D | DreamClockTimeComplication.java | 69 private final DreamOverlayStateController mDreamOverlayStateController; field in DreamClockTimeComplication.Registrant 81 mDreamOverlayStateController = dreamOverlayStateController; in Registrant() 87 mDreamOverlayStateController.addComplication(mComplication); in onStart()
|
D | DreamMediaEntryComplication.java | 101 private final DreamOverlayStateController mDreamOverlayStateController; field in DreamMediaEntryComplication.DreamMediaEntryViewController 127 mDreamOverlayStateController = dreamOverlayStateController; in DreamMediaEntryViewController() 185 mDreamOverlayStateController.addComplication(mMediaComplication); in addMediaComplication() 191 mDreamOverlayStateController.removeComplication(mMediaComplication); in removeMediaComplication()
|
D | DreamHomeControlsComplication.java | 91 private final DreamOverlayStateController mDreamOverlayStateController; field in DreamHomeControlsComplication.Registrant 105 if (mOverlayActive == mDreamOverlayStateController.isOverlayActive()) { 126 mDreamOverlayStateController = dreamOverlayStateController; in Registrant() 134 mDreamOverlayStateController.addCallback(mOverlayStateCallback); in onStart() 140 mDreamOverlayStateController.addComplication(mComplication); in updateHomeControlsComplication() 142 mDreamOverlayStateController.removeComplication(mComplication); in updateHomeControlsComplication()
|
D | OpenHubComplication.java | 77 private final DreamOverlayStateController mDreamOverlayStateController; field in OpenHubComplication.Registrant 85 if (mOverlayActive == mDreamOverlayStateController.isOverlayActive()) { 103 mDreamOverlayStateController = dreamOverlayStateController; in Registrant() 108 mDreamOverlayStateController.addCallback(mOverlayStateCallback); in onStart()
|
D | ComplicationHostViewController.java | 57 private final DreamOverlayStateController mDreamOverlayStateController; field in ComplicationHostViewController 76 mDreamOverlayStateController = dreamOverlayStateController; in ComplicationHostViewController() 151 if (!mDreamOverlayStateController.areEntryAnimationsFinished() in updateComplications()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dream/ |
D | MediaDreamSentinel.java | 67 mDreamOverlayStateController.removeComplication(mMediaEntryComplication); 92 mDreamOverlayStateController.removeComplication(mMediaEntryComplication); 105 mDreamOverlayStateController.addComplication(mMediaEntryComplication); 110 private final DreamOverlayStateController mDreamOverlayStateController; field in MediaDreamSentinel 120 mDreamOverlayStateController = dreamOverlayStateController; in MediaDreamSentinel()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/statusbar/ui/ |
D | AmbientStatusBarViewControllerTest.java | 107 DreamOverlayStateController mDreamOverlayStateController; field in AmbientStatusBarViewControllerTest 146 mDreamOverlayStateController, in setup() 161 verify(mDreamOverlayStateController).addCallback(any()); in testOnViewAttachedAddsCallbacks() 273 mDreamOverlayStateController, in testNotificationsIconNotShownWhenCountProviderAbsent() 309 verify(mDreamOverlayStateController).removeCallback(any()); in testOnViewDetachedRemovesCallbacks() 397 when(mDreamOverlayStateController.hasAssistantAttention()).thenReturn(true); in testAssistantAttentionIconShownWhenAttentionGained() 401 verify(mDreamOverlayStateController).addCallback(callbackCapture.capture()); in testAssistantAttentionIconShownWhenAttentionGained() 475 when(mDreamOverlayStateController.isLowLightActive()).thenReturn(true); in testLowLightHidesStatusBar() 481 verify(mDreamOverlayStateController).addCallback(callbackCapture.capture()); in testLowLightHidesStatusBar() 487 when(mDreamOverlayStateController.isLowLightActive()).thenReturn(false); in testLowLightHidesStatusBar() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/statusbar/ui/ |
D | AmbientStatusBarViewController.java | 78 private final DreamOverlayStateController mDreamOverlayStateController; field in AmbientStatusBarViewController 100 mDreamOverlayStateController.areEntryAnimationsFinished(); 159 mDreamOverlayStateController = dreamOverlayStateController; in AmbientStatusBarViewController() 200 mDreamOverlayStateController.addCallback(mDreamOverlayStateCallback); in onViewAttached() 212 mDreamOverlayStateController.setDreamOverlayStatusBarVisible(false); in onViewDetached() 213 mDreamOverlayStateController.removeCallback(mDreamOverlayStateCallback); in onViewDetached() 250 return (!mDreamOverlayStateController.isLowLightActive() in shouldShowStatusBar() 273 mDreamOverlayStateController.hasAssistantAttention(), in updateAssistantAttentionIcon() 285 mDreamOverlayStateController.setDreamOverlayStatusBarVisible(newVisibility == View.VISIBLE); in updateVisibility()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarKeyguardViewManager.java | 160 private final DreamOverlayStateController mDreamOverlayStateController; field in StatusBarKeyguardViewManager 218 isVisible && mDreamOverlayStateController.isOverlayActive(); 406 mDreamOverlayStateController = dreamOverlayStateController; in StatusBarKeyguardViewManager() 625 mDreamOverlayStateController.isOverlayActive() in beginShowingBouncer() 1300 && mDreamOverlayStateController.isOverlayActive(); in onBackPressed() 1612 && !mDreamOverlayStateController.isOverlayActive()) in primaryBouncerNeedsScrimming()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarKeyguardViewManagerTest.java | 144 @Mock private DreamOverlayStateController mDreamOverlayStateController; field in StatusBarKeyguardViewManagerTest 206 mDreamOverlayStateController, in setUp() 681 when(mDreamOverlayStateController.isOverlayActive()).thenReturn(true); in testReportBouncerOnDreamWhenVisible() 691 when(mDreamOverlayStateController.isOverlayActive()).thenReturn(true); in testReportBouncerOnDreamWhenNotVisible() 714 mDreamOverlayStateController, in hideAlternateBouncer_beforeCentralSurfacesRegistered()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediatorTest.java | 187 private @Mock DreamOverlayStateController mDreamOverlayStateController; field in KeyguardViewMediatorTest 1220 mDreamOverlayStateController, in createAndStartViewMediator()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediator.java | 323 private final DreamOverlayStateController mDreamOverlayStateController; field in KeyguardViewMediator 604 mDreamOverlayShowing = mDreamOverlayStateController.isOverlayActive(); 1521 mDreamOverlayStateController = dreamOverlayStateController; 1667 mDreamOverlayStateController.addCallback(mDreamOverlayStateCallback);
|