Home
last modified time | relevance | path

Searched refs:acc (Results 1 – 8 of 8) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/c++/
Dadxl345.cxx33 float *acc; in main() local
41 acc = accel->getAcceleration(); // Read acceleration (g) in main()
44 fprintf(stdout, "AccX: %5.2f g\n", acc[0]); in main()
45 fprintf(stdout, "AccY: %5.2f g\n", acc[1]); in main()
46 fprintf(stdout, "AccZ: %5.2f g\n", acc[2]); in main()
/hardware/akm/AK8975_FS/libsensors/
Dsensors.cpp139 acc = 0, enumerator
164 mSensors[acc] = new AdxlSensor(); in sensors_poll_context_t()
167 mSensors[acc] = new KionixSensor(); in sensors_poll_context_t()
169 mPollFds[acc].fd = mSensors[acc]->getFd(); in sensors_poll_context_t()
170 mPollFds[acc].events = POLLIN; in sensors_poll_context_t()
171 mPollFds[acc].revents = 0; in sensors_poll_context_t()
201 return acc; in handleToDriver()
292 if ((0 != nb) && (acc == i)) { in pollEvents()
DAkmSensor.cpp244 int16_t acc[3]; in setAccel() local
246 acc[0] = (int16_t)(data->acceleration.x / GRAVITY_EARTH * AKSC_LSG); in setAccel()
247 acc[1] = (int16_t)(data->acceleration.y / GRAVITY_EARTH * AKSC_LSG); in setAccel()
248 acc[2] = (int16_t)(data->acceleration.z / GRAVITY_EARTH * AKSC_LSG); in setAccel()
251 err = write_sys_attribute(input_sysfs_path, (char*)acc, 6); in setAccel()
/hardware/akm/AK8975_FS/akmdfs/
DAKFS_Measure.c236 const AKSENSOR_DATA* acc, in AKFS_OutputResult() argument
245 buf[1] = CONVERT_ACC(acc->x); /* Ax */ in AKFS_OutputResult()
246 buf[2] = CONVERT_ACC(acc->y); /* Ay */ in AKFS_OutputResult()
247 buf[3] = CONVERT_ACC(acc->z); /* Az */ in AKFS_OutputResult()
248 buf[4] = acc->status; /* Acc status */ in AKFS_OutputResult()
274 int16 acc[3]; in AKFS_MeasureLoop() local
313 if (AKD_GetAccelerationData(acc) != AKD_SUCCESS) { in AKFS_MeasureLoop()
319 if (AKFS_Get_ACCELEROMETER(acc, 0, &tmpx, &tmpy, &tmpz, &tmp_accuracy) == AKM_SUCCESS) { in AKFS_MeasureLoop()
DAKFS_APIs.c272 const int16 acc[3], in AKFS_Get_ACCELEROMETER()
283 __FUNCTION__, acc[0], acc[1], acc[2], status); in AKFS_Get_ACCELEROMETER()
291 g_prms.mfv_adata[0].u.x = acc[0]; in AKFS_Get_ACCELEROMETER()
292 g_prms.mfv_adata[0].u.y = acc[1]; in AKFS_Get_ACCELEROMETER()
293 g_prms.mfv_adata[0].u.z = acc[2]; in AKFS_Get_ACCELEROMETER()
DAKFS_Measure.h63 const AKSENSOR_DATA* acc,
DAKFS_APIs.h54 const int16 acc[3],
/hardware/libhardware/tests/camera2/
DCameraBurstTests.cpp109 long long acc = 0; in TotalBrightness() local
130 acc += p; in TotalBrightness()
134 return acc; in TotalBrightness()