Home
last modified time | relevance | path

Searched refs:newConfig (Results 1 – 25 of 266) sorted by relevance

1234567891011

/frameworks/base/core/tests/mockingcoretests/src/android/window/
DSizeConfigurationBucketsTest.java161 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 …]
DConfigurationHelperTest.java105 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/core/java/android/window/
DWindowTokenClient.java111 public void onConfigurationChanged(Configuration newConfig, int newDisplayId) { in onConfigurationChanged() argument
112 onConfigurationChanged(newConfig, newDisplayId, true /* shouldReportConfigChange */); in onConfigurationChanged()
119 public void postOnConfigurationChanged(@NonNull Configuration newConfig, int newDisplayId) { in postOnConfigurationChanged() argument
120 mHandler.post(PooledLambda.obtainRunnable(this::onConfigurationChanged, newConfig, in postOnConfigurationChanged()
143 public void onConfigurationChanged(@NonNull Configuration newConfig, int newDisplayId, in onConfigurationChanged() argument
155 onConfigurationChangedInner(context, newConfig, newDisplayId, in onConfigurationChanged()
161 onConfigurationChangedInner(context, newConfig, newDisplayId, shouldReportConfigChange); in onConfigurationChanged()
168 @NonNull Configuration newConfig, int newDisplayId, boolean shouldReportConfigChange) { in onConfigurationChangedInner() argument
169 CompatibilityInfo.applyOverrideScaleIfNeeded(newConfig); in onConfigurationChangedInner()
178 newConfig, newConfig /* overrideConfig */, displayChanged, in onConfigurationChangedInner()
[all …]
DConfigurationHelper.java64 @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()
DSizeConfigurationBuckets.java109 @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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/sysui/
DShellControllerTest.java271 Configuration newConfig = getConfigurationCopy(); in testAddConfigurationChangeListener_ensureCallback() local
272 newConfig.densityDpi = 200; in testAddConfigurationChangeListener_ensureCallback()
273 mController.onConfigurationChanged(newConfig); in testAddConfigurationChangeListener_ensureCallback()
282 Configuration newConfig = getConfigurationCopy(); in testDoubleAddConfigurationChangeListener_ensureSingleCallback() local
283 newConfig.densityDpi = 200; in testDoubleAddConfigurationChangeListener_ensureSingleCallback()
284 mController.onConfigurationChanged(newConfig); in testDoubleAddConfigurationChangeListener_ensureSingleCallback()
293 Configuration newConfig = getConfigurationCopy(); in testAddRemoveConfigurationChangeListener_ensureNoCallback() local
294 newConfig.densityDpi = 200; in testAddRemoveConfigurationChangeListener_ensureNoCallback()
295 mController.onConfigurationChanged(newConfig); in testAddRemoveConfigurationChangeListener_ensureNoCallback()
305 Configuration newConfig = getConfigurationCopy(); in testMultipleConfigurationChangeListeners() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImpl.kt72 override fun onConfigurationChanged(newConfig: Configuration) { in onConfigurationChanged()
78 it.onConfigChanged(newConfig) in onConfigurationChanged()
80 val fontScale = newConfig.fontScale in onConfigurationChanged()
81 val density = newConfig.densityDpi in onConfigurationChanged()
82 val uiMode = newConfig.uiMode and Configuration.UI_MODE_NIGHT_MASK in onConfigurationChanged()
93 val smallestScreenWidth = newConfig.smallestScreenWidthDp in onConfigurationChanged()
101 val maxBounds = newConfig.windowConfiguration.maxBounds in onConfigurationChanged()
113 val localeList = newConfig.locales in onConfigurationChanged()
132 if (layoutDirection != newConfig.layoutDirection) { in onConfigurationChanged()
133 layoutDirection = newConfig.layoutDirection in onConfigurationChanged()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlsActivityTest.kt79 val newConfig = Configuration(currentConfig) in testOrientationChangeForwardsToUiController() constant
80 newConfig.orientation = switchOrientation(currentConfig.orientation) in testOrientationChangeForwardsToUiController()
81 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } in testOrientationChangeForwardsToUiController()
89 val newConfig = Configuration(currentConfig) in testScreenChangeForwardsToUiController() constant
90 swapHeightWidth(newConfig) in testScreenChangeForwardsToUiController()
91 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } in testScreenChangeForwardsToUiController()
99 val newConfig = Configuration(currentConfig) in testChangeSmallestScreenSizeForwardsToUiController() constant
100 newConfig.smallestScreenWidthDp *= 2 in testChangeSmallestScreenSizeForwardsToUiController()
101 newConfig.screenWidthDp *= 2 in testChangeSmallestScreenSizeForwardsToUiController()
102 activityRule.runOnUiThread { activityRule.activity.onConfigurationChanged(newConfig) } in testChangeSmallestScreenSizeForwardsToUiController()
/frameworks/base/core/tests/coretests/src/android/inputmethodservice/
DImsConfigurationTrackerTest.java55 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/
DFragmentService.java57 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()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java474 ZenModeConfig newConfig; in addAutomaticZenRule() local
482 newConfig = mConfig.copy(); in addAutomaticZenRule()
485 rule = maybeRestoreRemovedRule(newConfig, rule, automaticZenRule, origin); in addAutomaticZenRule()
486 newConfig.automaticRules.put(rule.id, rule); in addAutomaticZenRule()
487 maybeReplaceDefaultRule(newConfig, automaticZenRule); in addAutomaticZenRule()
489 if (setConfigLocked(newConfig, origin, reason, rule.component, true, callingUid)) { in addAutomaticZenRule()
565 ZenModeConfig newConfig = mConfig.copy(); in updateAutomaticZenRule() local
566 ZenModeConfig.ZenRule newRule = requireNonNull(newConfig.automaticRules.get(ruleId)); in updateAutomaticZenRule()
583 return setConfigLocked(newConfig, origin, reason, in updateAutomaticZenRule()
614 ZenModeConfig newConfig = mConfig.copy(); in applyGlobalZenModeAsImplicitZenRule() local
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DActivityRefresher.java72 @NonNull Configuration newConfig, @NonNull Configuration lastReportedConfig) { in onActivityConfigurationChanging() argument
73 if (!shouldRefreshActivity(activity, newConfig, lastReportedConfig)) { in onActivityConfigurationChanging()
115 @NonNull Configuration newConfig, @NonNull Configuration lastReportedConfig) { in shouldRefreshActivity() argument
120 .shouldRefreshActivity(activity, newConfig, lastReportedConfig)) != null; in shouldRefreshActivity()
129 @NonNull Configuration newConfig, @NonNull Configuration lastReportedConfig); in shouldRefreshActivity() argument
/frameworks/base/core/java/android/app/
DFragmentController.java275 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()
/frameworks/base/core/java/android/inputmethodservice/
DImsConfigurationTracker.java86 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/packages/SystemUI/src/com/android/systemui/shade/
DNotificationPanelView.java133 public void dispatchConfigurationChanged(Configuration newConfig) { in dispatchConfigurationChanged() argument
134 super.dispatchConfigurationChanged(newConfig); in dispatchConfigurationChanged()
136 mOnConfigurationChangedListener.onConfigurationChanged(newConfig); in dispatchConfigurationChanged()
149 void onConfigurationChanged(Configuration newConfig); in onConfigurationChanged() argument
/frameworks/base/core/tests/coretests/src/com/android/internal/power/
DEnergyConsumerStatsTest.java153 final EnergyConsumerStats.Config newConfig = EnergyConsumerStats.Config.createFromParcel( in testCreateAndReadConfigFromParcel() local
156 assertThat(newConfig).isNotNull(); in testCreateAndReadConfigFromParcel()
159 assertThat(newConfig.isSupportedBucket(bucket)).isTrue(); in testCreateAndReadConfigFromParcel()
161 assertThat(newConfig.isSupportedBucket(bucket)).isFalse(); in testCreateAndReadConfigFromParcel()
164 assertThat(newConfig.isSupportedMultiStateBucket(bucket)).isTrue(); in testCreateAndReadConfigFromParcel()
166 assertThat(newConfig.isSupportedMultiStateBucket(bucket)).isFalse(); in testCreateAndReadConfigFromParcel()
169 assertThat(newConfig.getCustomBucketNames()).isEqualTo(new String[]{"A", "B"}); in testCreateAndReadConfigFromParcel()
170 assertThat(newConfig.getStateNames()).isEqualTo(new String[]{"state0", "state1", "state2"}); in testCreateAndReadConfigFromParcel()
180 final EnergyConsumerStats.Config newConfig = EnergyConsumerStats.Config.createFromParcel( in testCreateAndReadConfigFromParcel_nullConfig() local
183 assertThat(newConfig).isNull(); in testCreateAndReadConfigFromParcel_nullConfig()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DOngoingPrivacyChip.kt111 override fun onConfigurationChanged(newConfig: Configuration?) { in <lambda>()
112 super.onConfigurationChanged(newConfig) in <lambda>()
113 if (newConfig != null) { in <lambda>()
114 val diff = newConfig.diff(configuration) in <lambda>()
115 configuration.setTo(newConfig) in <lambda>()
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/
DActivityThreadClientTest.java207 final Configuration newConfig = new Configuration(); in testShouldReportChange() local
211 shouldReportChange(currentConfig, newConfig, null /* sizeBuckets */, in testShouldReportChange()
222 newConfig.screenHeightDp = 300; in testShouldReportChange()
225 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
230 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
235 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
240 newConfig.fontScale = 1.2f; in testShouldReportChange()
243 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
247 newConfig.screenHeightDp = 500; in testShouldReportChange()
250 shouldReportChange(currentConfig, newConfig, buckets, in testShouldReportChange()
/frameworks/base/services/tests/InputMethodSystemServerTests/test-apps/SimpleTestIme/src/com/android/apps/inputmethod/simpleime/ims/
DInputMethodServiceWrapper.java94 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument
95 Log.i(TAG, "onConfigurationChanged() " + newConfig); in onConfigurationChanged()
96 super.onConfigurationChanged(newConfig); in onConfigurationChanged()
/frameworks/base/core/tests/coretests/src/android/content/
DTestComponentCallbacks2.java29 public void onConfigurationChanged(@NonNull Configuration newConfig) { in onConfigurationChanged() argument
30 mConfiguration = newConfig; in onConfigurationChanged()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DShellBackAnimationRegistry.java139 void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument
141 mCustomizeActivityAnimation.onConfigurationChanged(newConfig); in onConfigurationChanged()
144 mDefaultCrossActivityAnimation.onConfigurationChanged(newConfig); in onConfigurationChanged()
147 mCrossTaskAnimation.onConfigurationChanged(newConfig); in onConfigurationChanged()
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/activity/
DTorusViewerActivity.kt100 override fun onConfigurationChanged(newConfig: Configuration) { in <lambda>()
101 super.onConfigurationChanged(newConfig) in <lambda>()
104 (wallpaperEngine as ConfigurationChangeListener).onConfigurationChanged(newConfig) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/data/repository/
DConfigurationRepository.kt83 override fun onConfigChanged(newConfig: Configuration) { in getResolutionScale()
99 override fun onConfigChanged(newConfig: Configuration) { in getResolutionScale()
111 override fun onConfigChanged(newConfig: Configuration) { in getResolutionScale()
112 trySend(newConfig) in getResolutionScale()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsActivity.kt98 override fun onConfigurationChanged(newConfig: Configuration) { in <lambda>()
99 super.onConfigurationChanged(newConfig) in <lambda>()
103 if (lastConfiguration.diff(newConfig) and interestingFlags != 0 ) { in <lambda>()
106 lastConfiguration.setTo(newConfig) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardSimPinView.java40 protected void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument
41 super.onConfigurationChanged(newConfig); in onConfigurationChanged()

1234567891011