/aosp12/frameworks/native/libs/input/tests/ |
H A D | IdGenerator_test.cpp | 25 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 D | IdGenerator.java | 22 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 D | id_generator.h | 23 class IdGenerator { 27 IdGenerator() : in_use_{} {} in IdGenerator() function 48 int IdGenerator<N>::ALL_USED = -1;
|
H A D | id_generator_unittest.cc | 22 IdGenerator<5> generator; in TEST()
|
/aosp12/frameworks/native/services/inputflinger/dispatcher/ |
H A D | InputState.h | 33 explicit InputState(const IdGenerator& idGenerator); 114 const IdGenerator& mIdGenerator; // InputDispatcher owns it so we won't have dangling reference.
|
H A D | Connection.cpp | 24 const IdGenerator& idGenerator) in Connection()
|
H A D | Connection.h | 63 const IdGenerator& idGenerator);
|
H A D | Entry.h | 66 return isInjected() || IdGenerator::getSource(id) != IdGenerator::Source::INPUT_READER; in isSynthesized()
|
H A D | InputState.cpp | 25 InputState::InputState(const IdGenerator& idGenerator) : mIdGenerator(idGenerator) {} in InputState()
|
H A D | InputDispatcher.h | 178 const IdGenerator mIdGenerator;
|
H A D | InputDispatcher.cpp | 522 mIdGenerator(IdGenerator::Source::INPUT_DISPATCHER), in InputDispatcher() 2937 static_cast<int32_t>(IdGenerator::Source::OTHER); in enqueueDispatchEntryLocked()
|
/aosp12/frameworks/native/libs/input/ |
H A D | Input.cpp | 124 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 D | DvrDataManagerImpl.java | 48 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 D | android_view_InputEventReceiver.cpp | 541 if (IdGenerator::getSource(inputEventId) != IdGenerator::Source::INPUT_READER) { in nativeReportTimeline()
|
/aosp12/frameworks/native/include/input/ |
H A D | Input.h | 317 class IdGenerator { 328 IdGenerator(Source source);
|
/aosp12/frameworks/native/services/inputflinger/reader/include/ |
H A D | InputReader.h | 126 IdGenerator mIdGenerator;
|
/aosp12/frameworks/native/services/inputflinger/reader/ |
H A D | InputReader.cpp | 887 : mReader(reader), mIdGenerator(IdGenerator::Source::INPUT_READER) {} in ContextImpl()
|
/aosp12/frameworks/native/services/inputflinger/tests/ |
H A D | InputDispatcher_test.cpp | 3128 EXPECT_EQ(IdGenerator::Source::INPUT_DISPATCHER, in TEST_F() 3129 IdGenerator::getSource(repeatEvent->getId())); in TEST_F()
|
H A D | InputReader_test.cpp | 1862 ASSERT_EQ(IdGenerator::Source::INPUT_READER, IdGenerator::getSource(resetArgs.id)); in TEST_F()
|