Home
last modified time | relevance | path

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

12

/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 …]
/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/60xx/libsensors_iio/software/core/mllite/
Ddata_builder.c72 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias);
174 void set_sensor_orientation_and_scale(struct inv_single_sensor_t *sensor, in set_sensor_orientation_and_scale() argument
177 sensor->sensitivity = sensitivity; in set_sensor_orientation_and_scale()
178 sensor->orientation = orientation; in set_sensor_orientation_and_scale()
425 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias) in inv_apply_calibration() argument
430 raw32[0] = (long)sensor->raw[0] << 15; in inv_apply_calibration()
431 raw32[1] = (long)sensor->raw[1] << 15; in inv_apply_calibration()
432 raw32[2] = (long)sensor->raw[2] << 15; in inv_apply_calibration()
434 …inv_convert_to_body_with_scale(sensor->orientation, sensor->sensitivity << 1, raw32, sensor->raw_s… in inv_apply_calibration()
440 …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
278 rh.sensor = sensor_cal; in inv_generate_results()
/hardware/samsung_slsi/exynos5/libcamera2/
DExynosCameraHWInterface2.cpp450 …->internal_shot.shot.ctl.request.frameCount, currentEntry->internal_shot.shot.dm.sensor.timeStamp); in PrepareFrame()
522 shot_ext->shot.ctl.sensor.exposureTime = 0; in MarkProcessingRequest()
523 shot_ext->shot.ctl.sensor.frameDuration = 33*1000*1000; in MarkProcessingRequest()
524 shot_ext->shot.ctl.sensor.sensitivity = 0; in MarkProcessingRequest()
633 timeStamp = request_shot->shot.dm.sensor.timeStamp; in ApplyDynamicMetadata()
635 request_shot->shot.dm.sensor.timeStamp = timeStamp; in ApplyDynamicMetadata()
780 index, frameCnt, currentEntry->internal_shot.shot.dm.sensor.timeStamp); in RegisterTimestamp()
782 currentEntry->internal_shot.shot.dm.sensor.timeStamp = *((uint64_t*)frameTime); in RegisterTimestamp()
784 index, frameCnt, currentEntry->internal_shot.shot.dm.sensor.timeStamp); in RegisterTimestamp()
809 nsecs_t frameTime = currentEntry->internal_shot.shot.dm.sensor.timeStamp; in GetTimestamp()
[all …]
DMetadataConverter.cpp137 dst->dm.sensor.timeStamp = curr_entry.data.i64[0]; in ToInternalShot()
150 dst->dm.sensor.exposureTime = curr_entry.data.i64[0]; in ToInternalShot()
532 &metadata->dm.sensor.timeStamp, 1)) in ToDynamicMetadata()
536 &metadata->dm.sensor.exposureTime, 1)) in ToDynamicMetadata()
549 metadata->dm.sensor.timeStamp, metadata->dm.sensor.exposureTime, metadata->dm.lens.aperture); in ToDynamicMetadata()
Dfimc-is-metadata.h662 struct camera2_sensor_ctl sensor; member
685 struct camera2_sensor_dm sensor; member
706 struct camera2_sensor_sm sensor; member
/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 …]
/hardware/akm/AK8975_FS/libsensors/
DAkmSensor.cpp46 mPendingEvents[Accelerometer].sensor = ID_A; in AkmSensor()
51 mPendingEvents[MagneticField].sensor = ID_M; in AkmSensor()
56 mPendingEvents[Orientation ].sensor = ID_O; in AkmSensor()
Dsensors.cpp282 SensorBase* const sensor(mSensors[i]); in pollEvents() local
283 if ((mPollFds[i].revents & POLLIN) || (sensor->hasPendingEvents())) { in pollEvents()
284 int nb = sensor->readEvents(data, count); in pollEvents()
DKionixSensor.cpp46 mPendingEvent.sensor = ID_A; in KionixSensor()
DAdxlSensor.cpp43 mPendingEvent.sensor = ID_A; in AdxlSensor()
/hardware/libhardware/modules/sensors/
Dmultihal.cpp291 full_handle.localHandle = dest->meta_data.sensor; in copy_event_remap_handle()
292 dest->meta_data.sensor = get_global_handle(&full_handle); in copy_event_remap_handle()
294 full_handle.localHandle = dest->sensor; in copy_event_remap_handle()
295 dest->sensor = get_global_handle(&full_handle); in copy_event_remap_handle()
316 if (data[eventsRead].sensor == -1) { in poll()
/hardware/libhardware/include/hardware/
Dsensors.h675 int32_t sensor; member
701 int32_t sensor; member
/hardware/invensense/60xx/libsensors/
DMPLSensor.cpp221 mPendingEvents[RotationVector].sensor = ID_RV; in MPLSensor()
225 mPendingEvents[LinearAccel].sensor = ID_LA; in MPLSensor()
229 mPendingEvents[Gravity].sensor = ID_GR; in MPLSensor()
233 mPendingEvents[Gyro].sensor = ID_GY; in MPLSensor()
237 mPendingEvents[Accelerometer].sensor = ID_A; in MPLSensor()
241 mPendingEvents[MagneticField].sensor = ID_M; in MPLSensor()
246 mPendingEvents[Orientation].sensor = ID_O; in MPLSensor()
/hardware/invensense/6515/libsensors_iio/
Dsensors_mpl.cpp205 flushCompleteEvent.sensor = 0; in pollEvents()
207 flushCompleteEvent.meta_data.sensor = handle_element->handle; in pollEvents()
212 flushCompleteEvent.meta_data.sensor); in pollEvents()
DMPLSensor.cpp397 mPendingEvents[RotationVector].sensor = ID_RV; in MPLSensor()
403 mPendingEvents[GameRotationVector].sensor = ID_GRV; in MPLSensor()
409 mPendingEvents[LinearAccel].sensor = ID_LA; in MPLSensor()
415 mPendingEvents[Gravity].sensor = ID_GR; in MPLSensor()
420 mPendingEvents[Gyro].sensor = ID_GY; in MPLSensor()
425 mPendingEvents[RawGyro].sensor = ID_RG; in MPLSensor()
430 mPendingEvents[Accelerometer].sensor = ID_A; in MPLSensor()
437 mPendingEvents[MagneticField].sensor = ID_M; in MPLSensor()
443 mPendingEvents[RawMagneticField].sensor = ID_RM; in MPLSensor()
450 mPendingEvents[Pressure].sensor = ID_PS; in MPLSensor()
[all …]
/hardware/samsung_slsi/exynos5/original-kernel-headers/linux/
Dfimc-is-metadata.h715 struct camera2_sensor_ctl sensor; member
734 struct camera2_sensor_dm sensor; member
752 struct camera2_sensor_sm sensor; member
/hardware/invensense/60xx/libsensors_iio/
DMPLSensor.cpp265 mPendingEvents[RotationVector].sensor = ID_RV; in MPLSensor()
269 mPendingEvents[LinearAccel].sensor = ID_LA; in MPLSensor()
273 mPendingEvents[Gravity].sensor = ID_GR; in MPLSensor()
277 mPendingEvents[Gyro].sensor = ID_GY; in MPLSensor()
281 mPendingEvents[RawGyro].sensor = ID_RG; in MPLSensor()
285 mPendingEvents[Accelerometer].sensor = ID_A; in MPLSensor()
290 mPendingEvents[MagneticField].sensor = ID_M; in MPLSensor()
296 mPendingEvents[Orientation].sensor = ID_O; in MPLSensor()
2251 temp.sensor = ID_SO; in readDmpOrientEvents()

12