Home
last modified time | relevance | path

Searched refs:Event (Results 1 – 25 of 118) sorted by relevance

12345

/hardware/interfaces/sensors/common/utils/
DconvertV2_1.h30 static_assert(sizeof(V1_0::Event) == sizeof(V2_1::Event),
38 inline const V1_0::Event& convertToOldEvent(const V2_1::Event& event) { in convertToOldEvent()
39 return reinterpret_cast<const V1_0::Event&>(event); in convertToOldEvent()
42 inline const std::vector<V1_0::Event>& convertToOldEvents(const std::vector<V2_1::Event>& events) { in convertToOldEvents()
43 return reinterpret_cast<const std::vector<V1_0::Event>&>(events); in convertToOldEvents()
46 inline V1_0::Event* convertToOldEvent(V2_1::Event* event) { in convertToOldEvent()
47 return reinterpret_cast<V1_0::Event*>(event); in convertToOldEvent()
58 inline const V2_1::Event& convertToNewEvent(const V1_0::Event& event) { in convertToNewEvent()
59 return reinterpret_cast<const V2_1::Event&>(event); in convertToNewEvent()
62 inline const std::vector<V2_1::Event>& convertToNewEvents(const std::vector<V1_0::Event>& events) { in convertToNewEvents()
[all …]
DEventMessageQueueWrapper.h43 virtual bool read(V2_1::Event* events, size_t numToRead) = 0;
44 virtual bool write(const V2_1::Event* events, size_t numToWrite) = 0;
45 virtual bool write(const std::vector<V2_1::Event>& events) = 0;
46 virtual bool writeBlocking(const V2_1::Event* events, size_t count, uint32_t readNotification,
54 using EventMessageQueue = MessageQueue<V1_0::Event, kSynchronizedReadWrite>;
59 const ::android::hardware::MQDescriptorSync<V1_0::Event>* getDesc() { in getDesc()
71 virtual bool read(V2_1::Event* events, size_t numToRead) override { in read()
72 return mQueue->read(reinterpret_cast<V1_0::Event*>(events), numToRead); in read()
75 bool write(const V2_1::Event* events, size_t numToWrite) override { in write()
76 return mQueue->write(reinterpret_cast<const V1_0::Event*>(events), numToWrite); in write()
[all …]
/hardware/interfaces/sensors/aidl/convert/
Dconvert.cpp27 using aidl::android::hardware::sensors::Event;
86 void convertToSensorEvent(const Event& src, sensors_event_t* dst) { in convertToSensorEvent()
97 dst->meta_data.what = (int32_t)src.payload.get<Event::EventPayload::meta>().what; in convertToSensorEvent()
110 dst->acceleration.x = src.payload.get<Event::EventPayload::vec3>().x; in convertToSensorEvent()
111 dst->acceleration.y = src.payload.get<Event::EventPayload::vec3>().y; in convertToSensorEvent()
112 dst->acceleration.z = src.payload.get<Event::EventPayload::vec3>().z; in convertToSensorEvent()
113 dst->acceleration.status = (int32_t)src.payload.get<Event::EventPayload::vec3>().status; in convertToSensorEvent()
118 dst->data[0] = src.payload.get<Event::EventPayload::vec4>().x; in convertToSensorEvent()
119 dst->data[1] = src.payload.get<Event::EventPayload::vec4>().y; in convertToSensorEvent()
120 dst->data[2] = src.payload.get<Event::EventPayload::vec4>().z; in convertToSensorEvent()
[all …]
/hardware/google/gfxstream/host/testlibs/
DOSWindow.cpp149 static std::string KeyState(const Event::KeyEvent &event) in KeyState()
179 static void PrintEvent(const Event& event) in PrintEvent()
183 case Event::EVENT_CLOSED: in PrintEvent()
186 case Event::EVENT_MOVED: in PrintEvent()
190 case Event::EVENT_RESIZED: in PrintEvent()
194 case Event::EVENT_LOST_FOCUS: in PrintEvent()
197 case Event::EVENT_GAINED_FOCUS: in PrintEvent()
200 case Event::EVENT_TEXT_ENTERED: in PrintEvent()
204 case Event::EVENT_KEY_PRESSED: in PrintEvent()
207 case Event::EVENT_KEY_RELEASED: in PrintEvent()
[all …]
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/1/android/hardware/sensors/
DEvent.aidl36 parcelable Event {
40 android.hardware.sensors.Event.EventPayload payload;
43 android.hardware.sensors.Event.EventPayload.Vec3 vec3;
44 android.hardware.sensors.Event.EventPayload.Vec4 vec4;
45 android.hardware.sensors.Event.EventPayload.Uncal uncal;
46 android.hardware.sensors.Event.EventPayload.MetaData meta;
49 android.hardware.sensors.Event.EventPayload.HeartRate heartRate;
50 android.hardware.sensors.Event.EventPayload.Pose6Dof pose6DOF;
53 android.hardware.sensors.Event.EventPayload.Data data;
54 android.hardware.sensors.Event.EventPayload.HeadTracker headTracker;
[all …]
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/2/android/hardware/sensors/
DEvent.aidl36 parcelable Event {
40 android.hardware.sensors.Event.EventPayload payload;
43 android.hardware.sensors.Event.EventPayload.Vec3 vec3;
44 android.hardware.sensors.Event.EventPayload.Vec4 vec4;
45 android.hardware.sensors.Event.EventPayload.Uncal uncal;
46 android.hardware.sensors.Event.EventPayload.MetaData meta;
49 android.hardware.sensors.Event.EventPayload.HeartRate heartRate;
50 android.hardware.sensors.Event.EventPayload.Pose6Dof pose6DOF;
53 android.hardware.sensors.Event.EventPayload.Data data;
54 android.hardware.sensors.Event.EventPayload.HeadTracker headTracker;
[all …]
/hardware/interfaces/sensors/aidl/aidl_api/android.hardware.sensors/current/android/hardware/sensors/
DEvent.aidl36 parcelable Event {
40 android.hardware.sensors.Event.EventPayload payload;
43 android.hardware.sensors.Event.EventPayload.Vec3 vec3;
44 android.hardware.sensors.Event.EventPayload.Vec4 vec4;
45 android.hardware.sensors.Event.EventPayload.Uncal uncal;
46 android.hardware.sensors.Event.EventPayload.MetaData meta;
49 android.hardware.sensors.Event.EventPayload.HeartRate heartRate;
50 android.hardware.sensors.Event.EventPayload.Pose6Dof pose6DOF;
53 android.hardware.sensors.Event.EventPayload.Data data;
54 android.hardware.sensors.Event.EventPayload.HeadTracker headTracker;
[all …]
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorsVtsEnvironmentBase.h31 template <class Event>
35 virtual void onEvent(const Event& event) = 0;
38 template <class Event>
56 void catEvents(std::vector<Event>* output) { in catEvents()
65 void setCollection(bool enable, const std::optional<std::function<bool(const Event&)>>& filter =
77 void registerCallback(IEventCallback<Event>* callback) { in registerCallback()
87 std::vector<Event> collectEvents(
90 const std::optional<std::function<bool(const Event&)>>& filter = std::nullopt) {
91 std::vector<Event> events;
132 void addEvent(const Event& ev) { in addEvent()
[all …]
/hardware/google/gfxstream/host/testlibs/windows/win32/
DWin32Window.cpp250 Event event; in WndProc()
251 event.type = Event::EVENT_CLOSED; in WndProc()
266 Event event; in WndProc()
267 event.type = Event::EVENT_MOVED; in WndProc()
290 Event event; in WndProc()
291 event.type = Event::EVENT_RESIZED; in WndProc()
301 Event event; in WndProc()
302 event.type = Event::EVENT_GAINED_FOCUS; in WndProc()
309 Event event; in WndProc()
310 event.type = Event::EVENT_LOST_FOCUS; in WndProc()
[all …]
/hardware/interfaces/sensors/aidl/default/multihal/
DConvertUtils.cpp23 using AidlEvent = ::aidl::android::hardware::sensors::Event;
31 using V2_1Event = ::android::hardware::sensors::V2_1::Event;
69 (MetaDataEventType)aidlEvent.payload.get<Event::EventPayload::meta>().what; in convertToHidlEvent()
77 hidlEvent->u.vec3.x = aidlEvent.payload.get<Event::EventPayload::vec3>().x; in convertToHidlEvent()
78 hidlEvent->u.vec3.y = aidlEvent.payload.get<Event::EventPayload::vec3>().y; in convertToHidlEvent()
79 hidlEvent->u.vec3.z = aidlEvent.payload.get<Event::EventPayload::vec3>().z; in convertToHidlEvent()
81 (V1_0SensorStatus)aidlEvent.payload.get<Event::EventPayload::vec3>().status; in convertToHidlEvent()
84 hidlEvent->u.vec4.x = aidlEvent.payload.get<Event::EventPayload::vec4>().x; in convertToHidlEvent()
85 hidlEvent->u.vec4.y = aidlEvent.payload.get<Event::EventPayload::vec4>().y; in convertToHidlEvent()
86 hidlEvent->u.vec4.z = aidlEvent.payload.get<Event::EventPayload::vec4>().z; in convertToHidlEvent()
[all …]
/hardware/google/gfxstream/host/testlibs/x11/
DX11Window.cpp144 static void AddX11KeyStateToEvent(Event *event, unsigned int state) in AddX11KeyStateToEvent()
397 Event event; in processEvent()
437 event.type = Event::EVENT_MOUSE_WHEEL_MOVED; in processEvent()
444 event.type = Event::EVENT_MOUSE_BUTTON_RELEASED; in processEvent()
455 Event event; in processEvent()
482 event.type = Event::EVENT_MOUSE_BUTTON_RELEASED; in processEvent()
493 Event event; in processEvent()
494 event.type = Event::EVENT_KEY_PRESSED; in processEvent()
503 Event event; in processEvent()
504 event.type = Event::EVENT_KEY_RELEASED; in processEvent()
[all …]
/hardware/interfaces/sensors/aidl/default/include/sensors-impl/
DSensor.h28 using Event = ::aidl::android::hardware::sensors::Event;
31 virtual void postEvents(const std::vector<Event>& events, bool wakeup) = 0;
37 using Event = ::aidl::android::hardware::sensors::Event; variable
38 using EventPayload = ::aidl::android::hardware::sensors::Event::EventPayload;
42 ::aidl::android::hardware::sensors::Event::EventPayload::MetaData::MetaDataEventType;
54 ndk::ScopedAStatus injectEvent(const Event& event);
58 virtual std::vector<Event> readEvents();
86 virtual std::vector<Event> readEvents() override;
89 Event mPreviousEvent;
/hardware/google/gfxstream/host/testlibs/qnx/
DQNXWindow.cpp475 Event event; in processMouseEvent()
477 event.Type = Event::EVENT_TEST; in processMouseEvent()
488 event.Type = Event::EVENT_MOUSE_WHEEL_MOVED; in processMouseEvent()
490 event.Type = Event::EVENT_MOUSE_MOVED; in processMouseEvent()
492 event.Type = Event::EVENT_MOUSE_BUTTON_PRESSED; in processMouseEvent()
494 event.Type = Event::EVENT_MOUSE_BUTTON_RELEASED; in processMouseEvent()
497 case Event::EVENT_MOUSE_WHEEL_MOVED: in processMouseEvent()
501 case Event::EVENT_MOUSE_MOVED: in processMouseEvent()
508 case Event::EVENT_MOUSE_BUTTON_RELEASED: in processMouseEvent()
509 case Event::EVENT_MOUSE_BUTTON_PRESSED: in processMouseEvent()
[all …]
/hardware/interfaces/sensors/common/default/2.X/
DSensor.h39 using Event = ::android::hardware::sensors::V2_1::Event;
42 virtual void postEvents(const std::vector<Event>& events, bool wakeup) = 0;
49 using Event = ::android::hardware::sensors::V2_1::Event; variable
64 Result injectEvent(const Event& event);
68 virtual std::vector<Event> readEvents();
96 virtual std::vector<Event> readEvents() override;
99 Event mPreviousEvent;
/hardware/interfaces/sensors/common/default/2.X/multihal/
DHalProxyCallback.cpp41 void HalProxyCallbackBase::postEvents(const std::vector<V2_1::Event>& events, in postEvents()
45 std::vector<V2_1::Event> processedEvents = processEvents(events, &numWakeupEvents); in postEvents()
65 std::vector<V2_1::Event> HalProxyCallbackBase::processEvents(const std::vector<V2_1::Event>& events, in processEvents()
68 std::vector<V2_1::Event> eventsOut; in processEvents()
69 for (V2_1::Event event : events) { in processEvents()
/hardware/interfaces/sensors/aidl/default/multihal/include/
DConvertUtils.h37 void convertToHidlEvent(const ::aidl::android::hardware::sensors::Event& aidlEvent,
38 ::android::hardware::sensors::V2_1::Event* hidlEvent);
43 void convertToAidlEvent(const ::android::hardware::sensors::V2_1::Event& hidlEvent,
44 ::aidl::android::hardware::sensors::Event* aidlEvent);
DEventMessageQueueWrapperAidl.h36 ::aidl::android::hardware::sensors::Event, in EventMessageQueueWrapperAidl()
48 virtual bool read(::android::hardware::sensors::V2_1::Event* events, in read()
57 bool write(const ::android::hardware::sensors::V2_1::Event* events, in write()
66 const std::vector<::android::hardware::sensors::V2_1::Event>& events) override { in write()
73 bool writeBlocking(const ::android::hardware::sensors::V2_1::Event* events, size_t count, in writeBlocking()
87 ::aidl::android::hardware::sensors::Event,
90 std::array<::aidl::android::hardware::sensors::Event,
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DSensor.h29 using ::android::hardware::sensors::V2_1::Event;
43 virtual void postEvents(const std::vector<Event>& events, bool wakeup) = 0;
58 Result injectEvent(const Event& event);
62 virtual std::vector<Event> readEvents();
89 virtual std::vector<Event> readEvents() override;
92 Event mPreviousEvent;
106 std::vector<Event> readEvents() override;
114 std::vector<Event> readEvents() override;
DSensor.cpp36 using ::android::hardware::sensors::V2_1::Event;
104 Event ev; in flush()
108 std::vector<Event> evs{ev}; in flush()
148 std::vector<Event> Sensor::readEvents() { in readEvents()
149 std::vector<Event> events; in readEvents()
150 Event event; in readEvents()
174 Result Sensor::injectEvent(const Event& event) { in injectEvent()
182 mCallback->postEvents(std::vector<Event>{event}, isWakeUpSensor()); in injectEvent()
201 std::vector<Event> OnChangeSensor::readEvents() { in readEvents()
202 std::vector<Event> events = Sensor::readEvents(); in readEvents()
[all …]
/hardware/google/gfxstream/host/testlibs/osx/
DOSXWindow.mm12 // Include Carbon to use the keycode names in Carbon's Event.h
39 Event event;
40 event.type = Event::EVENT_TEST;
56 Event event;
57 event.type = Event::EVENT_CLOSED;
120 Event event;
121 event.type = Event::EVENT_CLOSED;
129 Event event;
130 event.type = Event::EVENT_RESIZED;
139 Event event;
[all …]
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DHalProxy.h59 using Event = ::android::hardware::sensors::V2_1::Event;
84 const ::android::hardware::MQDescriptorSync<V2_1::Event>& eventQueueDescriptor,
88 Return<Result> injectSensorData_2_1(const Event& event);
98 const ::android::hardware::MQDescriptorSync<V1_0::Event>& eventQueueDescriptor,
111 Return<Result> injectSensorData(const V1_0::Event& event);
129 void postEventsToMessageQueue(const std::vector<Event>& events, size_t numWakeupEvents,
147 using EventMessageQueueV2_1 = MessageQueue<V2_1::Event, kSynchronizedReadWrite>;
148 using EventMessageQueueV2_0 = MessageQueue<V1_0::Event, kSynchronizedReadWrite>;
208 std::queue<std::pair<std::vector<Event>, size_t>> mPendingWriteEventsQueue;
367 size_t countNumWakeupEvents(const std::vector<Event>& events, size_t n);
[all …]
/hardware/interfaces/sensors/aidl/vts/
DSensorsAidlEnvironment.h32 using aidl::android::hardware::sensors::Event;
40 class SensorsAidlEnvironment : public SensorsVtsEnvironmentBase<Event> {
84 typedef android::AidlMessageQueue<Event, SynchronizedReadWrite> EventQueue;
105 std::array<Event, MAX_RECEIVE_BUFFER_EVENT_COUNT> mEventBuffer;
/hardware/interfaces/sensors/1.0/default/include/sensors/
Dconvert.h34 void convertFromSensorEvent(const sensors_event_t &src, Event *dst);
35 void convertFromASensorEvent(const ASensorEvent& src, Event* dst);
36 void convertToSensorEvent(const Event &src, sensors_event_t *dst);
/hardware/interfaces/sensors/aidl/convert/include/aidl/sensors/
Dconvert.h30 void convertToSensorEvent(const aidl::android::hardware::sensors::Event& src, sensors_event_t* dst);
32 aidl::android::hardware::sensors::Event* dst);
33 void convertFromASensorEvent(const ASensorEvent& src, aidl::android::hardware::sensors::Event* dst);
/hardware/interfaces/sensors/1.0/vts/functional/
DSensorsHidlEnvironmentV1_0.h33 : public SensorsVtsEnvironmentBase<::android::hardware::sensors::V1_0::Event> {
37 using Event = ::android::hardware::sensors::V1_0::Event; variable

12345