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

1 2 3 4 5

  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/
SensorTestInformation.java 21 import android.hardware.Sensor;
26 * A 'property' bag of sensor information used for testing purposes.
33 case Sensor.TYPE_ACCELEROMETER:
35 case Sensor.TYPE_MAGNETIC_FIELD:
37 // case Sensor.TYPE_ORIENTATION:
39 case Sensor.TYPE_GYROSCOPE:
41 // case Sensor.TYPE_LIGHT:
43 // case Sensor.TYPE_PRESSURE:
45 // case Sensor.TYPE_TEMPERATURE:
47 // case Sensor.TYPE_PROXIMITY
149 Sensor sensor = SensorCtsHelper.getSensor(context, sensorType); local
    [all...]
TestSensorEvent.java 19 import android.hardware.Sensor;
28 public final Sensor sensor; field in class:TestSensorEvent
37 sensor = event.sensor;
45 protected TestSensorEvent(Sensor sensor, long timestamp, int accuracy, float[] values) {
46 this.sensor = sensor;
  /frameworks/base/core/java/android/hardware/
SensorEventListener2.java 26 * have been delivered to the applications registered for those sensor events.
29 * @param sensor The {@link android.hardware.Sensor Sensor} on which flush was called.
33 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 a sensor has changed.
46 * @param accuracy The new accuracy of this sensor
48 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
424 final Sensor sensor = sHandleToSensor.get(handle); local
462 final Sensor sensor = sHandleToSensor.get(handle); local
    [all...]
LegacySensorManager.java 29 * Helper class for implementing the legacy sensor manager API.
71 final List<Sensor> fullList = mSensorManager.getFullSensorList();
72 for (Sensor i : fullList) {
74 case Sensor.TYPE_ACCELEROMETER:
77 case Sensor.TYPE_MAGNETIC_FIELD:
80 case Sensor.TYPE_ORIENTATION:
95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result;
97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result;
99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result;
101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result
113 Sensor sensor = mSensorManager.getDefaultSensor(type); local
165 Sensor sensor = mSensorManager.getDefaultSensor(type); local
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/
SensorEventOrderingTests.java 22 import android.hardware.Sensor;
30 * Verifies the proper ordering in time of sensor events.
60 { Sensor.TYPE_ACCELEROMETER, SensorManager.SENSOR_DELAY_FASTEST, 0 },
61 { Sensor.TYPE_GYROSCOPE, SensorManager.SENSOR_DELAY_FASTEST, 0 },
62 { Sensor.TYPE_MAGNETIC_FIELD, SensorManager.SENSOR_DELAY_FASTEST, 0 },
63 { Sensor.TYPE_PRESSURE, SensorManager.SENSOR_DELAY_FASTEST, 0 },
64 { Sensor.TYPE_GRAVITY, SensorManager.SENSOR_DELAY_FASTEST, 0 },
65 { Sensor.TYPE_LINEAR_ACCELERATION, SensorManager.SENSOR_DELAY_FASTEST, 0 },
66 { Sensor.TYPE_ROTATION_VECTOR, SensorManager.SENSOR_DELAY_FASTEST, 0 },
67 { Sensor.TYPE_RELATIVE_HUMIDITY, SensorManager.SENSOR_DELAY_FASTEST, 0 }
    [all...]
SensorTest.java 27 import android.hardware.Sensor;
42 private ArrayList<Sensor> mContinuousSensorList;
50 mContinuousSensorList = new ArrayList<Sensor>();
51 for (int i = Sensor.TYPE_ACCELEROMETER; i <= Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR; ++i) {
52 Sensor sensor = mSensorManager.getDefaultSensor(i); local
54 if (sensor == null || Sensor.TYPE_SIGNIFICANT_MOTION == i ||
55 Sensor.TYPE_STEP_COUNTER == i || Sensor.TYPE_STEP_DETECTOR == i |
69 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
130 Sensor sensor = mSensorManager.getDefaultSensor(i); local
138 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
147 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
156 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local
166 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
    [all...]
SensorFrequencyTests.java 22 import android.hardware.Sensor;
64 { Sensor.TYPE_ACCELEROMETER, 0, 10 },
65 { Sensor.TYPE_GYROSCOPE, 0, 10 },
66 { Sensor.TYPE_MAGNETIC_FIELD, 0, 10 },
80 * This test verifies that the Sensor under test can sample and report data at the Maximum
83 * The test takes a set of samples from the sensor under test, and calculates the mean of the
87 * The test is susceptible to errors if the Sensor is not capable to sample data at the maximum
88 * rate it supports, or the sensor events are not timestamped at the Hardware level.
92 * - the sensor type and sensor handle that caused the failur
198 Sensor sensor = SensorCtsHelper.getSensor(this.getContext(), mSensorType); 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;
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();
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;
  /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 26 #include <gui/Sensor.h>
32 Sensor::Sensor()
39 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion)
62 Sensor::~Sensor()
66 const String8& Sensor::getName() const {
70 const String8& Sensor::getVendor() const {
74 int32_t Sensor::getHandle() const
    [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...]
  /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;
86 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor)
89 static_cast<Sensor const*>(sensor));
92 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor)
95 static_cast<Sensor const*>(sensor))
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
MagneticFieldMeasurementTestActivity.java 20 import android.hardware.Sensor;
29 * These test cases require calibration of the sensor before performing the verifications.
48 Sensor.TYPE_MAGNETIC_FIELD,
70 * This test verifies that the Norm of the sensor data is close to the expected reference value.
71 * The units of the reference value are dependent on the type of sensor.
72 * This test is used to verify that the data reported by the sensor is close to the expected
75 * The test takes a sample from the sensor under test and calculates the Euclidean Norm of the
79 * The test is susceptible to errors when the Sensor under test is uncalibrated, or the units in
85 * - the sensor type and sensor handle that caused the failur
    [all...]

Completed in 2376 milliseconds

1 2 3 4 5