HomeSort by relevance Sort by last modified time
    Searched refs:Sensor (Results 51 - 75 of 165) sorted by null

1 23 4 5 6 7

  /cts/tests/tests/app/src/android/app/cts/
SystemFeaturesTest.java 31 import android.hardware.Sensor;
273 * Check that the sensor features reported by the PackageManager correspond to the sensors
280 Sensor.TYPE_ACCELEROMETER);
282 Sensor.TYPE_PRESSURE);
284 Sensor.TYPE_MAGNETIC_FIELD);
286 Sensor.TYPE_GYROSCOPE);
288 Sensor.TYPE_LIGHT);
290 Sensor.TYPE_PROXIMITY);
292 Sensor.TYPE_STEP_COUNTER);
294 Sensor.TYPE_STEP_DETECTOR)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
MagneticFieldMeasurementTestActivity.java 22 import android.hardware.Sensor;
36 * These test cases require calibration of the sensor before performing the verifications.
53 * This test verifies that the Norm of the sensor data is close to the expected reference value.
54 * The units of the reference value are dependent on the type of sensor.
55 * This test is used to verify that the data reported by the sensor is close to the expected
58 * The test takes a sample from the sensor under test and calculates the Euclidean Norm of the
62 * The test is susceptible to errors when the Sensor under test is uncalibrated, or the units in
68 * - the sensor type and sensor handle that caused the failure
70 * - the values sampled from the sensor
    [all...]
