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

1 2 3 4 5 6 7 8 91011>>

  /cts/tests/sensor/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...]
  /system/chre/core/include/chre/core/
sensor.h 26 class Sensor : public NonCopyable {
29 * Default constructs a Sensor with an unknown sensor type.
31 Sensor();
34 * Constructs a Sensor by moving a PlatformSensor.
36 * @param platformSensor The platform implementation of this Sensor.
38 Sensor(PlatformSensor&& platformSensor);
41 * @return The type of this sensor.
46 * @return true if this Sensor instance has an instance of the underlying
47 * PlatformSensor. This is useful to determine if this sensor is supplied b
    [all...]
  /cts/tests/sensor/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;
55 checkSupportsSensor(Sensor.TYPE_ACCELEROMETER);
59 checkSupportsSensor(Sensor.TYPE_GYROSCOPE);
63 checkSupportsSensor(Sensor.TYPE_GYROSCOPE_UNCALIBRATED);
67 checkSupportsSensor(Sensor.TYPE_MAGNETIC_FIELD);
71 checkSupportsSensor(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED);
75 checkSupportsSensor(Sensor.TYPE_PRESSURE);
79 checkSupportsSensor(Sensor.TYPE_ROTATION_VECTOR);
83 checkSupportsSensor(Sensor.TYPE_SIGNIFICANT_MOTION);
87 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_ACCELEROMETER_UNCALIBRATED,
81 runBatchingSensorTest(Sensor.TYPE_ACCELEROMETER_UNCALIBRATED,
87 runBatchingSensorTest(Sensor.TYPE_ACCELEROMETER_UNCALIBRATED, RATE_50HZ, BATCHING_PERIOD);
91 runFlushSensorTest(Sensor.TYPE_ACCELEROMETER_UNCALIBRATED, RATE_FASTEST, 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...]
SensorTest.java 23 import android.hardware.Sensor;
65 private Sensor mTriggerSensor;
66 private List<Sensor> mSensorList;
78 mSensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL);
114 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
117 // accelerometer sensor is optional
119 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType())
276 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local
288 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
333 Sensor sensor = null; local
369 Sensor sensor = null; 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
638 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...]
  /system/chre/core/
sensor.cc 17 #include "chre/core/sensor.h"
22 static const char *kInvalidSensorName = "Invalid Sensor";
26 Sensor::Sensor() {}
28 Sensor::Sensor(PlatformSensor&& platformSensor)
31 SensorType Sensor::getSensorType() const {
35 bool Sensor::isValid() const {
39 bool Sensor::setRequest(const SensorRequest& request) {
46 // Mark last event as invalid when sensor is disabled
    [all...]
  /platform_testing/tests/functional/devicehealthtests/src/com/android/devicehealth/tests/
SensorsBootCheck.java 20 import android.hardware.Sensor;
64 Assert.assertNotNull("Sensor Manager not found", mSensorManager);
68 Sensor.TYPE_ACCELEROMETER, errorDetails) ? 1 : 0;
70 Sensor.TYPE_AMBIENT_TEMPERATURE, errorDetails) ? 1 : 0;
72 Sensor.TYPE_PRESSURE, errorDetails) ? 1 : 0;
74 Sensor.TYPE_MAGNETIC_FIELD, errorDetails) ? 1 : 0;
76 Sensor.TYPE_GYROSCOPE, errorDetails) ? 1 : 0;
78 Sensor.TYPE_LIGHT, errorDetails) ? 1 : 0;
80 Sensor.TYPE_PROXIMITY, errorDetails) ? 1 : 0;
82 Sensor.TYPE_RELATIVE_HUMIDITY, errorDetails) ? 1 : 0
    [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/libs/sensor/
Sensor.cpp 17 #include <sensor/Sensor.h>
29 Sensor::Sensor(const char * name) :
37 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) :
38 Sensor(*hwSensor, uuid_t(), halVersion) {
41 Sensor::Sensor(struct sensor_t const& hwSensor, const uuid_t& uuid, int halVersion) {
69 ALOGE("Sensor maxDelay overflow error %s %" PRId64, mName.string()
    [all...]
  /frameworks/native/services/sensorservice/
CorrectedGyroSensor.h 23 #include <sensor/Sensor.h>
35 Sensor mGyro;
GravitySensor.h 23 #include <sensor/Sensor.h>
35 Sensor mAccelerometer;
  /packages/apps/Camera2/src/com/android/camera/hardware/
HeadingSensor.java 21 import android.hardware.Sensor;
27 * A virtual sensor that reports device heading based on information
28 * provided by accelerometer sensor or magnetic sensor.
38 /** Device sensor manager. */
41 private final Sensor mAccelerometerSensor;
43 private final Sensor mMagneticSensor;
47 /** Magnetic sensor data. */
53 * Constructs a heading sensor.
60 mAccelerometerSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER)
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
FakeSensorManager.java 21 import android.hardware.Sensor;
44 * Currently only supports the proximity sensor.
54 Sensor proxSensor = context.getSystemService(SensorManager.class)
55 .getDefaultSensor(Sensor.TYPE_PROXIMITY);
58 proxSensor = createSensor(Sensor.TYPE_PROXIMITY);
68 public Sensor getDefaultSensor(int type) {
69 Sensor s = super.getDefaultSensor(type);
74 // return non-wakeup sensors if we can't find a wakeup sensor.
79 protected List<Sensor> getFullSensorList() {
80 return Lists.newArrayList(mMockProximitySensor.sensor);
169 Sensor sensor = constr.newInstance(); local
200 final Sensor sensor; field in class:FakeSensorManager.MockProximitySensor
    [all...]
  /frameworks/native/libs/sensor/include/sensor/
SensorManager.h 35 #include <sensor/SensorEventQueue.h>
49 class Sensor;
59 ssize_t getSensorList(Sensor const* const** list);
60 ssize_t getDynamicSensorList(Vector<Sensor>& list);
61 Sensor const* getDefaultSensor(int type);
83 Sensor const** mSensorList;
84 Vector<Sensor> mSensors;

Completed in 777 milliseconds

1 2 3 4 5 6 7 8 91011>>