Home
last modified time | relevance | path

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

1234

/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_test.cpp142 StatsdConfig newConfig; in TEST_F() local
143 newConfig.add_allowed_log_source("AID_ROOT"); in TEST_F()
145 *newConfig.add_atom_matcher() = screenOnMatcher; in TEST_F()
146 *newConfig.add_atom_matcher() = batteryPluggedUsbMatcher; in TEST_F()
147 *newConfig.add_atom_matcher() = syncStartMatcher; in TEST_F()
148 *newConfig.add_atom_matcher() = *combinationMatcher; in TEST_F()
149 *newConfig.add_atom_matcher() = wakelockAcquireMatcher; in TEST_F()
150 *newConfig.add_atom_matcher() = screenOffMatcher; in TEST_F()
151 *newConfig.add_atom_matcher() = unpluggedMatcher; in TEST_F()
152 *newConfig.add_predicate() = *combinationPredicate; in TEST_F()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConfigurationUtil.java188 WifiConfiguration newConfig) { in hasIpChanged() argument
189 if (existingConfig.getIpAssignment() != newConfig.getIpAssignment()) { in hasIpChanged()
192 if (newConfig.getIpAssignment() == IpConfiguration.IpAssignment.STATIC) { in hasIpChanged()
194 newConfig.getStaticIpConfiguration()); in hasIpChanged()
209 WifiConfiguration newConfig) { in hasProxyChanged() argument
211 return newConfig.getProxySettings() != IpConfiguration.ProxySettings.NONE; in hasProxyChanged()
213 if (newConfig.getProxySettings() != existingConfig.getProxySettings()) { in hasProxyChanged()
216 return !Objects.equals(existingConfig.getHttpProxy(), newConfig.getHttpProxy()); in hasProxyChanged()
230 WifiConfiguration newConfig) { in hasRepeaterEnabledChanged() argument
232 return newConfig.isRepeaterEnabled(); in hasRepeaterEnabledChanged()
[all …]
DSoftApManager.java294 private void updateChangeableConfiguration(SoftApConfiguration newConfig) { in updateChangeableConfiguration() argument
295 if (mCurrentSoftApConfiguration == null || newConfig == null) { in updateChangeableConfiguration()
301 long newShutdownTimeoutMillis = newConfig.getShutdownTimeoutMillis(); in updateChangeableConfiguration()
311 .setAllowedClientList(newConfig.getAllowedClientList()) in updateChangeableConfiguration()
312 .setBlockedClientList(newConfig.getBlockedClientList()) in updateChangeableConfiguration()
313 .setClientControlByUserEnabled(newConfig.isClientControlByUserEnabled()) in updateChangeableConfiguration()
314 .setMaxNumberOfClients(newConfig.getMaxNumberOfClients()) in updateChangeableConfiguration()
316 .setAutoShutdownEnabled(newConfig.isAutoShutdownEnabled()); in updateChangeableConfiguration()
319 newConfig.isBridgedModeOpportunisticShutdownEnabledInternal()); in updateChangeableConfiguration()
1070 SoftApConfiguration newConfig = (SoftApConfiguration) message.obj; in processMessage() local
[all …]
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/hal/test/
DAidlVehiclePropConfigBuilder.java48 VehiclePropConfig newConfig = new VehiclePropConfig(); in clone() local
50 newConfig.prop = propConfig.prop; in clone()
51 newConfig.access = propConfig.access; in clone()
52 newConfig.changeMode = propConfig.changeMode; in clone()
53 newConfig.configString = propConfig.configString; in clone()
54 newConfig.minSampleRate = propConfig.minSampleRate; in clone()
55 newConfig.maxSampleRate = propConfig.maxSampleRate; in clone()
56 newConfig.configArray = propConfig.configArray.clone(); in clone()
57 newConfig.areaConfigs = new VehicleAreaConfig[propConfig.areaConfigs.length]; in clone()
58 newConfig.areaConfigs = duplicateAreaConfig(propConfig.areaConfigs); in clone()
[all …]
DHidlVehiclePropConfigBuilder.java47 VehiclePropConfig newConfig = new VehiclePropConfig(); in clone() local
49 newConfig.prop = propConfig.prop; in clone()
50 newConfig.access = propConfig.access; in clone()
51 newConfig.changeMode = propConfig.changeMode; in clone()
52 newConfig.configString = propConfig.configString; in clone()
53 newConfig.minSampleRate = propConfig.minSampleRate; in clone()
54 newConfig.maxSampleRate = propConfig.maxSampleRate; in clone()
55 newConfig.configArray.addAll(propConfig.configArray); in clone()
65 newConfig.areaConfigs.add(newArea); in clone()
68 return newConfig; in clone()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp153 StatsdConfig newConfig; in TEST_F() local
158 *newConfig.add_atom_matcher() = newMatcher; in TEST_F()
164 EXPECT_TRUE(determineMatcherUpdateStatus(newConfig, 0, oldAtomMatchingTrackerMap, in TEST_F()
177 StatsdConfig newConfig; in TEST_F() local
182 *newConfig.add_atom_matcher() = newMatcher; in TEST_F()
188 EXPECT_TRUE(determineMatcherUpdateStatus(newConfig, 0, oldAtomMatchingTrackerMap, in TEST_F()
215 StatsdConfig newConfig; in TEST_F() local
218 *newConfig.add_atom_matcher() = matcher2; in TEST_F()
220 *newConfig.add_atom_matcher() = matcher3; in TEST_F()
222 *newConfig.add_atom_matcher() = matcher1; in TEST_F()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/statemanager/
DStatefulActivity.java208 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument
209 handleConfigurationChanged(newConfig); in onConfigurationChanged()
210 super.onConfigurationChanged(newConfig); in onConfigurationChanged()
217 public void handleConfigurationChanged(Configuration newConfig) { in handleConfigurationChanged() argument
218 int diff = newConfig.diff(mOldConfig); in handleConfigurationChanged()
225 mOldConfig.setTo(newConfig); in handleConfigurationChanged()
/packages/apps/Settings/src/com/android/settings/wifi/details2/
DWifiMeteredPreferenceController2.java95 final WifiConfiguration newConfig = dialog.getController().getConfig(); in onSubmit() local
96 if (newConfig == null) { in onSubmit()
100 if (getWifiEntryMeteredChoice(newConfig) != mWifiEntry.getMeteredChoice()) { in onSubmit()
101 mWifiEntry.setMeteredChoice(getWifiEntryMeteredChoice(newConfig)); in onSubmit()
102 onPreferenceChange(mPreference, String.valueOf(newConfig.meteredOverride)); in onSubmit()
DWifiPrivacyPreferenceController2.java135 final WifiConfiguration newConfig = dialog.getController().getConfig(); in onSubmit() local
136 if (newConfig == null) { in onSubmit()
140 if (getWifiEntryPrivacy(newConfig) != mWifiEntry.getPrivacy()) { in onSubmit()
141 mWifiEntry.setPrivacy(getWifiEntryPrivacy(newConfig)); in onSubmit()
142 onPreferenceChange(mPreference, String.valueOf(newConfig.macRandomizationSetting)); in onSubmit()
/packages/modules/StatsD/statsd/tests/
DMetricsManager_test.cpp228 StatsdConfig newConfig; in TEST() local
229 newConfig.add_allowed_log_source("AID_ROOT"); in TEST()
230 newConfig.add_allowed_log_source(app2); in TEST()
231 newConfig.add_default_pull_packages("AID_SYSTEM"); in TEST()
232 newConfig.add_default_pull_packages("AID_STATSD"); in TEST()
234 pullAtomPackages = newConfig.add_pull_atom_packages(); in TEST()
239 pullAtomPackages = newConfig.add_pull_atom_packages(); in TEST()
244 metricsManager.updateConfig(newConfig, timeBaseSec, timeBaseSec, anomalyAlarmMonitor, in TEST()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/face/
DFaceEnrollEducationTest.java198 final Configuration newConfig = new Configuration(); in testFaceEnrollEducationWithPosture_onFoldedUpdated_unFolded() local
199 newConfig.smallestScreenWidthDp = DENSITY_XXXHIGH; in testFaceEnrollEducationWithPosture_onFoldedUpdated_unFolded()
206 mActivity.onConfigurationChanged(newConfig); in testFaceEnrollEducationWithPosture_onFoldedUpdated_unFolded()
213 final Configuration newConfig = new Configuration(); in testFaceEnrollEducationWithPosture_onFoldedUpdated_folded() local
214 newConfig.smallestScreenWidthDp = DENSITY_DEFAULT; in testFaceEnrollEducationWithPosture_onFoldedUpdated_folded()
221 mActivity.onConfigurationChanged(newConfig); in testFaceEnrollEducationWithPosture_onFoldedUpdated_folded()
DFaceEnrollIntroductionTest.java380 final Configuration newConfig = new Configuration(); in testFaceEnrollIntroduction_onFoldedUpdated_unFolded() local
381 newConfig.smallestScreenWidthDp = DENSITY_XXXHIGH; in testFaceEnrollIntroduction_onFoldedUpdated_unFolded()
388 mSpyActivity.onConfigurationChanged(newConfig); in testFaceEnrollIntroduction_onFoldedUpdated_unFolded()
395 final Configuration newConfig = new Configuration(); in testFaceEnrollIntroduction_onFoldedUpdated_folded() local
396 newConfig.smallestScreenWidthDp = DENSITY_DEFAULT; in testFaceEnrollIntroduction_onFoldedUpdated_folded()
403 mSpyActivity.onConfigurationChanged(newConfig); in testFaceEnrollIntroduction_onFoldedUpdated_folded()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackActivity.java69 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument
70 super.onConfigurationChanged(newConfig); in onConfigurationChanged()
73 (int) (newConfig.screenWidthDp * density), in onConfigurationChanged()
74 (int) (newConfig.screenHeightDp * density)); in onConfigurationChanged()
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DInitialConfigurationTest.java86 final InitialConfiguration newConfig = InitialConfiguration.copy(mConfig); in assertNotEqualsAfterChange() local
87 mutator.accept(newConfig); in assertNotEqualsAfterChange()
88 assertNotEquals(mConfig, newConfig); in assertNotEqualsAfterChange()
/packages/apps/Dialer/java/com/android/dialer/app/settings/
DAppCompatPreferenceActivity.java93 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument
94 super.onConfigurationChanged(newConfig); in onConfigurationChanged()
95 getDelegate().onConfigurationChanged(newConfig); in onConfigurationChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherApBandPreferenceController.java67 SoftApConfiguration newConfig = new SoftApConfiguration.Builder(config) in updateState() local
70 setCarSoftApConfig(newConfig); in updateState()
71 mBand = newConfig.getBand(); in updateState()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertDialogTest.java326 Configuration newConfig = new Configuration(); in testOnConfigurationChanged() local
332 newConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testOnConfigurationChanged()
333 activity.onConfigurationChanged(newConfig); in testOnConfigurationChanged()
336 newConfig.orientation = Configuration.ORIENTATION_PORTRAIT; in testOnConfigurationChanged()
337 activity.onConfigurationChanged(newConfig); in testOnConfigurationChanged()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarManager.java151 public void onConfigurationChanged(Configuration newConfig) { in TaskbarManager()
153 "TaskbarManager#mComponentCallbacks.onConfigurationChanged: " + newConfig); in TaskbarManager()
157 int configDiff = mOldConfig.diff(newConfig); in TaskbarManager()
180 int newUiNightMode = (newConfig.uiMode & Configuration.UI_MODE_NIGHT_MASK); in TaskbarManager()
204 mOldConfig = newConfig; in TaskbarManager()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java1087 SoftApConfiguration currentConfig, SoftApConfiguration newConfig) { in checkConfigurationChangeNeedToRestart() argument
1088 return !Objects.equals(currentConfig.getWifiSsid(), newConfig.getWifiSsid()) in checkConfigurationChangeNeedToRestart()
1089 || !Objects.equals(currentConfig.getBssid(), newConfig.getBssid()) in checkConfigurationChangeNeedToRestart()
1090 || currentConfig.getSecurityType() != newConfig.getSecurityType() in checkConfigurationChangeNeedToRestart()
1091 || !Objects.equals(currentConfig.getPassphrase(), newConfig.getPassphrase()) in checkConfigurationChangeNeedToRestart()
1092 || currentConfig.isHiddenSsid() != newConfig.isHiddenSsid() in checkConfigurationChangeNeedToRestart()
1093 || currentConfig.getBand() != newConfig.getBand() in checkConfigurationChangeNeedToRestart()
1094 || currentConfig.getChannel() != newConfig.getChannel() in checkConfigurationChangeNeedToRestart()
1096 .equals(newConfig.getChannels().toString())); in checkConfigurationChangeNeedToRestart()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationUtilTest.java1136 WifiConfiguration newConfig = new WifiConfiguration(); in testHasMacRandomizationSettingsChangedNullExistingConfigDefaultNewConfig() local
1137 assertFalse(WifiConfigurationUtil.hasMacRandomizationSettingsChanged(null, newConfig)); in testHasMacRandomizationSettingsChangedNullExistingConfigDefaultNewConfig()
1146 WifiConfiguration newConfig = new WifiConfiguration(); in testHasMacRandomizationSettingsChangedNullExistingConfigModifiedNewConfig() local
1147 newConfig.macRandomizationSetting = WifiConfiguration.RANDOMIZATION_NONE; in testHasMacRandomizationSettingsChangedNullExistingConfigModifiedNewConfig()
1148 assertTrue(WifiConfigurationUtil.hasMacRandomizationSettingsChanged(null, newConfig)); in testHasMacRandomizationSettingsChangedNullExistingConfigModifiedNewConfig()
1158 WifiConfiguration newConfig = new WifiConfiguration(); in testHasMacRandomizationSettingsChangedFieldsDifferent() local
1159 newConfig.macRandomizationSetting = WifiConfiguration.RANDOMIZATION_NONE; in testHasMacRandomizationSettingsChangedFieldsDifferent()
1161 existingConfig, newConfig)); in testHasMacRandomizationSettingsChangedFieldsDifferent()
1172 WifiConfiguration newConfig = new WifiConfiguration(); in testHasMacRandomizationSettingsChangedFieldsSame() local
1173 newConfig.macRandomizationSetting = WifiConfiguration.RANDOMIZATION_NONE; in testHasMacRandomizationSettingsChangedFieldsSame()
[all …]
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferenceActivity.java151 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument
152 super.onConfigurationChanged(newConfig); in onConfigurationChanged()
153 mCompatDelegate.onConfigurationChanged(newConfig); in onConfigurationChanged()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DControlBarActivity.java58 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument
59 super.onConfigurationChanged(newConfig); in onConfigurationChanged()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java928 PasspointConfiguration newConfig = createTestConfigWithUserCredential(TEST_FQDN, in addSavedProviderWithExistingConfig() local
930 PasspointProvider newProvider = createMockProvider(newConfig); in addSavedProviderWithExistingConfig()
931 when(mObjectFactory.makePasspointProvider(eq(newConfig), eq(mWifiKeyStore), in addSavedProviderWithExistingConfig()
936 assertTrue(mManager.addOrUpdateProvider(newConfig, TEST_CREATOR_UID, TEST_PACKAGE, in addSavedProviderWithExistingConfig()
943 assertTrue(installedConfigs.contains(newConfig)); in addSavedProviderWithExistingConfig()
952 assertTrue(newConfig.equals(newProviders.get(0).getConfig()) in addSavedProviderWithExistingConfig()
953 || newConfig.equals(newProviders.get(1).getConfig())); in addSavedProviderWithExistingConfig()
2170 PasspointConfiguration newConfig = createTestConfigWithUserCredential(TEST_FQDN, in addSuggestionProviderWithExistingConfig() local
2172 PasspointProvider newProvider = createMockProvider(newConfig); in addSuggestionProviderWithExistingConfig()
2175 when(mObjectFactory.makePasspointProvider(eq(newConfig), eq(mWifiKeyStore), in addSuggestionProviderWithExistingConfig()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/app/
DChannelPanelActivity.java68 public void onConfigurationChanged(@NonNull Configuration newConfig) { in onConfigurationChanged() argument
69 super.onConfigurationChanged(newConfig); in onConfigurationChanged()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/volume/
DVolumeUI.java109 public void onConfigurationChanged(Configuration newConfig) { in onConfigurationChanged() argument
112 mVolumeDialogComponent.onConfigurationChanged(newConfig); in onConfigurationChanged()

1234