HomeSort by relevance Sort by last modified time
    Searched defs:sensor (Results 1 - 25 of 68) sorted by null

1 2 3

  /frameworks/base/core/java/android/hardware/
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...]
  /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;
SensorCtsHelper.java 19 import android.hardware.Sensor;
161 * Get a list containing the delay between sensor events.
164 * @return A list containing the delay between sensor events in nanoseconds.
178 * Get a list containing the jitter values for a collection of sensor events.
244 * Get the default sensor for a given type.
246 public static Sensor getSensor(Context context, int sensorType) {
248 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local
249 if(sensor == null) {
252 return sensor;
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/
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...]
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/
SensorChannel.java 24 import android.hardware.Sensor;
46 * The target update time per sensor. Ignored if 0 or negative.
47 * Sensor updates that arrive faster than this delay are ignored.
59 /** Sensor manager. */
67 * Sensor "enabled by emulator" state has changed. Parameter {@code obj} is
72 * Sensor display value has changed. Parameter {@code obj} is the
86 List<Sensor> sensors = mSenMan.getSensorList(Sensor.TYPE_ALL);
89 Sensor avail_sensor = sensors.get(n);
93 // The first sensor we've got for the given type is no
252 final MonitoredSensor sensor = getSensorByEFN(name); local
273 MonitoredSensor sensor = getSensorByEFN(name); local
    [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) {
  /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...]
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/
SensorActivity.java 46 * For each sensor it displays a checkbox that is enabled if the sensor is supported
47 * by the emulator. The user can select whether the sensor is active. It also displays
48 * data from the sensor when available.
183 for (MonitoredSensor sensor : sensors) {
188 mDisplayedSensors.put(sensor, new DisplayInfo(sensor, row));
210 public DisplayInfo(MonitoredSensor sensor, TableRow row) {
211 mSensor = sensor;
213 // Initialize displayed checkbox for this sensor, and registe
    [all...]
  /cts/tests/tests/app/src/android/app/cts/
SystemFeaturesTest.java 31 import android.hardware.Sensor;
215 * Check that the sensor features reported by the PackageManager correspond to the sensors
222 Sensor.TYPE_ACCELEROMETER);
224 Sensor.TYPE_PRESSURE);
226 Sensor.TYPE_MAGNETIC_FIELD);
228 Sensor.TYPE_GYROSCOPE);
230 Sensor.TYPE_LIGHT);
232 Sensor.TYPE_PROXIMITY);
234 Sensor.TYPE_STEP_COUNTER);
236 Sensor.TYPE_STEP_DETECTOR)
    [all...]
  /development/ndk/platforms/android-9/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /frameworks/native/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
111 int32_t sensor; member in struct:AMetaDataEvent
136 int32_t sensor; member in struct:ASensorEvent
177 * Get a reference to the sensor manager. ASensorManager is a singleton.
193 * Returns the default sensor for the given type, or NULL if no sensor
    [all...]
  /prebuilts/ndk/5/platforms/android-9/arch-arm/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /prebuilts/ndk/6/platforms/android-9/arch-arm/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /prebuilts/ndk/6/platforms/android-9/arch-x86/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /prebuilts/ndk/7/platforms/android-14/arch-arm/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /prebuilts/ndk/7/platforms/android-14/arch-x86/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /prebuilts/ndk/7/platforms/android-9/arch-arm/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /prebuilts/ndk/7/platforms/android-9/arch-x86/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /prebuilts/ndk/8/platforms/android-14/arch-arm/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /prebuilts/ndk/8/platforms/android-14/arch-mips/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]
  /prebuilts/ndk/8/platforms/android-14/arch-x86/usr/include/android/
sensor.h 38 * Structures and functions to receive and process sensor events in
53 * Sensor types
54 * (keep in sync with hardware/sensor.h)
66 * Sensor accuracy measure
87 * A sensor event.
112 int32_t sensor; member in struct:ASensorEvent
144 * Get a reference to the sensor manager. ASensorManager is a singleton.
160 * Returns the default sensor for the given type, or NULL if no sensor
166 * Creates a new sensor event queue and associate it with a looper
    [all...]

Completed in 830 milliseconds

1 2 3