Home
last modified time | relevance | path

Searched refs:staticIpConfiguration (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/net/
DIpConfiguration.java45 public StaticIpConfiguration staticIpConfiguration; field in IpConfiguration
68 StaticIpConfiguration staticIpConfiguration, in init() argument
72 this.staticIpConfiguration = (staticIpConfiguration == null) ? in init()
73 null : new StaticIpConfiguration(staticIpConfiguration); in init()
84 StaticIpConfiguration staticIpConfiguration, in IpConfiguration() argument
86 init(ipAssignment, proxySettings, staticIpConfiguration, httpProxy); in IpConfiguration()
93 source.staticIpConfiguration, source.httpProxy); in IpConfiguration()
106 return staticIpConfiguration; in getStaticIpConfiguration()
109 public void setStaticIpConfiguration(StaticIpConfiguration staticIpConfiguration) { in setStaticIpConfiguration() argument
110 this.staticIpConfiguration = staticIpConfiguration; in setStaticIpConfiguration()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DIpConfigStore.java88 StaticIpConfiguration staticIpConfiguration = config.staticIpConfiguration; in writeConfig() local
89 if (staticIpConfiguration != null) { in writeConfig()
90 if (staticIpConfiguration.ipAddress != null) { in writeConfig()
91 LinkAddress ipAddress = staticIpConfiguration.ipAddress; in writeConfig()
96 if (staticIpConfiguration.gateway != null) { in writeConfig()
100 out.writeUTF(staticIpConfiguration.gateway.getHostAddress()); in writeConfig()
102 for (InetAddress inetAddr : staticIpConfiguration.dnsServers) { in writeConfig()
266 StaticIpConfiguration staticIpConfiguration = new StaticIpConfiguration(); in readIpConfigurations() local
289 staticIpConfiguration.ipAddress == null) { in readIpConfigurations()
290 staticIpConfiguration.ipAddress = linkAddr; in readIpConfigurations()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DIpConfigStoreTest.java79 StaticIpConfiguration staticIpConfiguration = new StaticIpConfiguration(); in staticIpMultiNetworks() local
80 staticIpConfiguration.ipAddress = new LinkAddress(IP_ADDR_1); in staticIpMultiNetworks()
81 staticIpConfiguration.dnsServers.add(NetworkUtils.numericToInetAddress(DNS_IP_ADDR_1)); in staticIpMultiNetworks()
82 staticIpConfiguration.dnsServers.add(NetworkUtils.numericToInetAddress(DNS_IP_ADDR_2)); in staticIpMultiNetworks()
87 ProxySettings.STATIC, staticIpConfiguration, proxyInfo); in staticIpMultiNetworks()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java671 XmlSerializer out, StaticIpConfiguration staticIpConfiguration) in writeStaticIpConfigurationToXml() argument
673 if (staticIpConfiguration.ipAddress != null) { in writeStaticIpConfigurationToXml()
676 staticIpConfiguration.ipAddress.getAddress().getHostAddress()); in writeStaticIpConfigurationToXml()
679 staticIpConfiguration.ipAddress.getPrefixLength()); in writeStaticIpConfigurationToXml()
686 if (staticIpConfiguration.gateway != null) { in writeStaticIpConfigurationToXml()
689 staticIpConfiguration.gateway.getHostAddress()); in writeStaticIpConfigurationToXml()
695 if (staticIpConfiguration.dnsServers != null) { in writeStaticIpConfigurationToXml()
697 String[] dnsServers = new String[staticIpConfiguration.dnsServers.size()]; in writeStaticIpConfigurationToXml()
699 for (InetAddress inetAddr : staticIpConfiguration.dnsServers) { in writeStaticIpConfigurationToXml()
762 StaticIpConfiguration staticIpConfiguration = new StaticIpConfiguration(); in parseStaticIpConfigurationFromXml() local
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java488 StaticIpConfiguration staticIpConfiguration = new StaticIpConfiguration(); in parseIpConfigurationFromXml() local
493 staticIpConfiguration.ipAddress = linkAddress; in parseIpConfigurationFromXml()
503 staticIpConfiguration.gateway = gateway; in parseIpConfigurationFromXml()
512 staticIpConfiguration.dnsServers.add(dnsServerAddress); in parseIpConfigurationFromXml()
515 ipConfiguration.setStaticIpConfiguration(staticIpConfiguration); in parseIpConfigurationFromXml()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationTestUtil.java169 StaticIpConfiguration staticIpConfiguration = null; in generateIpConfig() local
175 staticIpConfiguration = new StaticIpConfiguration(); in generateIpConfig()
180 staticIpConfiguration.ipAddress = linkAddr; in generateIpConfig()
186 staticIpConfiguration.gateway = gatewayAddr; in generateIpConfig()
191 staticIpConfiguration.dnsServers.add( in generateIpConfig()
211 return new IpConfiguration(ipAssignment, proxySettings, staticIpConfiguration, proxyInfo); in generateIpConfig()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java1921 public void setStaticIpConfiguration(StaticIpConfiguration staticIpConfiguration) { in setStaticIpConfiguration() argument
1922 mIpConfiguration.setStaticIpConfiguration(staticIpConfiguration); in setStaticIpConfiguration()