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

1 2 3 4 5 6 7

  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/
SensorNotSupportedException.java 19 import android.hardware.Sensor;
22 * Exception that indicates that a given sensor is not supported in the device.
26 super("Sensor '%s' of type %d is not supported.", getSensorName(sensorType), sensorType);
36 case Sensor.TYPE_ACCELEROMETER:
38 case Sensor.TYPE_MAGNETIC_FIELD:
40 case Sensor.TYPE_ORIENTATION:
42 case Sensor.TYPE_GYROSCOPE:
44 case Sensor.TYPE_LIGHT:
46 case Sensor.TYPE_PRESSURE:
48 case Sensor.TYPE_TEMPERATURE
    [all...]
TestSensorEnvironment.java 20 import android.hardware.Sensor;
28 * The environment is self contained and carries its state around all the sensor test framework.
33 * It represents the fraction of the expected sampling frequency, at which the sensor can
39 private final Sensor mSensor;
45 * Constructs an environment for sensor testing.
48 * @param sensorType The type of the sensor under test
49 * @param samplingPeriodUs The requested collection period for the sensor under test
51 * @deprecated Use variants with {@link Sensor} objects.
59 * Constructs an environment for sensor testing.
62 * @param sensorType The type of the sensor under tes
286 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local
    [all...]
  /frameworks/base/core/java/android/hardware/
SensorEventListener2.java 25 * was called have been delivered to the applications registered for those sensor events. In
27 * even if some other application has called flush() on the same sensor. Starting with
33 * @param sensor The {@link android.hardware.Sensor Sensor} on which flush was called.
36 public void onFlushCompleted(Sensor sensor);
SensorEventListener.java 21 * sensor values have changed.
26 * Called when sensor values have changed.
28 * for details on possible sensor types.
42 * Called when the accuracy of the registered sensor has changed.
47 * @param accuracy The new accuracy of this sensor, one of
50 public void onAccuracyChanged(Sensor sensor, int accuracy);
SensorEvent.java 20 * This class represents a {@link android.hardware.Sensor Sensor} event and
21 * holds informations such as the sensor's type, the time-stamp, accuracy and of
22 * course the sensor's {@link SensorEvent#values data}.
52 * @see Sensor
60 * which {@link android.hardware.Sensor sensor} type is being monitored (see
64 * <h4>{@link android.hardware.Sensor#TYPE_ACCELEROMETER
65 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2)
74 * A sensor of this type measures the acceleration applied to the devic
491 public Sensor sensor; field in class:SensorEvent
    [all...]
TriggerEvent.java 21 * associated with a Trigger Sensor. When the sensor detects a trigger
23 * {@link Sensor#TYPE_SIGNIFICANT_MOTION}, the {@link TriggerEventListener}
24 * is called with the TriggerEvent. The sensor is automatically canceled
27 * This class holds information such as the value of the sensor
29 * information regarding the Sensor itself.
33 * @see android.hardware.Sensor
39 * which {@link android.hardware.Sensor sensor} type is being monitored (see
42 * <h4> {@link Sensor#TYPE_SIGNIFICANT_MOTION} </h4
52 public Sensor sensor; field in class:TriggerEvent
    [all...]
SystemSensorManager.java 34 * Sensor manager implementation that communicates with the built-in
41 private static native int nativeGetNextSensor(Sensor sensor, int next);
45 private static final ArrayList<Sensor> sFullSensorsList = new ArrayList<Sensor>();
46 private static final SparseArray<Sensor> sHandleToSensor = new SparseArray<Sensor>();
68 // initialize the sensor list
69 final ArrayList<Sensor> fullList = sFullSensorsList;
72 Sensor sensor = new Sensor() local
78 sHandleToSensor.append(sensor.getHandle(), sensor); local
274 Sensor sensor = sHandleToSensor.get(handle); local
382 final Sensor sensor = sHandleToSensor.get(handle); local
411 final Sensor sensor = sHandleToSensor.get(handle); local
449 final Sensor sensor = sHandleToSensor.get(handle); local
    [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...]
SensorBatchingTests.java 19 import android.hardware.Sensor;
34 * Each test is expected to pass even if batching is not supported for a particular sensor. This is
57 runBatchingSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_FASTEST, BATCHING_10S);
61 runBatchingSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_50HZ, BATCHING_10S);
65 runFlushSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_FASTEST, BATCHING_10S);
69 runFlushSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_50HZ, BATCHING_10S);
73 runBatchingSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_FASTEST, BATCHING_10S);
77 runBatchingSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_50HZ, BATCHING_10S);
81 runFlushSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_FASTEST, BATCHING_10S);
85 runFlushSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_50HZ, BATCHING_10S)
    [all...]
SensorIntegrationTests.java 19 import android.hardware.Sensor;
42 * This test focuses in the interaction of continuous and batching clients for the same Sensor
43 * under test. The verification ensures that sensor clients can interact with the System and
51 * that the sensors must be independent. Activating one sensor should not cause another sensor
59 * - the sensor type and sensor handle that caused the failure
61 * It is important to look at the internals of the Sensor HAL to identify how the interaction
70 Sensor.TYPE_ACCELEROMETER,
71 Sensor.TYPE_MAGNETIC_FIELD
86 Sensor sensor = TestSensorEnvironment.getSensor(context, sensorType); local
264 Sensor sensor = TestSensorEnvironment.getSensor(getContext(), sensorType); local
    [all...]
