Home
last modified time | relevance | path

Searched defs:lease (Results 1 – 7 of 7) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseTest.kt46 val lease = DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, in testToParcelable() constant
54 val lease = DhcpLease(null, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, TEST_EXPTIME, null) in testToParcelable_NullFields() constant
60 val lease = DhcpLease(TEST_CLIENT_ID, TEST_HWADDR, TEST_INETADDR, TEST_PREFIXLEN, in testEquals() constant
DDhcpLeaseRepositoryTest.java139 final DhcpLease lease = mRepo.getOffer(CLIENTID_UNSPEC, newMac, in requestAddresses() local
222 final DhcpLease lease = mRepo.getOffer(CLIENTID_UNSPEC, macAddr, in testGetOffer_StableAddress() local
237 DhcpLease lease = mRepo.getOffer(CLIENTID_UNSPEC, TEST_MAC_1, in testUpdateParams_UsesNewPrefix() local
338 final DhcpLease lease = mRepo.requestLease(clientId, TEST_MAC_1, in testGetOffer_StaticClientAddressInUse() local
416 final DhcpLease lease = requestLeaseInitReboot(TEST_MAC_1, TEST_INETADDR_1); in testRequestLease_InitReboot() local
435 final DhcpLease lease = requestLeaseInitReboot(TEST_MAC_1, TEST_INETADDR_2); in testRequestLease_InitRebootUnknownAddr() local
456 final DhcpLease lease = requestLeaseRenewing(TEST_MAC_1, TEST_INETADDR_1); in testRequestLease_Renewing() local
469 final DhcpLease lease = requestLeaseRenewing(TEST_MAC_1, TEST_INETADDR_1); in testRequestLease_RenewingUnknownAddr() local
515 final DhcpLease lease = mRepo.getOffer(CLIENTID_UNSPEC, mac, in testReleaseLease_StableOffer() local
530 final DhcpLease lease = mRepo.getOffer(CLIENTID_UNSPEC, TEST_MAC_1, in testMarkLeaseDeclined() local
[all …]
DDhcpServerTest.java427 final DhcpLease lease = new DhcpLease(null, TEST_CLIENT_MAC, in testChangePrefixOnDecline() local
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServer.java531 final DhcpLease lease; in processDiscover() local
554 final DhcpLease lease; in processRequest() local
641 private Inet4Address getAckOrOfferDst(@NonNull DhcpPacket request, @NonNull DhcpLease lease, in getAckOrOfferDst()
660 private static boolean getBroadcastFlag(@NonNull DhcpPacket request, @NonNull DhcpLease lease) { in getBroadcastFlag()
678 @NonNull DhcpLease lease) { in getHostnameIfRequested()
684 private boolean transmitOffer(@NonNull DhcpPacket request, @NonNull DhcpLease lease, in transmitOffer()
706 private boolean transmitAck(@NonNull DhcpPacket packet, @NonNull DhcpLease lease, in transmitAck()
741 @NonNull DhcpLease lease, @NonNull MacAddress clientMac, boolean broadcastFlag) { in transmitOfferOrAckPacket()
785 private int getLeaseTimeout(@NonNull DhcpLease lease) { in getLeaseTimeout()
DDhcpLeaseRepository.java308 final DhcpLease lease = in requestLease() local
335 final DhcpLease lease; in checkClientAndMakeLease() local
349 private void commitLease(@NonNull DhcpLease lease) { in commitLease()
350 mCommittedLeases.put(lease.getNetAddr(), lease); in commitLease() local
480 final Entry<Inet4Address, T> lease = it.next(); in removeExpired() local
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DConnectedClientsTracker.java120 private static void addLease(Map<MacAddress, TetheredClient> clientsMap, TetheredClient lease) { in addLease()
125 clientsMap.put(lease.getMacAddress(), lease); in addLease() local
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java2545 final DhcpLeaseParcelable lease = new DhcpLeaseParcelable(); in createDhcpLeaseParcelable() local