Lines Matching refs:aidlEvent

60 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()
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()
87 hidlEvent->u.vec4.w = aidlEvent.payload.get<Event::EventPayload::vec4>().w; in convertToHidlEvent()
91 std::copy(aidlEvent.payload.get<Event::EventPayload::data>().values.data(), in convertToHidlEvent()
92 aidlEvent.payload.get<Event::EventPayload::data>().values.data() + 5, in convertToHidlEvent()
98 hidlEvent->u.uncal.x = aidlEvent.payload.get<Event::EventPayload::uncal>().x; in convertToHidlEvent()
99 hidlEvent->u.uncal.y = aidlEvent.payload.get<Event::EventPayload::uncal>().y; in convertToHidlEvent()
100 hidlEvent->u.uncal.z = aidlEvent.payload.get<Event::EventPayload::uncal>().z; in convertToHidlEvent()
101 hidlEvent->u.uncal.x_bias = aidlEvent.payload.get<Event::EventPayload::uncal>().xBias; in convertToHidlEvent()
102 hidlEvent->u.uncal.y_bias = aidlEvent.payload.get<Event::EventPayload::uncal>().yBias; in convertToHidlEvent()
103 hidlEvent->u.uncal.z_bias = aidlEvent.payload.get<Event::EventPayload::uncal>().zBias; in convertToHidlEvent()
123 hidlEvent->u.scalar = aidlEvent.payload.get<Event::EventPayload::scalar>(); in convertToHidlEvent()
126 hidlEvent->u.stepCount = aidlEvent.payload.get<AidlEvent::EventPayload::stepCount>(); in convertToHidlEvent()
130 aidlEvent.payload.get<AidlEvent::EventPayload::heartRate>().bpm; in convertToHidlEvent()
132 (V1_0SensorStatus)aidlEvent.payload.get<Event::EventPayload::heartRate>() in convertToHidlEvent()
136 std::copy(std::begin(aidlEvent.payload.get<AidlEvent::EventPayload::pose6DOF>().values), in convertToHidlEvent()
137 std::end(aidlEvent.payload.get<AidlEvent::EventPayload::pose6DOF>().values), in convertToHidlEvent()
142 aidlEvent.payload.get<Event::EventPayload::dynamic>().connected; in convertToHidlEvent()
144 aidlEvent.payload.get<Event::EventPayload::dynamic>().sensorHandle; in convertToHidlEvent()
147 aidlEvent.payload.get<AidlEvent::EventPayload::dynamic>().uuid.values), in convertToHidlEvent()
148 std::end(aidlEvent.payload.get<AidlEvent::EventPayload::dynamic>().uuid.values), in convertToHidlEvent()
153 aidlEvent.payload.get<AidlEvent::EventPayload::additional>(); in convertToHidlEvent()
184 const auto& ht = aidlEvent.payload.get<Event::EventPayload::headTracker>(); in convertToHidlEvent()
199 CHECK_GE((int32_t)aidlEvent.sensorType, (int32_t)SensorType::DEVICE_PRIVATE_BASE); in convertToHidlEvent()
200 std::copy(std::begin(aidlEvent.payload.get<AidlEvent::EventPayload::data>().values), in convertToHidlEvent()
201 std::end(aidlEvent.payload.get<AidlEvent::EventPayload::data>().values), in convertToHidlEvent()
208 void convertToAidlEvent(const V2_1Event& hidlEvent, AidlEvent* aidlEvent) { in convertToAidlEvent() argument
210 aidlEvent->timestamp = hidlEvent.timestamp; in convertToAidlEvent()
211 aidlEvent->sensorHandle = hidlEvent.sensorHandle; in convertToAidlEvent()
212 aidlEvent->sensorType = (AidlSensorType)hidlEvent.sensorType; in convertToAidlEvent()
217 aidlEvent->payload.set<Event::EventPayload::meta>(meta); in convertToAidlEvent()
231 aidlEvent->payload.set<Event::EventPayload::vec3>(vec3); in convertToAidlEvent()
240 aidlEvent->payload.set<Event::EventPayload::vec4>(vec4); in convertToAidlEvent()
248 aidlEvent->payload.set<Event::EventPayload::data>(data); in convertToAidlEvent()
261 aidlEvent->payload.set<Event::EventPayload::uncal>(uncal); in convertToAidlEvent()
282 aidlEvent->payload.set<Event::EventPayload::scalar>(hidlEvent.u.scalar); in convertToAidlEvent()
285 aidlEvent->payload.set<Event::EventPayload::stepCount>(hidlEvent.u.stepCount); in convertToAidlEvent()
291 aidlEvent->payload.set<Event::EventPayload::heartRate>(heartRate); in convertToAidlEvent()
299 aidlEvent->payload.set<Event::EventPayload::pose6DOF>(pose6Dof); in convertToAidlEvent()
309 aidlEvent->payload.set<Event::EventPayload::dynamic>(dynamicSensorInfo); in convertToAidlEvent()
324 aidlEvent->payload.set<Event::EventPayload::additional>(additionalInfo); in convertToAidlEvent()
344 aidlEvent->payload.set<Event::EventPayload::Tag::headTracker>(headTracker); in convertToAidlEvent()
352 aidlEvent->payload.set<Event::EventPayload::data>(data); in convertToAidlEvent()