Searched refs:EventPayload (Results 1 – 14 of 14) sorted by relevance
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()121 dst->data[3] = src.payload.get<Event::EventPayload::vec4>().w; in convertToSensorEvent()127 dst->data[0] = src.payload.get<Event::EventPayload::data>().values[0]; in convertToSensorEvent()[all …]
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()[all …]
40 android.hardware.sensors.Event.EventPayload payload;42 union EventPayload {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 …]
38 using EventPayload = ::aidl::android::hardware::sensors::Event::EventPayload; variable42 ::aidl::android::hardware::sensors::Event::EventPayload::MetaData::MetaDataEventType;59 virtual void readEventPayload(EventPayload&) = 0;98 virtual void readEventPayload(EventPayload& payload) override;106 virtual void readEventPayload(EventPayload& payload) override;114 virtual void readEventPayload(EventPayload& payload) override;122 virtual void readEventPayload(EventPayload& payload) override;130 virtual void readEventPayload(EventPayload& payload) override;138 virtual void readEventPayload(EventPayload& payload) override;146 virtual void readEventPayload(EventPayload& payload) override;[all …]
90 EventPayload::MetaData meta = { in flush()93 ev.payload.set<EventPayload::Tag::meta>(meta); in flush()222 void AccelSensor::readEventPayload(EventPayload& payload) { in readEventPayload()223 EventPayload::Vec3 vec3 = { in readEventPayload()229 payload.set<EventPayload::Tag::vec3>(vec3); in readEventPayload()251 void PressureSensor::readEventPayload(EventPayload& payload) { in readEventPayload()252 payload.set<EventPayload::Tag::scalar>(1013.25f); in readEventPayload()274 void MagnetometerSensor::readEventPayload(EventPayload& payload) { in readEventPayload()275 EventPayload::Vec3 vec3 = { in readEventPayload()281 payload.set<EventPayload::Tag::vec3>(vec3); in readEventPayload()[all …]
50 using EventPayload = ::android::hardware::sensors::V1_0::EventPayload; variable69 virtual void readEventPayload(EventPayload&) {} in readEventPayload() argument108 virtual void readEventPayload(EventPayload& payload) override;126 virtual void readEventPayload(EventPayload& payload) override;
29 using ::android::hardware::sensors::V1_0::EventPayload;219 void AccelSensor::readEventPayload(EventPayload& payload) { in readEventPayload()245 void PressureSensor::readEventPayload(EventPayload& payload) { in readEventPayload()
42 EventPayload payload;57 union EventPayload {
232 event.payload.get<Event::EventPayload::Tag::meta>().what == in onEvent()233 Event::EventPayload::MetaData::MetaDataEventType::META_DATA_FLUSH_COMPLETE) { in onEvent()641 additionalInfoEvent.payload.set<Event::EventPayload::Tag::additional>(info); in TEST_P()645 Event::EventPayload::Vec3 data = {1, 2, 3, SensorStatus::ACCURACY_HIGH}; in TEST_P()646 injectedEvent.payload.set<Event::EventPayload::Tag::vec3>(data); in TEST_P()679 ASSERT_EQ(lastEvent.payload.get<Event::EventPayload::Tag::vec3>().x, in TEST_P()680 injectedEvent.payload.get<Event::EventPayload::Tag::vec3>().x); in TEST_P()681 ASSERT_EQ(lastEvent.payload.get<Event::EventPayload::Tag::vec3>().y, in TEST_P()682 injectedEvent.payload.get<Event::EventPayload::Tag::vec3>().y); in TEST_P()683 ASSERT_EQ(lastEvent.payload.get<Event::EventPayload::Tag::vec3>().z, in TEST_P()[all …]
19 import @1.0::EventPayload;35 * Sensor data is output using @1.0::EventPayload.scalar.53 EventPayload u;
39 using ::android::hardware::sensors::V1_0::EventPayload;892 event.u = EventPayload(); in makeProximityEvent()902 event.u = EventPayload(); in makeAccelerometerEvent()
498 * the "scalar" element of the EventPayload in Event. The1181 union EventPayload {1253 EventPayload u;