/frameworks/native/services/sensorservice/ |
SensorFusion.cpp | 32 Sensor uncalibratedGyro; 42 mAcc = Sensor(list + i); 45 mMag = Sensor(list + i); 48 mGyro = Sensor(list + i); 51 uncalibratedGyro = Sensor(list + i); 55 // Use the uncalibrated gyroscope for sensor fusion when available
|
RotationVectorSensor.cpp | 32 const sensor_t sensor = { local 43 mSensor = Sensor(&sensor); 57 outEvent->sensor = getSensorToken(); 90 return "Rotation Vector Sensor"; 92 return "Game Rotation Vector Sensor"; 94 return "GeoMag Rotation Vector Sensor"; 118 const sensor_t sensor = { local 129 mSensor = Sensor(&sensor); [all...] |
OrientationSensor.cpp | 33 const sensor_t sensor = { local 34 .name = "Orientation Sensor", 44 mSensor = Sensor(&sensor); 66 outEvent->sensor = '_ypr';
|
SensorDirectConnection.h | 25 #include <sensor/Sensor.h> 26 #include <sensor/BitTube.h> 27 #include <sensor/ISensorServer.h> 28 #include <sensor/ISensorEventConnection.h> 47 // stop all active sensor report. if backupRecord is set to false, 52 // recover sensor reports previously stopped by stopAll(true)
|
SensorInterface.cpp | 32 BaseSensor::BaseSensor(const sensor_t& sensor) : 34 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) { 37 BaseSensor::BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]) : 39 mSensor(sensor, Sensor::uuid_t(uuid), mSensorDevice.getHalDeviceVersion()) { 44 HardwareSensor::HardwareSensor(const sensor_t& sensor): 45 BaseSensor(sensor) { 48 HardwareSensor::HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]): 49 BaseSensor(sensor, uuid) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
EyePosition.java | 20 import android.hardware.Sensor; 65 private Sensor mSensor; 85 mSensor = sManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 88 mSensor = sManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 91 Log.w(TAG, "no sensor available"); 184 public void onAccuracyChanged(Sensor sensor, int accuracy) { 189 switch (event.sensor.getType()) { 190 case Sensor.TYPE_GYROSCOPE: { 195 case Sensor.TYPE_ACCELEROMETER: [all...] |
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
EventBasicVerification.java | 24 import android.hardware.Sensor; 34 * A {@link ISensorVerification} which verifies if the collected sensor events have any obvious 35 * problems, such as no sample, wrong sensor type, etc. 40 // allowed time from registration to sensor start sampling 44 // allowed time for entire sensor system to send sample to test app 64 Sensor sensor) { 66 mSensor = sensor; 89 // The calculation is still OK if sampleUs is not the actual sensor hardware 110 // When the sensor under test is the only one active, max fifo size is assumed to b [all...] |
FrequencyVerification.java | 21 import android.hardware.Sensor; 31 * A {@link ISensorVerification} which verifies that the sensor frequency are within the expected 62 * Get the default {@link FrequencyVerification} for a sensor. 65 * @return the verification or null if the verification does not apply to the sensor. 68 Sensor sensor = environment.getSensor(); local 69 if (sensor.getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { 75 sensor.getName(), 76 sensor.getMinDelay() [all...] |
BatchArrivalVerification.java | 8 import android.hardware.Sensor; 20 * checking the last received sensor timestamp and checking that it is within 1.8 * the expected 56 * @return the verification or null if the verification is not a continuous mode sensor. 59 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { 68 // If the device goes into suspend mode during the test and the sensor under test is 69 // a non wake-up sensor, the FIFO will keep overwriting itself and the reportLatency 74 // In this case the sensor under test is either a wake-up sensor OR it 75 // is a non wake-up sensor but the device does not go into suspend.
|
EventGapVerification.java | 5 import android.hardware.Sensor; 16 * checking the last received sensor timestamp and checking that it is within 1.8 * the expected 55 * @return the verification or null if the verification is not a continuous mode sensor. 58 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) {
|
EventOrderingVerification.java | 21 import android.hardware.Sensor; 44 * Get the default {@link EventOrderingVerification} for a sensor. 47 * @return the verification or null if the verification does not apply to the sensor. 52 if (reportingMode == Sensor.REPORTING_MODE_ONE_SHOT)
|
FifoLengthVerification.java | 21 import android.hardware.Sensor; 59 * @return the verification or null if the verification is not a continuous mode sensor. 63 if (environment.getSensor().getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { 71 // If the device goes into suspend mode and the sensor is a non wake-up sensor, the 77 // In this case the sensor under test is either a wake-up sensor OR it 78 // is a non wake-up sensor but the device does not go into suspend.
|
/system/chre/core/ |
sensor_request_manager.cc | 27 bool isSensorRequestValid(const Sensor& sensor, 33 SensorType sensorType = sensor.getSensorType(); 36 if (requestedInterval < sensor.getMinInterval()) { 38 LOGE("Requested interval %" PRIu64 " < sensor's minInterval %" PRIu64, 39 requestedInterval, sensor.getMinInterval()); 43 LOGE("Invalid continuous request for a one-shot sensor."); 48 LOGE("Invalid one-shot request for a continuous sensor."); 59 DynamicVector<Sensor> sensors; 69 LOGD("Found sensor: %s", getSensorTypeName(sensorType)) 123 const Sensor& sensor = requests.sensor.value(); local 206 const Sensor& sensor = mSensorRequests[sensorIndex].sensor.value(); local 291 SensorType sensor = static_cast<SensorType>(i); local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
AccelerometerMeasurementTestActivity.java | 22 import android.hardware.Sensor; 78 * The test takes a set of samples from the sensor under test and calculates the mean of each 79 * axis that the sensor data collects. It then compares it against the test expectations that 89 * - the sensor type and sensor handle that caused the failure 91 * - the mean of values sampled from the sensor 97 Sensor.TYPE_ACCELEROMETER,
|
GyroscopeTestActivity.java | 25 import android.hardware.Sensor; 36 * Manual test for testing the gyroscope sensor. This test consists of 6 steps for all the 49 private Sensor mSensor; 76 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); 224 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/ |
StartActivity.java | 26 import android.hardware.Sensor; 60 // If there is no 6DoF sensor advertised, pass trivially. 62 if (sensorManager.getDefaultSensor(Sensor.TYPE_POSE_6DOF) == null) {
|
/cts/tests/sensor/src/android/hardware/cts/ |
SensorTestCase.java | 19 import android.hardware.Sensor; 35 * Previously for L release, we had this flag to know if each sensor is running with multiple 54 // the sensor state is not supported in the device, log a warning and skip the test
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
SuspendStateMonitor.java | 10 import android.hardware.Sensor;
|
/developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
MainActivity.java | 24 import android.hardware.Sensor; 40 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the 64 * measured by the Gravity sensor, changes with a variation (delta) > GRAVITY_THRESHOLD, 70 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 131 Log.d(TAG, "Successfully registered for the sensor updates"); 141 Log.d(TAG, "Unregistered for sensor events"); 151 public void onAccuracyChanged(Sensor sensor, int accuracy) { 157 * as measured by the Gravity Sensor is +9.8 when the hand is downward and -9.8 when the han [all...] |
/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/ |
MainActivity.java | 24 import android.hardware.Sensor; 40 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the 64 * measured by the Gravity sensor, changes with a variation (delta) > GRAVITY_THRESHOLD, 70 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 131 Log.d(TAG, "Successfully registered for the sensor updates"); 141 Log.d(TAG, "Unregistered for sensor events"); 151 public void onAccuracyChanged(Sensor sensor, int accuracy) { 157 * as measured by the Gravity Sensor is +9.8 when the hand is downward and -9.8 when the han [all...] |
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/ |
MissileLauncherActivity.java | 24 import android.hardware.Sensor; 51 private Sensor mGravitySensor; 80 mGravitySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 210 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/ |
MainActivity.java | 24 import android.hardware.Sensor; 40 * sensor values. Since on wearable devices a full screen activity is very short-lived, we set the 64 * measured by the Gravity sensor, changes with a variation (delta) > GRAVITY_THRESHOLD, 70 private Sensor mSensor; 93 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); 131 Log.d(TAG, "Successfully registered for the sensor updates"); 141 Log.d(TAG, "Unregistered for sensor events"); 151 public void onAccuracyChanged(Sensor sensor, int accuracy) { 157 * as measured by the Gravity Sensor is +9.8 when the hand is downward and -9.8 when the han [all...] |
/frameworks/base/core/java/android/hardware/ |
Sensor.java | 24 * Class representing a sensor. Use {@link SensorManager#getSensorList} to get 32 public final class Sensor { 35 * A constant describing an accelerometer sensor type. 42 * A constant string describing an accelerometer sensor type. 46 public static final String STRING_TYPE_ACCELEROMETER = "android.sensor.accelerometer"; 49 * A constant describing a magnetic field sensor type. 56 * A constant string describing a magnetic field sensor type. 60 public static final String STRING_TYPE_MAGNETIC_FIELD = "android.sensor.magnetic_field"; 63 * A constant describing an orientation sensor type. 74 * A constant string describing an orientation sensor type [all...] |
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
HidSensorDef.h | 19 namespace Sensor { 98 } // namespace Sensor
|
/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/ |
AccelerometerPlayActivity.java | 25 import android.hardware.Sensor; 51 * @see Sensor 107 * release our sensor resources and wake locks 125 private Sensor mAccelerometer; 329 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 360 if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER) 426 public void onAccuracyChanged(Sensor sensor, int accuracy) {
|