Home
last modified time | relevance | path

Searched refs:uiMode (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DRestartDialogWindowManagerTest.java67 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()
DReachabilityEduWindowManagerTest.java73 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImpl.kt37 private var uiMode: Int = 0 variable
50 inCarMode = currentConfig.uiMode and Configuration.UI_MODE_TYPE_MASK ==
52 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK
74 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK in onConfigurationChanged() constant
75 val uiModeChanged = uiMode != this.uiMode in onConfigurationChanged()
118 this.uiMode = uiMode in onConfigurationChanged()
/frameworks/base/libs/androidfw/
DConfigDescription.cpp288 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 …]
DResourceTypes.cpp2132 if (uiMode != o.uiMode) { in compare()
2133 return (uiMode > o.uiMode) ? 1 : -1; in compare()
2201 if (uiMode != o.uiMode) { in compareLogical()
2202 return uiMode < o.uiMode ? -1 : 1; in compareLogical()
2228 if (uiMode != o.uiMode) diffs |= CONFIG_UI_MODE; in diff()
2365 if (uiMode || o.uiMode) { in isMoreSpecificThan()
2366 if (((uiMode^o.uiMode) & MASK_UI_MODE_TYPE) != 0) { in isMoreSpecificThan()
2367 if (!(uiMode & MASK_UI_MODE_TYPE)) return false; in isMoreSpecificThan()
2368 if (!(o.uiMode & MASK_UI_MODE_TYPE)) return true; in isMoreSpecificThan()
2370 if (((uiMode^o.uiMode) & MASK_UI_MODE_NIGHT) != 0) { in isMoreSpecificThan()
[all …]
/frameworks/base/tools/aapt/
DAaptConfig.cpp268 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/
DConfiguration.java788 public int uiMode; field in Configuration
1085 uiMode = o.uiMode; in setTo()
1195 switch ((uiMode&UI_MODE_TYPE_MASK)) { in toString()
1204 default: sb.append(" uimode="); sb.append(uiMode&UI_MODE_TYPE_MASK); break; in toString()
1206 switch ((uiMode&UI_MODE_NIGHT_MASK)) { in toString()
1210 default: sb.append(" night="); sb.append(uiMode&UI_MODE_NIGHT_MASK); break; in toString()
1299 protoOutputStream.write(UI_MODE, uiMode); in dumpDebug()
1446 uiMode = protoInputStream.readInt(UI_MODE); in readFromProto()
1523 public static String uiModeToString(int uiMode) { in uiModeToString() argument
1524 switch (uiMode) { in uiModeToString()
[all …]
/frameworks/base/core/jni/
Dandroid_content_res_Configuration.cpp42 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/
DConfigurationControllerImplTest.kt130 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/
DExtensionControllerImpl.java118 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/
Dconfiguration.cpp114 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/
DExtensionControllerImplTest.java131 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/
DResourcesManagerPerfTest.java124 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/tools/aapt2/format/proto/
DProtoDeserialize.cpp209 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/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java121 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/services/core/java/com/android/server/
DUiModeManagerService.java1616 int uiMode = mDefaultUiModeType; in updateConfigurationLocked() local
1620 uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in updateConfigurationLocked()
1622 uiMode = Configuration.UI_MODE_TYPE_WATCH; in updateConfigurationLocked()
1624 uiMode = Configuration.UI_MODE_TYPE_CAR; in updateConfigurationLocked()
1626 uiMode = Configuration.UI_MODE_TYPE_DESK; in updateConfigurationLocked()
1628 uiMode = Configuration.UI_MODE_TYPE_VR_HEADSET; in updateConfigurationLocked()
1664 uiMode &= ~Configuration.UI_MODE_NIGHT_NO; in updateConfigurationLocked()
1665 uiMode |= Configuration.UI_MODE_NIGHT_YES; in updateConfigurationLocked()
1667 uiMode = getComputedUiModeConfiguration(uiMode); in updateConfigurationLocked()
1676 + "; uiMode=" + uiMode); in updateConfigurationLocked()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DCompatUIWindowManagerAbstract.java230 || mTaskConfig.uiMode != prevTaskConfig.uiMode) { in updateCompatInfo()
433 return currentTaskInfo.configuration.uiMode != newTaskInfo.configuration.uiMode; in hasUiModeChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DUiModeNightTileTest.kt132 configuration.uiMode = Configuration.UI_MODE_NIGHT_YES in setNightModeOn()
137 configuration.uiMode = Configuration.UI_MODE_NIGHT_NO in setNightModeOff()
/frameworks/base/core/java/com/android/internal/widget/
DColoredIconHelper.java48 boolean inNightMode = (config.uiMode & Configuration.UI_MODE_NIGHT_MASK) in applyGrayTint()
/frameworks/base/core/java/android/app/
DTaskInfo.java551 && configuration.uiMode == that.configuration.uiMode in equalsForTaskOrganizer()
591 && (!hasCompatUI() || configuration.uiMode == that.configuration.uiMode) in equalsForCompatUi()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java193 mUiMode = res.getConfiguration().uiMode; in init()
371 int displayHeight, DisplayCutout displayCutout, InsetsState insetsState, int uiMode, in computeNonDecorInsets() argument
383 getNavigationBarSize(res, position, displayWidth > displayHeight, uiMode); in computeNonDecorInsets()
535 int uiMode) { in getNavigationBarSize() argument
536 final boolean carMode = (uiMode & UI_MODE_TYPE_MASK) == UI_MODE_TYPE_CAR; in getNavigationBarSize()
/frameworks/base/libs/androidfw/tests/
DConfigDescription_test.cpp85 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST()
136 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_VR_HEADSET, config.uiMode); in TEST()
/frameworks/base/tools/aapt2/test/
DBuilders.h281 ConfigDescriptionBuilder& setUiMode(uint8_t uiMode) { in setUiMode() argument
282 config_.uiMode = uiMode; in setUiMode()
/frameworks/base/packages/SettingsLib/IllustrationPreference/src/com/android/settingslib/widget/
DLottieColorUtils.java75 return (context.getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK) in isDarkMode()
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationTest.java154 config.uiMode = Configuration.UI_MODE_NIGHT_YES; in testNightModeHelper()
156 config.uiMode = Configuration.UI_MODE_NIGHT_NO; in testNightModeHelper()

1234