Home
last modified time | relevance | path

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

/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.java108 String ipAddress = getDefaultIpAddresses(mCM); in updateConnectivity() local
109 if (ipAddress != null) { in updateConnectivity()
114 ipAddress += ":" + port; in updateConnectivity()
116 mAdbIpAddrPref.setSummary(ipAddress); in updateConnectivity()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiInfoPreferenceController.java115 final String ipAddress = Utils.getWifiIpAddresses(mContext); in updateWifiInfo() local
116 mWifiIpAddressPref.setSummary(ipAddress == null in updateWifiInfo()
118 : BidiFormatter.getInstance().unicodeWrap(ipAddress)); in updateWifiInfo()
DWifiConfigController.java296 if (staticConfig != null && staticConfig.ipAddress != null) { in initWifiConfigController()
298 staticConfig.ipAddress.getAddress().getHostAddress()); in initWifiConfigController()
872 staticIpConfiguration.ipAddress = new LinkAddress(inetAddr, networkPrefixLength); in validateIpConfigFields()
1250 if (staticConfig.ipAddress != null) { in showIpConfigFields()
1252 staticConfig.ipAddress.getAddress().getHostAddress()); in showIpConfigFields()
1253 mNetworkPrefixLengthView.setText(Integer.toString(staticConfig.ipAddress in showIpConfigFields()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiInfoPreferenceController.java115 final String ipAddress = Utils.getWifiIpAddresses(mContext); in updateWifiInfo() local
116 mWifiIpAddressPref.setSummary(ipAddress == null in updateWifiInfo()
118 : BidiFormatter.getInstance().unicodeWrap(ipAddress)); in updateWifiInfo()
DWifiConfigController.java311 if (staticConfig != null && staticConfig.ipAddress != null) { in initWifiConfigController()
313 staticConfig.ipAddress.getAddress().getHostAddress()); in initWifiConfigController()
902 staticIpConfiguration.ipAddress = new LinkAddress(inetAddr, networkPrefixLength); in validateIpConfigFields()
1307 if (staticConfig.ipAddress != null) { in showIpConfigFields()
1309 staticConfig.ipAddress.getAddress().getHostAddress()); in showIpConfigFields()
1310 mNetworkPrefixLengthView.setText(Integer.toString(staticConfig.ipAddress in showIpConfigFields()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java785 if (l2Key == null || mDhcpLease == null || mDhcpLease.ipAddress == null) return; in maybeSaveLeaseToIpMemoryStore()
787 na.setAssignedV4Address((Inet4Address) mDhcpLease.ipAddress.getAddress()); in maybeSaveLeaseToIpMemoryStore()
1357 (Inet4Address) mOffer.ipAddress.getAddress(), // DHCP_REQUESTED_IP in sendPacket()
1423 mController.sendMessage(CMD_CONFIGURE_LINKADDRESS, mDhcpLease.ipAddress); in enter()
1443 IpConflictDetector(@NonNull Handler handler, @NonNull Inet4Address ipAddress) { in IpConflictDetector() argument
1445 mTargetIp = ipAddress; in IpConflictDetector()
1563 mTargetIp = (Inet4Address) mDhcpLease.ipAddress.getAddress(); in enter()
1756 (Inet4Address) mDhcpLease.ipAddress.getAddress(), // ciaddr in sendPacket()
1767 if (!mDhcpLease.ipAddress.equals(results.ipAddress)) { in receivePacket()
1903 (Inet4Address) mDhcpLease.ipAddress.getAddress(), // requested IP in sendPacket()
DDhcpPacket.java1330 Inet4Address ipAddress = mYourIp; in toDhcpResults() local
1331 if (ipAddress.equals(IPV4_ADDR_ANY)) { in toDhcpResults()
1332 ipAddress = mClientIp; in toDhcpResults()
1333 if (ipAddress.equals(IPV4_ADDR_ANY)) { in toDhcpResults()
1347 prefixLength = Inet4AddressUtils.getImplicitNetmask(ipAddress); in toDhcpResults()
1352 results.ipAddress = new LinkAddress(ipAddress, prefixLength); in toDhcpResults()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpResultsParcelableUtilTest.java51 mDhcpResults.ipAddress = new LinkAddress(parseNumericAddress("2001:db8::42"), 64); in setUp()
73 mDhcpResults.ipAddress = null; in testParcelUnparcelDhcpResults_NullIpAddress()
DDhcpPacketTest.java281 assertEquals(expectedAddress, results.ipAddress); in checkIpAddress()
310 private void assertDhcpResults(String ipAddress, String gateway, String dnsServersString, in assertDhcpResults() argument
314 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
Ddns_metrics_listener.h64 ::ndk::ScopedAStatus onPrivateDnsValidationEvent(int32_t netId, const std::string& ipAddress,
/packages/modules/NetworkStack/tests/unit/src/android/net/shared/
DProvisioningConfigurationTest.java77 mConfig.mStaticIpConfig.ipAddress = in setUp()
152 assertNotEqualsAfterChange(c -> c.mStaticIpConfig.ipAddress = in testEquals()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayloadTest.java568 byte[] ipAddress = IPV4_ADDRESS.getAddress(); in testDecodeIpv4SubnetWithInvalidValue()
569 ByteBuffer buffer = ByteBuffer.allocate(ipAddress.length * 2); in testDecodeIpv4SubnetWithInvalidValue()
570 buffer.put(ipAddress).put(ipAddress); in testDecodeIpv4SubnetWithInvalidValue()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeNotifyPayload.java301 long initiatorIkeSpi, long responderIkeSpi, InetAddress ipAddress, int port) { in generateNatDetectionData() argument
302 byte[] rawIpAddr = ipAddress.getAddress(); in generateNatDetectionData()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java161 final Inet4Address ipAddress, final long expiry, final String cluster, in buildTestNetworkAttributes() argument
164 if (null != ipAddress) { in buildTestNetworkAttributes()
165 na.setAssignedV4Address(ipAddress); in buildTestNetworkAttributes()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DAdvancedOptionsFlowInfo.java196 return mIpConfiguration.getStaticIpConfiguration().ipAddress; in getInitialLinkAddress()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DAdvancedOptionsFlowUtil.java124 staticConfig.ipAddress = new LinkAddress(inetAddr, networkPrefixLength); in processIpSettings()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java2144 final LinkAddress ipAddress = (LinkAddress) msg.obj; in processMessage() local
2145 if (mInterfaceCtrl.setIPv4Address(ipAddress)) { in processMessage()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java922 final LinkAddress ipAddress = new LinkAddress(CLIENT_ADDR, PREFIX_LENGTH);
925 assertEquals(ifConfig.getValue().ipv4Addr, ipAddress.getAddress().getHostAddress());