Home
last modified time | relevance | path

Searched refs:ldata (Results 1 – 9 of 9) sorted by relevance

/hardware/invensense/6515/libsensors_iio/
DMPLSupport.cpp334 int inv_float_to_q16(float *fdata, long *ldata) in inv_float_to_q16() argument
337 if (!fdata || !ldata) in inv_float_to_q16()
339 ldata[0] = (long)(fdata[0] * 65536.f); in inv_float_to_q16()
340 ldata[1] = (long)(fdata[1] * 65536.f); in inv_float_to_q16()
341 ldata[2] = (long)(fdata[2] * 65536.f); in inv_float_to_q16()
345 int inv_long_to_q16(long *fdata, long *ldata) in inv_long_to_q16() argument
348 if (!fdata || !ldata) in inv_long_to_q16()
350 ldata[0] = (fdata[1] * 65536.f); in inv_long_to_q16()
351 ldata[1] = (fdata[2] * 65536.f); in inv_long_to_q16()
352 ldata[2] = (fdata[3] * 65536.f); in inv_long_to_q16()
[all …]
DMPLSupport.h37 int inv_float_to_q16(float *fdata, long *ldata);
38 int inv_long_to_q16(long *fdata, long *ldata);
39 int inv_float_to_round(float *fdata, long *ldata);
41 int inv_long_to_float(long *ldata, float *fdata);
DCompassSensor.AKM.cpp141 long ldata[3]; in readRawSample() local
143 int res = mCompassSensor->readSample(ldata, timestamp); in readRawSample()
145 data[i] = (float)ldata[i]; in readRawSample()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dresults_holder.c257 long ldata[4]; in inv_get_gravity() local
258 inv_error_t result = inv_get_quaternion(ldata); in inv_get_gravity()
261 inv_q29_mult(ldata[1], ldata[3]) - inv_q29_mult(ldata[2], ldata[0]); in inv_get_gravity()
263 inv_q29_mult(ldata[2], ldata[3]) + inv_q29_mult(ldata[1], ldata[0]); in inv_get_gravity()
265 (inv_q29_mult(ldata[3], ldata[3]) + inv_q29_mult(ldata[0], ldata[0])) - in inv_get_gravity()
/hardware/invensense/65xx/libsensors_iio/
DCompassSensor.AKM.cpp141 long ldata[3]; in readRawSample() local
143 int res = mCompassSensor->readSample(ldata, timestamp); in readRawSample()
145 data[i] = (float)ldata[i]; in readRawSample()
DMPLSensor.h307 int inv_float_to_q16(float *fdata, long *ldata);
308 int inv_long_to_q16(long *fdata, long *ldata);
309 int inv_float_to_round(float *fdata, long *ldata);
311 int inv_long_to_float(long *ldata, float *fdata);
DMPLSensor.cpp4532 int MPLSensor::inv_float_to_q16(float *fdata, long *ldata) in inv_float_to_q16() argument
4536 if (!fdata || !ldata) in inv_float_to_q16()
4538 ldata[0] = (long)(fdata[0] * 65536.f); in inv_float_to_q16()
4539 ldata[1] = (long)(fdata[1] * 65536.f); in inv_float_to_q16()
4540 ldata[2] = (long)(fdata[2] * 65536.f); in inv_float_to_q16()
4544 int MPLSensor::inv_long_to_q16(long *fdata, long *ldata) in inv_long_to_q16() argument
4548 if (!fdata || !ldata) in inv_long_to_q16()
4550 ldata[0] = (fdata[1] * 65536.f); in inv_long_to_q16()
4551 ldata[1] = (fdata[2] * 65536.f); in inv_long_to_q16()
4552 ldata[2] = (fdata[3] * 65536.f); in inv_long_to_q16()
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dresults_holder.c318 long ldata[4]; in inv_get_quaternion_float() local
319 inv_error_t result = inv_get_quaternion(ldata); in inv_get_quaternion_float()
320 data[0] = inv_q30_to_float(ldata[0]); in inv_get_quaternion_float()
321 data[1] = inv_q30_to_float(ldata[1]); in inv_get_quaternion_float()
322 data[2] = inv_q30_to_float(ldata[2]); in inv_get_quaternion_float()
323 data[3] = inv_q30_to_float(ldata[3]); in inv_get_quaternion_float()
/hardware/google/pixel/perfstatsd/
Dcpu_usage.cpp115 ProcData ldata; in profileProcess() local
116 ldata.user = user; in profileProcess()
117 ldata.system = system; in profileProcess()
118 ldata.usage = totalUsage; in profileProcess()
119 procUsage[pid] = ldata; in profileProcess()