Searched refs:MIN_NET_ID (Results 1 – 2 of 2) sorted by relevance
21 import com.android.server.NetIdManager.MIN_NET_ID33 val manager = NetIdManager(MIN_NET_ID + 4) in testReserveReleaseNetId()34 assertEquals(MIN_NET_ID, manager.reserveNetId()) in testReserveReleaseNetId()35 assertEquals(MIN_NET_ID + 1, manager.reserveNetId()) in testReserveReleaseNetId()36 assertEquals(MIN_NET_ID + 2, manager.reserveNetId()) in testReserveReleaseNetId()37 assertEquals(MIN_NET_ID + 3, manager.reserveNetId()) in testReserveReleaseNetId()39 manager.releaseNetId(MIN_NET_ID + 1) in testReserveReleaseNetId()40 manager.releaseNetId(MIN_NET_ID + 3) in testReserveReleaseNetId()42 assertEquals(MIN_NET_ID + 4, manager.reserveNetId()) in testReserveReleaseNetId()43 assertEquals(MIN_NET_ID + 1, manager.reserveNetId()) in testReserveReleaseNetId()[all …]
32 public static final int MIN_NET_ID = 100; // some reserved marks field in NetIdManager40 private int mLastNetId = MIN_NET_ID - 1;59 for (int i = MIN_NET_ID; i <= mMaxNetId; i++) { in getNextAvailableNetIdLocked()60 netId = netId < mMaxNetId ? netId + 1 : MIN_NET_ID; in getNextAvailableNetIdLocked()