SensorTest.java 25 import android.hardware.Sensor;
63 private List<Sensor> mSensorList;
75 mSensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL);
97 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
100 // accelerometer sensor is optional
102 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType());
103 assertSensorValues(sensor);
237 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
246 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
255 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local
267 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
309 Sensor sensor = null; local
    [all...]
  /frameworks/native/include/gui/
SensorManager.h 41 class Sensor;
54 ssize_t getSensorList(Sensor const* const** list) const;
55 Sensor const* getDefaultSensor(int type);
67 mutable Sensor const** mSensorList;
68 mutable Vector<Sensor> mSensors;
ISensorServer.h 31 class Sensor;
39 virtual Vector<Sensor> getSensorList() = 0;
  /frameworks/native/services/sensorservice/
CorrectedGyroSensor.h 23 #include <gui/Sensor.h>
37 Sensor mGyro;
45 virtual Sensor getSensor() const;
GravitySensor.h 23 #include <gui/Sensor.h>
37 Sensor mAccelerometer;
45 virtual Sensor getSensor() const;
SensorFusion.h 27 #include <gui/Sensor.h>
42 Sensor mAcc;
43 Sensor mMag;
44 Sensor mGyro;
LinearAccelerationSensor.h 23 #include <gui/Sensor.h>
45 virtual Sensor getSensor() const;
OrientationSensor.h 23 #include <gui/Sensor.h>
44 virtual Sensor getSensor() const;
RotationVectorSensor.h 23 #include <gui/Sensor.h>
45 virtual Sensor getSensor() const;
59 virtual Sensor getSensor() const;
  /frameworks/base/native/android/
sensor.cpp 17 #define LOG_TAG "sensor"
21 #include <android/sensor.h>
27 #include <gui/Sensor.h>
34 using android::Sensor;
49 Sensor const* const* l;
64 Sensor const* const* sensorList;
99 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor)
102 static_cast<Sensor const*>(sensor));
105 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor)
    [all...]
  /sdk/testapps/testSensors/src/com/android/tests/testsensors/
TestSensorsActivity.java 23 import android.hardware.Sensor;
41 * Encapsulates a sensor.
44 /** Sensor to monitor. */
45 private final Sensor mSensor;
46 /** Check box representing the sensor on the screen. */
48 /** Text view displaying the value of the sensor. */
56 * @param sensor Sensor to monitor.
58 MonitoredSensor(Sensor sensor) {
    [all...]
  /frameworks/native/libs/gui/
Sensor.cpp 28 #include <gui/Sensor.h>
35 Sensor::Sensor()
43 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
71 ALOGE("Sensor maxDelay overflow error %s %" PRId64, mName.string(),
83 // Set reportingMode for all android defined sensor types, set wake-up flag only for proximity
84 // sensor, significant motion, tilt, pick_up gesture, wake gesture and glance gesture on older
219 // This is an OEM defined sensor on an older HAL. Use minDelay to determine the
220 // reporting mode of the sensor
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
JitterVerification.java 21 import android.hardware.Sensor;
33 * A {@link ISensorVerification} which verifies that the sensor jitter is in an acceptable range.
58 * Get the default {@link JitterVerification} for a sensor.
61 * @return the verification or null if the verification does not apply to the sensor.
144 DEFAULTS.put(Sensor.TYPE_ACCELEROMETER, Integer.MAX_VALUE);
145 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD, Integer.MAX_VALUE);
146 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED, Integer.MAX_VALUE);
147 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, Integer.MAX_VALUE);
148 DEFAULTS.put(Sensor.TYPE_GYROSCOPE_UNCALIBRATED, Integer.MAX_VALUE);
149 DEFAULTS.put(Sensor.TYPE_ORIENTATION, Integer.MAX_VALUE)
    [all...]
  /device/generic/goldfish/camera/fake-pipeline2/
Sensor.cpp 30 #include "Sensor.h"
37 const unsigned int Sensor::kResolution[2] = {640, 480};
39 const nsecs_t Sensor::kExposureTimeRange[2] =
41 const nsecs_t Sensor::kFrameDurationRange[2] =
43 const nsecs_t Sensor::kMinVerticalBlank = 10000L;
45 const uint8_t Sensor::kColorFilterArrangement =
49 const uint32_t Sensor::kMaxRawValue = 4000;
50 const uint32_t Sensor::kBlackLevel = 1000;
52 // Sensor sensitivity
53 const float Sensor::kSaturationVoltage = 0.520f
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
BatchingTestActivity.java 22 import android.hardware.Sensor;
33 * If a sensor supports the batching mode, FifoReservedEventCount for that sensor should be greater
54 Sensor.TYPE_STEP_COUNTER,
62 Sensor.TYPE_STEP_COUNTER,
70 Sensor.TYPE_STEP_DETECTOR,
78 Sensor.TYPE_STEP_DETECTOR,
86 Sensor.TYPE_PROXIMITY,
94 Sensor.TYPE_PROXIMITY,
102 Sensor.TYPE_LIGHT
    [all...]

Completed in 401 milliseconds

1 2 3 4 5 6 7