Home
last modified time | relevance | path

Searched refs:reserveNetId (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/
DNetIdManagerTest.kt37 assertEquals(MIN_NET_ID, manager.reserveNetId()) in testReserveReleaseNetId()
38 assertEquals(MIN_NET_ID + 1, manager.reserveNetId()) in testReserveReleaseNetId()
39 assertEquals(MIN_NET_ID + 2, manager.reserveNetId()) in testReserveReleaseNetId()
40 assertEquals(MIN_NET_ID + 3, manager.reserveNetId()) in testReserveReleaseNetId()
45 assertEquals(MIN_NET_ID + 4, manager.reserveNetId()) in testReserveReleaseNetId()
46 assertEquals(MIN_NET_ID + 1, manager.reserveNetId()) in testReserveReleaseNetId()
47 assertEquals(MIN_NET_ID + 3, manager.reserveNetId()) in testReserveReleaseNetId()
48 assertThrows(IllegalStateException::class.java, ThrowingRunnable { manager.reserveNetId() }) in testReserveReleaseNetId()
51 assertThrows(IllegalStateException::class.java, ThrowingRunnable { manager.reserveNetId() }) in testReserveReleaseNetId()
54 assertEquals(MIN_NET_ID + 2, manager.reserveNetId()) in testReserveReleaseNetId()
DIpSecServiceTest.java657 assertEquals(netId, mIpSecService.reserveNetId()); in testReserveNetId()
662 mIpSecService.reserveNetId(); in testReserveNetId()
671 assertEquals(releasedNetId, mIpSecService.reserveNetId()); in testReserveNetId()
/packages/modules/Connectivity/tests/integration/util/com/android/server/
DTestNetIdManager.kt36 override fun reserveNetId() = nextId.decrementAndGet() method in com.android.server.TestNetIdManager
/packages/modules/Connectivity/service/src/com/android/server/
DNetIdManager.java82 public int reserveNetId() {
DConnectivityService.java8890 new Network(mNetIdManager.reserveNetId()), niCopy, lpCopy, ncCopy,
/packages/modules/Connectivity/service-t/src/com/android/server/
DIpSecService.java838 int reserveNetId() { in reserveNetId() method in IpSecService
1392 final int ikey = reserveNetId(); in createTunnelInterface()
1393 final int okey = reserveNetId(); in createTunnelInterface()