Lines Matching refs:sensor

321 …t_t *HubConnection::initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor)  in initEv()  argument
327 ev->sensor = sensor; in initEv()
332 void HubConnection::processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxi… in processSample() argument
337 switch (sensor) { 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()
361 initEv(&nev[cnt++], timestamp, type, sensor)->u64.step_counter = mLastStepCount; in processSample()
367 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = 1.0f; in processSample()
371 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample()
379 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = sample->idata; in processSample()
404 void HubConnection::processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct RawThr… in processSample() argument
410 switch (sensor) { in processSample()
412 sv = &initEv(&nev[cnt++], timestamp, type, sensor)->acceleration; in processSample()
426 void HubConnection::processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct ThreeA… in processSample() argument
436 switch (sensor) { in processSample()
438 sv = &initEv(&nev[cnt++], timestamp, type, sensor)->acceleration; in processSample()
445 if (mSensorState[sensor].enable) { in processSample()
446 sv = &initEv(&nev[cnt++], timestamp, type, sensor)->gyro; in processSample()
473 if (mSensorState[sensor].enable) { in processSample()
474 sv = &initEv(&nev[cnt++], timestamp, type, sensor)->magnetic; in processSample()
504 sv = &initEv(&nev[cnt++], timestamp, type, sensor)->orientation; in processSample()
511 ev = initEv(&nev[cnt++], timestamp, type, sensor); in processSample()
517 ev = initEv(&nev[cnt++], timestamp, type, sensor); in processSample()
531 ev = initEv(&nev[cnt++], timestamp, type, sensor); in processSample()
639 uint32_t type, sensor, bias, currSensor; in processBuf() local
656 sensor = COMMS_SENSOR_ACCEL; in processBuf()
661 sensor = COMMS_SENSOR_ACCEL; in processBuf()
666 sensor = COMMS_SENSOR_GYRO; in processBuf()
672 sensor = COMMS_SENSOR_MAG; in processBuf()
678 sensor = COMMS_SENSOR_LIGHT; in processBuf()
683 sensor = COMMS_SENSOR_PROXIMITY; in processBuf()
688 sensor = COMMS_SENSOR_PRESSURE; in processBuf()
693 sensor = COMMS_SENSOR_TEMPERATURE; in processBuf()
698 sensor = COMMS_SENSOR_ORIENTATION; in processBuf()
703 sensor = COMMS_SENSOR_WINDOW_ORIENTATION; in processBuf()
708 sensor = COMMS_SENSOR_STEP_DETECTOR; in processBuf()
713 sensor = COMMS_SENSOR_STEP_COUNTER; in processBuf()
718 sensor = COMMS_SENSOR_SIGNIFICANT_MOTION; in processBuf()
723 sensor = COMMS_SENSOR_GRAVITY; in processBuf()
728 sensor = COMMS_SENSOR_LINEAR_ACCEL; in processBuf()
733 sensor = COMMS_SENSOR_ROTATION_VECTOR; in processBuf()
738 sensor = COMMS_SENSOR_GEO_MAG; in processBuf()
743 sensor = COMMS_SENSOR_GAME_ROTATION_VECTOR; in processBuf()
748 sensor = COMMS_SENSOR_HALL; in processBuf()
753 sensor = COMMS_SENSOR_SYNC; in processBuf()
758 sensor = COMMS_SENSOR_ACTIVITY; in processBuf()
763 sensor = COMMS_SENSOR_TILT; in processBuf()
768 sensor = COMMS_SENSOR_GESTURE; in processBuf()
773 sensor = COMMS_SENSOR_DOUBLE_TWIST; in processBuf()
778 sensor = COMMS_SENSOR_DOUBLE_TAP; in processBuf()
800 currSensor = sensor; in processBuf()
824 if (sensor == COMMS_SENSOR_ACTIVITY) { in processBuf()
835 ev.sensor = 0; in processBuf()
837 … if (mSensorState[sensor].alt && mSensorState[mSensorState[sensor].alt].flushCnt > 0) { in processBuf()
838 mSensorState[mSensorState[sensor].alt].flushCnt --; in processBuf()
839 ev.meta_data.sensor = mSensorState[sensor].alt; in processBuf()
841 mSensorState[sensor].flushCnt --; in processBuf()
842 ev.meta_data.sensor = sensor; in processBuf()
846 ALOGI("flushing %d", ev.meta_data.sensor); in processBuf()