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

1 2 3 4 5 6 7 8 91011>>

  /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);
30 super("Sensor '%s' of type %d and %s is not supported.", getSensorName(sensorType),
41 case Sensor.TYPE_ACCELEROMETER:
43 case Sensor.TYPE_MAGNETIC_FIELD:
45 case Sensor.TYPE_ORIENTATION:
47 case Sensor.TYPE_GYROSCOPE:
49 case Sensor.TYPE_LIGHT:
51 case Sensor.TYPE_PRESSURE
    [all...]
TestSensorEnvironment.java 20 import android.hardware.Sensor;
30 * The environment is self contained and carries its state around all the sensor test framework.
35 * It represents the fraction of the expected sampling frequency, at which the sensor can
41 private final Sensor mSensor;
49 * Constructs an environment for sensor testing.
52 * @param sensorType The type of the sensor under test
53 * @param samplingPeriodUs The requested collection period for the sensor under test
55 * @deprecated Use variants with {@link Sensor} objects.
63 * Constructs an environment for sensor testing.
66 * @param sensorType The type of the sensor under tes
389 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);
SensorEventCallback.java 20 * Used for receiving sensor additional information frames.
25 * Called when sensor values have changed.
33 * Called when the accuracy of the registered sensor has changed.
35 * @see android.hardware.SensorEventListener#onAccuracyChanged(Sensor, int)
38 public void onAccuracyChanged(Sensor sensor, int accuracy) {}
43 * @see android.hardware.SensorEventListener2#onFlushCompleted(Sensor)
46 public void onFlushCompleted(Sensor sensor) {}
49 * Called when a sensor additional information frame is available
    [all...]
SensorEventListener.java 21 * there is new sensor data.
26 * Called when there is a new sensor event. Note that "on changed"
28 * new reading from a sensor with the exact same sensor values (but a
32 * for details on possible sensor types.
46 * Called when the accuracy of the registered sensor has changed. Unlike
52 * @param accuracy The new accuracy of this sensor, one of
55 public void onAccuracyChanged(Sensor sensor, int accuracy);
SensorEvent.java 20 * This class represents a {@link android.hardware.Sensor Sensor} event and
21 * holds information 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
588 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...]
  /cts/tests/tests/hardware/src/android/hardware/cts/
SingleSensorTests.java 20 import android.hardware.Sensor;
41 * For each sensor that reports continuously, it takes a set of samples. The test suite verifies
42 * that the event ordering, frequency, and jitter pass for the collected sensor events. It
43 * additionally tests that the mean, standard deviation, and magnitude are correct for the sensor
46 * The event ordering test verifies the ordering of the sampled data reported by the Sensor under
47 * test. This test is used to guarantee that sensor data is reported in the order it occurs, and
51 * if the sensor sampled data is not timestamped at the hardware level. Or events sampled at high
54 * The frequency test verifies that the sensor under test can sample and report data at the maximum
57 * susceptible to errors if the sensor is not capable to sample data at the maximum rate it
58 * supports, or the sensor events are not timestamped at the hardware level
124 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey()); local
    [all...]
SensorSupportTest.java 21 import android.hardware.Sensor;
56 checkSupportsSensor(Sensor.TYPE_ACCELEROMETER);
60 checkSupportsSensor(Sensor.TYPE_GYROSCOPE);
64 checkSupportsSensor(Sensor.TYPE_GYROSCOPE_UNCALIBRATED);
68 checkSupportsSensor(Sensor.TYPE_MAGNETIC_FIELD);
72 checkSupportsSensor(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED);
76 checkSupportsSensor(Sensor.TYPE_PRESSURE);
80 checkSupportsSensor(Sensor.TYPE_ROTATION_VECTOR);
84 checkSupportsSensor(Sensor.TYPE_SIGNIFICANT_MOTION);
88 checkSupportsSensor(Sensor.TYPE_STEP_DETECTOR)
    [all...]
SensorBatchingTests.java 19 import android.hardware.Sensor;
36 * Each test is expected to pass even if batching is not supported for a particular sensor. This is
59 runBatchingSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_FASTEST, BATCHING_PERIOD);
63 runBatchingSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_50HZ, BATCHING_PERIOD);
67 runFlushSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_FASTEST, BATCHING_PERIOD);
71 runFlushSensorTest(Sensor.TYPE_ACCELEROMETER, RATE_50HZ, BATCHING_PERIOD);
75 runBatchingSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_FASTEST, BATCHING_PERIOD);
79 runBatchingSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_50HZ, BATCHING_PERIOD);
83 runFlushSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_FASTEST, BATCHING_PERIOD);
87 runFlushSensorTest(Sensor.TYPE_MAGNETIC_FIELD, RATE_50HZ, BATCHING_PERIOD)
    [all...]
SensorIntegrationTests.java 19 import android.hardware.Sensor;
43 * This test focuses in the interaction of continuous and batching clients for the same Sensor
44 * under test. The verification ensures that sensor clients can interact with the System and
52 * that the sensors must be independent. Activating one sensor should not cause another sensor
60 * - the sensor type and sensor handle that caused the failure
62 * It is important to look at the internals of the Sensor HAL to identify how the interaction
72 Sensor.TYPE_ACCELEROMETER,
73 Sensor.TYPE_MAGNETIC_FIELD
88 Sensor sensor = TestSensorEnvironment.getSensor(context, sensorType); local
270 Sensor sensor = TestSensorEnvironment.getSensor(getContext(), sensorType); local
    [all...]
