Home
last modified time | relevance | path

Searched refs:EventEntry (Results 1 – 9 of 9) sorted by relevance

/frameworks/native/services/inputflinger/dispatcher/
DEntry.h32 struct EventEntry { struct
74 EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags); argument
75 virtual ~EventEntry();
81 struct ConfigurationChangedEntry : EventEntry {
88 struct DeviceResetEntry : EventEntry {
97 struct FocusEntry : EventEntry {
109 struct PointerCaptureChangedEntry : EventEntry {
118 struct DragEntry : EventEntry {
130 struct KeyEntry : EventEntry {
162 struct MotionEntry : EventEntry {
[all …]
DEntry.cpp61 EventEntry::EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags) in EventEntry() function in android::inputdispatcher::EventEntry
69 EventEntry::~EventEntry() { in ~EventEntry()
73 void EventEntry::releaseInjectionState() { in releaseInjectionState()
83 : EventEntry(id, Type::CONFIGURATION_CHANGED, eventTime, 0) {} in ConfigurationChangedEntry()
94 : EventEntry(id, Type::DEVICE_RESET, eventTime, 0), deviceId(deviceId) {} in DeviceResetEntry()
107 : EventEntry(id, Type::FOCUS, eventTime, POLICY_FLAG_PASS_TO_USER), in FocusEntry()
124 : EventEntry(id, Type::POINTER_CAPTURE_CHANGED, eventTime, POLICY_FLAG_PASS_TO_USER), in PointerCaptureChangedEntry()
139 : EventEntry(id, Type::DRAG, eventTime, POLICY_FLAG_PASS_TO_USER), in DragEntry()
157 : EventEntry(id, Type::KEY, eventTime, policyFlags), in KeyEntry()
199 : EventEntry(id, Type::TOUCH_MODE_CHANGED, eventTime, POLICY_FLAG_PASS_TO_USER), in TouchModeEntry()
[all …]
DInputDispatcher.cpp292 std::shared_ptr<EventEntry> eventEntry, in createDispatchEntry()
301 ALOG_ASSERT(eventEntry->type == EventEntry::Type::MOTION); in createDispatchEntry()
396 const EventEntry& eventEntry = *dispatchEntry.eventEntry; in shouldReportFinishedEvent()
409 const EventEntry::Type& inputEventEntryType = eventEntry.type; in shouldReportFinishedEvent()
410 if (inputEventEntryType == EventEntry::Type::KEY) { in shouldReportFinishedEvent()
415 } else if (inputEventEntryType == EventEntry::Type::MOTION) { in shouldReportFinishedEvent()
446 bool isUserActivityEvent(const EventEntry& eventEntry) { in isUserActivityEvent()
448 case EventEntry::Type::FOCUS: in isUserActivityEvent()
449 case EventEntry::Type::POINTER_CAPTURE_CHANGED: in isUserActivityEvent()
450 case EventEntry::Type::DRAG: in isUserActivityEvent()
[all …]
DInputDispatcher.h178 std::shared_ptr<EventEntry> mPendingEvent GUARDED_BY(mLock);
179 std::deque<std::shared_ptr<EventEntry>> mInboundQueue GUARDED_BY(mLock);
180 std::deque<std::shared_ptr<EventEntry>> mRecentQueue GUARDED_BY(mLock);
214 bool enqueueInboundEventLocked(std::unique_ptr<EventEntry> entry) REQUIRES(mLock);
217 void dropInboundEventLocked(const EventEntry& entry, DropReason dropReason) REQUIRES(mLock);
228 void addRecentEventLocked(std::shared_ptr<EventEntry> entry) REQUIRES(mLock);
240 std::shared_ptr<EventEntry> mNextUnblockedEvent GUARDED_BY(mLock);
282 void setInjectionResult(EventEntry& entry,
289 void incrementPendingForegroundDispatches(EventEntry& entry);
290 void decrementPendingForegroundDispatches(EventEntry& entry);
[all …]
DInputState.h54 std::vector<std::unique_ptr<EventEntry>> synthesizeCancelationEvents(
58 std::vector<std::unique_ptr<EventEntry>> synthesizePointerDownEvents(nsecs_t currentTime);
DInputState.cpp272 std::vector<std::unique_ptr<EventEntry>> InputState::synthesizeCancelationEvents( in synthesizeCancelationEvents()
274 std::vector<std::unique_ptr<EventEntry>> events; in synthesizeCancelationEvents()
307 std::vector<std::unique_ptr<EventEntry>> InputState::synthesizePointerDownEvents( in synthesizePointerDownEvents()
309 std::vector<std::unique_ptr<EventEntry>> events; in synthesizePointerDownEvents()
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerServiceTestUtils.h83 struct EventEntry { struct
111 EventEntry lastEvent() { return mLastEvent; } in lastEvent()
117 EventEntry mLastEvent;
166 using EventEntry = TestSystemCallback::EventEntry; variable
167 bool operator== (const EventEntry& lhs, const EventEntry& rhs) {
DResourceManagerService_test.cpp742 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats()
753 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid2}), mSystemCB->lastEvent()); in testBatteryStats()
763 EXPECT_EQ(EventEntry({EventType::VIDEO_OFF, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats()
768 EXPECT_EQ(EventEntry({EventType::VIDEO_OFF, kTestUid2}), mSystemCB->lastEvent()); in testBatteryStats()
/frameworks/av/services/mediaresourcemanager/fuzzer/
Dmediaresourcemanager_fuzzer.cpp97 struct EventEntry { struct
125 EventEntry lastEvent() { return mLastEvent; } in lastEvent()
131 EventEntry mLastEvent;