Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java144 assertEquals(hostname, lease.getHostname()); in requestAddresses()
249 assertEquals(TEST_HOSTNAME_1, offer.getHostname()); in testGetOffer_ExistingLease()
263 assertEquals(TEST_HOSTNAME_1, offer.getHostname()); in testGetOffer_ClientIdHasExistingLease()
279 assertEquals(HOSTNAME_NONE, offer.getHostname()); in testGetOffer_DifferentClientId()
288 assertEquals(TEST_HOSTNAME_1, offer.getHostname()); in testGetOffer_RequestedAddress()
331 assertEquals(TEST_HOSTNAME_1, offer.getHostname()); in testGetOffer_StaticClientAddress()
370 assertEquals(TEST_HOSTNAME_1, lease1.getHostname()); in testRequestLease_SelectingTwice()
373 assertEquals(TEST_HOSTNAME_2, lease2.getHostname()); in testRequestLease_SelectingTwice()
570 assertEquals(TEST_HOSTNAME_1, firstLease.getHostname()); in testMarkLeaseDeclined_UsedIfOutOfAddresses()
572 assertEquals(TEST_HOSTNAME_2, secondLease.getHostname()); in testMarkLeaseDeclined_UsedIfOutOfAddresses()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLease.java86 public String getHostname() { in getHostname() method in DhcpLease
DDhcpServer.java678 return request.hasRequestedParam(DHCP_HOST_NAME) && !TextUtils.isEmpty(lease.getHostname()) in getHostnameIfRequested()
679 ? lease.getHostname() in getHostnameIfRequested()
DDhcpPacket.java752 public String getHostname() { in getHostname() method in DhcpPacket
769 final String hn = getHostname(); in addCommonClientTlvs()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java666 assertNoHostname(packet.getHostname());
668 assertEquals(packet.getHostname(), hostnameAfterTransliteration);