Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java238 protected Integer mLeaseTime; field in DhcpPacket
774 addTlv(buf, DHCP_LEASE_TIME, mLeaseTime); in addCommonServerTlvs()
775 if (mLeaseTime != null && mLeaseTime != INFINITE_LEASE) { in addCommonServerTlvs()
777 addTlv(buf, DHCP_RENEWAL_TIME, (int) (Integer.toUnsignedLong(mLeaseTime) / 2)); in addCommonServerTlvs()
780 (int) (Integer.toUnsignedLong(mLeaseTime) * 875L / 1000L)); in addCommonServerTlvs()
1282 newPacket.mLeaseTime = leaseTime; in decodeFullPacket()
1365 results.leaseDuration = (mLeaseTime != null) ? mLeaseTime : INFINITE_LEASE; in toDhcpResults()
1378 if (mLeaseTime == null || mLeaseTime == INFINITE_LEASE) { in getLeaseTimeMillis()
1380 } else if (0 <= mLeaseTime && mLeaseTime < MINIMUM_LEASE) { in getLeaseTimeMillis()
1383 return (mLeaseTime & 0xffffffffL) * 1000; in getLeaseTimeMillis()
[all …]
DDhcpOfferPacket.java52 " lease time " + mLeaseTime + ", domain " + mDomainName; in toString()
DDhcpAckPacket.java52 ", lease time " + mLeaseTime; in toString()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServerTest.java457 assertNotNull(packet.mLeaseTime); in assertMatchesLease()
458 assertEquals(TEST_LEASE_EXPTIME_SECS, (int) packet.mLeaseTime); in assertMatchesLease()
DDhcpPacketTest.java233 assertEquals(rawLeaseTime, offerPacket.mLeaseTime); in assertLeaseTimeParses()