Home
last modified time | relevance | path

Searched refs:aidlEvent (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/sensors/aidl/default/multihal/
DConvertUtils.cpp60 void convertToHidlEvent(const AidlEvent& aidlEvent, V2_1Event* hidlEvent) { in convertToHidlEvent() argument
62 hidlEvent->timestamp = aidlEvent.timestamp; in convertToHidlEvent()
63 hidlEvent->sensorHandle = aidlEvent.sensorHandle; in convertToHidlEvent()
64 hidlEvent->sensorType = (V2_1SensorType)aidlEvent.sensorType; in convertToHidlEvent()
66 switch (aidlEvent.sensorType) { in convertToHidlEvent()
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()
[all …]
/hardware/interfaces/sensors/aidl/default/multihal/include/
DConvertUtils.h37 void convertToHidlEvent(const ::aidl::android::hardware::sensors::Event& aidlEvent,
44 ::aidl::android::hardware::sensors::Event* aidlEvent);