Home
last modified time | relevance | path

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

/frameworks/native/libs/input/tests/
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));
/frameworks/native/services/inputflinger/dispatcher/
DInputState.h33 explicit InputState(const IdGenerator& idGenerator);
114 const IdGenerator& mIdGenerator; // InputDispatcher owns it so we won't have dangling reference.
DConnection.cpp24 const IdGenerator& idGenerator) in Connection()
DConnection.h67 const IdGenerator& idGenerator);
DEntry.h69 return isInjected() || IdGenerator::getSource(id) != IdGenerator::Source::INPUT_READER; in isSynthesized()
DInputState.cpp27 InputState::InputState(const IdGenerator& idGenerator) : mIdGenerator(idGenerator) {} in InputState()
DInputDispatcher.h204 const IdGenerator mIdGenerator;
DInputDispatcher.cpp541 mIdGenerator(IdGenerator::Source::INPUT_DISPATCHER), in InputDispatcher()
3033 static_cast<int32_t>(IdGenerator::Source::OTHER); in enqueueDispatchEntryLocked()
4072 IdGenerator::getSource(args->id) == IdGenerator::Source::INPUT_READER && in notifyMotion()
/frameworks/native/libs/input/
DInput.cpp113 IdGenerator::IdGenerator(Source source) : mSource(source) {} in IdGenerator() function in android::IdGenerator
115 int32_t IdGenerator::nextId() const { in nextId()
255 static IdGenerator idGen(IdGenerator::Source::OTHER); in nextId()
/frameworks/base/core/jni/
Dandroid_view_InputEventReceiver.cpp548 if (IdGenerator::getSource(inputEventId) != IdGenerator::Source::INPUT_READER) { in nativeReportTimeline()
/frameworks/native/include/input/
DInput.h324 class IdGenerator {
335 IdGenerator(Source source);
/frameworks/native/services/inputflinger/reader/include/
DInputReader.h127 IdGenerator mIdGenerator;
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp890 : mReader(reader), mIdGenerator(IdGenerator::Source::INPUT_READER) {} in ContextImpl()
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp3952 EXPECT_EQ(IdGenerator::Source::INPUT_DISPATCHER, in TEST_F()
3953 IdGenerator::getSource(repeatEvent->getId())); in TEST_F()
DInputReader_test.cpp1995 ASSERT_EQ(IdGenerator::Source::INPUT_READER, IdGenerator::getSource(resetArgs.id)); in TEST_F()