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

1 2 3 4

  /frameworks/base/core/java/android/hardware/
SensorListener.java 21 * sensor values have changed.
30 * <p>Called when sensor values have changed.
32 * depending on which sensor is being monitored.
34 * for details on possible sensor types.
87 * @param sensor The ID of the sensor being monitored
88 * @param values The new values for the sensor.
90 public void onSensorChanged(int sensor, float[] values);
93 * Called when the accuracy of a sensor has changed.
97 * @param sensor The ID of the sensor being monitore
    [all...]
SensorEventListener.java 21 * sensor values have changed.
26 * Called when sensor values have changed.
28 * for details on possible sensor types.
42 * Called when the accuracy of a sensor has changed.
46 * @param accuracy The new accuracy of this sensor
48 public void onAccuracyChanged(Sensor sensor, int accuracy);
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...]
SensorManager.java 40 * SensorManager lets you access the device's {@link android.hardware.Sensor
56 * private final Sensor mAccelerometer;
60 * mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
73 * public void onAccuracyChanged(Sensor sensor, int accuracy) {
83 * @see Sensor
91 /* NOTE: sensor IDs must be a power of 2 */
94 * A constant describing an orientation sensor. See
97 * @deprecated use {@link android.hardware.Sensor Sensor} instead
498 final int sensor = sensors_data_poll(sQueue, values, status, timestamp); local
658 Sensor sensor = new Sensor(); local
666 sHandleToSensor.append(sensor.getHandle(), sensor); local
847 Sensor sensor = getDefaultSensor(type); local
914 Sensor sensor = getDefaultSensor(type); local
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/
SensorTest.java 23 import android.hardware.Sensor;
31 @TestTargetClass(Sensor.class)
76 List<Sensor> sensors = mSensorManager.getSensorList(Sensor.TYPE_ALL);
78 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local
81 // accelerometer sensor is optional
83 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType())
    [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/base/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...]
  /prebuilt/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...]
  /prebuilt/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...]
  /prebuilt/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...]
  /frameworks/base/services/sensorservice/
SensorInterface.cpp 33 HardwareSensor::HardwareSensor(const sensor_t& sensor)
35 mSensor(&sensor)
37 LOGI("%s", sensor.name);
57 Sensor HardwareSensor::getSensor() const {
RotationVectorSensor.cpp 47 outEvent->sensor = '_rov';
63 Sensor RotationVectorSensor::getSensor() const {
65 hwSensor.name = "Rotation Vector Sensor";
74 Sensor sensor(&hwSensor);
75 return sensor;
96 outEvent->sensor = '_gbs';
112 Sensor GyroDriftSensor::getSensor() const {
123 Sensor sensor(&hwSensor)
    [all...]
LinearAccelerationSensor.cpp 46 outEvent->sensor = '_lin';
61 Sensor LinearAccelerationSensor::getSensor() const {
62 Sensor gsensor(mGravitySensor.getSensor());
64 hwSensor.name = "Linear Acceleration Sensor";
73 Sensor sensor(&hwSensor);
74 return sensor;
SensorService.cpp 55 * - what about a gyro-corrected magnetic-field sensor?
56 * - run mag sensor from time to time to force calibration
57 * - gravity sensor length is wrong (=> drift in linear-acc sensor)
128 // build the sensor list returned to users
132 // if we have the fancy sensor fusion, and it's not provided by the
133 // HAL, use our own (fused) orientation sensor by removing the
151 const Sensor sensor(s->getSensor());
152 // add to the sensor list (returned to clients
371 SensorInterface* sensor = mSensorMap.valueFor( handle ); local
403 SensorInterface* sensor = mSensorMap.valueFor(handle); local
463 SensorInterface* sensor = mSensorMap.valueFor(handle); local
    [all...]
CorrectedGyroSensor.cpp 38 mGyro = Sensor(list + i);
53 outEvent->sensor = '_cgy';
69 Sensor CorrectedGyroSensor::getSensor() const {
71 hwSensor.name = "Corrected Gyroscope Sensor";
80 Sensor sensor(&hwSensor);
81 return sensor;
GravitySensor.cpp 38 mAccelerometer = Sensor(list + i);
55 // translates to an offset in the linear-acceleration sensor.
62 outEvent->sensor = '_grv';
77 Sensor GravitySensor::getSensor() const {
79 hwSensor.name = "Gravity Sensor";
88 Sensor sensor(&hwSensor);
89 return sensor;
OrientationSensor.cpp 57 outEvent->sensor = '_ypr';
73 Sensor OrientationSensor::getSensor() const {
75 hwSensor.name = "Orientation Sensor";
84 Sensor sensor(&hwSensor);
85 return sensor;
  /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...]
  /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...]
  /frameworks/base/libs/gui/
SensorEventQueue.cpp 26 #include <gui/Sensor.h>
31 #include <android/sensor.h>
123 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const {
124 return mSensorEventConnection->enableDisable(sensor->getHandle(), true);
127 status_t SensorEventQueue::disableSensor(Sensor const* sensor) const {
128 return mSensorEventConnection->enableDisable(sensor->getHandle(), false);
143 status_t SensorEventQueue::setEventRate(Sensor const* sensor, nsecs_t ns) const
    [all...]
  /frameworks/base/core/jni/
android_hardware_SensorManager.cpp 21 #include <gui/Sensor.h>
57 sensors_module_get_next_sensor(JNIEnv *env, jobject clazz, jobject sensor, jint next)
61 Sensor const* const* sensorList;
66 Sensor const* const list = sensorList[next];
70 env->SetObjectField(sensor, sensorOffsets.name, name);
71 env->SetObjectField(sensor, sensorOffsets.vendor, vendor);
72 env->SetIntField(sensor, sensorOffsets.version, 1);
73 env->SetIntField(sensor, sensorOffsets.handle, list->getHandle());
74 env->SetIntField(sensor, sensorOffsets.type, list->getType());
75 env->SetFloatField(sensor, sensorOffsets.range, list->getMaxValue())
    [all...]
  /frameworks/base/core/java/android/view/
OrientationListener.java 53 * @param rate at which sensor events are processed (see also
79 * Enables the OrientationListener so it will monitor the sensor and call
93 public void onAccuracyChanged(int sensor, int accuracy) {
96 public void onSensorChanged(int sensor, float[] values) {
  /frameworks/base/include/gui/
SensorEventQueue.h 44 class Sensor;
63 status_t enableSensor(Sensor const* sensor) const;
64 status_t disableSensor(Sensor const* sensor) const;
65 status_t setEventRate(Sensor const* sensor, nsecs_t ns) const;
  /device/samsung/tuna/libsensors/
LightSensor.cpp 32 mPendingEvent.sensor = ID_L;
44 // 1/4 of light reaches sensor
PressureSensor.cpp 38 mPendingEvent.sensor = ID_PR;

Completed in 763 milliseconds

1 2 3 4