Lines Matching refs:sample

332 …int64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sample, __attribute__((un…  in processSample()  argument
342 (float)(sample->idata & 0x7), 0.0, 0.0); in processSample()
346 initEv(&nev[cnt++], timestamp, type, sensor)->pressure = sample->fdata; in processSample()
349 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample()
352 initEv(&nev[cnt++], timestamp, type, sensor)->distance = sample->fdata; in processSample()
355 initEv(&nev[cnt++], timestamp, type, sensor)->light = sample->fdata; in processSample()
360 mLastStepCount = mStepCounterOffset + sample->idata; in processSample()
371 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample()
375 sendFolioEvent(sample->idata); in processSample()
379 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample()
404 …_t timestamp, uint32_t type, uint32_t sensor, struct RawThreeAxisSample *sample, __attribute__((un… in processSample() argument
413 sv->x = sample->ix * ACCEL_RAW_KSCALE; in processSample()
414 sv->y = sample->iy * ACCEL_RAW_KSCALE; in processSample()
415 sv->z = sample->iz * ACCEL_RAW_KSCALE; in processSample()
426 …t64_t timestamp, uint32_t type, uint32_t sensor, struct ThreeAxisSample *sample, bool highAccuracy) in processSample() argument
439 sv->x = sample->x; in processSample()
440 sv->y = sample->y; in processSample()
441 sv->z = sample->z; in processSample()
447 sv->x = sample->x; in processSample()
448 sv->y = sample->y; in processSample()
449 sv->z = sample->z; in processSample()
457 ue->x_uncalib = sample->x + mGyroBias[0]; in processSample()
458 ue->y_uncalib = sample->y + mGyroBias[1]; in processSample()
459 ue->z_uncalib = sample->z + mGyroBias[2]; in processSample()
466 mGyroBias[0] = sample->x; in processSample()
467 mGyroBias[1] = sample->y; in processSample()
468 mGyroBias[2] = sample->z; in processSample()
471 magAccuracyUpdate(sample->x, sample->y, sample->z); in processSample()
475 sv->x = sample->x; in processSample()
476 sv->y = sample->y; in processSample()
477 sv->z = sample->z; in processSample()
485 ue->x_uncalib = sample->x + mMagBias[0]; in processSample()
486 ue->y_uncalib = sample->y + mMagBias[1]; in processSample()
487 ue->z_uncalib = sample->z + mMagBias[2]; in processSample()
495 mMagBias[0] = sample->x; in processSample()
496 mMagBias[1] = sample->y; in processSample()
497 mMagBias[2] = sample->z; in processSample()
505 sv->x = sample->x; in processSample()
506 sv->y = sample->y; in processSample()
507 sv->z = sample->z; in processSample()
512 ev->data[0] = sample->x; in processSample()
513 ev->data[1] = sample->y; in processSample()
514 ev->data[2] = sample->z; in processSample()
518 w = sample->x * sample->x + sample->y * sample->y + sample->z * sample->z; in processSample()
523 ev->data[0] = sample->x; in processSample()
524 ev->data[1] = sample->y; in processSample()
525 ev->data[2] = sample->z; in processSample()
532 w = sample->x * sample->x + sample->y * sample->y + sample->z * sample->z; in processSample()
537 ev->data[0] = sample->x; in processSample()
538 ev->data[1] = sample->y; in processSample()
539 ev->data[2] = sample->z; in processSample()