Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImpl.kt35 private var uiMode: Int = 0 variable
44 inCarMode = currentConfig.uiMode and Configuration.UI_MODE_TYPE_MASK ==
46 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK
67 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK in onConfigurationChanged() constant
68 val uiModeChanged = uiMode != this.uiMode in onConfigurationChanged()
91 this.uiMode = uiMode in onConfigurationChanged()
DNavigationBarView.java1000 int uiMode = mConfiguration.uiMode & Configuration.UI_MODE_TYPE_MASK; in updateCarMode() local
1001 final boolean isCarMode = (uiMode == Configuration.UI_MODE_TYPE_CAR); in updateCarMode()
/frameworks/base/libs/androidfw/
DConfigDescription.cpp270 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 …]
DResourceTypes.cpp2001 if (uiMode != o.uiMode) { in compare()
2002 return (uiMode > o.uiMode) ? 1 : -1; in compare()
2068 if (uiMode != o.uiMode) { in compareLogical()
2069 return uiMode < o.uiMode ? -1 : 1; in compareLogical()
2095 if (uiMode != o.uiMode) diffs |= CONFIG_UI_MODE; in diff()
2224 if (uiMode || o.uiMode) { in isMoreSpecificThan()
2225 if (((uiMode^o.uiMode) & MASK_UI_MODE_TYPE) != 0) { in isMoreSpecificThan()
2226 if (!(uiMode & MASK_UI_MODE_TYPE)) return false; in isMoreSpecificThan()
2227 if (!(o.uiMode & MASK_UI_MODE_TYPE)) return true; in isMoreSpecificThan()
2229 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/packages/PackageInstaller/src/com/android/packageinstaller/
DDeviceUtils.java25 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/
DConfiguration.java705 public int uiMode; field in Configuration
925 uiMode = o.uiMode; in setTo()
1026 switch ((uiMode&UI_MODE_TYPE_MASK)) { in toString()
1035 default: sb.append(" uimode="); sb.append(uiMode&UI_MODE_TYPE_MASK); break; in toString()
1037 switch ((uiMode&UI_MODE_NIGHT_MASK)) { in toString()
1041 default: sb.append(" night="); sb.append(uiMode&UI_MODE_NIGHT_MASK); break; in toString()
1124 protoOutputStream.write(UI_MODE, uiMode); in writeToProto()
1261 uiMode = protoInputStream.readInt(UI_MODE); in readFromProto()
1324 public static String uiModeToString(int uiMode) { in uiModeToString() argument
1325 switch (uiMode) { in uiModeToString()
[all …]
DAssetManager.java1355 int screenHeightDp, int screenLayout, int uiMode, int colorMode, int majorVersion) { in setConfiguration() argument
1360 smallestScreenWidthDp, screenWidthDp, screenHeightDp, screenLayout, uiMode, in setConfiguration()
1423 int uiMode, int colorMode, int majorVersion); in nativeSetConfiguration() argument
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java548 int uiMode = mDefaultUiModeType; in updateConfigurationLocked() local
552 uiMode = Configuration.UI_MODE_TYPE_TELEVISION; in updateConfigurationLocked()
554 uiMode = Configuration.UI_MODE_TYPE_WATCH; in updateConfigurationLocked()
556 uiMode = Configuration.UI_MODE_TYPE_CAR; in updateConfigurationLocked()
558 uiMode = Configuration.UI_MODE_TYPE_DESK; in updateConfigurationLocked()
560 uiMode = Configuration.UI_MODE_TYPE_VR_HEADSET; in updateConfigurationLocked()
568 uiMode |= mComputedNightMode ? Configuration.UI_MODE_NIGHT_YES in updateConfigurationLocked()
574 uiMode |= mNightMode << 4; in updateConfigurationLocked()
579 uiMode &= ~Configuration.UI_MODE_NIGHT_NO; in updateConfigurationLocked()
580 uiMode |= Configuration.UI_MODE_NIGHT_YES; in updateConfigurationLocked()
[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/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/src/com/android/systemui/statusbar/policy/
DExtensionControllerImpl.java117 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/
DExtensionControllerImplTest.java123 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/tools/aapt2/format/proto/
DProtoDeserialize.cpp207 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb()
212 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb()
217 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb()
222 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb()
227 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb()
232 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb()
237 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_TYPE) | in DeserializeConfigFromPb()
247 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_NIGHT) | in DeserializeConfigFromPb()
252 out_config->uiMode = (out_config->uiMode & ~ConfigDescription::MASK_UI_MODE_NIGHT) | in DeserializeConfigFromPb()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayContent.java1493 updateDisplayAndOrientation(getConfiguration().uiMode, null /* outConfig */); in applyRotationLocked()
1577 final int uiMode = mWmService.mPolicy.getUiMode(); in isNonDecorDisplayCloseToSquare() local
1579 width, height, rotation, uiMode, displayCutout); in isNonDecorDisplayCloseToSquare()
1581 width, height, rotation, uiMode, displayCutout); in isNonDecorDisplayCloseToSquare()
1591 private DisplayInfo updateDisplayAndOrientation(int uiMode, Configuration outConfig) { in updateDisplayAndOrientation() argument
1601 final int appWidth = mDisplayPolicy.getNonDecorDisplayWidth(dw, dh, mRotation, uiMode, in updateDisplayAndOrientation()
1603 final int appHeight = mDisplayPolicy.getNonDecorDisplayHeight(dw, dh, mRotation, uiMode, in updateDisplayAndOrientation()
1623 computeSizeRangesAndScreenLayout(mDisplayInfo, rotated, uiMode, dw, dh, in updateDisplayAndOrientation()
1674 final DisplayInfo displayInfo = updateDisplayAndOrientation(config.uiMode, config); in computeScreenConfiguration()
1688 config.uiMode, displayInfo.displayCutout) / density); in computeScreenConfiguration()
[all …]
DDisplayPolicy.java1426 public void beginLayoutLw(DisplayFrames displayFrames, int uiMode) { in beginLayoutLw() argument
1470 boolean updateSysUiVisibility = layoutNavigationBar(displayFrames, uiMode, navVisible, in beginLayoutLw()
1631 private boolean layoutNavigationBar(DisplayFrames displayFrames, int uiMode, boolean navVisible, in layoutNavigationBar() argument
1656 - getNavigationBarHeight(rotation, uiMode); in layoutNavigationBar()
1658 - getNavigationBarFrameHeight(rotation, uiMode); in layoutNavigationBar()
1681 - getNavigationBarWidth(rotation, uiMode); in layoutNavigationBar()
1704 + getNavigationBarWidth(rotation, uiMode); in layoutNavigationBar()
2668 final int uiMode = mService.mPolicy.getUiMode();
2733 - getNavigationBarFrameHeight(portraitRotation, uiMode);
2797 private int getNavigationBarWidth(int rotation, int uiMode) {
[all …]
DDockedStackDividerController.java290 baseConfig.uiMode, displayCutout); in initSnapAlgorithmForRotations()
292 baseConfig.uiMode, displayCutout); in initSnapAlgorithmForRotations()
302 baseConfig.uiMode, displayCutout) / density); in initSnapAlgorithmForRotations()
304 baseConfig.uiMode, displayCutout) / density); in initSnapAlgorithmForRotations()
DAppTransition.java1065 GraphicBuffer thumbnailHeader, final int taskId, int uiMode, int orientation) { in createThumbnailAspectScaleAnimationLocked() argument
1080 if (shouldScaleDownThumbnailTransition(uiMode, orientation)) { in createThumbnailAspectScaleAnimationLocked()
1224 int uiMode, int orientation, int transit, Rect containingFrame, Rect contentInsets, in createAspectScaledThumbnailEnterExitAnimationLocked() argument
1264 if (shouldScaleDownThumbnailTransition(uiMode, orientation)) { in createAspectScaledThumbnailEnterExitAnimationLocked()
1612 Animation loadAnimation(LayoutParams lp, int transit, boolean enter, int uiMode, in loadAnimation() argument
1700 getThumbnailTransitionState(enter), uiMode, orientation, transit, frame, in loadAnimation()
2288 private boolean shouldScaleDownThumbnailTransition(int uiMode, int orientation) { in shouldScaleDownThumbnailTransition() argument
/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.h283 ConfigDescriptionBuilder& setUiMode(uint8_t uiMode) { in setUiMode() argument
284 config_.uiMode = uiMode; in setUiMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java90 boolean nightMode = (mContext.getResources().getConfiguration().uiMode in handleUpdateState()
/frameworks/base/tools/aapt/tests/
DAaptConfig_test.cpp84 EXPECT_EQ(android::ResTable_config::UI_MODE_TYPE_CAR, config.uiMode); in TEST()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationViewWrapper.java108 boolean nightMode = (configuration.uiMode & Configuration.UI_MODE_NIGHT_MASK) in needsInversion()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/
DInputMethodPreference.java275 return (getContext().getResources().getConfiguration().uiMode in isTv()
/frameworks/base/tools/split-select/
DMain.cpp113 outConfig->uiMode &= ResTable_config::UI_MODE_NIGHT_ANY; in removeRuntimeQualifiers()

123