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

1 2

  /cts/tests/tests/hardware/src/android/hardware/cts/
SensorTest.java 23 import android.hardware.Sensor;
34 List<Sensor> sensors = mSensorManager.getSensorList(Sensor.TYPE_ALL);
36 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
39 // accelerometer sensor is optional
41 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType());
42 assertSensorValues(sensor);
    [all...]
  /frameworks/base/core/java/android/hardware/
SensorEvent.java 21 * This class represents a {@link android.hardware.Sensor Sensor} event and
22 * holds informations such as the sensor's type, the time-stamp, accuracy and of
23 * course the sensor's {@link SensorEvent#values data}.
54 * @see Sensor
62 * which {@link android.hardware.Sensor sensor} type is being monitored (see
66 * <h4>{@link android.hardware.Sensor#TYPE_ACCELEROMETER
67 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2)
82 * A sensor of this type measures the acceleration applied to the devic
440 public Sensor sensor; field in class:SensorEvent
    [all...]
SystemSensorManager.java 32 * Sensor manager implementation that communicates with the built-in
40 private static ArrayList<Sensor> sFullSensorsList = new ArrayList<Sensor>();
41 /* The thread and the sensor list are global to the process
47 static SparseArray<Sensor> sHandleToSensor = new SparseArray<Sensor>();
51 // Common pool of sensor events.
104 //Log.d(TAG, "entering main sensor thread");
122 final int sensor = sensors_data_poll(sQueue, values, status, timestamp); local
126 if (sensor == -1 || sListeners.isEmpty())
265 Sensor sensor = new Sensor(); local
272 sHandleToSensor.append(sensor.getHandle(), sensor); 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...]
  /sdk/apps/SdkController/src/com/android/tools/sdkcontroller/handlers/
SensorsHandler.java 23 import android.hardware.Sensor;
41 * The target update time per sensor. Ignored if 0 or negative.
42 * Sensor updates that arrive faster than this delay are ignored.
53 * Sensor "enabled by emulator" state has changed.
58 * Sensor display value has changed.
68 super(HandlerType.Sensor, EmulatorConnection.SENSORS_PORT);
82 * Set the target update delay throttling per-sensor, in milliseconds.
84 * For example setting it to 1000/50 means that updates for a <em>given</em> sensor
88 * between sensor updates.
95 * Returns the actual average time in milliseconds between same-sensor updates.
246 MonitoredSensor sensor = getSensorByEFN(param); local
272 MonitoredSensor sensor = getSensorByEFN(param); local
    [all...]
  /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.
176 mSensorHandler = (SensorsHandler) getServiceBinder().getHandler(HandlerType.Sensor);
183 for (MonitoredSensor sensor : sensors) {
188 mDisplayedSensors.put(sensor, new DisplayInfo(sensor, row));
210 public DisplayInfo(MonitoredSensor sensor, TableRow row) {
211 mSensor = sensor;
    [all...]
  /cts/tests/tests/app/src/android/app/cts/
SystemFeaturesTest.java 31 import android.hardware.Sensor;
212 * Check that the sensor features reported by the PackageManager correspond to the sensors
219 Sensor.TYPE_ACCELEROMETER);
221 Sensor.TYPE_PRESSURE);
223 Sensor.TYPE_MAGNETIC_FIELD);
225 Sensor.TYPE_GYROSCOPE);
227 Sensor.TYPE_LIGHT);
229 Sensor.TYPE_PROXIMITY);
273 * Check that if the PackageManager declares a sensor feature that the device has at least
274 * one sensor that matches that feature. Also check that if a PackageManager does not declar
    [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...]
  /external/qemu/android/
sensors-port.c 28 /* Maximum length of a sensor message. */
31 /* Maximum length of a sensor event. */
45 /* Array of available sensor names. Note that each string in this array
52 /* Buffer where to receive sensor messages. */
54 /* Buffer where to receive sensor events. */
74 /* A callback that invoked on sensor events.
78 * msg, msgsize - Sensor event message
85 char sensor[ASP_MAX_SENSOR_MSG]; local
95 /* Parse notification, separating sensor name from parameters. */
96 memcpy(sensor, msg, msgsize)
    [all...]
hw-sensors.c 39 /* this code supports emulated sensor hardware
79 /* For common Sensor Value struct */
120 } Sensor;
130 * - the HAL module sends "set:<sensor>:<flag>" to enable or disable
131 * the report of a given sensor state. <sensor> must be the name of
132 * a given sensor (e.g. "accelerometer"), and <flag> must be either
135 * - Once at least one sensor is "enabled", this code should periodically
141 * a new interval between sensor events sent by this code to the HAL
149 * - each timer tick, this code sends sensor reports in the followin
295 Sensor* sensor; local
    [all...]
console.c 2432 char sensor[strlen(args) + 1]; local
2482 char* sensor; local
    [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/gcc/darwin-x86/mips/mipsel-linux-android-4.4.3/sysroot/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/gcc/linux-x86/mips/mipsel-linux-android-4.4.3/sysroot/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/android-ndk-r5/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/android-ndk-r6/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/android-ndk-r6/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/android-ndk-r7/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/android-ndk-r7/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/android-ndk-r7/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/android-ndk-r7/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...]
  /frameworks/base/services/sensorservice/
SensorService.cpp 56 * - what about a gyro-corrected magnetic-field sensor?
57 * - run mag sensor from time to time to force calibration
58 * - gravity sensor length is wrong (=> drift in linear-acc sensor)
129 // build the sensor list returned to users
133 // if we have the fancy sensor fusion, and it's not provided by the
134 // HAL, use our own (fused) orientation sensor by removing the
152 const Sensor sensor(s->getSensor());
153 // add to the sensor list (returned to clients
380 SensorInterface* sensor = mSensorMap.valueFor( handle ); local
412 SensorInterface* sensor = mSensorMap.valueFor(handle); local
472 SensorInterface* sensor = mSensorMap.valueFor(handle); local
    [all...]
  /hardware/libhardware/include/hardware/
sensors.h 51 * Sensor types
83 * status of each sensor
126 * Orientation sensors return sensor events for all 3 axes at a constant
164 * Acceleration sensors return sensor events for all 3 axes at a constant
191 * Magnetic Field sensors return sensor events for all 3 axes at a constant
199 * used for the acceleration sensor. Rotation is positive in the
213 * the sensor should report its maxRange value in the "far" state and a value
217 * sensor is enabled.
222 * The light sensor value is returned in SI lux units.
225 * sensor is enabled
333 int32_t sensor; member in struct:sensors_event_t
    [all...]
  /packages/apps/Settings/src/com/android/settings/fuelgauge/
PowerUsageSummary.java 525 // Process Sensor usage
526 Map<Integer, ? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats();
527 for (Map.Entry<Integer, ? extends BatteryStats.Uid.Sensor> sensorEntry
529 Uid.Sensor sensor = sensorEntry.getValue(); local
530 int sensorType = sensor.getHandle();
531 BatteryStats.Timer timer = sensor.getSensorTime();
535 case Uid.Sensor.GPS:
540 android.hardware.Sensor sensorData =
545 Log.i(TAG, "Got sensor " + sensorData.getName() + " with power =
    [all...]

Completed in 663 milliseconds

1 2