Home
last modified time | relevance | path

Searched refs:mUiModeManager (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DDefaultDeviceEffectsApplierTest.java78 @Mock UiModeManager mUiModeManager; field in DefaultDeviceEffectsApplierTest
108 mContext.addMockSystemService(UiModeManager.class, mUiModeManager); in setUp()
131 verify(mUiModeManager).setAttentionModeThemeOverlay(eq(MODE_ATTENTION_THEME_OVERLAY_NIGHT)); in apply_appliesEffects()
148 verify(mUiModeManager).setAttentionModeThemeOverlay(eq(MODE_ATTENTION_THEME_OVERLAY_NIGHT)); in apply_removesEffects()
156 verify(mUiModeManager).setAttentionModeThemeOverlay(eq(MODE_ATTENTION_THEME_OVERLAY_OFF)); in apply_removesEffects()
173 verifyZeroInteractions(mColorDisplayManager, mWallpaperManager, mUiModeManager); in apply_removesOnlyPreviouslyAppliedEffects()
229 verify(mUiModeManager, never()).setAttentionModeThemeOverlay(anyInt()); in apply_someEffects_onlyThoseEffectsApplied()
248 verifyZeroInteractions(mUiModeManager); in apply_onlyEffectDeltaApplied()
265 verifyZeroInteractions(mUiModeManager); in apply_nightModeFromApp_appliedOnScreenOff()
275 verify(mUiModeManager).setAttentionModeThemeOverlay(eq(MODE_ATTENTION_THEME_OVERLAY_NIGHT)); in apply_nightModeFromApp_appliedOnScreenOff()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java67 private final UiModeManager mUiModeManager; field in UiModeNightTile
88 mUiModeManager = host.getUserContext().getSystemService(UiModeManager.class); in UiModeNightTile()
115 mUiModeManager.setNightModeActivated(newState); in handleClick()
121 int uiMode = mUiModeManager.getNightMode(); in handleUpdateState()
135 int nightModeCustomType = mUiModeManager.getNightModeCustomType(); in handleUpdateState()
141 time = mUiModeManager.getCustomNightModeEnd(); in handleUpdateState()
143 time = mUiModeManager.getCustomNightModeStart(); in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewTest.java62 private UiModeManager mUiModeManager; field in MenuViewTest
77 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()
78 mNightMode = mUiModeManager.getNightMode(); in setUp()
79 mUiModeManager.setNightMode(MODE_NIGHT_YES); in setUp()
189 mUiModeManager.setNightMode(mNightMode); in tearDown()
/frameworks/base/services/core/java/com/android/server/notification/
DDefaultDeviceEffectsApplier.java54 private final UiModeManager mUiModeManager; field in DefaultDeviceEffectsApplier
68 mUiModeManager = context.getSystemService(UiModeManager.class); in DefaultDeviceEffectsApplier()
152 mUiModeManager.setAttentionModeThemeOverlay( in updateNightModeImmediately()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DDeviceStateMonitorTest.java149 UiModeManager mUiModeManager; field in DeviceStateMonitorTest
183 mUiModeManager = mock(UiModeManager.class); in setUp()
184 mContextFixture.setSystemService(Context.UI_MODE_SERVICE, mUiModeManager); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java165 private final UiModeManager mUiModeManager; field in ThemeOverlayController
434 mUiModeManager = uiModeManager; in ThemeOverlayController()
472 mContrast = mUiModeManager.getContrast(); in start()
473 mUiModeManager.addContrastChangeListener(mMainExecutor, contrast -> { in start()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/
DThemeOverlayControllerTest.java133 private UiModeManager mUiModeManager; field in ThemeOverlayControllerTest
154 when(mUiModeManager.getContrast()).thenReturn(0.5f); in setup()
171 mJavaAdapter, mKeyguardTransitionInteractor, mUiModeManager, mActivityManager) { in setup()
777 mJavaAdapter, mKeyguardTransitionInteractor, mUiModeManager, mActivityManager) { in catchException_whenPackageNameIsOverlayName()
817 mJavaAdapter, mKeyguardTransitionInteractor, mUiModeManager, mActivityManager) { in onWallpaperColorsChanged_defersUntilSetupIsCompleted_ifHasColors()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java188 private final UiModeManager mUiModeManager; field in BridgeContext
284 mUiModeManager = UiModeManager_Accessor.getUiModeManagerInstance(this); in BridgeContext()
732 return mUiModeManager; in getSystemService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DCentralSurfacesImpl.java548 private UiModeManager mUiModeManager; field in CentralSurfacesImpl
865 mUiModeManager = mContext.getSystemService(UiModeManager.class); in start()
1775 String nightMode = mUiModeManager == null ? "null" : mUiModeManager.getNightMode() + ""; in dump()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java559 IUiModeManager mUiModeManager; field in PhoneWindowManager
6263 if (mUiModeManager == null) {
6264 mUiModeManager = IUiModeManager.Stub.asInterface(
6268 mUiMode = mUiModeManager.getCurrentModeType();