Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/com/android/server/
DNetIdManagerTest.kt34 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()
42 assertEquals(MIN_NET_ID + 4, manager.reserveNetId()) in testReserveReleaseNetId()
43 assertEquals(MIN_NET_ID + 1, manager.reserveNetId()) in testReserveReleaseNetId()
44 assertEquals(MIN_NET_ID + 3, manager.reserveNetId()) in testReserveReleaseNetId()
45 assertThrows(IllegalStateException::class.java, ThrowingRunnable { manager.reserveNetId() }) in testReserveReleaseNetId()
48 assertThrows(IllegalStateException::class.java, ThrowingRunnable { manager.reserveNetId() }) in testReserveReleaseNetId()
51 assertEquals(MIN_NET_ID + 2, manager.reserveNetId()) in testReserveReleaseNetId()
DIpSecServiceTest.java655 assertEquals(start + i, mIpSecService.reserveNetId()); in testReserveNetId()
660 mIpSecService.reserveNetId(); in testReserveNetId()
669 assertEquals(releasedNetId, mIpSecService.reserveNetId()); in testReserveNetId()
/frameworks/base/tests/net/integration/util/com/android/server/
DTestNetIdManager.kt36 override fun reserveNetId() = nextId.decrementAndGet() method in com.android.server.TestNetIdManager
/frameworks/base/services/core/java/com/android/server/
DNetIdManager.java71 public int reserveNetId() {
DIpSecService.java778 int reserveNetId() { in reserveNetId() method in IpSecService
1307 final int ikey = reserveNetId(); in createTunnelInterface()
1308 final int okey = reserveNetId(); in createTunnelInterface()
DConnectivityService.java5900 new Network(mNetIdManager.reserveNetId()), new NetworkInfo(networkInfo), lp, nc, in registerNetworkAgent()
/frameworks/base/services/
Dart-profile894 HSPLcom/android/server/ConnectivityService;->reserveNetId()I