• Home
  • Raw
  • Download

Lines Matching refs:u

78             dst->u.meta.what = (MetaDataEventType)src.meta_data.what;  in convertFromSensorEvent()
92 dst->u.vec3.x = src.acceleration.x; in convertFromSensorEvent()
93 dst->u.vec3.y = src.acceleration.y; in convertFromSensorEvent()
94 dst->u.vec3.z = src.acceleration.z; in convertFromSensorEvent()
95 dst->u.vec3.status = (SensorStatus)src.acceleration.status; in convertFromSensorEvent()
100 dst->u.vec4.x = src.data[0]; in convertFromSensorEvent()
101 dst->u.vec4.y = src.data[1]; in convertFromSensorEvent()
102 dst->u.vec4.z = src.data[2]; in convertFromSensorEvent()
103 dst->u.vec4.w = src.data[3]; in convertFromSensorEvent()
109 dst->u.data[0] = src.data[0]; in convertFromSensorEvent()
110 dst->u.data[1] = src.data[1]; in convertFromSensorEvent()
111 dst->u.data[2] = src.data[2]; in convertFromSensorEvent()
112 dst->u.data[3] = src.data[3]; in convertFromSensorEvent()
113 dst->u.data[4] = src.data[4]; in convertFromSensorEvent()
120 dst->u.uncal.x = src.uncalibrated_gyro.x_uncalib; in convertFromSensorEvent()
121 dst->u.uncal.y = src.uncalibrated_gyro.y_uncalib; in convertFromSensorEvent()
122 dst->u.uncal.z = src.uncalibrated_gyro.z_uncalib; in convertFromSensorEvent()
123 dst->u.uncal.x_bias = src.uncalibrated_gyro.x_bias; in convertFromSensorEvent()
124 dst->u.uncal.y_bias = src.uncalibrated_gyro.y_bias; in convertFromSensorEvent()
125 dst->u.uncal.z_bias = src.uncalibrated_gyro.z_bias; in convertFromSensorEvent()
147 dst->u.scalar = src.data[0]; in convertFromSensorEvent()
152 dst->u.stepCount = src.u64.step_counter; in convertFromSensorEvent()
157 dst->u.heartRate.bpm = src.heart_rate.bpm; in convertFromSensorEvent()
158 dst->u.heartRate.status = (SensorStatus)src.heart_rate.status; in convertFromSensorEvent()
164 dst->u.pose6DOF[i] = src.data[i]; in convertFromSensorEvent()
170 dst->u.dynamic.connected = src.dynamic_sensor_meta.connected; in convertFromSensorEvent()
171 dst->u.dynamic.sensorHandle = src.dynamic_sensor_meta.handle; in convertFromSensorEvent()
173 memcpy(dst->u.dynamic.uuid.data(), src.dynamic_sensor_meta.uuid, 16); in convertFromSensorEvent()
179 ::android::hardware::sensors::V1_0::AdditionalInfo* dstInfo = &dst->u.additional; in convertFromSensorEvent()
187 CHECK_EQ(sizeof(dstInfo->u), sizeof(srcInfo.data_int32)); in convertFromSensorEvent()
188 memcpy(&dstInfo->u, srcInfo.data_int32, sizeof(srcInfo.data_int32)); in convertFromSensorEvent()
195 memcpy(dst->u.data.data(), src.data, 16 * sizeof(float)); in convertFromSensorEvent()
212 dst->meta_data.what = (int32_t)src.u.meta.what; in convertToSensorEvent()
225 dst->acceleration.x = src.u.vec3.x; in convertToSensorEvent()
226 dst->acceleration.y = src.u.vec3.y; in convertToSensorEvent()
227 dst->acceleration.z = src.u.vec3.z; in convertToSensorEvent()
228 dst->acceleration.status = (int8_t)src.u.vec3.status; in convertToSensorEvent()
233 dst->data[0] = src.u.vec4.x; in convertToSensorEvent()
234 dst->data[1] = src.u.vec4.y; in convertToSensorEvent()
235 dst->data[2] = src.u.vec4.z; in convertToSensorEvent()
236 dst->data[3] = src.u.vec4.w; in convertToSensorEvent()
242 dst->data[0] = src.u.data[0]; in convertToSensorEvent()
243 dst->data[1] = src.u.data[1]; in convertToSensorEvent()
244 dst->data[2] = src.u.data[2]; in convertToSensorEvent()
245 dst->data[3] = src.u.data[3]; in convertToSensorEvent()
246 dst->data[4] = src.u.data[4]; in convertToSensorEvent()
254 dst->uncalibrated_gyro.x_uncalib = src.u.uncal.x; in convertToSensorEvent()
255 dst->uncalibrated_gyro.y_uncalib = src.u.uncal.y; in convertToSensorEvent()
256 dst->uncalibrated_gyro.z_uncalib = src.u.uncal.z; in convertToSensorEvent()
257 dst->uncalibrated_gyro.x_bias = src.u.uncal.x_bias; in convertToSensorEvent()
258 dst->uncalibrated_gyro.y_bias = src.u.uncal.y_bias; in convertToSensorEvent()
259 dst->uncalibrated_gyro.z_bias = src.u.uncal.z_bias; in convertToSensorEvent()
281 dst->data[0] = src.u.scalar; in convertToSensorEvent()
286 dst->u64.step_counter = src.u.stepCount; in convertToSensorEvent()
291 dst->heart_rate.bpm = src.u.heartRate.bpm; in convertToSensorEvent()
292 dst->heart_rate.status = (int8_t)src.u.heartRate.status; in convertToSensorEvent()
298 dst->data[i] = src.u.pose6DOF[i]; in convertToSensorEvent()
304 dst->dynamic_sensor_meta.connected = src.u.dynamic.connected; in convertToSensorEvent()
305 dst->dynamic_sensor_meta.handle = src.u.dynamic.sensorHandle; in convertToSensorEvent()
309 src.u.dynamic.uuid.data(), in convertToSensorEvent()
317 src.u.additional; in convertToSensorEvent()
323 CHECK_EQ(sizeof(srcInfo.u), sizeof(dstInfo->data_int32)); in convertToSensorEvent()
326 &srcInfo.u, in convertToSensorEvent()
336 memcpy(dst->data, src.u.data.data(), 16 * sizeof(float)); in convertToSensorEvent()