Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/dispatcher/
DEntry.h33 struct EventEntry { struct
75 EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags); argument
76 EventEntry(const EventEntry&) = delete;
77 EventEntry& operator=(const EventEntry&) = delete; argument
78 virtual ~EventEntry() = default;
81 struct ConfigurationChangedEntry : EventEntry {
86 struct DeviceResetEntry : EventEntry {
93 struct FocusEntry : EventEntry {
103 struct PointerCaptureChangedEntry : EventEntry {
110 struct DragEntry : EventEntry {
[all …]
DEntry.cpp63 EventEntry::EventEntry(int32_t id, Type type, nsecs_t eventTime, uint32_t policyFlags) in EventEntry() function in android::inputdispatcher::EventEntry
74 : EventEntry(id, Type::CONFIGURATION_CHANGED, eventTime, 0) {} in ConfigurationChangedEntry()
83 : EventEntry(id, Type::DEVICE_RESET, eventTime, 0), deviceId(deviceId) {} in DeviceResetEntry()
94 : EventEntry(id, Type::FOCUS, eventTime, POLICY_FLAG_PASS_TO_USER), in FocusEntry()
109 : EventEntry(id, Type::POINTER_CAPTURE_CHANGED, eventTime, POLICY_FLAG_PASS_TO_USER), in PointerCaptureChangedEntry()
122 : EventEntry(id, Type::DRAG, eventTime, POLICY_FLAG_PASS_TO_USER), in DragEntry()
138 : EventEntry(id, Type::KEY, eventTime, policyFlags), in KeyEntry()
152 EventEntry::injectionState = std::move(injectionState); in KeyEntry()
178 : EventEntry(id, Type::TOUCH_MODE_CHANGED, eventTime, POLICY_FLAG_PASS_TO_USER), in TouchModeEntry()
197 : EventEntry(id, Type::MOTION, eventTime, policyFlags), in MotionEntry()
[all …]
DInputDispatcher.h190 std::shared_ptr<const EventEntry> mPendingEvent GUARDED_BY(mLock);
191 std::deque<std::shared_ptr<const EventEntry>> mInboundQueue GUARDED_BY(mLock);
192 std::deque<std::shared_ptr<const EventEntry>> mRecentQueue GUARDED_BY(mLock);
233 bool enqueueInboundEventLocked(std::unique_ptr<EventEntry> entry) REQUIRES(mLock);
236 void dropInboundEventLocked(const EventEntry& entry, DropReason dropReason) REQUIRES(mLock);
247 void addRecentEventLocked(std::shared_ptr<const EventEntry> entry) REQUIRES(mLock);
251 std::shared_ptr<const EventEntry> mNextUnblockedEvent GUARDED_BY(mLock);
299 void setInjectionResult(const EventEntry& entry,
308 void incrementPendingForegroundDispatches(const EventEntry& entry);
309 void decrementPendingForegroundDispatches(const EventEntry& entry);
[all …]
DInputDispatcher.cpp107 const std::unique_ptr<trace::EventTrackerInterface>& getTraceTracker(const EventEntry& entry) { in getTraceTracker()
109 case EventEntry::Type::MOTION: { in getTraceTracker()
114 case EventEntry::Type::KEY: { in getTraceTracker()
400 std::shared_ptr<const EventEntry> eventEntry, in createDispatchEntry()
420 ALOG_ASSERT(eventEntry->type == EventEntry::Type::MOTION); in createDispatchEntry()
513 const EventEntry& eventEntry = *dispatchEntry.eventEntry; in shouldReportFinishedEvent()
522 const EventEntry::Type& inputEventEntryType = eventEntry.type; in shouldReportFinishedEvent()
523 if (inputEventEntryType == EventEntry::Type::KEY) { in shouldReportFinishedEvent()
528 } else if (inputEventEntryType == EventEntry::Type::MOTION) { in shouldReportFinishedEvent()
559 bool isUserActivityEvent(const EventEntry& eventEntry) { in isUserActivityEvent()
[all …]
DInputState.h61 std::unique_ptr<EventEntry> cancelConflictingInputStream(const MotionEntry& motionEntry);
64 std::vector<std::unique_ptr<EventEntry>> synthesizeCancelationEvents(
68 std::vector<std::unique_ptr<EventEntry>> synthesizePointerDownEvents(nsecs_t currentTime);
DInputState.cpp375 std::unique_ptr<EventEntry> InputState::cancelConflictingInputStream( in cancelConflictingInputStream()
412 std::vector<std::unique_ptr<EventEntry>> InputState::synthesizeCancelationEvents( in synthesizeCancelationEvents()
414 std::vector<std::unique_ptr<EventEntry>> events; in synthesizeCancelationEvents()
444 std::vector<std::unique_ptr<EventEntry>> InputState::synthesizePointerDownEvents( in synthesizePointerDownEvents()
446 std::vector<std::unique_ptr<EventEntry>> events; in synthesizePointerDownEvents()
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerServiceTestUtils.h84 struct EventEntry { struct
112 EventEntry lastEvent() { return mLastEvent; } in lastEvent()
118 EventEntry mLastEvent;
190 using EventEntry = TestSystemCallback::EventEntry; variable
191 bool operator== (const EventEntry& lhs, const EventEntry& rhs) {
DResourceManagerService_test.cpp888 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats()
904 EXPECT_EQ(EventEntry({EventType::VIDEO_ON, kTestUid2}), mSystemCB->lastEvent()); in testBatteryStats()
914 EXPECT_EQ(EventEntry({EventType::VIDEO_OFF, kTestUid1}), mSystemCB->lastEvent()); in testBatteryStats()
919 EXPECT_EQ(EventEntry({EventType::VIDEO_OFF, kTestUid2}), mSystemCB->lastEvent()); in testBatteryStats()
/frameworks/native/services/inputflinger/dispatcher/trace/
DInputTracer.cpp102 std::unique_ptr<EventTrackerInterface> InputTracer::traceInboundEvent(const EventEntry& entry) { in traceInboundEvent()
106 if (entry.type == EventEntry::Type::MOTION) { in traceInboundEvent()
109 } else if (entry.type == EventEntry::Type::KEY) { in traceInboundEvent()
162 const EventEntry& entry, const EventTrackerInterface& originalEventCookie) { in traceDerivedEvent()
167 if (entry.type == EventEntry::Type::MOTION) { in traceDerivedEvent()
170 } else if (entry.type == EventEntry::Type::KEY) { in traceDerivedEvent()
190 const EventEntry& entry = *dispatchEntry.eventEntry; in traceEventDispatch()
196 if (entry.type == EventEntry::Type::KEY) { in traceEventDispatch()
DInputTracerInterface.h54 virtual std::unique_ptr<EventTrackerInterface> traceInboundEvent(const EventEntry&) = 0;
98 const EventEntry&, const EventTrackerInterface& originalEventTracker) = 0;
DInputTracer.h44 std::unique_ptr<EventTrackerInterface> traceInboundEvent(const EventEntry&) override;
49 std::unique_ptr<EventTrackerInterface> traceDerivedEvent(const EventEntry&,
/frameworks/av/services/mediaresourcemanager/fuzzer/
Dmediaresourcemanager_fuzzer.cpp97 struct EventEntry { struct
125 EventEntry lastEvent() { return mLastEvent; } in lastEvent()
131 EventEntry mLastEvent;