/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImpl.kt | 32 private var uiMode: Int = 0 variable 41 inCarMode = currentConfig.uiMode and Configuration.UI_MODE_TYPE_MASK == 43 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK 64 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK in onConfigurationChanged() constant 65 val uiModeChanged = uiMode != this.uiMode in onConfigurationChanged() 88 this.uiMode = uiMode in onConfigurationChanged()
|
/frameworks/base/libs/androidfw/ |
D | ConfigDescription.cpp | 270 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 275 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 280 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 285 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 290 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 295 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 300 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 311 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight() 316 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight() 321 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight() [all …]
|
D | ResourceTypes.cpp | 2004 if (uiMode != o.uiMode) { in compare() 2005 return (uiMode > o.uiMode) ? 1 : -1; in compare() 2071 if (uiMode != o.uiMode) { in compareLogical() 2072 return uiMode < o.uiMode ? -1 : 1; in compareLogical() 2098 if (uiMode != o.uiMode) diffs |= CONFIG_UI_MODE; in diff() 2227 if (uiMode || o.uiMode) { in isMoreSpecificThan() 2228 if (((uiMode^o.uiMode) & MASK_UI_MODE_TYPE) != 0) { in isMoreSpecificThan() 2229 if (!(uiMode & MASK_UI_MODE_TYPE)) return false; in isMoreSpecificThan() 2230 if (!(o.uiMode & MASK_UI_MODE_TYPE)) return true; in isMoreSpecificThan() 2232 if (((uiMode^o.uiMode) & MASK_UI_MODE_NIGHT) != 0) { in isMoreSpecificThan() [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/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | DeviceUtils.java | 25 int uiMode = context.getResources().getConfiguration().uiMode; in isTelevision() local 26 return (uiMode & Configuration.UI_MODE_TYPE_MASK) == Configuration.UI_MODE_TYPE_TELEVISION; in isTelevision()
|
/frameworks/base/core/java/android/content/res/ |
D | Configuration.java | 723 public int uiMode; field in Configuration 944 uiMode = o.uiMode; in setTo() 1045 switch ((uiMode&UI_MODE_TYPE_MASK)) { in toString() 1054 default: sb.append(" uimode="); sb.append(uiMode&UI_MODE_TYPE_MASK); break; in toString() 1056 switch ((uiMode&UI_MODE_NIGHT_MASK)) { in toString() 1060 default: sb.append(" night="); sb.append(uiMode&UI_MODE_NIGHT_MASK); break; in toString() 1143 protoOutputStream.write(UI_MODE, uiMode); in dumpDebug() 1288 uiMode = protoInputStream.readInt(UI_MODE); in readFromProto() 1359 public static String uiModeToString(int uiMode) { in uiModeToString() argument 1360 switch (uiMode) { in uiModeToString() [all …]
|
/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/apct-tests/perftests/core/src/android/app/ |
D | ResourcesManagerPerfTest.java | 125 c.uiMode = Configuration.UI_MODE_TYPE_WATCH; in applyConfigurationToResourcesLocked() 132 if (c.uiMode == Configuration.UI_MODE_TYPE_WATCH) { in applyConfigurationToResourcesLocked() 133 c.uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in applyConfigurationToResourcesLocked() 135 c.uiMode = Configuration.UI_MODE_TYPE_WATCH; in applyConfigurationToResourcesLocked()
|
/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/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImpl.java | 117 public ExtensionController.ExtensionBuilder<T> withUiMode(int uiMode, in withUiMode() argument 119 mExtension.addUiMode(uiMode, supplier); in withUiMode() 216 public void addUiMode(int uiMode, Supplier<T> mode) { in addUiMode() argument 217 mProducers.add(new UiModeItem(uiMode, mode)); in addUiMode() 307 public UiModeItem(int uiMode, Supplier<T> supplier) { in UiModeItem() argument 308 mDesiredUiMode = uiMode; in UiModeItem() 310 mUiMode = mDefaultContext.getResources().getConfiguration().uiMode in UiModeItem() 317 int newMode = newConfig.uiMode & Configuration.UI_MODE_TYPE_MASK; in onConfigChanged()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImplTest.java | 123 c.uiMode = 0; in testUiMode() 128 c.uiMode = Configuration.UI_MODE_TYPE_CAR; in testUiMode() 150 Object uiMode = new Object(); in testSortOrder() local 156 .withUiMode(Configuration.UI_MODE_TYPE_CAR, () -> uiMode) in testSortOrder() 169 c.uiMode |= Configuration.UI_MODE_TYPE_CAR; in testSortOrder() 172 assertEquals(uiMode, ext.get()); in testSortOrder()
|
/frameworks/base/services/core/java/com/android/server/ |
D | UiModeManagerService.java | 1039 int uiMode = mDefaultUiModeType; in updateConfigurationLocked() local 1043 uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in updateConfigurationLocked() 1045 uiMode = Configuration.UI_MODE_TYPE_WATCH; in updateConfigurationLocked() 1047 uiMode = Configuration.UI_MODE_TYPE_CAR; in updateConfigurationLocked() 1049 uiMode = Configuration.UI_MODE_TYPE_DESK; in updateConfigurationLocked() 1051 uiMode = Configuration.UI_MODE_TYPE_VR_HEADSET; in updateConfigurationLocked() 1083 uiMode &= ~Configuration.UI_MODE_NIGHT_NO; in updateConfigurationLocked() 1084 uiMode |= Configuration.UI_MODE_NIGHT_YES; in updateConfigurationLocked() 1086 uiMode = getComputedUiModeConfiguration(uiMode); in updateConfigurationLocked() 1094 + "; uiMode=" + uiMode); in updateConfigurationLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | UiModeNightTile.java | 95 int uiMode = mUiModeManager.getNightMode(); in handleUpdateState() local 97 boolean nightMode = (mContext.getResources().getConfiguration().uiMode in handleUpdateState() 103 } else if (uiMode == UiModeManager.MODE_NIGHT_AUTO in handleUpdateState() 108 } else if (uiMode == UiModeManager.MODE_NIGHT_CUSTOM) { in handleUpdateState()
|
/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/src/com/android/systemui/wm/ |
D | DisplayLayout.java | 132 mUiMode = res.getConfiguration().uiMode; in init() 298 int displayHeight, DisplayCutout displayCutout, int uiMode, Rect outInsets, in computeNonDecorInsets() argument 306 getNavigationBarSize(res, position, displayWidth > displayHeight, uiMode); in computeNonDecorInsets() 334 int displayHeight, DisplayCutout displayCutout, int uiMode, Rect outInsets, in computeStableInsets() argument 340 uiMode, outInsets, hasNavigationBar); in computeStableInsets() 483 int uiMode) { in getNavigationBarSize() argument 484 final boolean carMode = (uiMode & UI_MODE_TYPE_MASK) == UI_MODE_TYPE_CAR; in getNavigationBarSize()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayContent.java | 1682 updateDisplayAndOrientation(getConfiguration().uiMode, null /* outConfig */); in applyRotation() 1763 final int uiMode = mWmService.mPolicy.getUiMode(); in isNonDecorDisplayCloseToSquare() local 1765 width, height, rotation, uiMode, displayCutout); in isNonDecorDisplayCloseToSquare() 1767 width, height, rotation, uiMode, displayCutout); in isNonDecorDisplayCloseToSquare() 1777 private DisplayInfo updateDisplayAndOrientation(int uiMode, Configuration outConfig) { in updateDisplayAndOrientation() argument 1788 final int appWidth = mDisplayPolicy.getNonDecorDisplayWidth(dw, dh, rotation, uiMode, in updateDisplayAndOrientation() 1790 final int appHeight = mDisplayPolicy.getNonDecorDisplayHeight(dw, dh, rotation, uiMode, in updateDisplayAndOrientation() 1810 computeSizeRangesAndScreenLayout(mDisplayInfo, rotated, uiMode, dw, dh, in updateDisplayAndOrientation() 1867 final int uiMode = getConfiguration().uiMode; in computeScreenConfiguration() local 1870 computeScreenAppConfiguration(outConfig, dw, dh, rotation, uiMode, displayCutout); in computeScreenConfiguration() [all …]
|
D | DisplayPolicy.java | 1066 mDisplayContent.getConfiguration().uiMode); in addWindowLw() 1511 mDisplayContent.getConfiguration().uiMode, mLastNavVisible, 1531 public void beginLayoutLw(DisplayFrames displayFrames, int uiMode) { 1569 boolean updateSysUiVisibility = layoutNavigationBar(displayFrames, uiMode, navVisible, 1812 private boolean layoutNavigationBar(DisplayFrames displayFrames, int uiMode, boolean navVisible, 1837 - getNavigationBarFrameHeight(rotation, uiMode); 1840 : cutoutSafeUnrestricted.bottom - getNavigationBarHeight(rotation, uiMode); 1862 - getNavigationBarWidth(rotation, uiMode); 1884 + getNavigationBarWidth(rotation, uiMode); 2823 final int uiMode = mService.mPolicy.getUiMode(); [all …]
|
D | AppTransition.java | 1075 GraphicBuffer thumbnailHeader, WindowContainer container, int uiMode, int orientation) { in createThumbnailAspectScaleAnimationLocked() argument 1090 if (shouldScaleDownThumbnailTransition(uiMode, orientation)) { in createThumbnailAspectScaleAnimationLocked() 1234 int uiMode, int orientation, int transit, Rect containingFrame, Rect contentInsets, in createAspectScaledThumbnailEnterExitAnimationLocked() argument 1274 if (shouldScaleDownThumbnailTransition(uiMode, orientation)) { in createAspectScaledThumbnailEnterExitAnimationLocked() 1606 Animation loadAnimation(LayoutParams lp, int transit, boolean enter, int uiMode, in loadAnimation() argument 1686 getThumbnailTransitionState(enter), uiMode, orientation, transit, frame, in loadAnimation() 2286 private boolean shouldScaleDownThumbnailTransition(int uiMode, int orientation) { in shouldScaleDownThumbnailTransition() argument
|
/frameworks/base/libs/androidfw/tests/ |
D | ConfigDescription_test.cpp | 85 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/ |
D | Builders.h | 283 ConfigDescriptionBuilder& setUiMode(uint8_t uiMode) { in setUiMode() argument 284 config_.uiMode = uiMode; in setUiMode()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationTest.java | 154 config.uiMode = Configuration.UI_MODE_NIGHT_YES; in testNightModeHelper() 156 config.uiMode = Configuration.UI_MODE_NIGHT_NO; in testNightModeHelper()
|
/frameworks/base/tools/aapt/tests/ |
D | AaptConfig_test.cpp | 84 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleOverflow.java | 102 final int mode = res.getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK; in updateIcon()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wm/ |
D | DisplayLayoutTest.java | 108 cfg.uiMode = UI_MODE_TYPE_NORMAL; in createResources()
|
/frameworks/base/core/java/android/app/ |
D | ActivityTaskManager.java | 441 int modeType = config.uiMode & Configuration.UI_MODE_TYPE_MASK; in currentUiModeSupportsErrorDialogs()
|