/frameworks/base/tests/net/integration/util/com/android/server/ |
D | TestNetIdManager.kt | 35 private val nextId = AtomicInteger(MAX_NET_ID) constant 36 override fun reserveNetId() = nextId.decrementAndGet()
|
/frameworks/native/libs/input/tests/ |
D | IdGenerator_test.cpp | 34 mGenerator->nextId(); in TEST_P() 40 int32_t id = mGenerator->nextId(); in TEST_P()
|
D | InputPublisherAndConsumer_test.cpp | 76 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()
|
D | VerifiedInputEvent_test.cpp | 24 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()
|
D | InputEvent_test.cpp | 185 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()
|
D | VelocityTracker_test.cpp | 179 event.initialize(InputEvent::nextId(), 0 /*deviceId*/, AINPUT_SOURCE_TOUCHSCREEN, in createMotionEventStream()
|
/frameworks/minikin/libs/minikin/ |
D | LocaleListCache.cpp | 124 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/ |
D | UserManagerServiceIdRecyclingTest.java | 91 int nextId = mUserManagerService.getNextAvailableId(); in testUserCreateRecycleIdsAddAllThenRemove() local 92 assertEquals(startFrom, nextId); in testUserCreateRecycleIdsAddAllThenRemove()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManager.java | 183 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/ |
D | SessionManager.java | 389 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/ |
D | ExternalResources.java | 136 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/ |
D | ShadeListBuilderTest.java | 492 .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/ |
D | InputState.cpp | 273 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()
|
D | InputDispatcher.cpp | 1022 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/ |
D | InputDispatcher_test.cpp | 59 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/ |
D | Input.cpp | 49 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()
|
D | KeyCharacterMap.cpp | 490 event.initialize(InputEvent::nextId(), deviceId, AINPUT_SOURCE_KEYBOARD, ADISPLAY_ID_NONE, in addKey()
|
/frameworks/native/include/input/ |
D | Input.h | 289 int32_t nextId() const; 414 static int32_t nextId();
|
/frameworks/native/libs/ui/ |
D | GraphicBuffer.cpp | 37 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/ |
D | android_view_KeyEvent.cpp | 166 return static_cast<jint>(InputEvent::nextId()); in android_view_KeyEvent_nativeNextId()
|
/frameworks/native/services/inputflinger/benchmarks/ |
D | InputDispatcher_benchmarks.cpp | 206 event.initialize(InputEvent::nextId(), DEVICE_ID, AINPUT_SOURCE_TOUCHSCREEN, in generateMotionEvent()
|
/frameworks/base/core/java/android/widget/ |
D | RadialTimePickerView.java | 1246 final int nextId = getVirtualViewIdAfter(type, value); in onPopulateNodeForVirtualView() local 1247 if (nextId != INVALID_ID) { in onPopulateNodeForVirtualView() 1248 node.setTraversalBefore(RadialTimePickerView.this, nextId); in onPopulateNodeForVirtualView()
|
D | RemoteViews.java | 3305 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/ |
D | UserManagerService.java | 4434 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/ |
D | InputReader.cpp | 765 return mIdGenerator.nextId(); in getNextId()
|