Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DIpConfiguration.java30 public class IpConfiguration implements Parcelable { class
82 public IpConfiguration() { in IpConfiguration() method in IpConfiguration
87 public IpConfiguration(IpAssignment ipAssignment, in IpConfiguration() method in IpConfiguration
94 public IpConfiguration(IpConfiguration source) { in IpConfiguration() method in IpConfiguration
159 if (!(o instanceof IpConfiguration)) { in equals()
163 IpConfiguration other = (IpConfiguration) o; in equals()
192 public static final @android.annotation.NonNull Creator<IpConfiguration> CREATOR =
193 new Creator<IpConfiguration>() {
194 public IpConfiguration createFromParcel(Parcel in) {
195 IpConfiguration config = new IpConfiguration();
[all …]
DIEthernetManager.aidl19 import android.net.IpConfiguration;
30 IpConfiguration getConfiguration(String iface); in getConfiguration()
31 void setConfiguration(String iface, in IpConfiguration config); in setConfiguration()
DIpConfiguration.aidl19 parcelable IpConfiguration;
DEthernetManager.java90 public IpConfiguration getConfiguration(String iface) { in getConfiguration()
102 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.java23 import android.net.IpConfiguration;
24 import android.net.IpConfiguration.IpAssignment;
25 import android.net.IpConfiguration.ProxySettings;
73 private final ConcurrentHashMap<String, IpConfiguration> mIpConfigurations =
84 private volatile IpConfiguration mIpConfigForDefaultInterface;
116 final ArrayMap<String, IpConfiguration> configs = mConfigStore.getIpConfigurations(); in start()
130 void updateIpConfiguration(String iface, IpConfiguration ipConfiguration) { in updateIpConfiguration()
141 IpConfiguration getIpConfiguration(String iface) { in getIpConfiguration()
201 IpConfiguration ipConfiguration = mIpConfigurations.get(iface); in addInterface()
314 IpConfiguration ipConfig = parseStaticIpConfiguration(tokens[2]); in parseEthernetConfig()
[all …]
DEthernetServiceImpl.java23 import android.net.IpConfiguration;
101 public IpConfiguration getConfiguration(String iface) { in getConfiguration()
108 return new IpConfiguration(mTracker.getIpConfiguration(iface)); in getConfiguration()
115 public void setConfiguration(String iface, IpConfiguration config) { in setConfiguration()
128 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;
147 IpConfiguration ipConfiguration) { in addInterface()
204 void updateIpConfiguration(String iface, IpConfiguration ipConfiguration) { in updateIpConfiguration()
258 private IpConfiguration mIpConfig;
378 void setIpConfig(IpConfiguration ipConfig) { in setIpConfig()
553 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;
74 IpConfiguration config) throws IOException { in writeConfig()
80 IpConfiguration config, int version) throws IOException { in writeConfig()
182 final SparseArray<IpConfiguration> networks) { in writeIpAndProxyConfigurationsToFile()
192 ArrayMap<String, IpConfiguration> networks) { in writeIpConfigurations()
201 public static ArrayMap<String, IpConfiguration> readIpConfigurations(String filePath) { in readIpConfigurations()
216 public static SparseArray<IpConfiguration> readIpAndProxyConfigurations(String filePath) { in readIpAndProxyConfigurations()
231 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;
184 public static IpConfiguration generateIpConfig( in generateIpConfig()
190 IpConfiguration.IpAssignment ipAssignment = IpConfiguration.IpAssignment.UNASSIGNED; in generateIpConfig()
191 IpConfiguration.ProxySettings proxySettings = IpConfiguration.ProxySettings.UNASSIGNED; in generateIpConfig()
216 ipAssignment = IpConfiguration.IpAssignment.STATIC; in generateIpConfig()
218 ipAssignment = IpConfiguration.IpAssignment.DHCP; in generateIpConfig()
223 proxySettings = IpConfiguration.ProxySettings.STATIC; in generateIpConfig()
226 proxySettings = IpConfiguration.ProxySettings.PAC; in generateIpConfig()
228 proxySettings = IpConfiguration.ProxySettings.NONE; in generateIpConfig()
230 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;
4047 IpConfiguration ipConf = WifiConfigurationTestUtil.createDHCPIpConfigurationWithPacProxy(); in testUpdateNetworkUnchangedProxy()
4075 IpConfiguration ipConf1 = in testUpdateNetworkDifferentProxy()
4082 IpConfiguration ipConf2 = in testUpdateNetworkDifferentProxy()
4163 IpConfiguration ipConf1 = in testUpdateNetworkRemoveProxy()
4170 IpConfiguration ipConf2 = in testUpdateNetworkRemoveProxy()
4519 IpConfiguration ipConfiguration, in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions()
4532 IpConfiguration ipConfiguration, in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions()
4599 if (configuration.getIpAssignment() == IpConfiguration.IpAssignment.UNASSIGNED) { in setDefaults()
4600 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/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;
184 IpConfiguration ipConfiguration = parseIpConfigurationFromXml(in, configTagDepth, in parseNetworkConfigurationFromXml()
411 private static IpConfiguration parseIpConfigurationFromXml(XmlPullParser in, in parseIpConfigurationFromXml()
486 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.java20 import android.net.IpConfiguration;
212 IpConfiguration ipConfiguration = null; in parseNetwork()
DWifiConfigManager.java29 import android.net.IpConfiguration;
939 IpConfiguration.IpAssignment ipAssignment = externalConfig.getIpAssignment(); in mergeWithInternalWifiConfiguration()
940 if (ipAssignment != IpConfiguration.IpAssignment.UNASSIGNED) { in mergeWithInternalWifiConfiguration()
942 if (ipAssignment == IpConfiguration.IpAssignment.STATIC) { in mergeWithInternalWifiConfiguration()
947 IpConfiguration.ProxySettings proxySettings = externalConfig.getProxySettings(); in mergeWithInternalWifiConfiguration()
948 if (proxySettings != IpConfiguration.ProxySettings.UNASSIGNED) { in mergeWithInternalWifiConfiguration()
950 if (proxySettings == IpConfiguration.ProxySettings.PAC in mergeWithInternalWifiConfiguration()
951 || proxySettings == IpConfiguration.ProxySettings.STATIC) { in mergeWithInternalWifiConfiguration()
996 configuration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in setDefaultsInWifiConfiguration()
997 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;
650 private IpConfiguration mIpConfiguration;
1790 mIpConfiguration = new IpConfiguration(); in WifiConfiguration()
2236 public IpConfiguration getIpConfiguration() { in getIpConfiguration()
2242 public void setIpConfiguration(IpConfiguration ipConfiguration) { in setIpConfiguration()
2243 if (ipConfiguration == null) ipConfiguration = new IpConfiguration(); in setIpConfiguration()
2261 public IpConfiguration.IpAssignment getIpAssignment() { in getIpAssignment()
2267 public void setIpAssignment(IpConfiguration.IpAssignment ipAssignment) { in setIpAssignment()
2273 public IpConfiguration.ProxySettings getProxySettings() { in getProxySettings()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java19 import android.net.IpConfiguration;
20 import android.net.IpConfiguration.IpAssignment;
21 import android.net.IpConfiguration.ProxySettings;
747 public static void writeToXml(XmlSerializer out, IpConfiguration ipConfiguration) in writeToXml()
841 public static IpConfiguration parseFromXml(XmlPullParser in, int outerTagDepth) in parseFromXml()
843 IpConfiguration ipConfiguration = new IpConfiguration(); in parseFromXml()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java19 import android.net.IpConfiguration.IpAssignment;
20 import android.net.IpConfiguration.ProxySettings;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java22 import android.net.IpConfiguration;
538 private void serializeDeserializeIpConfiguration(IpConfiguration configuration) in serializeDeserializeIpConfiguration()
553 IpConfiguration retrievedConfiguration = in serializeDeserializeIpConfiguration()
/frameworks/base/config/
Ddirty-image-objects121 android.net.IpConfiguration$IpAssignment
122 android.net.IpConfiguration$ProxySettings

12