/device/samsung/manta/libsensors/ |
sensors.cpp | 64 { "BH1721fvc Light sensor", 68 { "BMP182 Pressure sensor", 96 .name = "Samsung Sensor module", 260 SensorBase* const sensor(mSensors[i]); 262 if ((mPollFds[i].revents & (POLLIN | POLLPRI)) || (sensor->hasPendingEvents())) { 266 ((MPLSensor*) sensor)->readCompassEvents(NULL, count); 271 sensor->readEvents(NULL, count); 286 nb = sensor->readEvents(data, count); 289 // no more data for this sensor 357 /** Open a new instance of a sensor device using name * [all...] |
/hardware/invensense/60xx/libsensors_iio/software/core/mllite/ |
data_builder.c | 54 /** Sensor Accuracy */ 72 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias); 168 /** Sets orientation and sensitivity field for a sensor. 169 * @param[out] sensor Structure to apply settings to 174 void set_sensor_orientation_and_scale(struct inv_single_sensor_t *sensor, 177 sensor->sensitivity = sensitivity; 178 sensor->orientation = orientation; 419 /** Takes raw data stored in the sensor, removes bias, and converts it to 421 * @param[in,out] sensor structure to modify 425 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias [all...] |
/pdk/apps/CameraITS/pymodules/its/ |
device.py | 198 """Start collecting sensor events on the device. 213 """Get a trace of all sensor events on the device. 225 Note that sensor events are only produced if the device isn't in its 349 corresponding to a full sensor frame. 361 "android.sensor.exposureTime": 100*1000*1000, 362 "android.sensor.sensitivity": 100 369 "android.sensor.exposureTime": 100*1000*1000, 370 "android.sensor.sensitivity": 100 373 "android.sensor.exposureTime": 100*1000*1000, 374 "android.sensor.sensitivity": 20 [all...] |
/hardware/samsung_slsi/exynos5/libcamera2/ |
ExynosCameraHWInterface2.cpp | 450 currentEntry->internal_shot.shot.ctl.request.frameCount, currentEntry->internal_shot.shot.dm.sensor.timeStamp); 522 shot_ext->shot.ctl.sensor.exposureTime = 0; 523 shot_ext->shot.ctl.sensor.frameDuration = 33*1000*1000; 524 shot_ext->shot.ctl.sensor.sensitivity = 0; 633 timeStamp = request_shot->shot.dm.sensor.timeStamp; 635 request_shot->shot.dm.sensor.timeStamp = timeStamp; 780 index, frameCnt, currentEntry->internal_shot.shot.dm.sensor.timeStamp); 782 currentEntry->internal_shot.shot.dm.sensor.timeStamp = *((uint64_t*)frameTime); 784 index, frameCnt, currentEntry->internal_shot.shot.dm.sensor.timeStamp); 809 nsecs_t frameTime = currentEntry->internal_shot.shot.dm.sensor.timeStamp [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
MagneticFieldMeasurementTestActivity.java | 22 import android.hardware.Sensor; 37 * These test cases require calibration of the sensor before performing the verifications. 54 * This test verifies that the Norm of the sensor data is close to the expected reference value. 55 * The units of the reference value are dependent on the type of sensor. 56 * This test is used to verify that the data reported by the sensor is close to the expected 59 * The test takes a sample from the sensor under test and calculates the Euclidean Norm of the 63 * The test is susceptible to errors when the Sensor under test is uncalibrated, or the units in 69 * - the sensor type and sensor handle that caused the failure 71 * - the values sampled from the sensor [all...] |
SignificantMotionTestActivity.java | 25 import android.hardware.Sensor; 37 * Test cases for Significant Motion sensor. 57 private Sensor mSensorSignificantMotion; 186 mSensorSignificantMotion = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); 188 throw new SensorNotSupportedException(Sensor.TYPE_SIGNIFICANT_MOTION); 226 int eventType = event.sensor.getType(); 229 Sensor.TYPE_SIGNIFICANT_MOTION, 231 Assert.assertEquals(eventTypeMessage, Sensor.TYPE_SIGNIFICANT_MOTION, eventType); 233 String sensorName = event.sensor.getName(); 251 + TestSensorEnvironment.getSensorMaxDetectionLatencyNs(event.sensor); [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorStats.java | 19 import android.hardware.Sensor; 37 * Class used to store stats related to {@link ISensorOperation}s. Sensor stats may be linked 154 * Provides a sanitized sensor name, that can be used in file names. 157 public static String getSanitizedSensorName(Sensor sensor) throws IOException { 158 String sensorType = sensor.getStringType(); 161 throw new IOException("Unable to sanitize sensor type (" + sensorType + "). This is a"
|
MovementDetectorHelper.java | 22 import android.hardware.Sensor; 44 private final Sensor mAccelerometer; 52 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 54 throw new SensorNotSupportedException(Sensor.TYPE_ACCELEROMETER); 80 public void onAccuracyChanged(Sensor sensor, int accuracy) {}
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
SensorTest.java | 21 import android.hardware.Sensor; 33 private Sensor mSensor; 99 Log.e(TAG, "sensorChanged " + event.sensor.getName() + 133 public void onAccuracyChanged(Sensor sensor, int accuracy) { 141 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
RotationVectorDemo.java | 25 import android.hardware.Sensor; 34 * {@link SensorEvent#values rotation vector sensor} 35 * ({@link Sensor#TYPE_ROTATION_VECTOR TYPE_ROTATION_VECTOR}). 37 * @see Sensor 83 private Sensor mRotationVectorSensor; 87 // find the rotation-vector sensor 89 Sensor.TYPE_ROTATION_VECTOR); 100 // enable our sensor when the activity is resumed, ask for 106 // make sure to turn our sensor off when the activity is paused 111 // we received a sensor event. it is a good practice to chec [all...] |
/device/htc/flounder/sensor_hub/libsensors/ |
Android.mk | 21 # hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.hardware.sensor>.so
|
/device/lge/hammerhead/libsensors/ |
Android.mk | 16 # This is andorid hal for apds9930 proxi / light sensor when using native kernel driver.
|
/device/lge/mako/ |
device.mk | 105 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ 106 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 107 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ 108 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
SimpleModelView.java | 24 import android.hardware.Sensor; 41 private Sensor mRotationVectorSensor; 55 // find the rotation-vector sensor 57 Sensor.TYPE_ROTATION_VECTOR); 171 // we received a sensor event. it is a good practice to check 174 if (event.sensor.getType() == Sensor.TYPE_ROTATION_VECTOR) { 188 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
SimpleModel.java | 88 case R.id.sensor:
|
/development/ndk/platforms/android-18/samples/MoreTeapots/jni/ |
MoreTeapotsRenderer.h | 35 #include <android/sensor.h>
|
/external/chromium_org/chrome/browser/chromeos/timezone/ |
timezone_request.cc | 36 const char kSensorString[] = "sensor"; 122 bool sensor) { 142 query += (sensor ? "true" : "false"); 308 bool sensor, 313 sensor_(sensor), 352 TimeZoneRequestURL(service_url_, geoposition_, false /* sensor */);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
MotionSensor.java | 17 // Make values from a motion sensor (e.g., accelerometer) available as filter outputs. 22 import android.hardware.Sensor; 37 private Sensor mSensor = null; 56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); 57 // TODO: currently, the type of sensor is hardcoded. Should be able to set the sensor 68 public final void onAccuracyChanged(Sensor sensor, int accuracy) { 69 // (Do we need to do something when sensor accuracy changes?)
|
/frameworks/native/include/gui/ |
Sensor.h | 30 #include <android/sensor.h> 44 class Sensor : public ASensor, public LightFlattenable<Sensor> 55 Sensor(); 56 Sensor(struct sensor_t const* hwSensor, int halVersion = 0); 57 ~Sensor();
|
/frameworks/native/services/sensorservice/tests/ |
sensorservicetest.cpp | 17 #include <android/sensor.h> 18 #include <gui/Sensor.h> 46 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) { 66 Sensor const* const* list; 73 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER);
|
/hardware/akm/AK8975_FS/libsensors/ |
AkmSensor.cpp | 46 mPendingEvents[Accelerometer].sensor = ID_A; 51 mPendingEvents[MagneticField].sensor = ID_M; 56 mPendingEvents[Orientation ].sensor = ID_O;
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
data_builder.c | 57 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias); 201 /** Sets orientation and sensitivity field for a sensor. 202 * @param[out] sensor Structure to apply settings to 207 void set_sensor_orientation_and_scale(struct inv_single_sensor_t *sensor, 218 sensor->sensitivity = sensitivity; 233 sensor->orientation = orientation; 330 /** Returns timestame based upon a raw sensor, and returns if that sample has a new piece of data. 367 /** Gets best timestamp and if there is a new piece of data for a 9-axis sensor combination. 368 * It does this by finding a raw sensor that has the closest sample rate that is at least as 369 * often desired. It also returns if that raw sensor has a new piece of data [all...] |
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
data_builder.c | 56 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias); 200 /** Sets orientation and sensitivity field for a sensor. 201 * @param[out] sensor Structure to apply settings to 206 void set_sensor_orientation_and_scale(struct inv_single_sensor_t *sensor, 217 sensor->sensitivity = sensitivity; 232 sensor->orientation = orientation; 480 /** Takes raw data stored in the sensor, removes bias, and converts it to 482 * @param[in,out] sensor structure to modify 486 void inv_apply_calibration(struct inv_single_sensor_t *sensor, const long *bias) 491 raw32[0] = (long)sensor->raw[0] << 15 [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
PowerTestHostLink.java | 22 import android.hardware.Sensor; 203 final String REQUEST_SENSOR_ON = "SENSOR ON "; 204 final String REQUEST_SENSOR_OFF = "SENSOR OFF"; 205 final String REQUEST_SENSOR_AVAILABILITY = "SENSOR? "; 212 final String sensor = request.substring(REQUEST_SENSOR_AVAILABILITY.length()); local 213 final int sensorId = getSensorId(sensor); 331 Log.e(TAG, "Unknown sensor in request: " + sensorName); 337 Log.e(TAG, "Improperly formatted command received on setting sensor state"); 347 sensorId = Sensor.TYPE_ACCELEROMETER; 349 sensorId = Sensor.TYPE_AMBIENT_TEMPERATURE [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
SingleSensorTests.java | 20 import android.hardware.Sensor; 39 * For each sensor that reports continuously, it takes a set of samples. The test suite verifies 40 * that the event ordering, frequency, and jitter pass for the collected sensor events. It 41 * additionally tests that the mean, standard deviation, and magnitude are correct for the sensor 44 * The event ordering test verifies the ordering of the sampled data reported by the Sensor under 45 * test. This test is used to guarantee that sensor data is reported in the order it occurs, and 49 * if the sensor sampled data is not timestamped at the hardware level. Or events sampled at high 52 * The frequency test verifies that the sensor under test can sample and report data at the maximum 55 * susceptible to errors if the sensor is not capable to sample data at the maximum rate it 56 * supports, or the sensor events are not timestamped at the hardware level 117 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey()); local [all...] |