Searched refs:nextId (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Connectivity/tests/integration/util/com/android/server/ |
D | TestNetIdManager.kt | 35 private val nextId = AtomicInteger(MAX_NET_ID) constant in com.android.server.TestNetIdManager 36 override fun reserveNetId() = nextId.decrementAndGet() 38 fun peekNextNetId() = nextId.get() - 1
|
/packages/modules/DnsResolver/ |
D | DnsTlsQueryMap.cpp | 99 uint16_t nextId = 0; in getFreeId() local 102 if (id != nextId) { in getFreeId() 104 return nextId; in getFreeId() 106 nextId = id + 1; in getFreeId()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/ |
D | TestAuthenticator.java | 52 final int nextId = prefs.getInt(PREF_KEY_LAST_USER_ID, 0) + 1; in newUniqueUserName() local 53 prefs.edit().putInt(PREF_KEY_LAST_USER_ID, nextId).apply(); in newUniqueUserName() 55 return "User-" + nextId; in newUniqueUserName()
|
/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/ |
D | CreateTzS2ProtoDataFile.java | 117 AtomicInteger nextId = new AtomicInteger(0); in createTimeZonesProto() local 123 int id = idBySet.computeIfAbsent(range.tzIds, x -> nextId.getAndIncrement()); in createTimeZonesProto()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTaskTest.java | 84 int nextId = setupWorkspaceWithHoles(1, 1, new Rect(2, 2, 3, 3)); in testFindSpaceForItem_prefers_second() local 87 setupWorkspaceWithHoles(nextId, 2, new Rect(2, 0, 5, 2), new Rect(0, 2, 2, 5)); in testFindSpaceForItem_prefers_second()
|