/aosp14/frameworks/base/core/tests/mockingcoretests/src/android/window/ |
H A D | SizeConfigurationBucketsTest.java | 171 oldConfig, newConfig, sizeBuckets); 224 newConfig.screenLayout), 300 newConfig.screenWidthDp = 520; in testHorizontalSizeThresholds() 302 newConfig, sizeBuckets)); in testHorizontalSizeThresholds() 304 newConfig.screenWidthDp = 640; in testHorizontalSizeThresholds() 325 newConfig.screenHeightDp = 520; in testVerticalSizeThresholds() 327 newConfig, sizeBuckets)); in testVerticalSizeThresholds() 329 newConfig.screenHeightDp = 640; in testVerticalSizeThresholds() 350 newConfig.smallestScreenWidthDp = 520; in testSmallestWidthSizeThresholds() 352 newConfig, sizeBuckets)); in testSmallestWidthSizeThresholds() [all …]
|
H A D | ConfigurationHelperTest.java | 105 final Configuration newConfig = new Configuration(); in testShouldUpdateResources_DifferentBounds_ReturnsTrue() local 106 newConfig.windowConfiguration.setBounds(new Rect(0, 0, 20, 20)); in testShouldUpdateResources_DifferentBounds_ReturnsTrue() 107 newConfig.windowConfiguration.setMaxBounds(new Rect(0, 0, 20, 20)); in testShouldUpdateResources_DifferentBounds_ReturnsTrue() 109 assertThat(ConfigurationHelper.shouldUpdateResources(new Binder(), config, newConfig, in testShouldUpdateResources_DifferentBounds_ReturnsTrue() 119 final Configuration newConfig = new Configuration(); in testShouldUpdateResources_SameConfig_ReturnsFalse() local 121 assertThat(ConfigurationHelper.shouldUpdateResources(new Binder(), config, newConfig, in testShouldUpdateResources_SameConfig_ReturnsFalse() 131 final Configuration newConfig = new Configuration(); in testShouldUpdateResources_DifferentConfig_ReturnsTrue() local 132 newConfig.setToDefaults(); in testShouldUpdateResources_DifferentConfig_ReturnsTrue() 144 final Configuration newConfig = new Configuration(); in testShouldUpdateResources_DifferentNonPublicConfig_ReturnsTrue() local 145 newConfig.windowConfiguration.setAppBounds(new Rect(0, 0, 10, 10)); in testShouldUpdateResources_DifferentNonPublicConfig_ReturnsTrue() [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/sysui/ |
H A D | ShellControllerTest.java | 227 newConfig.densityDpi = 200; in testAddConfigurationChangeListener_ensureCallback() 238 newConfig.densityDpi = 200; in testDoubleAddConfigurationChangeListener_ensureSingleCallback() 249 newConfig.densityDpi = 200; in testAddRemoveConfigurationChangeListener_ensureNoCallback() 261 newConfig.densityDpi = 200; in testMultipleConfigurationChangeListeners() 280 newConfig.densityDpi = 200; in testRemoveListenerDuringCallback() 289 newConfig.densityDpi = 200; in testDensityChangeCallback() 303 newConfig.fontScale = 2; in testFontScaleChangeCallback() 317 newConfig.smallestScreenWidthDp = 100; in testSmallestWidthChangeCallback() 331 newConfig.assetsSeq++; in testThemeChangeCallback() 361 newConfig.locale = Locale.US; in testLocaleChangeCallback() [all …]
|
/aosp14/frameworks/base/core/java/android/window/ |
H A D | ConfigurationHelper.java | 64 @NonNull Configuration newConfig, @NonNull Configuration overrideConfig, in shouldUpdateResources() argument 82 if (shouldUpdateWindowMetricsBounds(config, newConfig)) { in shouldUpdateResources() 86 if (isDisplayRotationChanged(config, newConfig)) { in shouldUpdateResources() 89 return configChanged == null ? config.diff(newConfig) != 0 : configChanged; in shouldUpdateResources() 110 @NonNull Configuration newConfig) { in shouldUpdateWindowMetricsBounds() argument 112 final Rect newBounds = newConfig.windowConfiguration.getBounds(); in shouldUpdateWindowMetricsBounds() 115 final Rect newMaxBounds = newConfig.windowConfiguration.getMaxBounds(); in shouldUpdateWindowMetricsBounds() 121 @NonNull Configuration newConfig) { in isDisplayRotationChanged() argument 123 final int newRot = newConfig.windowConfiguration.getDisplayRotation(); in isDisplayRotationChanged()
|
H A D | WindowTokenClient.java | 193 public void onConfigurationChanged(Configuration newConfig, int newDisplayId) { in onConfigurationChanged() argument 219 public void onConfigurationChanged(Configuration newConfig, int newDisplayId, in onConfigurationChanged() argument 225 CompatibilityInfo.applyOverrideScaleIfNeeded(newConfig); in onConfigurationChanged() 234 newConfig, newConfig /* overrideConfig */, displayChanged, in onConfigurationChanged() 236 diff = mConfiguration.diffPublicOnly(newConfig); in onConfigurationChanged() 239 mConfiguration.setTo(newConfig); in onConfigurationChanged() 247 + ", updated config=" + newConfig); in onConfigurationChanged() 251 mResourcesManager.updateResourcesForActivity(this, newConfig, newDisplayId); in onConfigurationChanged() 255 windowContext.dispatchConfigurationChanged(newConfig); in onConfigurationChanged() 262 windowProviderService.onConfigurationChanged(newConfig); in onConfigurationChanged() [all …]
|
H A D | SizeConfigurationBuckets.java | 109 @NonNull Configuration newConfig, @Nullable SizeConfigurationBuckets buckets) { in filterDiff() argument 115 areNonSizeLayoutFieldsUnchanged(oldConfig.screenLayout, newConfig.screenLayout); in filterDiff() 118 newConfig.screenWidthDp) in filterDiff() 120 newConfig.screenHeightDp); in filterDiff() 127 final int newSmallest = newConfig.smallestScreenWidthDp; in filterDiff() 133 if (!buckets.crossesScreenLayoutSizeThreshold(oldConfig, newConfig) in filterDiff() 135 newConfig.screenLayout)) { in filterDiff()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | ConfigurationControllerImpl.kt | 65 override fun onConfigurationChanged(newConfig: Configuration) { 70 it.onConfigChanged(newConfig) 72 val fontScale = newConfig.fontScale 73 val density = newConfig.densityDpi 74 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK 85 val smallestScreenWidth = newConfig.smallestScreenWidthDp 93 val maxBounds = newConfig.windowConfiguration.maxBounds 105 val localeList = newConfig.locales 124 if (layoutDirection != newConfig.layoutDirection) { 125 layoutDirection = newConfig.layoutDirection [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
H A D | ControlsActivityTest.kt | 79 val newConfig = Configuration(currentConfig) regex 80 newConfig.orientation = switchOrientation(currentConfig.orientation) 81 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } 89 val newConfig = Configuration(currentConfig) regex 90 swapHeightWidth(newConfig) 91 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } 99 val newConfig = Configuration(currentConfig) regex 100 newConfig.smallestScreenWidthDp *= 2 101 newConfig.screenWidthDp *= 2 102 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) }
|
/aosp14/frameworks/base/core/tests/coretests/src/android/inputmethodservice/ |
H A D | ImsConfigurationTrackerTest.java | 55 Configuration newConfig = new Configuration(config); in testShouldImeRestart() local 60 mImsConfigTracker.onConfigurationChanged(newConfig, resetStateRunner); in testShouldImeRestart() 65 newConfig.densityDpi = 99; in testShouldImeRestart() 66 mImsConfigTracker.onConfigurationChanged(newConfig, resetStateRunner); in testShouldImeRestart() 73 mImsConfigTracker.onConfigurationChanged(newConfig, resetStateRunner); in testShouldImeRestart()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/fragments/ |
H A D | FragmentService.java | 57 public void onConfigChanged(Configuration newConfig) { 59 state.sendConfigurationChange(newConfig); 134 public void sendConfigurationChange(Configuration newConfig) { in sendConfigurationChange() argument 135 mHandler.post(() -> handleSendConfigurationChange(newConfig)); in sendConfigurationChange() 142 private void handleSendConfigurationChange(Configuration newConfig) { in handleSendConfigurationChange() argument 143 mFragmentHostManager.onConfigurationChanged(newConfig); in handleSendConfigurationChange()
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | ZenModeHelper.java | 371 ZenModeConfig newConfig; in addAutomaticZenRule() local 379 newConfig = mConfig.copy(); in addAutomaticZenRule() 394 ZenModeConfig newConfig; in updateAutomaticZenRule() local 401 newConfig = mConfig.copy(); in updateAutomaticZenRule() 426 ZenModeConfig newConfig; in removeAutomaticZenRule() local 457 ZenModeConfig newConfig; in removeAutomaticZenRules() local 462 ZenRule rule = newConfig.automaticRules.get(newConfig.automaticRules.keyAt(i)); in removeAutomaticZenRules() 474 ZenModeConfig newConfig; in setAutomaticZenRuleState() local 488 ZenModeConfig newConfig; in setAutomaticZenRuleState() local 698 ZenModeConfig newConfig; in setManualZenMode() local [all …]
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | FragmentController.java | 275 Configuration newConfig) { in dispatchMultiWindowModeChanged() argument 276 mHost.mFragmentManager.dispatchMultiWindowModeChanged(isInMultiWindowMode, newConfig); in dispatchMultiWindowModeChanged() 300 Configuration newConfig) { in dispatchPictureInPictureModeChanged() argument 302 newConfig); in dispatchPictureInPictureModeChanged() 312 public void dispatchConfigurationChanged(Configuration newConfig) { in dispatchConfigurationChanged() argument 313 mHost.mFragmentManager.dispatchConfigurationChanged(newConfig); in dispatchConfigurationChanged()
|
H A D | ConfigurationController.java | 228 @NonNull Configuration newConfig) { in performConfigurationChanged() argument 241 newConfig, contextThemeWrapperOverrideConfig); in performConfigurationChanged() 293 Configuration newConfig = new Configuration(base); in createNewConfigAndUpdateIfNotNull() local 294 newConfig.updateFrom(override); in createNewConfigAndUpdateIfNotNull() 295 return newConfig; in createNewConfigAndUpdateIfNotNull()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
H A D | NotificationPanelView.java | 114 public void dispatchConfigurationChanged(Configuration newConfig) { in dispatchConfigurationChanged() argument 115 super.dispatchConfigurationChanged(newConfig); in dispatchConfigurationChanged() 116 mOnConfigurationChangedListener.onConfigurationChanged(newConfig); in dispatchConfigurationChanged() 128 void onConfigurationChanged(Configuration newConfig); in onConfigurationChanged() argument
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/power/ |
H A D | EnergyConsumerStatsTest.java | 152 assertThat(newConfig).isNotNull(); in testCreateAndReadConfigFromParcel() 155 assertThat(newConfig.isSupportedBucket(bucket)).isTrue(); in testCreateAndReadConfigFromParcel() 157 assertThat(newConfig.isSupportedBucket(bucket)).isFalse(); in testCreateAndReadConfigFromParcel() 160 assertThat(newConfig.isSupportedMultiStateBucket(bucket)).isTrue(); in testCreateAndReadConfigFromParcel() 162 assertThat(newConfig.isSupportedMultiStateBucket(bucket)).isFalse(); in testCreateAndReadConfigFromParcel() 165 assertThat(newConfig.getCustomBucketNames()).isEqualTo(new String[]{"A", "B"}); in testCreateAndReadConfigFromParcel() 179 assertThat(newConfig).isNull(); in testCreateAndReadConfigFromParcel_nullConfig() 250 final EnergyConsumerStats.Config newConfig = in testCreateAndReadSummaryFromParcel_configChange() local 255 EnergyConsumerStats.createAndReadSummaryFromParcel(newConfig, parcel); in testCreateAndReadSummaryFromParcel_configChange() 332 final EnergyConsumerStats.Config newConfig = in testCreateAndReadSummaryFromParcel_boring() local [all …]
|
/aosp14/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
H A D | ActivityThreadClientTest.java | 206 final Configuration newConfig = new Configuration(); in testShouldReportChange() local 210 shouldReportChange(currentConfig, newConfig, null /* sizeBuckets */, in testShouldReportChange() 221 newConfig.screenHeightDp = 300; in testShouldReportChange() 224 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange() 229 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange() 234 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange() 239 newConfig.fontScale = 1.2f; in testShouldReportChange() 242 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange() 246 newConfig.screenHeightDp = 500; in testShouldReportChange() 249 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
H A D | OngoingPrivacyChip.kt | 109 override fun onConfigurationChanged(newConfig: Configuration?) { 110 super.onConfigurationChanged(newConfig) 111 if (newConfig != null) { 112 val diff = newConfig.diff(configuration) 113 configuration.setTo(newConfig)
|
/aosp14/frameworks/base/core/java/android/inputmethodservice/ |
H A D | ImsConfigurationTracker.java | 86 public void onConfigurationChanged(@NonNull Configuration newConfig, in onConfigurationChanged() argument 92 ? mLastKnownConfig.diffPublicOnly(newConfig) : CONFIG_CHANGED; in onConfigurationChanged() 100 mLastKnownConfig = new Configuration(newConfig); in onConfigurationChanged()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sysui/ |
H A D | ShellController.java | 190 void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument 193 mLastConfiguration = new Configuration(newConfig); in onConfigurationChanged() 194 ProtoLog.v(WM_SHELL_SYSUI_EVENTS, "Initial Configuration: %s", newConfig); in onConfigurationChanged() 198 final int diff = newConfig.diff(mLastConfiguration); in onConfigurationChanged() 199 ProtoLog.v(WM_SHELL_SYSUI_EVENTS, "New configuration change: %s", newConfig); in onConfigurationChanged() 211 mLastConfiguration.updateFrom(newConfig); in onConfigurationChanged() 213 listener.onConfigurationChanged(newConfig); in onConfigurationChanged()
|
/aosp14/frameworks/base/services/tests/InputMethodSystemServerTests/test-apps/SimpleTestIme/src/com/android/apps/inputmethod/simpleime/ims/ |
H A D | InputMethodServiceWrapper.java | 94 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument 95 Log.i(TAG, "onConfigurationChanged() " + newConfig); in onConfigurationChanged() 96 super.onConfigurationChanged(newConfig); in onConfigurationChanged()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | ActivityRecordTests.java | 368 newConfig.orientation = newConfig.orientation == ORIENTATION_PORTRAIT in testNewParentConfigurationIncrementsSeq() 388 newConfig.orientation = newConfig.orientation == ORIENTATION_PORTRAIT in testSetsRelaunchReason_NotDragResizing() 413 newConfig.orientation = newConfig.orientation == ORIENTATION_PORTRAIT in testSetsRelaunchReason_DragResizing() 440 newConfig.orientation = newConfig.orientation == ORIENTATION_PORTRAIT in testRelaunchClearTopWaitingTranslucent() 461 newConfig.fontScale = 5; in testSetsRelaunchReason_NonResizeConfigChanges() 484 newConfig.orientation = newConfig.orientation == ORIENTATION_PORTRAIT in testDestroyedActivityNotScheduleConfigChanged() 564 final int shortSide = Math.min(newConfig.screenWidthDp, newConfig.screenHeightDp); in testSetRequestedOrientationUpdatesConfiguration() 565 final int longSide = Math.max(newConfig.screenWidthDp, newConfig.screenHeightDp); in testSetRequestedOrientationUpdatesConfiguration() 800 final int shortSide = Math.min(newConfig.screenWidthDp, newConfig.screenHeightDp); in testPushConfigurationWhenLaunchTaskBehind() 801 final int longSide = Math.max(newConfig.screenWidthDp, newConfig.screenHeightDp); in testPushConfigurationWhenLaunchTaskBehind() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | TestComponentCallbacks2.java | 29 public void onConfigurationChanged(@NonNull Configuration newConfig) { in onConfigurationChanged() argument 30 mConfiguration = newConfig; in onConfigurationChanged()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
H A D | ControlsActivity.kt | 98 override fun onConfigurationChanged(newConfig: Configuration) { 99 super.onConfigurationChanged(newConfig) 103 if (lastConfiguration.diff(newConfig) and interestingFlags != 0 ) { 106 lastConfiguration.setTo(newConfig)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/ |
H A D | MediaViewControllerTest.kt | 84 val newConfig = Configuration() regex 91 newConfig.orientation = ORIENTATION_LANDSCAPE 92 configurationController.onConfigurationChanged(newConfig) 106 val newConfig = Configuration() regex 114 newConfig.orientation = ORIENTATION_LANDSCAPE 115 configurationController.onConfigurationChanged(newConfig)
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/ |
H A D | DisplayStateInteractor.kt | 51 fun onConfigurationChanged(newConfig: Configuration) 102 override fun onConfigurationChanged(newConfig: Configuration) { 103 screenSizeFoldProvider.onConfigurationChange(newConfig)
|