Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DStructNdOptPioTest.java19 import static com.android.net.module.util.NetworkStackConstants.INFINITE_LEASE;
111 Integer.toUnsignedLong(INFINITE_LEASE) /* preferred */, in testParsingPioWithPFlag_infinityLifetime()
112 Integer.toUnsignedLong(INFINITE_LEASE) /* valid */, in testParsingPioWithPFlag_infinityLifetime()
136 Integer.toUnsignedLong(INFINITE_LEASE) /* preferred */, in testToByteBuffer_infinityLifetime()
137 Integer.toUnsignedLong(INFINITE_LEASE) /* valid */, TEST_PREFIX); in testToByteBuffer_infinityLifetime()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpServingParams.java21 import static com.android.net.module.util.NetworkStackConstants.INFINITE_LEASE;
395 if (mDhcpLeaseTimeSecs <= 0 || mDhcpLeaseTimeSecs > toUnsignedLong(INFINITE_LEASE)) { in build()
DDhcpServer.java36 import static com.android.net.module.util.NetworkStackConstants.INFINITE_LEASE;
810 if (remainingTimeSecs >= toUnsignedLong(INFINITE_LEASE)) { in getLeaseTimeout()
811 return INFINITE_LEASE; in getLeaseTimeout()
DDhcpPacket.java69 public static final int INFINITE_LEASE = (int) 0xffffffff; field in DhcpPacket
846 if (mLeaseTime != null && mLeaseTime != INFINITE_LEASE) { in addCommonServerTlvs()
1480 results.leaseDuration = (mLeaseTime != null) ? mLeaseTime : INFINITE_LEASE; in toDhcpResults()
1496 if (mLeaseTime == null || mLeaseTime == INFINITE_LEASE) { in getLeaseTimeMillis()
DDhcpClient.java36 import static android.net.dhcp.DhcpPacket.INFINITE_LEASE;
856 na.setAssignedV4AddressExpiry((mDhcpLease.leaseDuration == INFINITE_LEASE) in maybeSaveLeaseToIpMemoryStore()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java24 import static com.android.net.module.util.NetworkStackConstants.INFINITE_LEASE;
575 if (cacheInfo.preferred < Integer.toUnsignedLong(INFINITE_LEASE)) { in processRtNetlinkAddressMessage()
578 if (cacheInfo.valid < Integer.toUnsignedLong(INFINITE_LEASE)) { in processRtNetlinkAddressMessage()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java35 import static android.net.dhcp.DhcpPacket.INFINITE_LEASE;
268 assertLeaseTimeParses(true, DhcpPacket.INFINITE_LEASE, 0, infiniteLease); in testLeaseTime()
1249 if (leaseTimeSecs != INFINITE_LEASE) { in checkBuildOfferPacket()
1300 checkBuildOfferPacket(INFINITE_LEASE, HOSTNAME); in testOfferPacket()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkStackConstants.java229 public static final int INFINITE_LEASE = 0xffffffff; field in NetworkStackConstants
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java37 import static android.net.dhcp.DhcpPacket.INFINITE_LEASE;
1244 if (leaseTimeSec == null || leaseTimeSec.intValue() == DhcpPacket.INFINITE_LEASE) {
1707 performDhcpHandshake(true /* isSuccessLease */, INFINITE_LEASE,
1711 assertIpMemoryStoreNetworkAttributes(INFINITE_LEASE, currentTime, TEST_DEFAULT_MTU);
5828 handleDhcpPackets(true /* isSuccessLease */, DhcpPacket.INFINITE_LEASE,
5956 DhcpPacket.INFINITE_LEASE,