/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | ConfigurationControllerImpl.kt | 44 val currentConfig = context.resources.configuration regex 46 fontScale = currentConfig.fontScale 47 density = currentConfig.densityDpi 48 smallestScreenWidth = currentConfig.smallestScreenWidthDp 49 maxBounds.set(currentConfig.windowConfiguration.maxBounds) 50 inCarMode = currentConfig.uiMode and Configuration.UI_MODE_TYPE_MASK == 52 uiMode = currentConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK 53 localeList = currentConfig.locales 54 layoutDirection = currentConfig.layoutDirection
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
H A D | ControlsActivityTest.kt | 78 val currentConfig = activityRule.activity.resources.configuration regex 79 val newConfig = Configuration(currentConfig) 80 newConfig.orientation = switchOrientation(currentConfig.orientation) 88 val currentConfig = activityRule.activity.resources.configuration regex 89 val newConfig = Configuration(currentConfig) 98 val currentConfig = activityRule.activity.resources.configuration regex 99 val newConfig = Configuration(currentConfig)
|
/aosp14/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
H A D | ActivityThreadClientTest.java | 207 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() 229 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange() 234 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange() 238 currentConfig.fontScale = 0.8f; in testShouldReportChange() 242 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange() 249 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
|
/aosp14/frameworks/base/telephony/java/android/telephony/ |
H A D | SmsMessage.java | 1114 for (NoEmsSupportConfig currentConfig : mNoEmsSupportConfigList) { in hasEmsSupport() 1115 if (currentConfig == null) { in hasEmsSupport() 1120 if (simOperator.startsWith(currentConfig.mOperatorNumber) && in hasEmsSupport() 1121 (TextUtils.isEmpty(currentConfig.mGid1) || in hasEmsSupport() 1122 (!TextUtils.isEmpty(currentConfig.mGid1) && in hasEmsSupport() 1150 for (NoEmsSupportConfig currentConfig : mNoEmsSupportConfigList) { in shouldAppendPageNumberAsPrefix() 1151 if (simOperator.startsWith(currentConfig.mOperatorNumber) && in shouldAppendPageNumberAsPrefix() 1152 (TextUtils.isEmpty(currentConfig.mGid1) || in shouldAppendPageNumberAsPrefix() 1153 (!TextUtils.isEmpty(currentConfig.mGid1) in shouldAppendPageNumberAsPrefix() 1154 && currentConfig.mGid1.equalsIgnoreCase(gid)))) { in shouldAppendPageNumberAsPrefix() [all …]
|
/aosp14/frameworks/base/core/java/android/window/ |
H A D | ConfigurationHelper.java | 109 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()
|
H A D | WindowTokenClient.java | 229 final Configuration currentConfig; in onConfigurationChanged() local 237 currentConfig = mShouldDumpConfigForIme ? new Configuration(mConfiguration) : null; in onConfigurationChanged() 246 + ", reported config=" + currentConfig in onConfigurationChanged() 273 + ", reported config=" + currentConfig in onConfigurationChanged()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | ActivityThreadTest.java | 235 final Configuration currentConfig = activity.getResources().getConfiguration(); in testOverrideScale() local 240 new MergedConfiguration(currentConfig, currentConfig), in testOverrideScale() 266 final Configuration currentConfig = context.getResources().getConfiguration(); in assertScreenScale() local 268 assertEquals(expectedDpi, currentConfig.densityDpi); in assertScreenScale() 273 assertEquals(expectedBounds, currentConfig.windowConfiguration.getBounds()); in assertScreenScale() 274 assertEquals(expectedAppBounds, currentConfig.windowConfiguration.getAppBounds()); in assertScreenScale() 275 assertEquals(expectedMaxBounds, currentConfig.windowConfiguration.getMaxBounds()); in assertScreenScale()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/ |
H A D | PersistentDataStore.java | 900 BrightnessConfiguration currentConfig = mConfigurations.get(userSerial); in setBrightnessConfigurationForUser() local 901 if (currentConfig != c && (currentConfig == null || !currentConfig.equals(c))) { in setBrightnessConfigurationForUser()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | DisplayContentTests.java | 488 final Configuration currentConfig = defaultDisplay.getConfiguration(); in testDefaultDisplayOverrideConfigUpdate() local 491 final Configuration newOverrideConfig = new Configuration(currentConfig); in testDefaultDisplayOverrideConfigUpdate() 504 defaultDisplay.updateDisplayOverrideConfigurationLocked(currentConfig, in testDefaultDisplayOverrideConfigUpdate() 507 assertEquals(currentConfig.densityDpi, globalConfig.densityDpi); in testDefaultDisplayOverrideConfigUpdate() 508 assertEquals(currentConfig.fontScale, globalConfig.fontScale, 0.1 /* delta */); in testDefaultDisplayOverrideConfigUpdate()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | NotificationTest.java | 1678 Configuration currentConfig = mContext.getResources().getConfiguration(); in runInNightMode() local 1679 boolean isNightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in runInNightMode()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
H A D | ExpandableNotificationRow.java | 1406 Configuration currentConfig = getResources().getConfiguration(); 1407 boolean nightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK)
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | ActivityRecord.java | 9726 final Configuration currentConfig = getConfiguration(); 9727 return changes == CONFIG_UI_MODE && (isInVrUiMode(currentConfig) 9736 final Configuration currentConfig = getConfiguration(); 9738 boolean deskModeChanged = isInDeskUiMode(currentConfig) != isInDeskUiMode( 9743 (currentConfig.uiMode & ~UI_MODE_TYPE_MASK) != (lastReportedConfig.uiMode
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | ActivityThread.java | 6161 public static boolean shouldReportChange(@Nullable Configuration currentConfig, in shouldReportChange() argument 6164 final int publicDiff = currentConfig.diffPublicOnly(newConfig); in shouldReportChange() 6175 final int diffWithBucket = SizeConfigurationBuckets.filterDiff(publicDiff, currentConfig, in shouldReportChange()
|
H A D | Notification.java | 3967 Configuration currentConfig = res.getConfiguration(); in Builder() local 3968 mInNightMode = (currentConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK) in Builder()
|