Home
last modified time | relevance | path

Searched refs:getHostname (Results 1 – 21 of 21) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java150 assertEquals(hostname, lease.getHostname()); in requestAddresses()
261 assertEquals(TEST_HOSTNAME_1, offer.getHostname()); in testGetOffer_ExistingLease()
275 assertEquals(TEST_HOSTNAME_1, offer.getHostname()); in testGetOffer_ClientIdHasExistingLease()
291 assertEquals(HOSTNAME_NONE, offer.getHostname()); in testGetOffer_DifferentClientId()
300 assertEquals(TEST_HOSTNAME_1, offer.getHostname()); in testGetOffer_RequestedAddress()
343 assertEquals(TEST_HOSTNAME_1, offer.getHostname()); in testGetOffer_StaticClientAddress()
382 assertEquals(TEST_HOSTNAME_1, lease1.getHostname()); in testRequestLease_SelectingTwice()
385 assertEquals(TEST_HOSTNAME_2, lease2.getHostname()); in testRequestLease_SelectingTwice()
583 assertEquals(TEST_HOSTNAME_1, firstLease.getHostname()); in testMarkLeaseDeclined_UsedIfOutOfAddresses()
585 assertEquals(TEST_HOSTNAME_2, secondLease.getHostname()); in testMarkLeaseDeclined_UsedIfOutOfAddresses()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsAdvertiser.java159 && TextUtils.isEmpty(registration.getServiceInfo().getHostname())) {
275 return MdnsUtils.equalsIgnoreDnsCase(newInfo.getHostname(), mDeviceHostName[0]); in hasAnyHostConflict()
290 if (!TextUtils.isEmpty(registration.getServiceInfo().getHostname())) { in updateRegistrationUntilNoConflict()
458 if (TextUtils.isEmpty(info.getHostname())) { in getConflictingRegistrationDueToHost()
467 info.getHostname(), otherInfo.getHostname())) { in getConflictingRegistrationDueToHost()
473 info.getHostname(), otherInfo.getHostname())) { in getConflictingRegistrationDueToHost()
636 this.mOriginalHostname = serviceInfo.getHostname(); in Registration()
647 && Objects.equals(newInfo.getHostname(), mOriginalHostname) in isSubtypeOnlyUpdate()
DMdnsRecordRepository.java259 final boolean hasCustomHost = !TextUtils.isEmpty(serviceInfo.getHostname()); in ServiceRegistration()
262 ? new String[] {serviceInfo.getHostname(), LOCAL_TLD} in ServiceRegistration()
682 registration.serviceInfo.getHostname(), in getReply()
1023 return registration.serviceInfo.getHostname(); in getHostnameForServiceId()
1094 if (TextUtils.isEmpty(registration.serviceInfo.getHostname())) { in makeAnnouncementInfo()
1102 registration.serviceInfo.getHostname(), in makeAnnouncementInfo()
1258 if (registration.serviceInfo.getHostname() == null) { in conflictForHost()
1274 record.getName()[0], registration.serviceInfo.getHostname())) { in conflictForHost()
1322 if (TextUtils.isEmpty(serviceInfo.getHostname())) { in makeProbingInetAddressRecords()
1328 serviceInfo.getHostname(), in makeProbingInetAddressRecords()
[all …]
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DServiceDiscoveryTest.java206 assertThat(resolvedService.getHostname()).isEqualTo(hostnamePrefix + i); in advertisingProxy_multipleSrpClientsRegisterServices_servicesResolvableByMdns()
261 assertThat(resolvedService.getHostname()).isEqualTo("my-host"); in advertisingProxy_srpClientUpdatesService_updatedServiceResolvableByMdns()
390 assertThat(resolvedService.getHostname()).isEqualTo("testhost.default.service.arpa."); in discoveryProxy_multipleClientsBrowseAndResolveServiceOverMdns()
431 assertThat(browsedService.getHostname()).isEqualTo("my-host.default.service.arpa."); in discoveryProxy_browseAndResolveServiceAtSrpServer()
442 assertThat(resolvedService.getHostname()).isEqualTo("my-host.default.service.arpa."); in discoveryProxy_browseAndResolveServiceAtSrpServer()
/packages/modules/Connectivity/tests/common/java/android/net/nsd/
DNsdServiceInfoTest.java194 assertEquals(original.getHostname(), result.getHostname()); in checkParcelable()
/packages/modules/Connectivity/framework-t/src/android/net/nsd/
DOffloadServiceInfo.java141 public String getHostname() { in getHostname() method in OffloadServiceInfo
178 this.getHostname(), in withOffloadPayload()
DNsdServiceInfo.java109 mHostname = other.getHostname(); in NsdServiceInfo()
201 public String getHostname() { in getHostname() method in NsdServiceInfo
DNsdManager.java1802 final boolean hasHostname = !TextUtils.isEmpty(serviceInfo.getHostname()); in validateHost()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/
DRedirectListener.java78 mServerUrl = new URL("http", getHostname(), port, mPath); in RedirectListener()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLease.java86 public String getHostname() { in getHostname() method in DhcpLease
DDhcpServer.java694 return request.hasRequestedParam(DHCP_HOST_NAME) && !TextUtils.isEmpty(lease.getHostname()) in getHostnameIfRequested()
695 ? lease.getHostname() in getHostnameIfRequested()
DDhcpPacket.java809 public String getHostname() { in getHostname() method in DhcpPacket
825 final String hn = getHostname(); in addCommonClientTlvs()
/packages/modules/Connectivity/Tethering/common/TetheringLib/src/android/net/
DTetheredClient.java154 public String getHostname() { in getHostname() method in TetheredClient.AddressInfo
/packages/modules/Connectivity/framework-t/api/
Dsystem-lint-baseline.txt110 UnflaggedApi: android.net.nsd.OffloadServiceInfo#getHostname():
111 … New API must be flagged with @FlaggedApi: method android.net.nsd.OffloadServiceInfo.getHostname()
Dsystem-current.txt403 method @NonNull public String getHostname();
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DNsdPublisherTest.java324 assertThat(actualServiceInfo.getHostname()).isEqualTo("MyHost"); in registerHost_nsdManagerSucceeds_serviceRegistrationSucceeds()
368 assertThat(actualServiceInfo.getHostname()).isEqualTo("MyHost"); in registerHost_nsdManagerFails_serviceRegistrationFails()
/packages/modules/Connectivity/service-t/src/com/android/server/
DNsdService.java966 final String hostname = serviceInfo.getHostname(); in processMessage()
1661 info.setHostname(getHostname(serviceInfo)); in handleMdnsDiscoveryManagerEvent()
1698 info.setHostname(getHostname(serviceInfo)); in handleMdnsDiscoveryManagerEvent()
1746 private static String getHostname(@NonNull MdnsServiceInfo serviceInfo) { in getHostname() method in NsdService
2212 cbInfo.setHostname(registeredInfo.getHostname()); in onRegisterServiceSucceeded()
/packages/modules/Connectivity/Tethering/common/TetheringLib/api/
Dsystem-current.txt17 method @Nullable public String getHostname();
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DNsdPublisher.java625 serviceInfo.getHostname(), in onServiceUpdated()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java422 assertEquals(TetheringTester.DHCP_HOSTNAME, info.getHostname()); in checkTetheredClientCallbacks()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java1267 assertNoHostname(packet.getHostname());
1269 assertEquals(hostnameAfterTransliteration, packet.getHostname());