Home
last modified time | relevance | path

Searched refs:ipAddress (Results 1 – 25 of 39) sorted by relevance

12

/packages/modules/Connectivity/framework/src/android/net/
DStaticIpConfiguration.java58 public LinkAddress ipAddress; field in StaticIpConfiguration
80 ipAddress = source.ipAddress; in StaticIpConfiguration()
88 ipAddress = null; in clear()
98 return ipAddress; in getIpAddress()
136 public @NonNull Builder setIpAddress(@Nullable LinkAddress ipAddress) { in setIpAddress() argument
137 mIpAddress = ipAddress; in setIpAddress()
177 config.ipAddress = mIpAddress; in build()
203 if (ipAddress != null) { in getRoutes()
204 RouteInfo connectedRoute = new RouteInfo(ipAddress, null, iface); in getRoutes()
229 if (ipAddress != null) { in toLinkProperties()
[all …]
DDhcpInfo.java26 public int ipAddress; field in DhcpInfo
42 ipAddress = source.ipAddress; in DhcpInfo()
55 str.append("ipaddr "); putAddress(str, ipAddress); in toString()
77 dest.writeInt(ipAddress); in writeToParcel()
91 info.ipAddress = in.readInt();
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DIpConfigStoreTestWriter.java59 if (staticIpConfiguration.ipAddress != null) { in writeConfig()
60 LinkAddress ipAddress = staticIpConfiguration.ipAddress; in writeConfig() local
62 out.writeUTF(ipAddress.getAddress().getHostAddress()); in writeConfig()
63 out.writeInt(ipAddress.getPrefixLength()); in writeConfig()
/packages/modules/Connectivity/tests/common/java/android/net/
DStaticIpConfigurationTest.java58 assertNull(s.ipAddress); in checkEmpty()
66 s.ipAddress = ADDR; in makeTestObject()
102 s.ipAddress = ADDR; in testHashCodeAndEquals()
126 s.ipAddress = new LinkAddress(DNS1, 32); in testHashCodeAndEquals()
151 s.ipAddress = ADDR; in testToLinkProperties()
193 s.ipAddress = null; in testToLinkProperties()
233 assertEquals(s.ipAddress, s.getIpAddress()); in testBuilder()
DDhcpInfoTest.java51 dhcpInfo.ipAddress = ipToInteger(STR_ADDR1); in createDhcpInfoObject()
90 return left.ipAddress == right.ipAddress in dhcpInfoEquals()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DEpdgSelector.java156 for (InetAddress ipAddress : ipList) { in getIP()
159 if (ipAddress instanceof Inet4Address) { in getIP()
160 validIpList.add(ipAddress); in getIP()
164 if (ipAddress instanceof Inet6Address) { in getIP()
165 validIpList.add(ipAddress); in getIP()
169 validIpList.add(ipAddress); in getIP()
572 InetAddress ipAddress; in getInetAddressWithPcoData() local
575 ipAddress = InetAddress.getByAddress(pcoData); in getInetAddressWithPcoData()
576 validIpList.add(ipAddress); in getInetAddressWithPcoData()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunDevice.java59 int ipAddress, int deviceType, int deviceId, int tunerIndex, String deviceModel) { in HdHomeRunDevice() argument
60 mIpAddress = ipAddress; in HdHomeRunDevice()
114 String ipAddress = in toString() local
123 return String.format("[%x-%d:%s]", mDeviceId, mTunerIndex, ipAddress); in toString()
/packages/apps/Settings/src/com/android/settings/development/
DAdbIpAddressPreferenceController.java109 String ipAddress = getDefaultIpAddresses(mCM); in updateConnectivity() local
110 if (ipAddress != null) { in updateConnectivity()
115 ipAddress += ":" + port; in updateConnectivity()
117 mAdbIpAddrPref.setSummary(ipAddress); in updateConnectivity()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DDnsManager.java157 public final InetAddress ipAddress; field in DnsManager.PrivateDnsValidationUpdate
162 public PrivateDnsValidationUpdate(int netId, InetAddress ipAddress, in PrivateDnsValidationUpdate() argument
165 this.ipAddress = ipAddress; in PrivateDnsValidationUpdate()
198 for (String ipAddress : ipAddresses) { in updateTrackedDnses()
201 InetAddresses.parseNumericAddress(ipAddress))); in updateTrackedDnses()
222 update.ipAddress); in updateStatus()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java824 if (l2Key == null || mDhcpLease == null || mDhcpLease.ipAddress == null) return; in maybeSaveLeaseToIpMemoryStore()
826 na.setAssignedV4Address((Inet4Address) mDhcpLease.ipAddress.getAddress()); in maybeSaveLeaseToIpMemoryStore()
1414 (Inet4Address) mOffer.ipAddress.getAddress(), // DHCP_REQUESTED_IP in sendPacket()
1483 mController.sendMessage(CMD_CONFIGURE_LINKADDRESS, mDhcpLease.ipAddress); in enter()
1503 IpConflictDetector(@NonNull Handler handler, @NonNull Inet4Address ipAddress) { in IpConflictDetector() argument
1505 mTargetIp = ipAddress; in IpConflictDetector()
1623 mTargetIp = (Inet4Address) mDhcpLease.ipAddress.getAddress(); in enter()
1816 (Inet4Address) mDhcpLease.ipAddress.getAddress(), // ciaddr in sendPacket()
1830 if (!mDhcpLease.ipAddress.equals(results.ipAddress)) { in receivePacket()
1966 (Inet4Address) mDhcpLease.ipAddress.getAddress(), // requested IP in sendPacket()
DDhcpPacket.java1414 Inet4Address ipAddress = mYourIp; in toDhcpResults() local
1415 if (ipAddress.equals(IPV4_ADDR_ANY)) { in toDhcpResults()
1416 ipAddress = mClientIp; in toDhcpResults()
1417 if (ipAddress.equals(IPV4_ADDR_ANY)) { in toDhcpResults()
1431 prefixLength = Inet4AddressUtils.getImplicitNetmask(ipAddress); in toDhcpResults()
1436 results.ipAddress = new LinkAddress(ipAddress, prefixLength); in toDhcpResults()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpResultsParcelableUtilTest.java51 mDhcpResults.ipAddress = new LinkAddress(parseNumericAddress("192.168.42.19"), 25); in setUp()
73 mDhcpResults.ipAddress = null; in testParcelUnparcelDhcpResults_NullIpAddress()
DDhcpPacketTest.java288 assertEquals(expectedAddress, results.ipAddress); in checkIpAddress()
317 private void assertDhcpResults(String ipAddress, String gateway, String dnsServersString, in assertDhcpResults() argument
321 assertEquals(new LinkAddress(ipAddress), dhcpResults.ipAddress); in assertDhcpResults()
/packages/modules/DnsResolver/tests/dns_metrics_listener/
Ddns_metrics_listener.cpp56 int32_t netId, const std::string& ipAddress, const std::string& /*hostname*/, in onPrivateDnsValidationEvent() argument
61 mValidationRecords.insert_or_assign({netId, ipAddress}, validated); in onPrivateDnsValidationEvent()
Dtest_metrics.cpp66 if (ipAddresses.empty() || ipAddresses.front() != result.ipAddress) continue; in onDnsEvent()
Dtest_metrics.h76 std::string ipAddress; // Check first address only. member
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DProvisioningConfigurationTest.java91 mConfig.mStaticIpConfig.ipAddress = in setUp()
174 assertNotEqualsAfterChange(c -> c.mStaticIpConfig.ipAddress = in testEquals()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayloadTest.java619 byte[] ipAddress = IPV4_ADDRESS.getAddress(); in testDecodeIpv4SubnetWithInvalidValue()
620 ByteBuffer buffer = ByteBuffer.allocate(ipAddress.length * 2); in testDecodeIpv4SubnetWithInvalidValue()
621 buffer.put(ipAddress).put(ipAddress); in testDecodeIpv4SubnetWithInvalidValue()
/packages/modules/DnsResolver/binder/android/net/resolv/aidl/
DPrivateDnsValidationEventParcel.aidl31 @utf8InCpp String ipAddress;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/current/android/net/resolv/aidl/
DPrivateDnsValidationEventParcel.aidl24 @utf8InCpp String ipAddress;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/8/android/net/resolv/aidl/
DPrivateDnsValidationEventParcel.aidl24 @utf8InCpp String ipAddress;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/7/android/net/resolv/aidl/
DPrivateDnsValidationEventParcel.aidl24 @utf8InCpp String ipAddress;
/packages/modules/DnsResolver/aidl_api/dnsresolver_aidl_interface/9/android/net/resolv/aidl/
DPrivateDnsValidationEventParcel.aidl24 @utf8InCpp String ipAddress;
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java237 assertEquals(new LinkAddress(clientAddr), dhcpResults.ipAddress); in testStaticIpv4()
565 assertLinkAddressMatches(dhcpResults.ipAddress, info.getAddress()); in checkTetheredClientCallbacks()
641 Inet4Address clientIp = (Inet4Address) results.ipAddress.getAddress(); in sendDhcpRequest()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayload.java339 long initiatorIkeSpi, long responderIkeSpi, InetAddress ipAddress, int port) { in generateNatDetectionData() argument
340 byte[] rawIpAddr = ipAddress.getAddress(); in generateNatDetectionData()

12