Home
last modified time | relevance | path

Searched refs:IpConfiguration (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/core/java/android/net/
DIpConfiguration.java34 public final class IpConfiguration implements Parcelable { class
96 public IpConfiguration() { in IpConfiguration() method in IpConfiguration
102 public IpConfiguration(IpAssignment ipAssignment, in IpConfiguration() method in IpConfiguration
109 public IpConfiguration(@NonNull IpConfiguration source) { in IpConfiguration() method in IpConfiguration
174 if (!(o instanceof IpConfiguration)) { in equals()
178 IpConfiguration other = (IpConfiguration) o; in equals()
207 public static final @NonNull Creator<IpConfiguration> CREATOR =
208 new Creator<IpConfiguration>() {
209 public IpConfiguration createFromParcel(Parcel in) {
210 IpConfiguration config = new IpConfiguration();
[all …]
DIEthernetManager.aidl19 import android.net.IpConfiguration;
31 IpConfiguration getConfiguration(String iface); in getConfiguration()
32 void setConfiguration(String iface, in IpConfiguration config); in setConfiguration()
DIpConfiguration.aidl19 parcelable IpConfiguration;
DEthernetManager.java102 public IpConfiguration getConfiguration(String iface) { in getConfiguration()
115 public void setConfiguration(String iface, IpConfiguration config) { in setConfiguration()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetConfigStore.java20 import android.net.IpConfiguration;
35 private ArrayMap<String, IpConfiguration> mIpConfigurations;
36 private IpConfiguration mIpConfigurationForDefaultInterface;
45 ArrayMap<String, IpConfiguration> configs = in read()
58 public void write(String iface, IpConfiguration config) { in write()
65 IpConfiguration oldConfig = mIpConfigurations.put(iface, config); in write()
75 public ArrayMap<String, IpConfiguration> getIpConfigurations() { in getIpConfigurations()
82 public IpConfiguration getIpConfigurationForDefaultInterface() { in getIpConfigurationForDefaultInterface()
85 ? null : new IpConfiguration(mIpConfigurationForDefaultInterface); in getIpConfigurationForDefaultInterface()
DEthernetTracker.java26 import android.net.IpConfiguration;
27 import android.net.IpConfiguration.IpAssignment;
28 import android.net.IpConfiguration.ProxySettings;
85 private final ConcurrentHashMap<String, IpConfiguration> mIpConfigurations =
104 private volatile IpConfiguration mIpConfigForDefaultInterface;
143 final ArrayMap<String, IpConfiguration> configs = mConfigStore.getIpConfigurations(); in start()
157 void updateIpConfiguration(String iface, IpConfiguration ipConfiguration) { in updateIpConfiguration()
168 IpConfiguration getIpConfiguration(String iface) { in getIpConfiguration()
310 IpConfiguration ipConfiguration = mIpConfigurations.get(iface); in addInterface()
458 IpConfiguration ipConfig = parseStaticIpConfiguration(tokens[2]); in parseEthernetConfig()
[all …]
DEthernetServiceImpl.java24 import android.net.IpConfiguration;
98 public IpConfiguration getConfiguration(String iface) { in getConfiguration()
105 return new IpConfiguration(mTracker.getIpConfiguration(iface)); in getConfiguration()
112 public void setConfiguration(String iface, IpConfiguration config) { in setConfiguration()
125 mTracker.updateIpConfiguration(iface, new IpConfiguration(config)); in setConfiguration()
DEthernetNetworkFactory.java26 import android.net.IpConfiguration;
27 import android.net.IpConfiguration.IpAssignment;
28 import android.net.IpConfiguration.ProxySettings;
146 IpConfiguration ipConfiguration) { in addInterface()
203 void updateIpConfiguration(String iface, IpConfiguration ipConfiguration) { in updateIpConfiguration()
258 private @Nullable IpConfiguration mIpConfig;
378 void setIpConfig(IpConfiguration ipConfig) { in setIpConfig()
550 private static void provisionIpClient(IIpClient ipClient, IpConfiguration config, in provisionIpClient()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DIpConfigStoreTest.java23 import android.net.IpConfiguration;
24 import android.net.IpConfiguration.IpAssignment;
25 import android.net.IpConfiguration.ProxySettings;
55 IpConfiguration expectedConfig = new IpConfiguration(IpAssignment.DHCP, in backwardCompatibility2to3()
62 ArrayMap<String, IpConfiguration> configurations = IpConfigStore.readIpConfigurations(in); in backwardCompatibility2to3()
66 IpConfiguration actualConfig = configurations.get(String.valueOf(KEY_CONFIG)); in backwardCompatibility2to3()
87 IpConfiguration expectedConfig1 = new IpConfiguration(IpAssignment.STATIC, in staticIpMultiNetworks()
89 IpConfiguration expectedConfig2 = new IpConfiguration(expectedConfig1); in staticIpMultiNetworks()
92 ArrayMap<String, IpConfiguration> expectedNetworks = new ArrayMap<>(); in staticIpMultiNetworks()
101 ArrayMap<String, IpConfiguration> actualNetworks = IpConfigStore.readIpConfigurations(in); in staticIpMultiNetworks()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java19 import android.net.IpConfiguration;
20 import android.net.IpConfiguration.IpAssignment;
21 import android.net.IpConfiguration.ProxySettings;
75 IpConfiguration config) throws IOException { in writeConfig()
81 IpConfiguration config, int version) throws IOException { in writeConfig()
183 final SparseArray<IpConfiguration> networks) { in writeIpAndProxyConfigurationsToFile()
193 ArrayMap<String, IpConfiguration> networks) { in writeIpConfigurations()
202 public static ArrayMap<String, IpConfiguration> readIpConfigurations(String filePath) { in readIpConfigurations()
217 public static SparseArray<IpConfiguration> readIpAndProxyConfigurations(String filePath) { in readIpAndProxyConfigurations()
232 public static SparseArray<IpConfiguration> readIpAndProxyConfigurations( in readIpAndProxyConfigurations()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java21 import android.net.IpConfiguration;
185 public static IpConfiguration generateIpConfig( in generateIpConfig()
191 IpConfiguration.IpAssignment ipAssignment = IpConfiguration.IpAssignment.UNASSIGNED; in generateIpConfig()
192 IpConfiguration.ProxySettings proxySettings = IpConfiguration.ProxySettings.UNASSIGNED; in generateIpConfig()
217 ipAssignment = IpConfiguration.IpAssignment.STATIC; in generateIpConfig()
219 ipAssignment = IpConfiguration.IpAssignment.DHCP; in generateIpConfig()
224 proxySettings = IpConfiguration.ProxySettings.STATIC; in generateIpConfig()
227 proxySettings = IpConfiguration.ProxySettings.PAC; in generateIpConfig()
229 proxySettings = IpConfiguration.ProxySettings.NONE; in generateIpConfig()
231 return new IpConfiguration(ipAssignment, proxySettings, staticIpConfiguration, proxyInfo); in generateIpConfig()
[all …]
DWifiBackupRestoreTest.java22 import android.net.IpConfiguration;
353 IpConfiguration ipConfiguration = new IpConfiguration(); in createNetworkForConfigurationWithUnsupportedTag()
354 ipConfiguration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in createNetworkForConfigurationWithUnsupportedTag()
355 ipConfiguration.setProxySettings(IpConfiguration.ProxySettings.NONE); in createNetworkForConfigurationWithUnsupportedTag()
406 IpConfiguration ipConfiguration = new IpConfiguration(); in createNetworkForConfigurationWithUnsupportedValuesInBitsetsInRestore()
407 ipConfiguration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in createNetworkForConfigurationWithUnsupportedValuesInBitsetsInRestore()
408 ipConfiguration.setProxySettings(IpConfiguration.ProxySettings.NONE); in createNetworkForConfigurationWithUnsupportedValuesInBitsetsInRestore()
984 IpConfiguration ipConfiguration = new IpConfiguration(); in createNetworkForConfigurationWithV1_0Data()
985 ipConfiguration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in createNetworkForConfigurationWithV1_0Data()
986 ipConfiguration.setProxySettings(IpConfiguration.ProxySettings.NONE); in createNetworkForConfigurationWithV1_0Data()
DWifiConfigManagerTest.java32 import android.net.IpConfiguration;
4142 IpConfiguration ipConf = WifiConfigurationTestUtil.createDHCPIpConfigurationWithPacProxy(); in testUpdateNetworkUnchangedProxy()
4170 IpConfiguration ipConf1 = in testUpdateNetworkDifferentProxy()
4177 IpConfiguration ipConf2 = in testUpdateNetworkDifferentProxy()
4258 IpConfiguration ipConf1 = in testUpdateNetworkRemoveProxy()
4265 IpConfiguration ipConf2 = in testUpdateNetworkRemoveProxy()
4614 IpConfiguration ipConfiguration, in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions()
4627 IpConfiguration ipConfiguration, in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions()
4694 if (configuration.getIpAssignment() == IpConfiguration.IpAssignment.UNASSIGNED) { in setDefaults()
4695 configuration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in setDefaults()
[all …]
DWifiConfigurationUtilTest.java22 import android.net.IpConfiguration;
476 IpConfiguration ipConfig = in testValidateNegativeCases_BadIpconfiguration()
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java22 import android.net.IpConfiguration;
23 import android.net.IpConfiguration.IpAssignment;
24 import android.net.IpConfiguration.ProxySettings;
99 IpConfiguration expectedIpConfiguration = new IpConfiguration(IpAssignment.STATIC, in assertStaticConfiguration()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java19 import android.net.IpConfiguration;
20 import android.net.IpConfiguration.IpAssignment;
21 import android.net.IpConfiguration.ProxySettings;
152 IpConfiguration ipConfiguration = config.getIpConfiguration(); in createGenericConfig()
245 IpConfiguration ipConfiguration = config.getIpConfiguration(); in getWifiConfiguration()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java19 import android.net.IpConfiguration;
20 import android.net.IpConfiguration.IpAssignment;
21 import android.net.IpConfiguration.ProxySettings;
185 IpConfiguration ipConfiguration = parseIpConfigurationFromXml(in, configTagDepth, in parseNetworkConfigurationFromXml()
412 private static IpConfiguration parseIpConfigurationFromXml(XmlPullParser in, in parseIpConfigurationFromXml()
487 IpConfiguration ipConfiguration = new IpConfiguration(); in parseIpConfigurationFromXml()
DWifiConfigurationUtil.java22 import android.net.IpConfiguration;
186 if (newConfig.getIpAssignment() == IpConfiguration.IpAssignment.STATIC) { in hasIpChanged()
205 return newConfig.getProxySettings() != IpConfiguration.ProxySettings.NONE; in hasProxyChanged()
539 private static boolean validateIpConfiguration(IpConfiguration ipConfig) { in validateIpConfiguration()
544 if (ipConfig.getIpAssignment() == IpConfiguration.IpAssignment.STATIC) { in validateIpConfiguration()
DNetworkListStoreData.java23 import android.net.IpConfiguration;
233 IpConfiguration ipConfiguration = null; in parseNetwork()
DWifiConfigManager.java29 import android.net.IpConfiguration;
1025 IpConfiguration.IpAssignment ipAssignment = externalConfig.getIpAssignment(); in mergeWithInternalWifiConfiguration()
1026 if (ipAssignment != IpConfiguration.IpAssignment.UNASSIGNED) { in mergeWithInternalWifiConfiguration()
1028 if (ipAssignment == IpConfiguration.IpAssignment.STATIC) { in mergeWithInternalWifiConfiguration()
1033 IpConfiguration.ProxySettings proxySettings = externalConfig.getProxySettings(); in mergeWithInternalWifiConfiguration()
1034 if (proxySettings != IpConfiguration.ProxySettings.UNASSIGNED) { in mergeWithInternalWifiConfiguration()
1036 if (proxySettings == IpConfiguration.ProxySettings.PAC in mergeWithInternalWifiConfiguration()
1037 || proxySettings == IpConfiguration.ProxySettings.STATIC) { in mergeWithInternalWifiConfiguration()
1082 configuration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in setDefaultsInWifiConfiguration()
1083 configuration.setProxySettings(IpConfiguration.ProxySettings.NONE); in setDefaultsInWifiConfiguration()
DWifiBackupRestore.java19 import android.net.IpConfiguration;
364 SparseArray<IpConfiguration> networks = in retrieveConfigurationsFromSupplicantBackupData()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java24 import android.net.IpConfiguration;
25 import android.net.IpConfiguration.ProxySettings;
651 private IpConfiguration mIpConfiguration;
1791 mIpConfiguration = new IpConfiguration(); in WifiConfiguration()
2245 public IpConfiguration getIpConfiguration() { in getIpConfiguration()
2251 public void setIpConfiguration(IpConfiguration ipConfiguration) { in setIpConfiguration()
2252 if (ipConfiguration == null) ipConfiguration = new IpConfiguration(); in setIpConfiguration()
2270 public IpConfiguration.IpAssignment getIpAssignment() { in getIpAssignment()
2276 public void setIpAssignment(IpConfiguration.IpAssignment ipAssignment) { in setIpAssignment()
2282 public IpConfiguration.ProxySettings getProxySettings() { in getProxySettings()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java20 import android.net.IpConfiguration;
21 import android.net.IpConfiguration.IpAssignment;
22 import android.net.IpConfiguration.ProxySettings;
815 public static void writeToXml(XmlSerializer out, IpConfiguration ipConfiguration) in writeToXml()
909 public static IpConfiguration parseFromXml(XmlPullParser in, int outerTagDepth) in parseFromXml()
911 IpConfiguration ipConfiguration = new IpConfiguration(); in parseFromXml()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java22 import android.net.IpConfiguration;
599 private void serializeDeserializeIpConfiguration(IpConfiguration configuration) in serializeDeserializeIpConfiguration()
614 IpConfiguration retrievedConfiguration = in serializeDeserializeIpConfiguration()
/frameworks/base/config/
Ddirty-image-objects121 android.net.IpConfiguration$IpAssignment
122 android.net.IpConfiguration$ProxySettings

12