/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImpl.kt | 41 private var uiMode: Int = 0 variable 54 inCarMode = currentConfig.uiMode and Configuration.UI_MODE_TYPE_MASK == 56 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK 82 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK in onConfigurationChanged() constant 83 val uiModeChanged = uiMode != this.uiMode in onConfigurationChanged() 126 this.uiMode = uiMode in onConfigurationChanged() 172 return when (uiMode and Configuration.UI_MODE_NIGHT_MASK) { in getNightModeName()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/ |
D | RestartDialogWindowManagerTest.java | 67 mTaskInfo.configuration.uiMode = in setUp() 68 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in setUp() 70 mTaskInfo.configuration.uiMode = in setUp() 71 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_TYPE_MASK) in setUp() 81 newTaskInfo.configuration.uiMode = in testWhenDockedStateHasChanged_needsToBeRecreated() 82 (newTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_TYPE_MASK) in testWhenDockedStateHasChanged_needsToBeRecreated() 91 mTaskInfo.configuration.uiMode = in testWhenDarkLightThemeHasChanged_needsToBeRecreated() 92 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in testWhenDarkLightThemeHasChanged_needsToBeRecreated()
|
D | ReachabilityEduWindowManagerTest.java | 73 mTaskInfo.configuration.uiMode = in setUp() 74 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in setUp() 76 mTaskInfo.configuration.uiMode = in setUp() 77 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_TYPE_MASK) in setUp() 92 newTaskInfo.configuration.uiMode = in testWhenDockedStateHasChanged_needsToBeRecreated() 93 (newTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_TYPE_MASK) in testWhenDockedStateHasChanged_needsToBeRecreated() 102 mTaskInfo.configuration.uiMode = in testWhenDarkLightThemeHasChanged_needsToBeRecreated() 103 (mTaskInfo.configuration.uiMode & ~Configuration.UI_MODE_NIGHT_MASK) in testWhenDarkLightThemeHasChanged_needsToBeRecreated()
|
/frameworks/base/libs/androidfw/ |
D | ConfigDescription.cpp | 288 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 293 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 298 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 303 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 308 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 313 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 318 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 329 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight() 334 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight() 339 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight() [all …]
|
/frameworks/base/tools/aapt/ |
D | AaptConfig.cpp | 268 if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) in applyVersionForCompatibility() 281 } else if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) in applyVersionForCompatibility() 283 || (config->uiMode & ResTable_config::MASK_UI_MODE_NIGHT) in applyVersionForCompatibility() 512 if (out) out->uiMode = in parseUiModeType() 513 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType() 517 if (out) out->uiMode = in parseUiModeType() 518 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType() 522 if (out) out->uiMode = in parseUiModeType() 523 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType() 527 if (out) out->uiMode = in parseUiModeType() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 796 public int uiMode; field in Configuration 1106 uiMode = o.uiMode; in setTo() 1216 switch ((uiMode&UI_MODE_TYPE_MASK)) { in toString() 1225 default: sb.append(" uimode="); sb.append(uiMode&UI_MODE_TYPE_MASK); break; in toString() 1227 switch ((uiMode&UI_MODE_NIGHT_MASK)) { in toString() 1231 default: sb.append(" night="); sb.append(uiMode&UI_MODE_NIGHT_MASK); break; in toString() 1320 protoOutputStream.write(UI_MODE, uiMode); in dumpDebug() 1467 uiMode = protoInputStream.readInt(UI_MODE); in readFromProto() 1544 public static String uiModeToString(int uiMode) { in uiModeToString() argument 1545 switch (uiMode) { in uiModeToString() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/debug/ |
D | UiModePreviews.kt | 22 @Preview(showBackground = true, uiMode = Configuration.UI_MODE_NIGHT_NO) 23 @Preview(showBackground = true, uiMode = Configuration.UI_MODE_NIGHT_YES)
|
/frameworks/base/core/jni/ |
D | android_content_res_Configuration.cpp | 42 jfieldID uiMode; member 67 out->uiMode = env->GetIntField(clazz, gConfigurationClassInfo.uiMode); in android_Configuration_getFromJava() 91 gConfigurationClassInfo.uiMode = GetFieldIDOrDie(env, clazz, "uiMode", "I"); in register_android_content_res_Configuration()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImplTest.kt | 130 config.uiMode = UI_MODE_TYPE_CAR or UI_MODE_NIGHT_YES in isCarAndUiModeChanged_densityListenerNotified() 137 config.uiMode = UI_MODE_TYPE_CAR or UI_MODE_NIGHT_NO in isCarAndUiModeChanged_densityListenerNotified() 147 config.uiMode = UI_MODE_NIGHT_YES in isNotCarAndUiModeChanged_densityListenerNotNotified() 154 config.uiMode = UI_MODE_NIGHT_NO in isNotCarAndUiModeChanged_densityListenerNotNotified() 231 config.uiMode = UI_MODE_NIGHT_YES in uiModeChanged_listenerNotified() 237 config.uiMode = UI_MODE_NIGHT_NO in uiModeChanged_listenerNotified() 298 config.uiMode = UI_MODE_NIGHT_YES in multipleUpdates_listenerNotifiedOfAll() 306 config.uiMode = UI_MODE_NIGHT_NO in multipleUpdates_listenerNotifiedOfAll()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImpl.java | 118 public ExtensionController.ExtensionBuilder<T> withUiMode(int uiMode, in withUiMode() argument 120 mExtension.addUiMode(uiMode, supplier); in withUiMode() 217 public void addUiMode(int uiMode, Supplier<T> mode) { in addUiMode() argument 218 mProducers.add(new UiModeItem(uiMode, mode)); in addUiMode() 308 public UiModeItem(int uiMode, Supplier<T> supplier) { in UiModeItem() argument 309 mDesiredUiMode = uiMode; in UiModeItem() 311 mUiMode = mDefaultContext.getResources().getConfiguration().uiMode in UiModeItem() 318 int newMode = newConfig.uiMode & Configuration.UI_MODE_TYPE_MASK; in onConfigChanged()
|
/frameworks/base/native/android/ |
D | configuration.cpp | 114 return config->uiMode&ResTable_config::MASK_UI_MODE_TYPE; in AConfiguration_getUiModeType() 118 return (config->uiMode&ResTable_config::MASK_UI_MODE_NIGHT) in AConfiguration_getUiModeNight() 210 config->uiMode = (config->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in AConfiguration_setUiModeType() 215 config->uiMode = (config->uiMode&~ResTable_config::MASK_UI_MODE_NIGHT) in AConfiguration_setUiModeNight()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImplTest.java | 131 c.uiMode = 0; in testUiMode() 136 c.uiMode = Configuration.UI_MODE_TYPE_CAR; in testUiMode() 158 Object uiMode = new Object(); in testSortOrder() local 164 .withUiMode(Configuration.UI_MODE_TYPE_CAR, () -> uiMode) in testSortOrder() 177 c.uiMode |= Configuration.UI_MODE_TYPE_CAR; in testSortOrder() 180 assertEquals(uiMode, ext.get()); in testSortOrder()
|
/frameworks/base/apct-tests/perftests/core/src/android/app/ |
D | ResourcesManagerPerfTest.java | 124 c.uiMode = Configuration.UI_MODE_TYPE_WATCH; in applyConfigurationToResourcesLocked() 131 if (c.uiMode == Configuration.UI_MODE_TYPE_WATCH) { in applyConfigurationToResourcesLocked() 132 c.uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in applyConfigurationToResourcesLocked() 134 c.uiMode = Configuration.UI_MODE_TYPE_WATCH; in applyConfigurationToResourcesLocked()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/uimodenight/ |
D | UiModeNightTileModelHelper.kt | 32 uiMode: Int = Configuration.UI_MODE_NIGHT_NO, in createModel() 40 uiMode, in createModel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/ |
D | UiModeNightTileDataInteractor.kt | 89 val uiMode = uiModeManager.nightMode in createModel() constant 91 (context.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) == in createModel() 101 uiMode, in createModel()
|
/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoDeserialize.cpp | 209 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb() 214 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb() 219 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb() 224 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb() 229 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb() 234 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb() 239 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb() 249 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_NIGHT) | in DeserializeConfigFromPb() 254 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_NIGHT) | in DeserializeConfigFromPb()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/ |
D | UiModeNightTileDataInteractorTest.kt | 98 val actualNightMode = model?.uiMode in <lambda>() 186 private fun setUiMode(uiMode: Int) { in setUiMode() 189 newConfig.uiMode = uiMode in setUiMode()
|
D | UiModeNightTileMapperTest.kt | 315 uiMode = UiModeManager.MODE_NIGHT_AUTO in secondaryLabelCorrectWhenInNightModeNotInPowerSaveModeLocationEnabledUiModeIsNightAuto() 343 uiMode = UiModeManager.MODE_NIGHT_AUTO in secondaryLabelCorrectWhenNotInNightModeNotInPowerSaveModeLocationEnableUiModeIsNightAuto() 367 createModel(nightMode = true, powerSave = false, uiMode = UiModeManager.MODE_NIGHT_YES) in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsNightYesInNightMode() 390 createModel(nightMode = false, powerSave = false, uiMode = UiModeManager.MODE_NIGHT_NO) in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsNightNoNotInNightMode() 415 uiMode = UiModeManager.MODE_NIGHT_CUSTOM, in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsUnknownCustomNotInNightMode() 442 uiMode = UiModeManager.MODE_NIGHT_CUSTOM, in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsUnknownCustomInNightMode() 469 uiMode = UiModeManager.MODE_NIGHT_CUSTOM, in secondaryLabelCorrectWhenInPowerSaveAndUiModeIsUnknownCustomNotInNightMode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | UiModeNightTile.java | 121 int uiMode = mUiModeManager.getNightMode(); in handleUpdateState() local 123 boolean nightMode = (mContext.getResources().getConfiguration().uiMode in handleUpdateState() 129 } else if (uiMode == UiModeManager.MODE_NIGHT_AUTO in handleUpdateState() 134 } else if (uiMode == UiModeManager.MODE_NIGHT_CUSTOM) { in handleUpdateState()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/ |
D | CompatUIWindowManagerAbstract.java | 230 || mTaskConfig.uiMode != prevTaskConfig.uiMode) { in updateCompatInfo() 433 return currentTaskInfo.configuration.uiMode != newTaskInfo.configuration.uiMode; in hasUiModeChanged()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | DisplayLayout.java | 186 mUiMode = res.getConfiguration().uiMode; in init() 361 int displayHeight, DisplayCutout displayCutout, InsetsState insetsState, int uiMode, in computeNonDecorInsets() argument 373 getNavigationBarSize(res, position, displayWidth > displayHeight, uiMode); in computeNonDecorInsets() 435 int uiMode) { in getNavigationBarSize() argument 436 final boolean carMode = (uiMode & UI_MODE_TYPE_MASK) == UI_MODE_TYPE_CAR; in getNavigationBarSize()
|
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/extensions/ |
D | ConfigurationExt.kt | 27 return (uiMode and Configuration.UI_MODE_NIGHT_MASK) == Configuration.UI_MODE_NIGHT_YES in Configuration()
|
/frameworks/base/services/core/java/com/android/server/ |
D | UiModeManagerService.java | 1712 int uiMode = mDefaultUiModeType; in updateConfigurationLocked() local 1716 uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in updateConfigurationLocked() 1718 uiMode = Configuration.UI_MODE_TYPE_WATCH; in updateConfigurationLocked() 1720 uiMode = Configuration.UI_MODE_TYPE_CAR; in updateConfigurationLocked() 1722 uiMode = Configuration.UI_MODE_TYPE_DESK; in updateConfigurationLocked() 1724 uiMode = Configuration.UI_MODE_TYPE_VR_HEADSET; in updateConfigurationLocked() 1760 uiMode &= ~Configuration.UI_MODE_NIGHT_NO; in updateConfigurationLocked() 1761 uiMode |= Configuration.UI_MODE_NIGHT_YES; in updateConfigurationLocked() 1763 uiMode = getComputedUiModeConfiguration(uiMode); in updateConfigurationLocked() 1772 + "; uiMode=" + uiMode); in updateConfigurationLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/model/ |
D | UiModeNightTileModel.kt | 27 val uiMode: Int, constant in com.android.systemui.qs.tiles.impl.uimodenight.domain.model.UiModeNightTileModel
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/ |
D | UiModeNightTileMapper.kt | 55 } else if (uiMode == UiModeManager.MODE_NIGHT_AUTO && isLocationEnabled) { in map() 62 } else if (uiMode == UiModeManager.MODE_NIGHT_CUSTOM) { in map()
|