/frameworks/base/core/tests/mockingcoretests/src/android/window/ |
D | SizeConfigurationBucketsTest.java | 161 final Configuration newConfig = new Configuration(); 162 newConfig.screenLayout |= SCREENLAYOUT_SIZE_NORMAL; 163 final int filteredDiff = SizeConfigurationBuckets.filterDiff(diff, oldConfig, newConfig, 169 newConfig.screenLayout |= SCREENLAYOUT_ROUND_YES; 171 oldConfig, newConfig, sizeBuckets); 194 final Configuration newConfig = new Configuration(); 195 newConfig.screenLayout |= SCREENLAYOUT_SIZE_NORMAL; 196 final int filteredDiff = SizeConfigurationBuckets.filterDiff(diff, oldConfig, newConfig, 221 final Configuration newConfig = new Configuration(); local 222 newConfig.screenLayout |= sizeValuesInOrder[smaller]; [all …]
|
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() 134 assertThat(ConfigurationHelper.shouldUpdateResources(new Binder(), config, newConfig, in testShouldUpdateResources_DifferentConfig_ReturnsTrue() 144 final Configuration newConfig = new Configuration(); in testShouldUpdateResources_DifferentNonPublicConfig_ReturnsTrue() local [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/sysui/ |
D | ShellControllerTest.java | 226 Configuration newConfig = getConfigurationCopy(); in testAddConfigurationChangeListener_ensureCallback() local 227 newConfig.densityDpi = 200; in testAddConfigurationChangeListener_ensureCallback() 228 mController.onConfigurationChanged(newConfig); in testAddConfigurationChangeListener_ensureCallback() 237 Configuration newConfig = getConfigurationCopy(); in testDoubleAddConfigurationChangeListener_ensureSingleCallback() local 238 newConfig.densityDpi = 200; in testDoubleAddConfigurationChangeListener_ensureSingleCallback() 239 mController.onConfigurationChanged(newConfig); in testDoubleAddConfigurationChangeListener_ensureSingleCallback() 248 Configuration newConfig = getConfigurationCopy(); in testAddRemoveConfigurationChangeListener_ensureNoCallback() local 249 newConfig.densityDpi = 200; in testAddRemoveConfigurationChangeListener_ensureNoCallback() 250 mController.onConfigurationChanged(newConfig); in testAddRemoveConfigurationChangeListener_ensureNoCallback() 260 Configuration newConfig = getConfigurationCopy(); in testMultipleConfigurationChangeListeners() local [all …]
|
/frameworks/base/core/java/android/window/ |
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()
|
D | WindowTokenClient.java | 192 public void onConfigurationChanged(Configuration newConfig, int newDisplayId) { in onConfigurationChanged() argument 193 mHandler.post(PooledLambda.obtainRunnable(this::onConfigurationChanged, newConfig, in onConfigurationChanged() 218 public void onConfigurationChanged(Configuration newConfig, int newDisplayId, in onConfigurationChanged() argument 232 newConfig, newConfig /* overrideConfig */, displayChanged, in onConfigurationChanged() 234 diff = mConfiguration.diffPublicOnly(newConfig); in onConfigurationChanged() 237 mConfiguration.setTo(newConfig); in onConfigurationChanged() 245 + ", updated config=" + newConfig); in onConfigurationChanged() 249 mResourcesManager.updateResourcesForActivity(this, newConfig, newDisplayId); in onConfigurationChanged() 253 windowContext.dispatchConfigurationChanged(newConfig); in onConfigurationChanged() 260 windowProviderService.onConfigurationChanged(newConfig); in onConfigurationChanged() [all …]
|
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlsActivityTest.kt | 83 val newConfig = Configuration(currentConfig) in testOrientationChangeForwardsToUiController() constant 84 newConfig.orientation = switchOrientation(currentConfig.orientation) in testOrientationChangeForwardsToUiController() 85 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } in testOrientationChangeForwardsToUiController() 93 val newConfig = Configuration(currentConfig) in testScreenChangeForwardsToUiController() constant 94 swapHeightWidth(newConfig) in testScreenChangeForwardsToUiController() 95 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } in testScreenChangeForwardsToUiController() 103 val newConfig = Configuration(currentConfig) in testChangeSmallestScreenSizeForwardsToUiController() constant 104 newConfig.smallestScreenWidthDp *= 2 in testChangeSmallestScreenSizeForwardsToUiController() 105 newConfig.screenWidthDp *= 2 in testChangeSmallestScreenSizeForwardsToUiController() 106 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } in testChangeSmallestScreenSizeForwardsToUiController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImpl.kt | 66 override fun onConfigurationChanged(newConfig: Configuration) { in onConfigurationChanged() 71 it.onConfigChanged(newConfig) in onConfigurationChanged() 73 val fontScale = newConfig.fontScale in onConfigurationChanged() 74 val density = newConfig.densityDpi in onConfigurationChanged() 75 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK in onConfigurationChanged() 86 val smallestScreenWidth = newConfig.smallestScreenWidthDp in onConfigurationChanged() 94 val maxBounds = newConfig.windowConfiguration.maxBounds in onConfigurationChanged() 106 val localeList = newConfig.locales in onConfigurationChanged() 125 if (layoutDirection != newConfig.layoutDirection) { in onConfigurationChanged() 126 layoutDirection = newConfig.layoutDirection in onConfigurationChanged() [all …]
|
/frameworks/base/core/tests/coretests/src/android/inputmethodservice/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/fragments/ |
D | FragmentService.java | 61 public void onConfigChanged(Configuration newConfig) { 63 state.sendConfigurationChange(newConfig); 161 public void sendConfigurationChange(Configuration newConfig) { in sendConfigurationChange() argument 162 mHandler.post(() -> handleSendConfigurationChange(newConfig)); in sendConfigurationChange() 169 private void handleSendConfigurationChange(Configuration newConfig) { in handleSendConfigurationChange() argument 170 mFragmentHostManager.onConfigurationChanged(newConfig); in handleSendConfigurationChange()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 352 ZenModeConfig newConfig; in addAutomaticZenRule() local 360 newConfig = mConfig.copy(); in addAutomaticZenRule() 363 newConfig.automaticRules.put(rule.id, rule); in addAutomaticZenRule() 364 if (setConfigLocked(newConfig, reason, rule.component, true)) { in addAutomaticZenRule() 374 ZenModeConfig newConfig; in updateAutomaticZenRule() local 381 newConfig = mConfig.copy(); in updateAutomaticZenRule() 386 rule = newConfig.automaticRules.get(ruleId); in updateAutomaticZenRule() 399 return setConfigLocked(newConfig, reason, rule.component, true); in updateAutomaticZenRule() 404 ZenModeConfig newConfig; in removeAutomaticZenRule() local 407 newConfig = mConfig.copy(); in removeAutomaticZenRule() [all …]
|
/frameworks/base/core/java/android/app/ |
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()
|
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationPanelView.java | 116 public void dispatchConfigurationChanged(Configuration newConfig) { in dispatchConfigurationChanged() argument 117 super.dispatchConfigurationChanged(newConfig); in dispatchConfigurationChanged() 118 mOnConfigurationChangedListener.onConfigurationChanged(newConfig); in dispatchConfigurationChanged() 130 void onConfigurationChanged(Configuration newConfig); in onConfigurationChanged() argument
|
/frameworks/base/core/java/android/inputmethodservice/ |
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()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/power/ |
D | MeasuredEnergyStatsTest.java | 152 final MeasuredEnergyStats.Config newConfig = MeasuredEnergyStats.Config.createFromParcel( in testCreateAndReadConfigFromParcel() local 155 assertThat(newConfig).isNotNull(); in testCreateAndReadConfigFromParcel() 158 assertThat(newConfig.isSupportedBucket(bucket)).isTrue(); in testCreateAndReadConfigFromParcel() 160 assertThat(newConfig.isSupportedBucket(bucket)).isFalse(); in testCreateAndReadConfigFromParcel() 163 assertThat(newConfig.isSupportedMultiStateBucket(bucket)).isTrue(); in testCreateAndReadConfigFromParcel() 165 assertThat(newConfig.isSupportedMultiStateBucket(bucket)).isFalse(); in testCreateAndReadConfigFromParcel() 168 assertThat(newConfig.getCustomBucketNames()).isEqualTo(new String[]{"A", "B"}); in testCreateAndReadConfigFromParcel() 169 assertThat(newConfig.getStateNames()).isEqualTo(new String[]{"state0", "state1", "state2"}); in testCreateAndReadConfigFromParcel() 179 final MeasuredEnergyStats.Config newConfig = MeasuredEnergyStats.Config.createFromParcel( in testCreateAndReadConfigFromParcel_nullConfig() local 182 assertThat(newConfig).isNull(); in testCreateAndReadConfigFromParcel_nullConfig() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | TestComponentCallbacks2.java | 29 public void onConfigurationChanged(@NonNull Configuration newConfig) { in onConfigurationChanged() argument 30 mConfiguration = newConfig; in onConfigurationChanged()
|
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
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() 228 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange() 232 newConfig.fontScale = 1.2f; in testShouldReportChange() 235 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange() 238 newConfig.screenHeightDp = 500; in testShouldReportChange() 241 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sysui/ |
D | ShellController.java | 185 void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument 188 mLastConfiguration = new Configuration(newConfig); in onConfigurationChanged() 189 ProtoLog.v(WM_SHELL_SYSUI_EVENTS, "Initial Configuration: %s", newConfig); in onConfigurationChanged() 193 final int diff = newConfig.diff(mLastConfiguration); in onConfigurationChanged() 194 ProtoLog.v(WM_SHELL_SYSUI_EVENTS, "New configuration change: %s", newConfig); in onConfigurationChanged() 206 mLastConfiguration.updateFrom(newConfig); in onConfigurationChanged() 208 listener.onConfigurationChanged(newConfig); in onConfigurationChanged()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityRecordTests.java | 353 final Configuration newConfig = new Configuration(); in testNewOverrideConfigurationIncrementsSeq() local 356 activity.onRequestedOverrideConfigurationChanged(newConfig); in testNewOverrideConfigurationIncrementsSeq() 364 final Configuration newConfig = new Configuration( in testNewParentConfigurationIncrementsSeq() local 366 newConfig.orientation = newConfig.orientation == ORIENTATION_PORTRAIT in testNewParentConfigurationIncrementsSeq() 370 task.onRequestedOverrideConfigurationChanged(newConfig); in testNewParentConfigurationIncrementsSeq() 385 final Configuration newConfig = new Configuration(task.getConfiguration()); in testSetsRelaunchReason_NotDragResizing() local 386 newConfig.orientation = newConfig.orientation == ORIENTATION_PORTRAIT in testSetsRelaunchReason_NotDragResizing() 389 task.onRequestedOverrideConfigurationChanged(newConfig); in testSetsRelaunchReason_NotDragResizing() 410 final Configuration newConfig = new Configuration(task.getConfiguration()); in testSetsRelaunchReason_DragResizing() local 411 newConfig.orientation = newConfig.orientation == ORIENTATION_PORTRAIT in testSetsRelaunchReason_DragResizing() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | ControlsActivity.kt | 100 override fun onConfigurationChanged(newConfig: Configuration) { in <lambda>() 101 super.onConfigurationChanged(newConfig) in <lambda>() 105 if (lastConfiguration.diff(newConfig) and interestingFlags != 0 ) { in <lambda>() 108 lastConfiguration = newConfig in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | DisplayController.java | 198 private void onDisplayConfigurationChanged(int displayId, Configuration newConfig) { in onDisplayConfigurationChanged() argument 215 final Context context = perDisplayContext.createConfigurationContext(newConfig); in onDisplayConfigurationChanged() 219 displayId, newConfig); in onDisplayConfigurationChanged() 310 public void onDisplayConfigurationChanged(int displayId, Configuration newConfig) { in onDisplayConfigurationChanged() argument 312 DisplayController.this.onDisplayConfigurationChanged(displayId, newConfig); in onDisplayConfigurationChanged() 363 default void onDisplayConfigurationChanged(int displayId, Configuration newConfig) {} in onDisplayConfigurationChanged() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/ |
D | MediaViewControllerTest.kt | 83 val newConfig = Configuration() in <lambda>() constant 90 newConfig.orientation = ORIENTATION_LANDSCAPE in <lambda>() 91 configurationController.onConfigurationChanged(newConfig) in <lambda>() 105 val newConfig = Configuration() in <lambda>() constant 113 newConfig.orientation = ORIENTATION_LANDSCAPE in <lambda>() 114 configurationController.onConfigurationChanged(newConfig) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSimPinView.java | 40 protected void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument 41 super.onConfigurationChanged(newConfig); in onConfigurationChanged()
|
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/compat/ |
D | ScreenSizeFoldProvider.kt | 46 fun onConfigurationChange(newConfig: Configuration) { in onConfigurationChange() 48 newConfig.smallestScreenWidthDp < INNER_SCREEN_SMALLEST_SCREEN_WIDTH_THRESHOLD_DP in onConfigurationChange()
|