Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 22 of 22) sorted by relevance

/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/
Dread_device_node.c56 void get_sensor_data(char *d, short *sensor) in get_sensor_data() argument
60 sensor[i] = *(short *)(d + 2 + i * 2); in get_sensor_data()
76 short sensor[3]; in read_data() local
121 get_sensor_data(dptr, sensor); in read_data()
123 … printf("PRESS, %d, %lld\n", (sensor[1] << 16) + (unsigned short)sensor[2], *(long long *)dptr); in read_data()
129 get_sensor_data(dptr, sensor); in read_data()
131 … printf("ACCEL, %d, %d, %d, %lld\n", sensor[0], sensor[1], sensor[2], *(long long *)dptr); in read_data()
137 get_sensor_data(dptr, sensor); in read_data()
139 … printf("GYRO, %d, %d, %d, %lld\n", sensor[0], sensor[1], sensor[2], *(long long *)dptr); in read_data()
145 get_sensor_data(dptr, sensor); in read_data()
[all …]
Diio_utils.h596 int *counter, char *sensor, int en) in enable_se() argument
615 strcat(pattern, sensor); in enable_se()
/hardware/ti/omap4-aah/camera/
DSensorListener.cpp195 android::Sensor const* sensor; in enableSensor() local
203 sensor = mgr.getDefaultSensor(android::Sensor::TYPE_ACCELEROMETER); in enableSensor()
204 if(sensor) { in enableSensor()
205 CAMHAL_LOGDB("orientation = %p (%s)", sensor, sensor->getName().string()); in enableSensor()
206 mSensorEventQueue->enableSensor(sensor); in enableSensor()
207 mSensorEventQueue->setEventRate(sensor, ms2ns(100)); in enableSensor()
218 android::Sensor const* sensor; in disableSensor() local
226 sensor = mgr.getDefaultSensor(android::Sensor::TYPE_ACCELEROMETER); in disableSensor()
227 CAMHAL_LOGDB("orientation = %p (%s)", sensor, sensor->getName().string()); in disableSensor()
228 mSensorEventQueue->disableSensor(sensor); in disableSensor()
/hardware/ti/omap4xxx/camera/
DSensorListener.cpp197 Sensor const* sensor; in enableSensor() local
205 sensor = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); in enableSensor()
206 CAMHAL_LOGDB("orientation = %p (%s)", sensor, sensor->getName().string()); in enableSensor()
207 mSensorEventQueue->enableSensor(sensor); in enableSensor()
208 mSensorEventQueue->setEventRate(sensor, ms2ns(100)); in enableSensor()
216 Sensor const* sensor; in disableSensor() local
224 sensor = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); in disableSensor()
225 CAMHAL_LOGDB("orientation = %p (%s)", sensor, sensor->getName().string()); in disableSensor()
226 mSensorEventQueue->disableSensor(sensor); in disableSensor()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/
Dstress_iio.c700 void get_sensor_data(char *d, short *sensor) in get_sensor_data() argument
705 sensor[i] = *(short *)(d + 2 + i * 2); in get_sensor_data()
712 short sensor[3]; in read_data() local
790 get_sensor_data(dptr, sensor); in read_data()
792 … printf("PRESSURE:%d, %lld\n", (sensor[1] << 16) + (unsigned short)sensor[2], *(long long *)dptr); in read_data()
798 get_sensor_data(dptr, sensor); in read_data()
800 printf("A:%d, %d, %d, %lld\n", sensor[0], sensor[1], sensor[2], *(long long *)dptr); in read_data()
806 get_sensor_data(dptr, sensor); in read_data()
809 printf("G:%d, %d, %d, %lld\n", sensor[0], sensor[1], sensor[2], *(long long *)dptr); in read_data()
815 get_sensor_data(dptr, sensor); in read_data()
[all …]
DREADME24 other sensor output (including quaternion, gyro, accel, and compass.) in the
/hardware/intel/common/utils/ituxd/src/com/intel/thermal/
DThermalZone.java555 ThermalSensor sensor = mThermalSensors.get(0); in registerUevent() local
556 if (sensor == null) return; in registerUevent()
557 String path = sensor.getUEventDevPath(); in registerUevent()
560 sensor.updateSensorTemp(); in registerUevent()
561 setZoneTemp(sensor.getCurrTemp()); in registerUevent()
567 programThresholds(sensor); in registerUevent()
589 ThermalSensor sensor = mThermalSensors.get(0);
590 if (sensor != null && sensor.getSensorName() != null
591 && sensor.getSensorName().equalsIgnoreCase(sensorName)) {
594 errorVal = sensor.getErrorCorrectionTemp();
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Ddata_builder.c56 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias);
206 void set_sensor_orientation_and_scale(struct inv_single_sensor_t *sensor, in set_sensor_orientation_and_scale() argument
217 sensor->sensitivity = sensitivity; in set_sensor_orientation_and_scale()
232 sensor->orientation = orientation; in set_sensor_orientation_and_scale()
486 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias) in inv_apply_calibration() argument
491 raw32[0] = (long)sensor->raw[0] << 15; in inv_apply_calibration()
492 raw32[1] = (long)sensor->raw[1] << 15; in inv_apply_calibration()
493 raw32[2] = (long)sensor->raw[2] << 15; in inv_apply_calibration()
495 …inv_convert_to_body_with_scale(sensor->orientation, sensor->sensitivity << 1, raw32, sensor->raw_s… in inv_apply_calibration()
501 …inv_convert_to_body_with_scale(sensor->orientation, sensor->sensitivity << 1, raw32, sensor->calib… in inv_apply_calibration()
[all …]
Dresults_holder.c54 struct inv_sensor_cal_t *sensor; member
354 rh.sensor = sensor_cal; in inv_generate_results()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Ddata_builder.c57 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias);
207 void set_sensor_orientation_and_scale(struct inv_single_sensor_t *sensor, in set_sensor_orientation_and_scale() argument
218 sensor->sensitivity = sensitivity; in set_sensor_orientation_and_scale()
233 sensor->orientation = orientation; in set_sensor_orientation_and_scale()
691 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias) in inv_apply_calibration() argument
696 raw32[0] = (long)sensor->raw[0] << 15; in inv_apply_calibration()
697 raw32[1] = (long)sensor->raw[1] << 15; in inv_apply_calibration()
698 raw32[2] = (long)sensor->raw[2] << 15; in inv_apply_calibration()
700 …inv_convert_to_body_with_scale(sensor->orientation, sensor->sensitivity << 1, raw32, sensor->raw_s… in inv_apply_calibration()
706 …inv_convert_to_body_with_scale(sensor->orientation, sensor->sensitivity << 1, raw32, sensor->calib… in inv_apply_calibration()
[all …]
Dresults_holder.c49 struct inv_sensor_cal_t *sensor; member
452 rh.sensor = sensor_cal; in inv_generate_results()
/hardware/akm/AK8975_FS/libsensors/
DAkmSensor.cpp47 mPendingEvents[Accelerometer].sensor = ID_A; in AkmSensor()
52 mPendingEvents[MagneticField].sensor = ID_M; in AkmSensor()
57 mPendingEvents[Orientation ].sensor = ID_O; in AkmSensor()
Dsensors.cpp285 SensorBase* const sensor(mSensors[i]); in pollEvents() local
286 if ((mPollFds[i].revents & POLLIN) || (sensor->hasPendingEvents())) { in pollEvents()
287 int nb = sensor->readEvents(data, count); in pollEvents()
DKionixSensor.cpp46 mPendingEvent.sensor = ID_A; in KionixSensor()
DAdxlSensor.cpp44 mPendingEvent.sensor = ID_A; in AdxlSensor()
/hardware/libhardware/include/hardware/
Dsensors.h730 int32_t sensor; member
756 int32_t sensor; member
/hardware/libhardware/modules/sensors/
Dmultihal.cpp322 full_handle.localHandle = dest->meta_data.sensor; in copy_event_remap_handle()
323 dest->meta_data.sensor = get_global_handle(&full_handle); in copy_event_remap_handle()
325 full_handle.localHandle = dest->sensor; in copy_event_remap_handle()
326 dest->sensor = get_global_handle(&full_handle); in copy_event_remap_handle()
347 if (data[eventsRead].sensor == -1) { in poll()
/hardware/invensense/6515/libsensors_iio/
Dsensors_mpl.cpp220 flushCompleteEvent.sensor = 0; in pollEvents()
222 flushCompleteEvent.meta_data.sensor = handle_element->handle; in pollEvents()
227 flushCompleteEvent.meta_data.sensor); in pollEvents()
DMPLSensor.cpp411 mPendingEvents[RotationVector].sensor = ID_RV; in MPLSensor()
417 mPendingEvents[GameRotationVector].sensor = ID_GRV; in MPLSensor()
423 mPendingEvents[LinearAccel].sensor = ID_LA; in MPLSensor()
429 mPendingEvents[Gravity].sensor = ID_GR; in MPLSensor()
434 mPendingEvents[Gyro].sensor = ID_GY; in MPLSensor()
439 mPendingEvents[RawGyro].sensor = ID_RG; in MPLSensor()
444 mPendingEvents[Accelerometer].sensor = ID_A; in MPLSensor()
451 mPendingEvents[MagneticField].sensor = ID_M; in MPLSensor()
457 mPendingEvents[RawMagneticField].sensor = ID_RM; in MPLSensor()
464 mPendingEvents[Pressure].sensor = ID_PS; in MPLSensor()
[all …]
/hardware/invensense/65xx/libsensors_iio/
DMPLSensor.cpp503 mPendingEvents[RotationVector].sensor = ID_RV; in MPLSensor()
509 mPendingEvents[GameRotationVector].sensor = ID_GRV; in MPLSensor()
515 mPendingEvents[LinearAccel].sensor = ID_LA; in MPLSensor()
521 mPendingEvents[Gravity].sensor = ID_GR; in MPLSensor()
526 mPendingEvents[Gyro].sensor = ID_GY; in MPLSensor()
531 mPendingEvents[RawGyro].sensor = ID_RG; in MPLSensor()
536 mPendingEvents[Accelerometer].sensor = ID_A; in MPLSensor()
543 mPendingEvents[MagneticField].sensor = ID_M; in MPLSensor()
549 mPendingEvents[RawMagneticField].sensor = ID_RM; in MPLSensor()
555 mPendingEvents[Pressure].sensor = ID_PS; in MPLSensor()
[all …]
/hardware/invensense/6515/libsensors_iio/software/simple_apps/mpu_iio/
Diio_utils.h596 int *counter, char *sensor, int en) in enable_se() argument
615 strcat(pattern, sensor); in enable_se()
/hardware/libhardware/tests/hardware/
Dstruct-offset.cpp71 CHECK_MEMBER_AT(sensors_event_t, sensor, 4, 4); in CheckOffsets()