/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/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 | 673 public int uiMode; field in Configuration 892 uiMode = o.uiMode; in setTo() 993 switch ((uiMode&UI_MODE_TYPE_MASK)) { in toString() 1002 default: sb.append(" uimode="); sb.append(uiMode&UI_MODE_TYPE_MASK); break; in toString() 1004 switch ((uiMode&UI_MODE_NIGHT_MASK)) { in toString() 1008 default: sb.append(" night="); sb.append(uiMode&UI_MODE_NIGHT_MASK); break; in toString() 1082 uiMode = UI_MODE_TYPE_UNDEFINED; in setToDefaults() 1235 if (delta.uiMode != (UI_MODE_TYPE_UNDEFINED|UI_MODE_NIGHT_UNDEFINED) in updateFrom() 1236 && uiMode != delta.uiMode) { in updateFrom() 1238 if ((delta.uiMode&UI_MODE_TYPE_MASK) != UI_MODE_TYPE_UNDEFINED) { in updateFrom() [all …]
|
D | AssetManager.java | 786 int screenLayout, int uiMode, int colorMode, int majorVersion); in setConfiguration() argument
|
D | ResourcesImpl.java | 424 mConfiguration.screenLayout, mConfiguration.uiMode, in updateConfiguration()
|
/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/services/tests/servicestests/src/com/android/server/wm/ |
D | TestWindowManagerPolicy.java | 153 public int getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation, int uiMode, in getNonDecorDisplayWidth() argument 159 public int getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation, int uiMode, in getNonDecorDisplayHeight() argument 165 public int getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation, int uiMode, in getConfigDisplayWidth() argument 171 public int getConfigDisplayHeight(int fullWidth, int fullHeight, int rotation, int uiMode, in getConfigDisplayHeight() argument 280 int displayRotation, int uiMode) {
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayContent.java | 1022 updateDisplayAndOrientation(getConfiguration().uiMode); in updateRotationUnchecked() 1107 private DisplayInfo updateDisplayAndOrientation(int uiMode) { in updateDisplayAndOrientation() argument 1132 final int appWidth = mService.mPolicy.getNonDecorDisplayWidth(dw, dh, mRotation, uiMode, in updateDisplayAndOrientation() 1134 final int appHeight = mService.mPolicy.getNonDecorDisplayHeight(dw, dh, mRotation, uiMode, in updateDisplayAndOrientation() 1170 final DisplayInfo displayInfo = updateDisplayAndOrientation(config.uiMode); in computeScreenConfiguration() 1178 config.uiMode, mDisplayId) / mDisplayMetrics.density); in computeScreenConfiguration() 1181 config.uiMode, mDisplayId) / mDisplayMetrics.density); in computeScreenConfiguration() 1192 computeSizeRangesAndScreenLayout(displayInfo, mDisplayId, rotated, config.uiMode, dw, dh, in computeScreenConfiguration() 1202 config.compatSmallestScreenWidthDp = computeCompatSmallestWidth(rotated, config.uiMode, dw, in computeScreenConfiguration() 1279 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 | 964 GraphicBuffer thumbnailHeader, final int taskId, int uiMode, int orientation) { in createThumbnailAspectScaleAnimationLocked() argument 979 if (shouldScaleDownThumbnailTransition(uiMode, orientation)) { in createThumbnailAspectScaleAnimationLocked() 1123 int uiMode, int orientation, int transit, Rect containingFrame, Rect contentInsets, in createAspectScaledThumbnailEnterExitAnimationLocked() argument 1162 if (shouldScaleDownThumbnailTransition(uiMode, orientation)) { in createAspectScaledThumbnailEnterExitAnimationLocked() 1498 Animation loadAnimation(WindowManager.LayoutParams lp, int transit, boolean enter, int uiMode, in loadAnimation() argument 1584 getThumbnailTransitionState(enter), uiMode, orientation, transit, frame, in loadAnimation() 2085 private boolean shouldScaleDownThumbnailTransition(int uiMode, int orientation) { in shouldScaleDownThumbnailTransition() argument
|
D | WindowSurfacePlacer.java | 732 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 | 918 int uiMode, int displayId); in getNonDecorDisplayWidth() argument 926 int uiMode, int displayId); in getNonDecorDisplayHeight() argument 935 int uiMode, int displayId); in getConfigDisplayWidth() argument 944 int uiMode, int displayId); in getConfigDisplayHeight() argument 1129 int displayRotation, int uiMode); in beginLayoutLw() argument
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 1912 diff = (int32_t)(uiMode - o.uiMode); in compare() 1975 if (uiMode != o.uiMode) { in compareLogical() 1976 return uiMode < o.uiMode ? -1 : 1; in compareLogical() 2002 if (uiMode != o.uiMode) diffs |= CONFIG_UI_MODE; in diff() 2129 if (uiMode || o.uiMode) { in isMoreSpecificThan() 2130 if (((uiMode^o.uiMode) & MASK_UI_MODE_TYPE) != 0) { in isMoreSpecificThan() 2131 if (!(uiMode & MASK_UI_MODE_TYPE)) return false; in isMoreSpecificThan() 2132 if (!(o.uiMode & MASK_UI_MODE_TYPE)) return true; in isMoreSpecificThan() 2134 if (((uiMode^o.uiMode) & MASK_UI_MODE_NIGHT) != 0) { in isMoreSpecificThan() 2135 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/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarView.java | 685 int uiMode = newConfig.uiMode & Configuration.UI_MODE_TYPE_MASK; in updateCarMode() local 686 final boolean isCarMode = (uiMode == Configuration.UI_MODE_TYPE_CAR); in updateCarMode()
|
/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 | 2711 private int getNavigationBarWidth(int rotation, int uiMode) { in getNavigationBarWidth() argument 2712 if (ALTERNATE_CAR_MODE_NAV_SIZE && (uiMode & UI_MODE_TYPE_MASK) == UI_MODE_TYPE_CAR) { in getNavigationBarWidth() 2720 public int getNonDecorDisplayWidth(int fullWidth, int fullHeight, int rotation, int uiMode, in getNonDecorDisplayWidth() argument 2727 return fullWidth - getNavigationBarWidth(rotation, uiMode); in getNonDecorDisplayWidth() 2733 private int getNavigationBarHeight(int rotation, int uiMode) { in getNavigationBarHeight() argument 2734 if (ALTERNATE_CAR_MODE_NAV_SIZE && (uiMode & UI_MODE_TYPE_MASK) == UI_MODE_TYPE_CAR) { in getNavigationBarHeight() 2742 public int getNonDecorDisplayHeight(int fullWidth, int fullHeight, int rotation, int uiMode, in getNonDecorDisplayHeight() argument 2749 return fullHeight - getNavigationBarHeight(rotation, uiMode); in getNonDecorDisplayHeight() 2756 public int getConfigDisplayWidth(int fullWidth, int fullHeight, int rotation, int uiMode, in getConfigDisplayWidth() argument 2758 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()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 1118 uint8_t uiMode; member
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 172 if (context.getResources().getConfiguration().uiMode == Configuration.UI_MODE_TYPE_WATCH) { in HorizontalScrollView()
|