Home
last modified time | relevance | path

Searched refs:nextId (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/tests/net/integration/util/com/android/server/
DTestNetIdManager.kt35 private val nextId = AtomicInteger(MAX_NET_ID) constant
36 override fun reserveNetId() = nextId.decrementAndGet()
/frameworks/native/libs/input/tests/
DIdGenerator_test.cpp34 mGenerator->nextId(); in TEST_P()
40 int32_t id = mGenerator->nextId(); in TEST_P()
DInputPublisherAndConsumer_test.cpp76 int32_t eventId = InputEvent::nextId(); in PublishAndConsumeKeyEvent()
144 int32_t eventId = InputEvent::nextId(); in PublishAndConsumeMotionEvent()
284 int32_t eventId = InputEvent::nextId(); in PublishAndConsumeFocusEvent()
341 status = mPublisher->publishMotionEvent(0, InputEvent::nextId(), 0, 0, 0, INVALID_HMAC, 0, 0, 0, in TEST_F()
357 status = mPublisher->publishMotionEvent(1, InputEvent::nextId(), 0, 0, 0, INVALID_HMAC, 0, 0, 0, in TEST_F()
378 status = mPublisher->publishMotionEvent(1, InputEvent::nextId(), 0, 0, 0, INVALID_HMAC, 0, 0, 0, in TEST_F()
DVerifiedInputEvent_test.cpp24 event.initialize(InputEvent::nextId(), 2 /*deviceId*/, AINPUT_SOURCE_GAMEPAD, in getKeyEventWithFlags()
42 event.initialize(InputEvent::nextId(), 0 /*deviceId*/, AINPUT_SOURCE_MOUSE, ADISPLAY_ID_DEFAULT, in getMotionEventWithFlags()
DInputEvent_test.cpp185 const int32_t id = InputEvent::nextId(); in TEST_F()
235 mId = InputEvent::nextId(); in initializeEventWithHistory()
587 event.initialize(InputEvent::nextId(), 0 /*deviceId*/, AINPUT_SOURCE_UNKNOWN, DISPLAY_ID, in TEST_F()
652 event.initialize(InputEvent::nextId(), 0 /*deviceId*/, AINPUT_SOURCE_TOUCHSCREEN, in TEST_F()
673 event.initialize(InputEvent::nextId(), 0 /*deviceId*/, AINPUT_SOURCE_MOUSE, DISPLAY_ID, in TEST_F()
DVelocityTracker_test.cpp179 event.initialize(InputEvent::nextId(), 0 /*deviceId*/, AINPUT_SOURCE_TOUCHSCREEN, in createMotionEventStream()
/frameworks/minikin/libs/minikin/
DLocaleListCache.cpp124 const uint32_t nextId = mLocaleLists.size(); in getIdInternal() local
130 mLocaleListLookupTable.insert(std::make_pair(locales, nextId)); in getIdInternal()
131 return nextId; in getIdInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceIdRecyclingTest.java91 int nextId = mUserManagerService.getNextAvailableId(); in testUserCreateRecycleIdsAddAllThenRemove() local
92 assertEquals(startFrom, nextId); in testUserCreateRecycleIdsAddAllThenRemove()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManager.java183 int nextId; in regenerate() local
185 nextId = 1; in regenerate()
188 nextId = generationId + 1; in regenerate()
191 generateAndLoadKey(userId, nextId); in regenerate()
/frameworks/base/telecomm/java/android/telecom/Logging/
DSessionManager.java389 Integer nextId = sCodeEntryCounter++; in getNextSessionID() local
390 if (nextId >= SESSION_ID_ROLLOVER_THRESHOLD) { in getNextSessionID()
392 nextId = sCodeEntryCounter++; in getNextSessionID()
394 return getBase64Encoding(nextId); in getNextSessionID()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/
DExternalResources.java136 private int nextId = 1; field in ExternalResources.Resources
139 int id = nextId++; in put()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DShadeListBuilderTest.java492 .setId(nextId(PACKAGE_1)) in testFilter_resetsInitalizationTime()
1150 .setId(nextId(packageId)) in addNotif()
1166 .setId(nextId(packageId)) in addGroupSummary()
1185 .setId(nextId(packageId)) in addGroupChildWithTag()
1203 private int nextId(String packageName) { in nextId() method in ShadeListBuilderTest
1204 Integer nextId = mNextIdMap.get(packageName); in nextId() local
1205 if (nextId == null) { in nextId()
1206 nextId = 0; in nextId()
1208 mNextIdMap.put(packageName, nextId + 1); in nextId()
1209 return nextId; in nextId()
/frameworks/native/services/inputflinger/dispatcher/
DInputState.cpp273 events.push_back(new KeyEntry(mIdGenerator.nextId(), currentTime, memento.deviceId, in synthesizeCancelationEvents()
286 events.push_back(new MotionEntry(mIdGenerator.nextId(), currentTime, memento.deviceId, in synthesizeCancelationEvents()
336 events.push_back(new MotionEntry(mIdGenerator.nextId(), currentTime, memento.deviceId, in synthesizePointerDownEvents()
DInputDispatcher.cpp1022 entry->id = mIdGenerator.nextId(); in synthesizeKeyRepeatLocked()
1028 new KeyEntry(mIdGenerator.nextId(), currentTime, entry->deviceId, entry->source, in synthesizeKeyRepeatLocked()
1086 new FocusEntry(mIdGenerator.nextId(), now(), window.getToken(), hasFocus); in enqueueFocusEventLocked()
2393 ? mIdGenerator.nextId() in enqueueDispatchEntryLocked()
2992 int32_t newId = mIdGenerator.nextId(); in splitMotionEvent()
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp59 event.initialize(InputEvent::nextId(), DEVICE_ID, AINPUT_SOURCE_KEYBOARD, ADISPLAY_ID_NONE, in getTestKeyEvent()
399 event.initialize(InputEvent::nextId(), DEVICE_ID, AINPUT_SOURCE_KEYBOARD, ADISPLAY_ID_NONE, in TEST_F()
409 event.initialize(InputEvent::nextId(), DEVICE_ID, AINPUT_SOURCE_KEYBOARD, ADISPLAY_ID_NONE, in TEST_F()
435 event.initialize(InputEvent::nextId(), DEVICE_ID, source, DISPLAY_ID, INVALID_HMAC, in TEST_F()
446 event.initialize(InputEvent::nextId(), DEVICE_ID, source, DISPLAY_ID, INVALID_HMAC, in TEST_F()
458 event.initialize(InputEvent::nextId(), DEVICE_ID, source, DISPLAY_ID, INVALID_HMAC, in TEST_F()
471 event.initialize(InputEvent::nextId(), DEVICE_ID, source, DISPLAY_ID, INVALID_HMAC, in TEST_F()
483 event.initialize(InputEvent::nextId(), DEVICE_ID, source, DISPLAY_ID, INVALID_HMAC, in TEST_F()
496 event.initialize(InputEvent::nextId(), DEVICE_ID, source, DISPLAY_ID, INVALID_HMAC, in TEST_F()
507 event.initialize(InputEvent::nextId(), DEVICE_ID, source, DISPLAY_ID, INVALID_HMAC, in TEST_F()
[all …]
/frameworks/native/libs/input/
DInput.cpp49 int32_t IdGenerator::nextId() const { in nextId() function in android::IdGenerator
130 int32_t InputEvent::nextId() { in nextId() function in android::InputEvent
132 return idGen.nextId(); in nextId()
DKeyCharacterMap.cpp490 event.initialize(InputEvent::nextId(), deviceId, AINPUT_SOURCE_KEYBOARD, ADISPLAY_ID_NONE, in addKey()
/frameworks/native/include/input/
DInput.h289 int32_t nextId() const;
414 static int32_t nextId();
/frameworks/native/libs/ui/
DGraphicBuffer.cpp37 static volatile int32_t nextId = 0; in getUniqueId() local
39 id |= static_cast<uint32_t>(android_atomic_inc(&nextId)); in getUniqueId()
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp166 return static_cast<jint>(InputEvent::nextId()); in android_view_KeyEvent_nativeNextId()
/frameworks/native/services/inputflinger/benchmarks/
DInputDispatcher_benchmarks.cpp206 event.initialize(InputEvent::nextId(), DEVICE_ID, AINPUT_SOURCE_TOUCHSCREEN, in generateMotionEvent()
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java1246 final int nextId = getVirtualViewIdAfter(type, value); in onPopulateNodeForVirtualView() local
1247 if (nextId != INVALID_ID) { in onPopulateNodeForVirtualView()
1248 node.setTraversalBefore(RadialTimePickerView.this, nextId); in onPopulateNodeForVirtualView()
DRemoteViews.java3305 public void setAccessibilityTraversalBefore(int viewId, int nextId) {
3306 setInt(viewId, "setAccessibilityTraversalBefore", nextId);
3315 public void setAccessibilityTraversalAfter(int viewId, int nextId) {
3316 setInt(viewId, "setAccessibilityTraversalAfter", nextId);
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java4434 int nextId; in getNextAvailableId() local
4436 nextId = scanNextAvailableIdLocked(); in getNextAvailableId()
4437 if (nextId >= 0) { in getNextAvailableId()
4438 return nextId; in getNextAvailableId()
4448 nextId = scanNextAvailableIdLocked(); in getNextAvailableId()
4451 if (nextId < 0) { in getNextAvailableId()
4454 return nextId; in getNextAvailableId()
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp765 return mIdGenerator.nextId(); in getNextId()

12