/packages/services/Car/service/src/com/android/car/ |
D | CarNightService.java | 49 private final UiModeManager mUiModeManager; field in CarNightService 88 if (mUiModeManager != null && (mForcedMode == FORCED_SENSOR_MODE)) { in setNightMode() 89 mUiModeManager.setNightMode(mNightSetting); in setNightMode() 97 if (mUiModeManager == null) { in forceDayNightMode() 118 mUiModeManager.setNightMode(resultMode); in forceDayNightMode() 119 return mUiModeManager.getNightMode(); in forceDayNightMode() 125 mUiModeManager = (UiModeManager) mContext.getSystemService(Context.UI_MODE_SERVICE); in CarNightService() 126 if (mUiModeManager == null) { in CarNightService()
|
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/ |
D | DayNightTile.java | 36 private final UiModeManager mUiModeManager; field in DayNightTile 52 mUiModeManager = (UiModeManager) mContext.getSystemService(Context.UI_MODE_SERVICE); in DayNightTile() 53 if (mUiModeManager.getNightMode() == UiModeManager.MODE_NIGHT_YES) { in DayNightTile() 101 if (mUiModeManager.getNightMode() == UiModeManager.MODE_NIGHT_YES) { in onClick() 102 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_AUTO); in onClick() 104 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_YES); in onClick()
|
/packages/services/Car/tests/ThemePlayground/src/com/android/car/themeplayground/ |
D | WidgetsSamples.java | 29 private UiModeManager mUiModeManager; field in WidgetsSamples 37 mUiModeManager = (UiModeManager) this.getSystemService(Context.UI_MODE_SERVICE); in onCreate() 40 if (mUiModeManager.getNightMode() == UiModeManager.MODE_NIGHT_YES) { in onCreate() 41 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in onCreate() 43 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_YES); in onCreate()
|
D | AbstractSampleActivity.java | 39 private UiModeManager mUiModeManager; field in AbstractSampleActivity 45 mUiModeManager = (UiModeManager) this.getSystemService(Context.UI_MODE_SERVICE); in onCreateOptionsMenu() 124 mUiModeManager.setNightMode( in toggleDayNight() 125 (mUiModeManager.getNightMode() == UiModeManager.MODE_NIGHT_YES) in toggleDayNight()
|
/packages/apps/Settings/src/com/android/settings/display/darkmode/ |
D | DarkModeScheduleSelectorController.java | 33 private final UiModeManager mUiModeManager; field in DarkModeScheduleSelectorController 40 mUiModeManager = context.getSystemService(UiModeManager.class); in DarkModeScheduleSelectorController() 61 mUiModeManager.getNightMode() == UiModeManager.MODE_NIGHT_AUTO in updateState() 78 mUiModeManager.setNightMode(mode); in onPreferenceChange() 82 mUiModeManager.setNightMode(UiModeManager.MODE_NIGHT_AUTO); in onPreferenceChange()
|
D | DarkModeActivationPreferenceController.java | 33 private final UiModeManager mUiModeManager; field in DarkModeActivationPreferenceController 42 mUiModeManager = context.getSystemService(UiModeManager.class); in DarkModeActivationPreferenceController() 61 final int autoMode = mUiModeManager.getNightMode(); in updateNightMode() 88 final int autoMode = mUiModeManager.getNightMode(); in getSummary() 105 mUiModeManager.setNightModeActivated(!active);
|
D | DarkModePreference.java | 29 private UiModeManager mUiModeManager; field in DarkModePreference 37 mUiModeManager = context.getSystemService(UiModeManager.class); in DarkModePreference() 68 final boolean auto = mUiModeManager.getNightMode() == UiModeManager.MODE_NIGHT_AUTO; in updateSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/ |
D | DarkUIPreferenceController.java | 32 private UiModeManager mUiModeManager; field in DarkUIPreferenceController 36 mUiModeManager = context.getSystemService(UiModeManager.class); in DarkUIPreferenceController() 41 mUiModeManager = uiModeManager; in setUiModeManager() 52 mContext, mUiModeManager.getNightMode()); in getSummary()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | SystemStateHelperTest.java | 72 @Mock UiModeManager mUiModeManager; field in SystemStateHelperTest 116 when(mContext.getSystemService(Context.UI_MODE_SERVICE)).thenReturn(mUiModeManager); in testQuerySystemForCarMode_True() 117 when(mUiModeManager.getCurrentModeType()).thenReturn(Configuration.UI_MODE_TYPE_CAR); in testQuerySystemForCarMode_True() 124 when(mContext.getSystemService(Context.UI_MODE_SERVICE)).thenReturn(mUiModeManager); in testQuerySystemForCarMode_False() 125 when(mUiModeManager.getCurrentModeType()).thenReturn(Configuration.UI_MODE_TYPE_NORMAL); in testQuerySystemForCarMode_False()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | DarkUIPreferenceController.java | 49 private UiModeManager mUiModeManager; field in DarkUIPreferenceController 65 mUiModeManager = context.getSystemService(UiModeManager.class); in DarkUIPreferenceController() 95 return mUiModeManager.setNightModeActivated(isChecked); in setChecked()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
D | ActivityTest.java | 75 protected UiModeManager mUiModeManager; field in ActivityTest 201 mUiModeManager = (UiModeManager) getActivity() in setSystemUiModeNight() 203 mUiModeManager.setNightMode(uiModeNight); in setSystemUiModeNight()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | DarkThemeSlice.java | 64 private final UiModeManager mUiModeManager; field in DarkThemeSlice 69 mUiModeManager = context.getSystemService(UiModeManager.class); in DarkThemeSlice() 117 mUiModeManager.setNightModeActivated(isChecked); in onNotifyChange()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | AccessibilitySettingsTest.java | 58 private UiModeManager mUiModeManager; field in AccessibilitySettingsTest 67 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setup()
|