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.java29 public class IpConfiguration implements Parcelable { class
78 public IpConfiguration() { in IpConfiguration() method in IpConfiguration
82 public IpConfiguration(IpAssignment ipAssignment, in IpConfiguration() method in IpConfiguration
89 public IpConfiguration(IpConfiguration source) { in IpConfiguration() method in IpConfiguration
154 if (!(o instanceof IpConfiguration)) { in equals()
158 IpConfiguration other = (IpConfiguration) o; in equals()
187 public static final Creator<IpConfiguration> CREATOR =
188 new Creator<IpConfiguration>() {
189 public IpConfiguration createFromParcel(Parcel in) {
190 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()
DEthernetManager.java87 public IpConfiguration getConfiguration(String iface) { in getConfiguration()
98 public void setConfiguration(String iface, IpConfiguration config) { in setConfiguration()
DIpConfiguration.aidl19 parcelable IpConfiguration;
/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()
306 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.java22 import android.net.IpConfiguration;
23 import android.net.IpConfiguration.IpAssignment;
24 import android.net.IpConfiguration.ProxySettings;
125 IpConfiguration ipConfiguration) { in addInterface()
182 void updateIpConfiguration(String iface, IpConfiguration ipConfiguration) { in updateIpConfiguration()
235 private IpConfiguration mIpConfig;
269 void setIpConfig(IpConfiguration ipConfig) { in setIpConfig()
395 private static void provisionIpClient(IpClient 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;
54 IpConfiguration expectedConfig = new IpConfiguration(IpAssignment.DHCP, in backwardCompatibility2to3()
61 ArrayMap<String, IpConfiguration> configurations = IpConfigStore.readIpConfigurations(in); in backwardCompatibility2to3()
65 IpConfiguration actualConfig = configurations.get(String.valueOf(KEY_CONFIG)); in backwardCompatibility2to3()
86 IpConfiguration expectedConfig1 = new IpConfiguration(IpAssignment.STATIC, in staticIpMultiNetworks()
88 IpConfiguration expectedConfig2 = new IpConfiguration(expectedConfig1); in staticIpMultiNetworks()
91 ArrayMap<String, IpConfiguration> expectedNetworks = new ArrayMap<>(); in staticIpMultiNetworks()
100 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/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;
89 IpConfiguration expectedIpConfiguration = new IpConfiguration(IpAssignment.STATIC, in assertStaticConfiguration()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java21 import android.net.IpConfiguration;
165 public static IpConfiguration generateIpConfig( in generateIpConfig()
171 IpConfiguration.IpAssignment ipAssignment = IpConfiguration.IpAssignment.UNASSIGNED; in generateIpConfig()
172 IpConfiguration.ProxySettings proxySettings = IpConfiguration.ProxySettings.UNASSIGNED; in generateIpConfig()
197 ipAssignment = IpConfiguration.IpAssignment.STATIC; in generateIpConfig()
199 ipAssignment = IpConfiguration.IpAssignment.DHCP; in generateIpConfig()
204 proxySettings = IpConfiguration.ProxySettings.STATIC; in generateIpConfig()
207 proxySettings = IpConfiguration.ProxySettings.PAC; in generateIpConfig()
209 proxySettings = IpConfiguration.ProxySettings.NONE; in generateIpConfig()
211 return new IpConfiguration(ipAssignment, proxySettings, staticIpConfiguration, proxyInfo); in generateIpConfig()
[all …]
DWifiBackupRestoreTest.java22 import android.net.IpConfiguration;
290 IpConfiguration ipConfiguration = new IpConfiguration(); in createNetworkForConfigurationWithUnsupportedTag()
291 ipConfiguration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in createNetworkForConfigurationWithUnsupportedTag()
292 ipConfiguration.setProxySettings(IpConfiguration.ProxySettings.NONE); in createNetworkForConfigurationWithUnsupportedTag()
343 IpConfiguration ipConfiguration = new IpConfiguration(); in createNetworkForConfigurationWithUnsupportedValuesInBitsetsInRestore()
344 ipConfiguration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in createNetworkForConfigurationWithUnsupportedValuesInBitsetsInRestore()
345 ipConfiguration.setProxySettings(IpConfiguration.ProxySettings.NONE); in createNetworkForConfigurationWithUnsupportedValuesInBitsetsInRestore()
DWifiConfigStoreLegacyTest.java23 import android.net.IpConfiguration;
193 private SparseArray<IpConfiguration> createIpConfigStoreLoadData( in createIpConfigStoreLoadData()
195 SparseArray<IpConfiguration> newIpConfigurations = new SparseArray<>(); in createIpConfigStoreLoadData()
199 new IpConfiguration(config.getIpConfiguration())); in createIpConfigStoreLoadData()
DWifiConfigManagerTest.java30 import android.net.IpConfiguration;
3327 IpConfiguration ipConf = WifiConfigurationTestUtil.createDHCPIpConfigurationWithPacProxy(); in testUpdateNetworkUnchangedProxy()
3355 IpConfiguration ipConf1 = in testUpdateNetworkDifferentProxy()
3362 IpConfiguration ipConf2 = in testUpdateNetworkDifferentProxy()
3443 IpConfiguration ipConf1 = in testUpdateNetworkRemoveProxy()
3450 IpConfiguration ipConf2 = in testUpdateNetworkRemoveProxy()
3570 IpConfiguration ipConfiguration, in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions()
3631 if (configuration.getIpAssignment() == IpConfiguration.IpAssignment.UNASSIGNED) { in setDefaults()
3632 configuration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in setDefaults()
3634 if (configuration.getProxySettings() == IpConfiguration.ProxySettings.UNASSIGNED) { in setDefaults()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java22 import android.net.IpConfiguration;
23 import android.net.IpConfiguration.ProxySettings;
447 private IpConfiguration mIpConfiguration;
1522 mIpConfiguration = new IpConfiguration(); in WifiConfiguration()
1905 public IpConfiguration getIpConfiguration() { in getIpConfiguration()
1910 public void setIpConfiguration(IpConfiguration ipConfiguration) { in setIpConfiguration()
1911 if (ipConfiguration == null) ipConfiguration = new IpConfiguration(); in setIpConfiguration()
1926 public IpConfiguration.IpAssignment getIpAssignment() { in getIpAssignment()
1931 public void setIpAssignment(IpConfiguration.IpAssignment ipAssignment) { in setIpAssignment()
1936 public IpConfiguration.ProxySettings getProxySettings() { in getProxySettings()
[all …]
/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;
178 IpConfiguration ipConfiguration = parseIpConfigurationFromXml(in, configTagDepth, in parseNetworkConfigurationFromXml()
405 private static IpConfiguration parseIpConfigurationFromXml(XmlPullParser in, in parseIpConfigurationFromXml()
480 IpConfiguration ipConfiguration = new IpConfiguration(); in parseIpConfigurationFromXml()
DWifiConfigurationUtil.java20 import android.net.IpConfiguration;
150 if (newConfig.getIpAssignment() == IpConfiguration.IpAssignment.STATIC) { in hasIpChanged()
169 return newConfig.getProxySettings() != IpConfiguration.ProxySettings.NONE; in hasProxyChanged()
430 private static boolean validateIpConfiguration(IpConfiguration ipConfig) { in validateIpConfiguration()
435 if (ipConfig.getIpAssignment() == IpConfiguration.IpAssignment.STATIC) { in validateIpConfiguration()
DWifiConfigStoreLegacy.java19 import android.net.IpConfiguration;
95 public SparseArray<IpConfiguration> readIpAndProxyConfigurations(String filePath) { in readIpAndProxyConfigurations()
136 SparseArray<IpConfiguration> ipConfigurations = in loadFromIpConfigStore()
DNetworkListStoreData.java20 import android.net.IpConfiguration;
244 IpConfiguration ipConfiguration = null; in parseNetwork()
DWifiConfigManager.java27 import android.net.IpConfiguration;
843 IpConfiguration.IpAssignment ipAssignment = externalConfig.getIpAssignment(); in mergeWithInternalWifiConfiguration()
844 if (ipAssignment != IpConfiguration.IpAssignment.UNASSIGNED) { in mergeWithInternalWifiConfiguration()
846 if (ipAssignment == IpConfiguration.IpAssignment.STATIC) { in mergeWithInternalWifiConfiguration()
851 IpConfiguration.ProxySettings proxySettings = externalConfig.getProxySettings(); in mergeWithInternalWifiConfiguration()
852 if (proxySettings != IpConfiguration.ProxySettings.UNASSIGNED) { in mergeWithInternalWifiConfiguration()
854 if (proxySettings == IpConfiguration.ProxySettings.PAC in mergeWithInternalWifiConfiguration()
855 || proxySettings == IpConfiguration.ProxySettings.STATIC) { in mergeWithInternalWifiConfiguration()
897 configuration.setIpAssignment(IpConfiguration.IpAssignment.DHCP); in setDefaultsInWifiConfiguration()
898 configuration.setProxySettings(IpConfiguration.ProxySettings.NONE); in setDefaultsInWifiConfiguration()
/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;
717 public static void writeToXml(XmlSerializer out, IpConfiguration ipConfiguration) in writeToXml()
811 public static IpConfiguration parseFromXml(XmlPullParser in, int outerTagDepth) in parseFromXml()
813 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;
511 private void serializeDeserializeIpConfiguration(IpConfiguration configuration) in serializeDeserializeIpConfiguration()
526 IpConfiguration retrievedConfiguration = in serializeDeserializeIpConfiguration()
/frameworks/base/config/
Ddirty-image-objects123 android.net.IpConfiguration$ProxySettings
131 android.net.IpConfiguration$IpAssignment

12