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

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/core/java/android/hardware/
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
247 Sensor sensor = sHandleToSensor.get(handle); local
340 final Sensor sensor = sHandleToSensor.get(handle); local
400 final Sensor sensor = sHandleToSensor.get(handle); local
    [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...]
Sensor.java 23 * Class representing a sensor. Use {@link SensorManager#getSensorList} to get
31 public final class Sensor {
34 * A constant describing an accelerometer sensor type.
41 * A constant describing a magnetic field sensor type.
48 * A constant describing an orientation sensor type.
58 /** A constant describing a gyroscope sensor type.
64 * A constant describing a light sensor type.
70 /** A constant describing a pressure sensor type.
76 * A constant describing a temperature sensor type
79 * {@link android.hardware.Sensor#TYPE_AMBIENT_TEMPERATUR
    [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/
SensorTest.java 25 import android.hardware.Sensor;
49 List<Sensor> sensors = mSensorManager.getSensorList(Sensor.TYPE_ALL);
51 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
54 // accelerometer sensor is optional
56 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType());
57 assertSensorValues(sensor);
89 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
98 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
107 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local
117 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
    [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...]
  /external/qemu/android/
hw-sensors.h 17 /* initialize sensor emulation */
20 /* NOTE: Sensor status Error definition, It will be used in the Sensors Command
23 * SENSOR_STATUS_DISABLED: sensor is disabled.
24 * SENSOR_STATUS_UNKNOWN: wrong sensor name.
25 * SENSOR_STATUS_OK: Everything is OK to the current sensor.
55 extern void android_hw_sensor_enable( AndroidSensor sensor );
66 /* get sensor values */
69 /* set sensor values */
72 /* Get sensor id from sensor name *
    [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/base/docs/html/guide/topics/sensors/
sensors_overview.jd 10 <li>Learn about the sensors that Android supports and the Android sensor framework.</li>
11 <li>Find out how to list sensors, determine sensor capabilities, and monitor sensor data.</li>
17 <li><a href="#sensors-identify">Identifying Sensors and Sensor Capabilities</a></li>
18 <li><a href="#sensors-monitor">Monitoring Sensor Events</a></li>
19 <li><a href="#sensors-configs">Handling Different Sensor Configurations</a></li>
20 <li><a href="#sensors-coords">Sensor Coordinate System</a></li>
25 <li>{@link android.hardware.Sensor}</li>
57 game might track readings from a device's gravity sensor to infer complex user gestures
59 device's temperature sensor and humidity sensor to calculate and report the dewpoint, or a trave
    [all...]
sensors_position.jd 9 <li><a href="#sensors-pos-orient">Using the Orientation Sensor</a></li>
10 <li><a href="#sensors-pos-mag">Using the Geomagnetic Field Sensor</a></li>
11 <li><a href="#sensors-pos-prox">Using the Proximity Sensor</a></li>
15 <li>{@link android.hardware.Sensor}</li>
44 geomagnetic field sensor and the orientation sensor. The Android platform also
45 provides a sensor that lets you determine how close the face of a device is to an object (known as
46 the proximity sensor). The geomagnetic field sensor and the proximity sensor are hardware-based
    [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/main/java/com/xtremelabs/robolectric/shadows/
ShadowSensorManager.java 3 import android.hardware.Sensor;
25 public boolean registerListener(SensorEventListener listener, Sensor sensor, int rate) {
37 public void unregisterListener(SensorEventListener listener, Sensor sensor) {
  /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...]
  /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.
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/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 498 milliseconds

1 2 3 4 5 6 7 8 91011>>