Home
last modified time | relevance | path

Searched refs:INFINITE_LEASE (Results 1 – 7 of 7) sorted by relevance

/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServingParams.java21 import static com.android.server.util.NetworkStackConstants.INFINITE_LEASE;
373 if (mDhcpLeaseTimeSecs <= 0 || mDhcpLeaseTimeSecs > toUnsignedLong(INFINITE_LEASE)) { in build()
DDhcpPacket.java65 public static final int INFINITE_LEASE = (int) 0xffffffff; field in DhcpPacket
775 if (mLeaseTime != null && mLeaseTime != INFINITE_LEASE) { in addCommonServerTlvs()
1365 results.leaseDuration = (mLeaseTime != null) ? mLeaseTime : INFINITE_LEASE; in toDhcpResults()
1378 if (mLeaseTime == null || mLeaseTime == INFINITE_LEASE) { in getLeaseTimeMillis()
DDhcpServer.java39 import static com.android.server.util.NetworkStackConstants.INFINITE_LEASE;
785 if (remainingTimeSecs >= toUnsignedLong(INFINITE_LEASE)) { in getLeaseTimeout()
786 return INFINITE_LEASE; in getLeaseTimeout()
DDhcpClient.java32 import static android.net.dhcp.DhcpPacket.INFINITE_LEASE;
788 na.setAssignedV4AddressExpiry((mDhcpLease.leaseDuration == INFINITE_LEASE) in maybeSaveLeaseToIpMemoryStore()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java35 import static android.net.dhcp.DhcpPacket.INFINITE_LEASE;
260 assertLeaseTimeParses(true, DhcpPacket.INFINITE_LEASE, 0, infiniteLease); in testLeaseTime()
1194 if (leaseTimeSecs != INFINITE_LEASE) { in checkBuildOfferPacket()
1245 checkBuildOfferPacket(INFINITE_LEASE, HOSTNAME); in testOfferPacket()
/packages/modules/NetworkStack/src/com/android/server/util/
DNetworkStackConstants.java149 public static final int INFINITE_LEASE = 0xffffffff; field in NetworkStackConstants
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java26 import static android.net.dhcp.DhcpPacket.INFINITE_LEASE;
642 if (leaseTimeSec == null || leaseTimeSec.intValue() == DhcpPacket.INFINITE_LEASE) {
1056 performDhcpHandshake(true /* isSuccessLease */, INFINITE_LEASE,
1060 assertIpMemoryStoreNetworkAttributes(INFINITE_LEASE, currentTime, TEST_DEFAULT_MTU);