HeartRateMonitorTestActivity.java 21 import android.hardware.Sensor;
38 private Sensor mSensor;
54 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE);
111 public void onAccuracyChanged(Sensor sensor, int i) {
  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
MeanVerification.java 21 import android.hardware.Sensor;
57 * Get the default {@link MeanVerification} for a sensor.
60 * @return the verification or null if the verification does not apply to the sensor.
134 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, new Object[]{
139 DEFAULTS.put(Sensor.TYPE_PRESSURE, new Object[]{
143 DEFAULTS.put(Sensor.TYPE_LINEAR_ACCELERATION, new Object[]{
147 DEFAULTS.put(Sensor.TYPE_GAME_ROTATION_VECTOR, new Object[]{
152 DEFAULTS.put(Sensor.TYPE_GYROSCOPE_UNCALIBRATED, new Object[]{
GyroscopeIntegrationVerification.java 21 import android.hardware.Sensor;
30 * - {@link Sensor#TYPE_GYROSCOPE}
31 * - {@link Sensor#TYPE_GYROSCOPE_UNCALIBRATED}
59 if (sensorType != Sensor.TYPE_GYROSCOPE
60 && sensorType != Sensor.TYPE_GYROSCOPE_UNCALIBRATED) {
MagnitudeVerification.java 21 import android.hardware.Sensor;
63 * Get the default {@link MagnitudeVerification} for a sensor.
66 * @return the verification or null if the verification does not apply to the sensor.
129 DEFAULTS.put(Sensor.TYPE_ACCELEROMETER, new Float[]{SensorManager.STANDARD_GRAVITY, 1.5f});
130 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, new Float[]{0.0f, 1.5f});
132 DEFAULTS.put(Sensor.TYPE_GRAVITY,
  /hardware/ti/omap4xxx/camera/
SensorListener.cpp 20 * This file listens and propogates sensor events to CameraHal.
49 if (sen_events[i].type == Sensor::TYPE_ACCELEROMETER) {
82 } else if (sen_events[i].type == Sensor::TYPE_GYROSCOPE) {
155 CAMHAL_LOGEA("Couldn't create sensor looper thread");
160 ret = mSensorLooperThread->run("sensor looper thread", PRIORITY_URGENT_DISPLAY);
197 Sensor const* sensor; local
205 sensor = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER);
206 CAMHAL_LOGDB("orientation = %p (%s)", sensor, sensor->getName().string())
216 Sensor const* sensor; local
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/os/
TriggerSensors.java 22 import android.hardware.Sensor;
31 * <h3>Application showing the Trigger Sensor API for the Significant Motion sensor. </h3>
64 // Sensor is auto disabled.
70 private Sensor mSigMotion;
85 // The sensor is auto disabled when triggered.
100 mSigMotion = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION);
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/generic/goldfish/camera/fake-pipeline2/
Sensor.h 23 * The sensor is abstracted as operating as a pipeline 3 stages deep;
25 * processing step for the sensor is marked off by vertical sync signals, which
29 * configuration, the sensor's registers for settings such as exposure time,
31 * 2, the image data for the frame is actually captured by the sensor. Finally,
35 * The sensor is assumed to be rolling-shutter, so low-numbered rows of the
36 * sensor are exposed earlier in time than larger-numbered rows, with the time
39 * The characteristics of this sensor don't correspond to any actual sensor,
46 * C = update sensor registers for frame
89 class Sensor: private Thread, public virtual RefBase
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
SensorManagerTest.java 4 import android.hardware.Sensor;
45 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); local
46 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL);
74 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /frameworks/native/services/sensorservice/
CorrectedGyroSensor.cpp 38 mGyro = Sensor(list + i);
53 outEvent->sensor = '_cgy';
69 Sensor CorrectedGyroSensor::getSensor() const {
71 hwSensor.name = "Corrected Gyroscope Sensor";
80 Sensor sensor(&hwSensor);
81 return sensor;
GravitySensor.cpp 38 mAccelerometer = Sensor(list + i);
55 // translates to an offset in the linear-acceleration sensor.
62 outEvent->sensor = '_grv';
77 Sensor GravitySensor::getSensor() const {
79 hwSensor.name = "Gravity Sensor";
88 Sensor sensor(&hwSensor);
89 return sensor;
RotationVectorSensor.cpp 47 outEvent->sensor = '_rov';
63 Sensor RotationVectorSensor::getSensor() const {
65 hwSensor.name = "Rotation Vector Sensor";
74 Sensor sensor(&hwSensor);
75 return sensor;
96 outEvent->sensor = '_gbs';
112 Sensor GyroDriftSensor::getSensor() const {
123 Sensor sensor(&hwSensor)
    [all...]
SensorFusion.cpp 31 Sensor uncalibratedGyro;
36 mAcc = Sensor(list + i);
39 mMag = Sensor(list + i);
42 mGyro = Sensor(list + i);
45 uncalibratedGyro = Sensor(list + i);
49 // Use the uncalibrated gyroscope for sensor fusion when available
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Compass.java 21 import android.hardware.Sensor;
34 private Sensor mSensor;
48 public void onAccuracyChanged(Sensor sensor, int accuracy) {
56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
  /frameworks/base/core/java/android/hardware/
Sensor.java 23 * Class representing a sensor. Use {@link SensorManager#getSensorList} to get
31 public final class Sensor {
34 * A constant describing an accelerometer sensor type.
41 * A constant string describing an accelerometer sensor type.
45 public static final String STRING_TYPE_ACCELEROMETER = "android.sensor.accelerometer";
48 * A constant describing a magnetic field sensor type.
55 * A constant string describing a magnetic field sensor type.
59 public static final String STRING_TYPE_MAGNETIC_FIELD = "android.sensor.magnetic_field";
62 * A constant describing an orientation sensor type.
73 * A constant string describing an orientation sensor type
    [all...]
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
MotionSensorWTime.java 17 // Make values from a motion sensor (e.g., accelerometer) available as filter outputs.
22 import android.hardware.Sensor;
39 private Sensor mSensor = null;
62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
63 // TODO: currently, the type of sensor is hardcoded. Should be able to set the sensor
74 public final void onAccuracyChanged(Sensor sensor, int accuracy) {
75 // (Do we need to do something when sensor accuracy changes?)
  /packages/apps/InCallUI/src/com/android/incallui/
AccelerometerListener.java 20 import android.hardware.Sensor;
39 private Sensor mSensor;
44 // mPendingOrientation is the latest orientation computed based on the sensor value.
69 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
118 // If some values are exactly zero, then likely the sensor is not powered up yet.
138 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /development/samples/Compass/src/com/example/android/compass/
CompassActivity.java 30 import android.hardware.Sensor;
77 Sensor gsensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
78 Sensor msensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
205 public void onAccuracyChanged(Sensor sensor, int accuracy) {
209 int type = event.sensor.getType();
211 if (type == Sensor.TYPE_ACCELEROMETER) {
213 } else if (type == Sensor.TYPE_MAGNETIC_FIELD)
    [all...]
  /developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/
BatchStepSensorFragment.java 21 import android.hardware.Sensor;
84 // List of timestamps when sensor events occurred
89 // pointer to next entry in sensor event list
94 // Value of the step counter sensor when the listener was registered.
102 // When a listener is registered, the batch sensor delay in microseconds
135 * higher and has a step counter and step detector sensor.
172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER);
175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER);
178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER);
183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR)
257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local
468 String sensor = "-"; local
    [all...]
  /developers/samples/android/sensors/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/
BatchStepSensorFragment.java 21 import android.hardware.Sensor;
84 // List of timestamps when sensor events occurred
89 // pointer to next entry in sensor event list
94 // Value of the step counter sensor when the listener was registered.
102 // When a listener is registered, the batch sensor delay in microseconds
135 * higher and has a step counter and step detector sensor.
172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER);
175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER);
178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER);
183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR)
257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local
468 String sensor = "-"; local
    [all...]
  /development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/
BatchStepSensorFragment.java 21 import android.hardware.Sensor;
84 // List of timestamps when sensor events occurred
89 // pointer to next entry in sensor event list
94 // Value of the step counter sensor when the listener was registered.
102 // When a listener is registered, the batch sensor delay in microseconds
135 * higher and has a step counter and step detector sensor.
172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER);
175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER);
178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER);
183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR)
257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local
468 String sensor = "-"; local
    [all...]
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DeviceSensors.java 8 import android.hardware.Sensor;
71 Sensor.TYPE_ROTATION_VECTOR);
74 Sensor.TYPE_ACCELEROMETER,
75 Sensor.TYPE_LINEAR_ACCELERATION,
76 Sensor.TYPE_GYROSCOPE);
78 Sensor.TYPE_LIGHT);
91 * Start listening for sensor events. If this object is already listening
189 public void onAccuracyChanged(Sensor sensor, int accuracy) {
195 sensorChanged(event.sensor.getType(), event.values)
    [all...]
  /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) {

Completed in 2426 milliseconds

1 23 4 5 6 7