/frameworks/base/tools/aapt2/ |
D | ConfigDescription.cpp | 276 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 281 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 286 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 291 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 296 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 301 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 306 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType() 317 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight() 322 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight() 327 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight() [all …]
|
D | ConfigDescription_test.cpp | 87 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST() 138 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_VR_HEADSET, config.uiMode); in TEST()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImpl.java | 48 mInCarMode = (currentConfig.uiMode & Configuration.UI_MODE_TYPE_MASK) in ConfigurationControllerImpl() 50 mUiMode = currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK; in ConfigurationControllerImpl() 66 int uiMode = newConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK; in onConfigurationChanged() local 68 || (mInCarMode && uiMode != mUiMode)) { in onConfigurationChanged() 76 mUiMode = uiMode; in onConfigurationChanged()
|
D | NavigationBarView.java | 681 int uiMode = newConfig.uiMode & Configuration.UI_MODE_TYPE_MASK; in updateCarMode() local 682 final boolean isCarMode = (uiMode == Configuration.UI_MODE_TYPE_CAR); in updateCarMode()
|
/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 | 671 public int uiMode; field in Configuration 890 uiMode = o.uiMode; in setTo() 991 switch ((uiMode&UI_MODE_TYPE_MASK)) { in toString() 1000 default: sb.append(" uimode="); sb.append(uiMode&UI_MODE_TYPE_MASK); break; in toString() 1002 switch ((uiMode&UI_MODE_NIGHT_MASK)) { in toString() 1006 default: sb.append(" night="); sb.append(uiMode&UI_MODE_NIGHT_MASK); break; in toString() 1080 uiMode = UI_MODE_TYPE_UNDEFINED; in setToDefaults() 1233 if (delta.uiMode != (UI_MODE_TYPE_UNDEFINED|UI_MODE_NIGHT_UNDEFINED) in updateFrom() 1234 && uiMode != delta.uiMode) { in updateFrom() 1236 if ((delta.uiMode&UI_MODE_TYPE_MASK) != UI_MODE_TYPE_UNDEFINED) { in updateFrom() [all …]
|
D | AssetManager.java | 792 int screenLayout, int uiMode, int colorMode, int majorVersion); in setConfiguration() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImpl.java | 97 public ExtensionController.ExtensionBuilder<T> withUiMode(int uiMode, in withUiMode() argument 99 mExtension.addUiMode(uiMode, supplier); in withUiMode() 196 public void addUiMode(int uiMode, Supplier<T> mode) { in addUiMode() argument 197 mProducers.add(new UiModeItem(uiMode, mode)); in addUiMode() 287 public UiModeItem(int uiMode, Supplier<T> supplier) { in UiModeItem() argument 288 mDesiredUiMode = uiMode; in UiModeItem() 290 mUiMode = mDefaultContext.getResources().getConfiguration().uiMode in UiModeItem() 297 int newMode = newConfig.uiMode & Configuration.UI_MODE_TYPE_MASK; in onConfigChanged()
|
/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()
|
D | android_util_AssetManager.cpp | 679 jint screenLayout, jint uiMode, in android_content_AssetManager_setConfiguration() argument 710 config.uiMode = (uint8_t)uiMode; in android_content_AssetManager_setConfiguration()
|
/frameworks/base/native/android/ |
D | configuration.cpp | 109 return config->uiMode&ResTable_config::MASK_UI_MODE_TYPE; in AConfiguration_getUiModeType() 113 return (config->uiMode&ResTable_config::MASK_UI_MODE_NIGHT) in AConfiguration_getUiModeNight() 205 config->uiMode = (config->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in AConfiguration_setUiModeType() 210 config->uiMode = (config->uiMode&~ResTable_config::MASK_UI_MODE_NIGHT) in AConfiguration_setUiModeNight()
|
/frameworks/base/services/core/java/com/android/server/ |
D | UiModeManagerService.java | 430 int uiMode = mDefaultUiModeType; in updateConfigurationLocked() local 434 uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in updateConfigurationLocked() 436 uiMode = Configuration.UI_MODE_TYPE_WATCH; in updateConfigurationLocked() 438 uiMode = Configuration.UI_MODE_TYPE_CAR; in updateConfigurationLocked() 440 uiMode = Configuration.UI_MODE_TYPE_DESK; in updateConfigurationLocked() 442 uiMode = Configuration.UI_MODE_TYPE_VR_HEADSET; in updateConfigurationLocked() 450 uiMode |= mComputedNightMode ? Configuration.UI_MODE_NIGHT_YES in updateConfigurationLocked() 456 uiMode |= mNightMode << 4; in updateConfigurationLocked() 464 + "; uiMode=" + uiMode); in updateConfigurationLocked() 467 mCurUiMode = uiMode; in updateConfigurationLocked() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | ExtensionControllerImplTest.java | 121 c.uiMode = 0; in testUiMode() 126 c.uiMode = Configuration.UI_MODE_TYPE_CAR; in testUiMode() 148 Object uiMode = new Object(); in testSortOrder() local 154 .withUiMode(Configuration.UI_MODE_TYPE_CAR, () -> uiMode) in testSortOrder() 167 c.uiMode |= Configuration.UI_MODE_TYPE_CAR; in testSortOrder() 170 assertEquals(uiMode, ext.get()); in testSortOrder()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | TestWindowManagerPolicy.java | 167 public int getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation, int uiMode, in getNonDecorDisplayWidth() argument 173 public int getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation, int uiMode, in getNonDecorDisplayHeight() argument 179 public int getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation, int uiMode, in getConfigDisplayWidth() argument 185 public int getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation, int uiMode, in getConfigDisplayHeight() argument 294 int displayRotation, int uiMode) {
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayContent.java | 1046 updateDisplayAndOrientation(getConfiguration().uiMode); in updateRotationUnchecked() 1131 private DisplayInfo updateDisplayAndOrientation(int uiMode) { in updateDisplayAndOrientation() argument 1156 final int appWidth = mService.mPolicy.getNonDecorDisplayWidth(dw, dh, mRotation, uiMode, in updateDisplayAndOrientation() 1158 final int appHeight = mService.mPolicy.getNonDecorDisplayHeight(dw, dh, mRotation, uiMode, in updateDisplayAndOrientation() 1194 final DisplayInfo displayInfo = updateDisplayAndOrientation(config.uiMode); in computeScreenConfiguration() 1203 config.uiMode, mDisplayId) / mDisplayMetrics.density); in computeScreenConfiguration() 1206 config.uiMode, mDisplayId) / mDisplayMetrics.density); in computeScreenConfiguration() 1217 computeSizeRangesAndScreenLayout(displayInfo, mDisplayId, rotated, config.uiMode, dw, dh, in computeScreenConfiguration() 1227 config.compatSmallestScreenWidthDp = computeCompatSmallestWidth(rotated, config.uiMode, dw, in computeScreenConfiguration() 1304 private int computeCompatSmallestWidth(boolean rotated, int uiMode, int dw, int dh, in computeCompatSmallestWidth() argument [all …]
|
D | DockedStackDividerController.java | 235 baseConfig.uiMode, displayId); in initSnapAlgorithmForRotations() 237 baseConfig.uiMode, displayId); in initSnapAlgorithmForRotations() 246 (mService.mPolicy.getConfigDisplayWidth(dw, dh, rotation, baseConfig.uiMode, in initSnapAlgorithmForRotations() 249 (mService.mPolicy.getConfigDisplayHeight(dw, dh, rotation, baseConfig.uiMode, in initSnapAlgorithmForRotations()
|
D | AppTransition.java | 967 GraphicBuffer thumbnailHeader, final int taskId, int uiMode, int orientation) { in createThumbnailAspectScaleAnimationLocked() argument 982 if (shouldScaleDownThumbnailTransition(uiMode, orientation)) { in createThumbnailAspectScaleAnimationLocked() 1126 int uiMode, int orientation, int transit, Rect containingFrame, Rect contentInsets, in createAspectScaledThumbnailEnterExitAnimationLocked() argument 1166 if (shouldScaleDownThumbnailTransition(uiMode, orientation)) { in createAspectScaledThumbnailEnterExitAnimationLocked() 1509 Animation loadAnimation(WindowManager.LayoutParams lp, int transit, boolean enter, int uiMode, in loadAnimation() argument 1595 getThumbnailTransitionState(enter), uiMode, orientation, transit, frame, in loadAnimation() 2096 private boolean shouldScaleDownThumbnailTransition(int uiMode, int orientation) { in shouldScaleDownThumbnailTransition() argument
|
D | WindowSurfacePlacer.java | 736 insets, thumbnailHeader, taskId, displayConfig.uiMode, in createThumbnailAppAnimator()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | AppCompatDelegateImplV14.java | 193 final int currentNightMode = conf.uiMode & Configuration.UI_MODE_NIGHT_MASK; in updateForNightMode() 216 config.uiMode = newNightMode | (config.uiMode & ~Configuration.UI_MODE_NIGHT_MASK); in updateForNightMode()
|
/frameworks/base/core/java/android/view/ |
D | WindowManagerPolicy.java | 945 int uiMode, int displayId); in getNonDecorDisplayWidth() argument 953 int uiMode, int displayId); in getNonDecorDisplayHeight() argument 962 int uiMode, int displayId); in getConfigDisplayWidth() argument 971 int uiMode, int displayId); in getConfigDisplayHeight() argument 1156 int displayRotation, int uiMode); in beginLayoutLw() argument
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 1936 diff = (int32_t)(uiMode - o.uiMode); in compare() 1999 if (uiMode != o.uiMode) { in compareLogical() 2000 return uiMode < o.uiMode ? -1 : 1; in compareLogical() 2026 if (uiMode != o.uiMode) diffs |= CONFIG_UI_MODE; in diff() 2153 if (uiMode || o.uiMode) { in isMoreSpecificThan() 2154 if (((uiMode^o.uiMode) & MASK_UI_MODE_TYPE) != 0) { in isMoreSpecificThan() 2155 if (!(uiMode & MASK_UI_MODE_TYPE)) return false; in isMoreSpecificThan() 2156 if (!(o.uiMode & MASK_UI_MODE_TYPE)) return true; in isMoreSpecificThan() 2158 if (((uiMode^o.uiMode) & MASK_UI_MODE_NIGHT) != 0) { in isMoreSpecificThan() 2159 if (!(uiMode & MASK_UI_MODE_NIGHT)) return false; in isMoreSpecificThan() [all …]
|
/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/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodPreference.java | 263 return (getContext().getResources().getConfiguration().uiMode in isTv()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 2736 private int getNavigationBarWidth(int rotation, int uiMode) { in getNavigationBarWidth() argument 2737 if (ALTERNATE_CAR_MODE_NAV_SIZE && (uiMode & UI_MODE_TYPE_MASK) == UI_MODE_TYPE_CAR) { in getNavigationBarWidth() 2745 public int getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation, int uiMode, in getNonDecorDisplayWidth() argument 2752 return fullWidth - getNavigationBarWidth(rotation, uiMode); in getNonDecorDisplayWidth() 2758 private int getNavigationBarHeight(int rotation, int uiMode) { in getNavigationBarHeight() argument 2759 if (ALTERNATE_CAR_MODE_NAV_SIZE && (uiMode & UI_MODE_TYPE_MASK) == UI_MODE_TYPE_CAR) { in getNavigationBarHeight() 2767 public int getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation, int uiMode, in getNonDecorDisplayHeight() argument 2774 return fullHeight - getNavigationBarHeight(rotation, uiMode); in getNonDecorDisplayHeight() 2781 public int getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation, int uiMode, in getConfigDisplayWidth() argument 2783 return getNonDecorDisplayWidth(fullWidth, fullHeight, rotation, uiMode, displayId); in getConfigDisplayWidth() [all …]
|
/frameworks/base/tools/split-select/ |
D | Main.cpp | 113 outConfig->uiMode &= ResTable_config::UI_MODE_NIGHT_ANY; in removeRuntimeQualifiers()
|