Home
last modified time | relevance | path

Searched refs:currentConfig (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImpl.kt45 val currentConfig = context.resources.configuration constant
47 fontScale = currentConfig.fontScale
48 density = currentConfig.densityDpi
49 smallestScreenWidth = currentConfig.smallestScreenWidthDp
50 maxBounds.set(currentConfig.windowConfiguration.maxBounds)
51 inCarMode = currentConfig.uiMode and Configuration.UI_MODE_TYPE_MASK ==
53 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK
54 localeList = currentConfig.locales
55 layoutDirection = currentConfig.layoutDirection
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlsActivityTest.kt82 val currentConfig = activityRule.activity.resources.configuration in testOrientationChangeForwardsToUiController() constant
83 val newConfig = Configuration(currentConfig) in testOrientationChangeForwardsToUiController()
84 newConfig.orientation = switchOrientation(currentConfig.orientation) in testOrientationChangeForwardsToUiController()
92 val currentConfig = activityRule.activity.resources.configuration in testScreenChangeForwardsToUiController() constant
93 val newConfig = Configuration(currentConfig) in testScreenChangeForwardsToUiController()
102 val currentConfig = activityRule.activity.resources.configuration in testChangeSmallestScreenSizeForwardsToUiController() constant
103 val newConfig = Configuration(currentConfig) in testChangeSmallestScreenSizeForwardsToUiController()
/frameworks/base/core/java/android/window/
DConfigurationHelper.java109 private static boolean shouldUpdateWindowMetricsBounds(@NonNull Configuration currentConfig, in shouldUpdateWindowMetricsBounds() argument
111 final Rect currentBounds = currentConfig.windowConfiguration.getBounds(); in shouldUpdateWindowMetricsBounds()
114 final Rect currentMaxBounds = currentConfig.windowConfiguration.getMaxBounds(); in shouldUpdateWindowMetricsBounds()
DWindowTokenClient.java227 final Configuration currentConfig; in onConfigurationChanged() local
235 currentConfig = mShouldDumpConfigForIme ? new Configuration(mConfiguration) : null; in onConfigurationChanged()
244 + ", reported config=" + currentConfig in onConfigurationChanged()
271 + ", reported config=" + currentConfig in onConfigurationChanged()
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/
DActivityThreadClientTest.java207 final Configuration currentConfig = new Configuration(); in testShouldReportChange() local
210 shouldReportChange(currentConfig, newConfig, null /* sizeBuckets */, in testShouldReportChange()
220 currentConfig.screenHeightDp = 200; in testShouldReportChange()
224 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
228 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
231 currentConfig.fontScale = 0.8f; in testShouldReportChange()
235 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
241 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
/frameworks/base/telephony/java/android/telephony/
DSmsMessage.java1114 for (NoEmsSupportConfig currentConfig : mNoEmsSupportConfigList) { in hasEmsSupport()
1115 if (simOperator.startsWith(currentConfig.mOperatorNumber) && in hasEmsSupport()
1116 (TextUtils.isEmpty(currentConfig.mGid1) || in hasEmsSupport()
1117 (!TextUtils.isEmpty(currentConfig.mGid1) && in hasEmsSupport()
1118 currentConfig.mGid1.equalsIgnoreCase(gid)))) { in hasEmsSupport()
1145 for (NoEmsSupportConfig currentConfig : mNoEmsSupportConfigList) { in shouldAppendPageNumberAsPrefix()
1146 if (simOperator.startsWith(currentConfig.mOperatorNumber) && in shouldAppendPageNumberAsPrefix()
1147 (TextUtils.isEmpty(currentConfig.mGid1) || in shouldAppendPageNumberAsPrefix()
1148 (!TextUtils.isEmpty(currentConfig.mGid1) in shouldAppendPageNumberAsPrefix()
1149 && currentConfig.mGid1.equalsIgnoreCase(gid)))) { in shouldAppendPageNumberAsPrefix()
[all …]
/frameworks/base/services/core/java/com/android/server/display/
DPersistentDataStore.java868 BrightnessConfiguration currentConfig = mConfigurations.get(userSerial); in setBrightnessConfigurationForUser() local
869 if (currentConfig != c && (currentConfig == null || !currentConfig.equals(c))) { in setBrightnessConfigurationForUser()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayContentTests.java483 final Configuration currentConfig = defaultDisplay.getConfiguration(); in testDefaultDisplayOverrideConfigUpdate() local
486 final Configuration newOverrideConfig = new Configuration(currentConfig); in testDefaultDisplayOverrideConfigUpdate()
499 defaultDisplay.updateDisplayOverrideConfigurationLocked(currentConfig, in testDefaultDisplayOverrideConfigUpdate()
502 assertEquals(currentConfig.densityDpi, globalConfig.densityDpi); in testDefaultDisplayOverrideConfigUpdate()
503 assertEquals(currentConfig.fontScale, globalConfig.fontScale, 0.1 /* delta */); in testDefaultDisplayOverrideConfigUpdate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaPhone.java4611 int currentConfig = TelephonyProperties.lte_on_cdma_device() in getLteOnCdmaMode() local
4613 int lteOnCdmaModeDynamicValue = currentConfig; in getLteOnCdmaMode()
4622 if (currentConfig == RILConstants.LTE_ON_CDMA_TRUE) { in getLteOnCdmaMode()
4626 return currentConfig; in getLteOnCdmaMode()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java1529 Configuration currentConfig = mContext.getResources().getConfiguration(); in runInNightMode() local
1530 boolean isNightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in runInNightMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRow.java1433 Configuration currentConfig = getResources().getConfiguration();
1434 boolean nightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK)
/frameworks/base/services/core/java/com/android/server/wm/
DActivityRecord.java9518 final Configuration currentConfig = getConfiguration();
9519 return changes == CONFIG_UI_MODE && (isInVrUiMode(currentConfig)
9528 final Configuration currentConfig = getConfiguration();
9530 boolean deskModeChanged = isInDeskUiMode(currentConfig) != isInDeskUiMode(
9535 (currentConfig.uiMode & ~UI_MODE_TYPE_MASK) != (lastReportedConfig.uiMode
/frameworks/base/core/java/android/app/
DActivityThread.java5987 public static boolean shouldReportChange(@Nullable Configuration currentConfig, in shouldReportChange() argument
5990 final int publicDiff = currentConfig.diffPublicOnly(newConfig); in shouldReportChange()
5995 final int diffWithBucket = SizeConfigurationBuckets.filterDiff(publicDiff, currentConfig, in shouldReportChange()
DNotification.java3891 Configuration currentConfig = res.getConfiguration(); in Builder() local
3892 mInNightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in Builder()