SensorParameterRangeTest.java 21 import android.hardware.Sensor;
80 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
88 mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE),
96 mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD),
105 mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE),
113 Sensor sensor, double maxRange, double minFrequency, double maxFrequency) {
116 sensor.getName(), sensor.getMaximumRange(), maxRange,
117 SensorCtsHelper.getUnitsForSensor(sensor)),
165 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); local
    [all...]
SensorBatchingFifoTest.java 21 import android.hardware.Sensor;
32 * Checks the minimum Hardware FIFO length for each of the Hardware sensor.
33 * Further verifies if the advertised FIFO (Sensor.getFifoMaxEventCount()) is actually allocated
34 * for the sensor.
54 Sensor.TYPE_ACCELEROMETER,
55 getReservedFifoLength(Sensor.TYPE_ACCELEROMETER));
61 Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED,
62 getReservedFifoLength(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED));
68 Sensor.TYPE_PRESSURE,
69 getReservedFifoLength(Sensor.TYPE_PRESSURE))
80 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); local
89 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); local
    [all...]
  /hardware/bsp/intel/peripheral/sensors/mraa/
AcquisitionThread.hpp 21 #include "Sensor.hpp"
23 class Sensor;
29 * sensor and write it to a pipe. The main thread can use the
30 * pipe read endpoint to retrieve sensor events.
33 * changing the sensor parameters.
42 * @param sensor the sensor to associate with the thread
44 AcquisitionThread(int pollFd, Sensor *sensor);
52 * Get sensor associated with the threa
96 Sensor *sensor; member in class:AcquisitionThread
    [all...]
Sensor.cpp 20 #include "Sensor.hpp"
25 const float Sensor::kGravitationalAcceleration = 9.81f;
27 Sensor::Sensor() : acquisitionThread(nullptr), handle(-1), type(-1), delay(kMaxDelay) {}
29 Sensor::~Sensor() {
36 int Sensor::activate(int handle, int enabled) { return 0; }
38 bool Sensor::readOneEvent(sensors_event_t *event) {
44 ALOGE("%s: sensor %d doesn't have an acquisition thread", __func__, handle);
66 int Sensor::activateAcquisitionThread(int pollFd, int handle, int enabled)
    [all...]
Sensor.hpp 21 * The default sensor __attribute__((constructor)) priority is represented by
33 * Sensor representation class
35 * It supports sensor enabling/disabling, changing the sensor's parameters
38 class Sensor {
41 * Sensor constructor
43 Sensor();
46 * Sensor destructor
48 virtual ~Sensor();
51 * Activate the sensor
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
SensorPowerCalculator.java 18 import android.hardware.Sensor;
26 private final List<Sensor> mSensors;
30 mSensors = sensorManager.getSensorList(Sensor.TYPE_ALL);
37 // Process Sensor usage
38 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats();
41 final BatteryStats.Uid.Sensor sensor = sensorStats.valueAt(ise); local
43 final BatteryStats.Timer timer = sensor.getSensorTime();
46 case BatteryStats.Uid.Sensor.GPS:
53 final Sensor s = mSensors.get(i)
    [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/services/sensorservice/
CorrectedGyroSensor.h 23 #include <gui/Sensor.h>
35 Sensor mGyro;
GravitySensor.h 23 #include <gui/Sensor.h>
35 Sensor mAccelerometer;
  /hardware/bsp/intel/peripheral/sensors/mraa/sensors/
GroveLight.hpp 21 #include "Sensor.hpp"
27 * GroveLight exposes the Grove Light sensor
29 * Overrides the pollEvents & activate Sensor methods.
31 class GroveLight : public Sensor, public upm::GroveLight {
54 * Activate the sensor
55 * @param handle sensor identifier
62 static Sensor * createSensor(int pollFd);
GroveTemperature.hpp 21 #include "Sensor.hpp"
27 * GroveTemperature exposes the Grove Temperature sensor
29 * Overrides the pollEvents & activate Sensor methods.
31 class GroveTemperature : public Sensor, public upm::GroveTemp {
54 * Activate the sensor
55 * @param handle sensor identifier
62 static Sensor * createSensor(int pollFd);
LSM303dAccelerometer.hpp 21 #include "Sensor.hpp"
27 * LSM303dAccelerometer exposes the LSM303d accelerometer sensor
29 * Overrides the pollEvents & activate Sensor methods.
31 class LSM303dAccelerometer : public Sensor, public upm::LSM303d {
39 * @param scale Sensor sensitivity scaling
60 * Activate the sensor
61 * @param handle sensor identifier
68 static Sensor * createSensor(int pollFd);
LSM303dOrientation.hpp 21 #include "Sensor.hpp"
27 * LSM303dOrientation exposes the LSM303d orientation sensor
29 * Overrides the pollEvents & activate Sensor methods.
31 class LSM303dOrientation : public Sensor, public upm::LSM303d {
57 * Activate the sensor
58 * @param handle sensor identifier
65 static Sensor * createSensor(int pollFd);
LSM9DS0Accelerometer.hpp 21 #include "Sensor.hpp"
27 * LSM9DS0Accelerometer exposes the MLSM9DS0 accelerometer sensor
29 * Overrides the pollEvents & activate Sensor methods.
31 class LSM9DS0Accelerometer : public Sensor, public upm::LSM9DS0 {
56 * Activate the sensor
57 * @param handle sensor identifier
64 static Sensor * createSensor(int pollFd);

Completed in 636 milliseconds

1 2 3 4 5 6 7 8 91011>>