Home
last modified time | relevance | path

Searched refs:oldConfig (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/tests/mockingcoretests/src/android/window/
DSizeConfigurationBucketsTest.java159 final Configuration oldConfig = new Configuration();
160 oldConfig.screenLayout |= SCREENLAYOUT_SIZE_SMALL;
163 final int filteredDiff = SizeConfigurationBuckets.filterDiff(diff, oldConfig, newConfig,
171 oldConfig, newConfig, sizeBuckets);
192 final Configuration oldConfig = new Configuration();
193 oldConfig.screenLayout |= SCREENLAYOUT_SIZE_SMALL;
196 final int filteredDiff = SizeConfigurationBuckets.filterDiff(diff, oldConfig, newConfig,
219 final Configuration oldConfig = new Configuration(); local
220 oldConfig.screenLayout |= sizeValuesInOrder[larger];
223 assertTrue(String.format("oldSize=%d, newSize=%d", oldConfig.screenLayout,
[all …]
/frameworks/base/core/java/android/window/
DSizeConfigurationBuckets.java108 public static int filterDiff(int diff, @NonNull Configuration oldConfig, in filterDiff() argument
115 areNonSizeLayoutFieldsUnchanged(oldConfig.screenLayout, newConfig.screenLayout); in filterDiff()
117 final boolean crosses = buckets.crossesHorizontalSizeThreshold(oldConfig.screenWidthDp, in filterDiff()
119 || buckets.crossesVerticalSizeThreshold(oldConfig.screenHeightDp, in filterDiff()
126 final int oldSmallest = oldConfig.smallestScreenWidthDp; in filterDiff()
133 if (!buckets.crossesScreenLayoutSizeThreshold(oldConfig, newConfig) in filterDiff()
134 && !buckets.crossesScreenLayoutLongThreshold(oldConfig.screenLayout, in filterDiff()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DNavigationBarView.java174 private void updateIcons(Configuration oldConfig) { in updateIcons() argument
175 final boolean orientationChange = oldConfig.orientation != mConfiguration.orientation; in updateIcons()
176 final boolean densityChange = oldConfig.densityDpi != mConfiguration.densityDpi; in updateIcons()
178 oldConfig.getLayoutDirection() != mConfiguration.getLayoutDirection(); in updateIcons()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMagnificationProcessorTest.java365 final MagnificationConfig oldConfig = new MagnificationConfig.Builder() in setWindowModeConfig_fullScreenMode_transitionConfigMode() local
370 setMagnificationActivated(TEST_DISPLAY, oldConfig); in setWindowModeConfig_fullScreenMode_transitionConfigMode()
386 final MagnificationConfig oldConfig = new MagnificationConfig.Builder() in setConfigWithDefaultMode_fullScreenMode_expectedConfig() local
391 setMagnificationActivated(TEST_DISPLAY, oldConfig); in setConfigWithDefaultMode_fullScreenMode_expectedConfig()
415 final MagnificationConfig oldConfig = new MagnificationConfig.Builder() in setWindowModeConfig_transitionToFullScreenModeWithAnimation_transitionConfigMode() local
420 setMagnificationActivated(TEST_DISPLAY, oldConfig); in setWindowModeConfig_transitionToFullScreenModeWithAnimation_transitionConfigMode()
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
DLocationTimeZoneProviderController.java238 ConfigurationInternal oldConfig = mCurrentUserConfiguration; in onConfigurationInternalChanged() local
242 if (!newConfig.equals(oldConfig)) { in onConfigurationInternalChanged()
243 if (newConfig.getUserId() != oldConfig.getUserId()) { in onConfigurationInternalChanged()
246 String reason = "User changed. old=" + oldConfig.getUserId() in onConfigurationInternalChanged()
253 alterProvidersStartedStateIfRequired(oldConfig, newConfig); in onConfigurationInternalChanged()
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java124 ZenModeConfig oldConfig, ZenModeConfig newConfig, int callingUid) { in traceConfig() argument
125 ZenModeDiff.ConfigDiff diff = new ZenModeDiff.ConfigDiff(oldConfig, newConfig); in traceConfig()
/frameworks/base/core/java/android/app/
DWindowConfiguration.java880 @NonNull Configuration oldConfig) { in areConfigurationsEqualForDisplay() argument
884 oldConfig.windowConfiguration.getMaxBounds())) { in areConfigurationsEqualForDisplay()
888 == oldConfig.windowConfiguration.getDisplayRotation(); in areConfigurationsEqualForDisplay()
DResourcesManager.java1275 final Configuration oldConfig = new Configuration(activityResources.overrideConfig); in updateResourcesForActivity() local
1297 + Configuration.resourceQualifierString(oldConfig) in updateResourcesForActivity()
DActivityThread.java6482 private boolean onlyDeskInUiModeChanged(Configuration oldConfig, Configuration newConfig) { in onlyDeskInUiModeChanged() argument
6483 boolean deskModeChanged = isInDeskUiMode(oldConfig) != isInDeskUiMode(newConfig); in onlyDeskInUiModeChanged()
6488 (oldConfig.uiMode & ~UI_MODE_TYPE_MASK) != (newConfig.uiMode & ~UI_MODE_TYPE_MASK); in onlyDeskInUiModeChanged()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DStandardWifiEntryTest.java968 WifiConfiguration oldConfig = new WifiConfiguration(entry.getWifiConfiguration()); in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue() local
969 assertThat(oldConfig.meteredOverride).isEqualTo(WifiConfiguration.METERED_OVERRIDE_NONE); in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue()
972 assertThat(oldConfig.macRandomizationSetting).isEqualTo( in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue()
974 oldConfig.macRandomizationSetting = WifiConfiguration.RANDOMIZATION_NONE; in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue()
976 .thenReturn(Collections.singletonList(oldConfig)); in testGetMeteredChoice_afterSetMeteredChoice_getCorrectValue()
996 WifiConfiguration oldConfig = new WifiConfiguration(entry.getWifiConfiguration()); in testGetPrivacy_afterSetPrivacy_getCorrectValue() local
997 assertThat(oldConfig.macRandomizationSetting).isEqualTo( in testGetPrivacy_afterSetPrivacy_getCorrectValue()
1001 assertThat(oldConfig.meteredOverride).isEqualTo(WifiConfiguration.METERED_OVERRIDE_NONE); in testGetPrivacy_afterSetPrivacy_getCorrectValue()
1002 oldConfig.meteredOverride = WifiConfiguration.METERED_OVERRIDE_METERED; in testGetPrivacy_afterSetPrivacy_getCorrectValue()
1004 .thenReturn(Collections.singletonList(oldConfig)); in testGetPrivacy_afterSetPrivacy_getCorrectValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationBarView.java460 private void updateIcons(Configuration oldConfig) { in updateIcons() argument
461 final boolean orientationChange = oldConfig.orientation != mConfiguration.orientation; in updateIcons()
462 final boolean densityChange = oldConfig.densityDpi != mConfiguration.densityDpi; in updateIcons()
463 … final boolean dirChange = oldConfig.getLayoutDirection() != mConfiguration.getLayoutDirection(); in updateIcons()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java1542 private boolean updateLinkPropertiesInPlaceIfPossible(NetworkAgent agent, VpnConfig oldConfig) { in updateLinkPropertiesInPlaceIfPossible() argument
1548 if (oldConfig.allowBypass != mConfig.allowBypass) { in updateLinkPropertiesInPlaceIfPossible()
1555 if (!Objects.equals(oldConfig.allowedApplications, mConfig.allowedApplications) || in updateLinkPropertiesInPlaceIfPossible()
1556 !Objects.equals(oldConfig.disallowedApplications, mConfig.disallowedApplications)) { in updateLinkPropertiesInPlaceIfPossible()
1736 VpnConfig oldConfig = mConfig; in establish() local
1775 if (oldConfig != null in establish()
1776 && updateLinkPropertiesInPlaceIfPossible(mNetworkAgent, oldConfig)) { in establish()
1778 if (!Arrays.equals(oldConfig.underlyingNetworks, config.underlyingNetworks)) { in establish()
1807 mConfig = oldConfig; in establish()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowOrganizerController.java2166 Configuration newConfig, @Nullable Configuration oldConfig) { in configurationsAreEqualForOrganizer() argument
2167 if (oldConfig == null) { in configurationsAreEqualForOrganizer()
2170 int cfgChanges = newConfig.diff(oldConfig); in configurationsAreEqualForOrganizer()
2172 ? (int) newConfig.windowConfiguration.diff(oldConfig.windowConfiguration, in configurationsAreEqualForOrganizer()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/
DLocationTimeZoneProviderControllerTest.java1706 ConfigurationInternal oldConfig = mConfigurationInternal; in simulateConfigChange() local
1708 if (Objects.equals(oldConfig, newConfig)) { in simulateConfigChange()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayContentTests.java1520 Configuration oldConfig = new Configuration(); in testOrientationChangeLogging() local
1521 oldConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testOrientationChangeLogging()
1527 Mockito.doReturn(oldConfig).doReturn(newConfig).when(displayContent).getConfiguration(); in testOrientationChangeLogging()