Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/autofill/
DRequestIdTest.java59 datasetPrimaryNoWrap.add(requestId.nextId(false)); in setup()
68 datasetPrimaryWrap.add(requestId.nextId(false)); in setup()
76 datasetSecondaryNoWrap.add(requestId.nextId(true)); in setup()
85 datasetSecondaryWrap.add(requestId.nextId(true)); in setup()
93 datasetMixedNoWrap.add(requestId.nextId(i % 2 != 0)); in setup()
102 datasetMixedWrap.add(requestId.nextId(i % 2 != 0)); in setup()
153 int y = requestId.nextId(false); in testGetNextRequestId()
162 int y = requestId.nextId(true); in testGetNextRequestId()
171 int y = requestId.nextId(i % 2 != 0); in testGetNextRequestId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/viewmodel/
DActionButtonViewModel.kt27 private var nextId = 0 variable
29 private fun getId() = nextId.also { nextId += 1 } in <lambda>()
/frameworks/base/tools/aapt2/tools/
Dfinalize_res.py132 nextId = _lowest_staging_first_id - 0x00010000 variable
136 (resType, '0x{0:0{1}x}'.format(nextId, 8)))
137 nextId -= 0x00010000
/frameworks/native/libs/input/tests/
DIdGenerator_test.cpp34 mGenerator->nextId(); in TEST_P()
40 int32_t id = mGenerator->nextId(); in TEST_P()
DInputPublisherAndConsumer_test.cpp87 eventId(InputEvent::nextId()), in PublishMotionArgs()
264 int32_t eventId = InputEvent::nextId(); in publishAndConsumeKeyEvent()
405 int32_t eventId = InputEvent::nextId(); in publishAndConsumeFocusEvent()
446 int32_t eventId = InputEvent::nextId(); in publishAndConsumeCaptureEvent()
486 int32_t eventId = InputEvent::nextId(); in publishAndConsumeDragEvent()
530 int32_t eventId = InputEvent::nextId(); in publishAndConsumeTouchModeEvent()
627 mPublisher->publishMotionEvent(0, InputEvent::nextId(), 0, 0, in TEST_F()
644 mPublisher->publishMotionEvent(1, InputEvent::nextId(), 0, 0, in TEST_F()
666 mPublisher->publishMotionEvent(1, InputEvent::nextId(), 0, 0, in TEST_F()
DVerifiedInputEvent_test.cpp25 event.initialize(InputEvent::nextId(), /*deviceId=*/2, AINPUT_SOURCE_GAMEPAD, in getKeyEventWithFlags()
46 event.initialize(InputEvent::nextId(), /*deviceId=*/0, AINPUT_SOURCE_MOUSE, in getMotionEventWithFlags()
DInputPublisherAndConsumerNoResampling_test.cpp94 eventId(InputEvent::nextId()), in PublishMotionArgs()
447 int32_t eventId = InputEvent::nextId(); in publishAndConsumeKeyEvent()
592 int32_t eventId = InputEvent::nextId(); in publishAndConsumeFocusEvent()
612 int32_t eventId = InputEvent::nextId(); in publishAndConsumeCaptureEvent()
634 int32_t eventId = InputEvent::nextId(); in publishAndConsumeDragEvent()
660 int32_t eventId = InputEvent::nextId(); in publishAndConsumeTouchModeEvent()
742 mPublisher->publishMotionEvent(0, InputEvent::nextId(), 0, 0, in TEST_F()
760 mPublisher->publishMotionEvent(1, InputEvent::nextId(), 0, 0, in TEST_F()
782 mPublisher->publishMotionEvent(1, InputEvent::nextId(), 0, 0, in TEST_F()
DInputEvent_test.cpp224 const int32_t id = InputEvent::nextId(); in TEST_F()
286 mId = InputEvent::nextId(); in SetUp()
827 event.initialize(InputEvent::nextId(), /*deviceId=*/0, AINPUT_SOURCE_TOUCHSCREEN, DISPLAY_ID, in TEST_F()
886 event.initialize(InputEvent::nextId(), /*deviceId=*/1, source, ui::LogicalDisplayId::DEFAULT, in createMotionEvent()
1032 event.initialize(InputEvent::nextId(), /*deviceId=*/0, AINPUT_SOURCE_TOUCHSCREEN, in TEST_F()
1054 event.initialize(InputEvent::nextId(), /*deviceId=*/0, AINPUT_SOURCE_MOUSE, DISPLAY_ID, in TEST_F()
1098 event.initialize(InputEvent::nextId(), 2, AINPUT_SOURCE_TOUCHSCREEN, DISPLAY_ID, HMAC, in TEST_F()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/
DRemoteComposeState.java84 int id = nextId(); in cache()
111 int id = nextId(); in cacheFloat()
183 public int nextId() { in nextId() method in RemoteComposeState
/frameworks/minikin/libs/minikin/
DLocaleListCache.cpp149 const uint32_t nextId = mLocaleLists.size(); in getIdInternal() local
150 mLocaleListLookupTable.emplace(locales, nextId); in getIdInternal()
153 return nextId; in getIdInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceIdRecyclingTest.java92 int nextId = mUserManagerService.getNextAvailableId(); in testUserCreateRecycleIdsAddAllThenRemove() local
93 assertEquals(startFrom, nextId); in testUserCreateRecycleIdsAddAllThenRemove()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManager.java180 int nextId; in regenerate() local
182 nextId = 1; in regenerate()
185 nextId = generationId + 1; in regenerate()
187 generateAndLoadKey(userId, nextId); in regenerate()
/frameworks/base/telecomm/java/android/telecom/Logging/
DSessionManager.java390 Integer nextId = sCodeEntryCounter++; in getNextSessionID() local
391 if (nextId >= SESSION_ID_ROLLOVER_THRESHOLD) { in getNextSessionID()
393 nextId = sCodeEntryCounter++; in getNextSessionID()
395 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/services/tests/wmtests/src/com/android/server/wm/
DSyncEngineTests.java454 final int[] nextId = new int[]{-1}; in testQueueSyncSet() local
456 () -> nextId[0] = startSyncSet(bse, listener), in testQueueSyncSet()
458 bse.setReady(nextId[0]); in testQueueSyncSet()
459 bse.addToSyncSet(nextId[0], mockWC2); in testQueueSyncSet()
463 assertEquals(-1, nextId[0]); in testQueueSyncSet()
472 assertTrue(nextId[0] != -1); in testQueueSyncSet()
473 assertFalse(bse.isReady(nextId[0])); in testQueueSyncSet()
477 assertTrue(bse.isReady(nextId[0])); in testQueueSyncSet()
/frameworks/native/services/inputflinger/include/
DNotifyArgsBuilders.h33 MotionArgsBuilder(int32_t action, int32_t source) : mEventId(InputEvent::nextId()) { in MotionArgsBuilder()
168 KeyArgsBuilder(int32_t action, int32_t source) : mEventId(InputEvent::nextId()) { in KeyArgsBuilder()
/frameworks/native/include/input/
DInputEventBuilders.h146 event.initialize(InputEvent::nextId(), mDeviceId, mSource, mDisplayId, INVALID_HMAC, in build()
238 event.initialize(InputEvent::nextId(), mDeviceId, mSource, mDisplayId, INVALID_HMAC, in build()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DRequestId.java124 public int nextId(boolean isSecondary) { in nextId() method in RequestId
/frameworks/native/services/inputflinger/dispatcher/
DInputState.cpp401 return std::make_unique<MotionEntry>(mIdGenerator.nextId(), /*injectionState=*/nullptr, in createCancelEntryForMemento()
418 std::make_unique<KeyEntry>(mIdGenerator.nextId(), /*injectionState=*/nullptr, in synthesizeCancelationEvents()
480 std::make_unique<MotionEntry>(mIdGenerator.nextId(), /*injectionState=*/nullptr, in synthesizePointerDownEvents()
534 std::make_unique<MotionEntry>(mIdGenerator.nextId(), /*injectionState=*/nullptr, in synthesizeCancelationEventsForPointers()
/frameworks/av/media/libaudioclient/tests/
Daudiosystem_tests.cpp625 static int nextId = 0; in GenerateUniqueDeviceAddress() local
632 address = AudioDeviceAddress::make<Tag::id>(std::to_string(++nextId)); in GenerateUniqueDeviceAddress()
636 std::vector<uint8_t>{1, 2, 3, 4, 5, static_cast<uint8_t>(++nextId & 0xff)}); in GenerateUniqueDeviceAddress()
640 std::vector<uint8_t>{192, 168, 0, static_cast<uint8_t>(++nextId & 0xff)}); in GenerateUniqueDeviceAddress()
644 0xfc00, 0x0123, 0x4567, 0x89ab, 0xcdef, 0, 0, ++nextId & 0xffff}); in GenerateUniqueDeviceAddress()
647 address = AudioDeviceAddress::make<Tag::alsa>(std::vector<int32_t>{1, ++nextId}); in GenerateUniqueDeviceAddress()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DShadeListBuilderTest.java572 .setId(nextId(PACKAGE_1)) in testFilter_resetsInitalizationTime()
2302 .setId(nextId(packageId)) in addNotif()
2318 .setId(nextId(packageId)) in addGroupSummary()
2337 .setId(nextId(packageId)) in addGroupChildWithTag()
2398 private int nextId(String packageName) { in nextId() method in ShadeListBuilderTest
2399 Integer nextId = mNextIdMap.get(packageName); in nextId() local
2400 if (nextId == null) { in nextId()
2401 nextId = 0; in nextId()
2403 mNextIdMap.put(packageName, nextId + 1); in nextId()
2404 return nextId; in nextId()
/frameworks/native/services/inputflinger/tests/fuzzers/
DFuzzedInputStream.h193 return NotifyMotionArgs(idGenerator.nextId(), eventTime, readTime, deviceId, source, displayId, in generateFuzzedMotionArgs()
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp166 return static_cast<jint>(InputEvent::nextId()); in android_view_KeyEvent_nativeNextId()
/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/java/android/widget/
DRadialTimePickerView.java1257 final int nextId = getVirtualViewIdAfter(type, value); in onPopulateNodeForVirtualView() local
1258 if (nextId != INVALID_ID) { in onPopulateNodeForVirtualView()
1259 node.setTraversalBefore(RadialTimePickerView.this, nextId); in onPopulateNodeForVirtualView()

12