Home
last modified time | relevance | path

Searched refs:IdGenerator (Results 1 – 19 of 19) sorted by relevance

/aosp12/frameworks/native/libs/input/tests/
H A DIdGenerator_test.cpp25 class IdGeneratorTest : public testing::TestWithParam<IdGenerator::Source> {
27 void SetUp() override { mGenerator.reset(new IdGenerator(GetParam())); } in SetUp()
29 std::unique_ptr<IdGenerator> mGenerator;
41 IdGenerator::Source source = IdGenerator::getSource(id); in TEST_P()
49 testing::Values(IdGenerator::Source::INPUT_READER,
50 IdGenerator::Source::INPUT_DISPATCHER,
51 IdGenerator::Source::OTHER));
/aosp12/packages/apps/TV/src/com/android/tv/dvr/data/
H A DIdGenerator.java22 public class IdGenerator { class
24 public static final IdGenerator SCHEDULED_RECORDING = new IdGenerator();
27 public static final IdGenerator SERIES_RECORDING = new IdGenerator();
/aosp12/system/bt/common/
H A Did_generator.h23 class IdGenerator {
27 IdGenerator() : in_use_{} {} in IdGenerator() function
48 int IdGenerator<N>::ALL_USED = -1;
H A Did_generator_unittest.cc22 IdGenerator<5> generator; in TEST()
/aosp12/frameworks/native/services/inputflinger/dispatcher/
H A DInputState.h33 explicit InputState(const IdGenerator& idGenerator);
114 const IdGenerator& mIdGenerator; // InputDispatcher owns it so we won't have dangling reference.
H A DConnection.cpp24 const IdGenerator& idGenerator) in Connection()
H A DConnection.h63 const IdGenerator& idGenerator);
H A DEntry.h66 return isInjected() || IdGenerator::getSource(id) != IdGenerator::Source::INPUT_READER; in isSynthesized()
H A DInputState.cpp25 InputState::InputState(const IdGenerator& idGenerator) : mIdGenerator(idGenerator) {} in InputState()
H A DInputDispatcher.h178 const IdGenerator mIdGenerator;
H A DInputDispatcher.cpp522 mIdGenerator(IdGenerator::Source::INPUT_DISPATCHER), in InputDispatcher()
2937 static_cast<int32_t>(IdGenerator::Source::OTHER); in enqueueDispatchEntryLocked()
/aosp12/frameworks/native/libs/input/
H A DInput.cpp124 IdGenerator::IdGenerator(Source source) : mSource(source) {} in IdGenerator() function in android::IdGenerator
126 int32_t IdGenerator::nextId() const { in nextId()
214 static IdGenerator idGen(IdGenerator::Source::OTHER); in nextId()
/aosp12/packages/apps/TV/src/com/android/tv/dvr/
H A DDvrDataManagerImpl.java48 import com.android.tv.dvr.data.IdGenerator;
256 IdGenerator.SERIES_RECORDING.setMaxId(maxId); in start()
345 IdGenerator.SCHEDULED_RECORDING.setMaxId(maxId); in start()
662 r.setId(IdGenerator.SCHEDULED_RECORDING.newId()); in addScheduledRecording()
682 r.setId(IdGenerator.SERIES_RECORDING.newId()); in addSeriesRecording()
/aosp12/frameworks/base/core/jni/
H A Dandroid_view_InputEventReceiver.cpp541 if (IdGenerator::getSource(inputEventId) != IdGenerator::Source::INPUT_READER) { in nativeReportTimeline()
/aosp12/frameworks/native/include/input/
H A DInput.h317 class IdGenerator {
328 IdGenerator(Source source);
/aosp12/frameworks/native/services/inputflinger/reader/include/
H A DInputReader.h126 IdGenerator mIdGenerator;
/aosp12/frameworks/native/services/inputflinger/reader/
H A DInputReader.cpp887 : mReader(reader), mIdGenerator(IdGenerator::Source::INPUT_READER) {} in ContextImpl()
/aosp12/frameworks/native/services/inputflinger/tests/
H A DInputDispatcher_test.cpp3128 EXPECT_EQ(IdGenerator::Source::INPUT_DISPATCHER, in TEST_F()
3129 IdGenerator::getSource(repeatEvent->getId())); in TEST_F()
H A DInputReader_test.cpp1862 ASSERT_EQ(IdGenerator::Source::INPUT_READER, IdGenerator::getSource(resetArgs.id)); in TEST_F()