Searched refs:sensor (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/base/core/java/android/hardware/
H A DSensorListener.java21 * 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); argument
93 * Called when the accuracy of a sensor has changed.
97 * @param sensor Th
100 onAccuracyChanged(int sensor, int accuracy) argument
[all...]
H A DSensorEventListener.java21 * 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); argument
H A DSensorEvent.java22 * holds informations such as the sensor's type, the time-stamp, accuracy and of
23 * course the sensor's {@link SensorEvent#values data}.
62 * which {@link android.hardware.Sensor sensor} type is being monitored (see
82 * A sensor of this type measures the acceleration applied to the device
84 * sensor itself (<b>Fs</b>) using the relation:
160 * same as is used for the acceleration sensor. Rotation is positive in the
251 * values[0]: Proximity sensor distance measured in centimeters
256 * <i>far</i> measurement. In this case, the sensor should report its
263 * are m/s^2. The coordinate system is the same as is used by the acceleration sensor.</p>
264 * <p><b>Note:</b> When the device is at rest, the output of the gravity sensor shoul
440 public Sensor sensor; field in class:SensorEvent
[all...]
H A DSensorManager.java73 * public void onAccuracyChanged(Sensor sensor, int accuracy) {
91 /* NOTE: sensor IDs must be a power of 2 */
94 * A constant describing an orientation sensor. See
112 * A constant describing a temperature sensor See
121 * A constant describing a magnetic sensor See
130 * A constant describing an ambient light sensor See
139 * A constant describing a proximity sensor See
157 * A constant describing an orientation sensor. See
174 * Smallest sensor ID
182 * Largest sensor I
547 ListenerDelegate(SensorEventListener listener, Sensor sensor, Handler handler) argument
591 addSensor(Sensor sensor) argument
595 removeSensor(Sensor sensor) argument
600 hasSensor(Sensor sensor) argument
607 onSensorChangedLocked(Sensor sensor, float[] values, long[] timestamp, int accuracy) argument
971 unregisterListener(SensorEventListener listener, Sensor sensor) argument
1017 registerListener(SensorEventListener listener, Sensor sensor, int rate) argument
1021 enableSensorLocked(Sensor sensor, int delay) argument
1034 disableSensorLocked(Sensor sensor) argument
1078 registerListener(SensorEventListener listener, Sensor sensor, int rate, Handler handler) argument
1147 unregisterListener(Object listener, Sensor sensor) argument
1703 onAccuracyChanged(Sensor sensor, int accuracy) argument
1741 mapSensorDataToWindow(int sensor, float[] values, int orientation) argument
2065 sensors_module_get_next_sensor(Sensor sensor, int next) argument
2070 sensors_enable_sensor(int queue, String name, int sensor, int enable) argument
[all...]
/frameworks/base/native/android/
H A Dsensor.cpp17 #define LOG_TAG "sensor"
21 #include <android/sensor.h>
86 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor) argument
89 static_cast<Sensor const*>(sensor));
92 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor) argument
95 static_cast<Sensor const*>(sensor));
98 int ASensorEventQueue_setEventRate(ASensorEventQueue* queue, ASensor const* sensor, argument
102 static_cast<Sensor const*>(sensor), us2ns(usec));
132 const char* ASensor_getName(ASensor const* sensor) argument
134 return static_cast<Sensor const*>(sensor)
137 ASensor_getVendor(ASensor const* sensor) argument
142 ASensor_getType(ASensor const* sensor) argument
147 ASensor_getResolution(ASensor const* sensor) argument
152 ASensor_getMinDelay(ASensor const* sensor) argument
[all...]
H A DAndroid.mk16 sensor.cpp \
/frameworks/base/native/include/android/
H A Dsensor.h38 * Structures and functions to receive and process sensor events in
54 * (keep in sync with hardware/sensor.h)
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.
180 * Enable the selected sensor. Returns a negative error code on failure.
182 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor);
[all...]
/frameworks/base/services/sensorservice/
H A DSensorInterface.cpp33 HardwareSensor::HardwareSensor(const sensor_t& sensor) argument
35 mSensor(&sensor)
37 LOGI("%s", sensor.name);
H A DRotationVectorSensor.cpp47 outEvent->sensor = '_rov';
74 Sensor sensor(&hwSensor);
75 return sensor;
96 outEvent->sensor = '_gbs';
123 Sensor sensor(&hwSensor);
124 return sensor;
H A DLinearAccelerationSensor.cpp46 outEvent->sensor = '_lin';
73 Sensor sensor(&hwSensor);
74 return sensor;
H A DSensorService.cpp55 * - 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)
153 mSensorList.add(sensor);
371 SensorInterface* sensor = mSensorMap.valueFor( handle ); local
403 SensorInterface* sensor = mSensorMap.valueFor(handle); local
463 SensorInterface* sensor = mSensorMap.valueFor(handle); local
[all...]
H A DCorrectedGyroSensor.cpp53 outEvent->sensor = '_cgy';
80 Sensor sensor(&hwSensor);
81 return sensor;
H A DGravitySensor.cpp55 // translates to an offset in the linear-acceleration sensor.
62 outEvent->sensor = '_grv';
88 Sensor sensor(&hwSensor);
89 return sensor;
H A DOrientationSensor.cpp57 outEvent->sensor = '_ypr';
84 Sensor sensor(&hwSensor);
85 return sensor;
H A DSensorInterface.h53 HardwareSensor(const sensor_t& sensor);
H A DSensorService.h111 void registerSensor(SensorInterface* sensor);
112 void registerVirtualSensor(SensorInterface* sensor);
/frameworks/base/libs/gui/
H A DSensorEventQueue.cpp31 #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 { argument
144 return mSensorEventConnection->setEventRate(sensor->getHandle(), ns);
/frameworks/base/core/jni/
H A Dandroid_hardware_SensorManager.cpp57 sensors_module_get_next_sensor(JNIEnv *env, jobject clazz, jobject sensor, jint next) argument
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());
76 env->SetFloatField(sensor, sensorOffsets.resolution, list->getResolution());
77 env->SetFloatField(sensor, sensorOffsets.power, list->getPowerUsage());
78 env->SetIntField(sensor, sensorOffset
104 sensors_enable_sensor(JNIEnv *env, jclass clazz, jint nativeQueue, jstring name, jint sensor, jint delay) argument
[all...]
/frameworks/base/core/java/android/view/
H A DOrientationListener.java53 * @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) { argument
96 public void onSensorChanged(int sensor, float[] values) { argument
/frameworks/base/include/gui/
H A DSensorEventQueue.h63 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;
H A DSensor.h30 #include <android/sensor.h>
/frameworks/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl31 void noteStartSensor(int uid, int sensor);
35 void noteStopSensor(int uid, int sensor);
/frameworks/base/core/java/android/webkit/
H A DDeviceMotionService.java159 assert(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER);
173 public void onAccuracyChanged(Sensor sensor, int accuracy) { argument
H A DDeviceOrientationService.java196 switch (event.sensor.getType()) {
220 public void onAccuracyChanged(Sensor sensor, int accuracy) { argument
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DSimpleModelView.java55 // find the rotation-vector sensor
171 // we received a sensor event. it is a good practice to check
174 if (event.sensor.getType() == Sensor.TYPE_ROTATION_VECTOR) {
188 public void onAccuracyChanged(Sensor sensor, int accuracy) { argument

Completed in 292 milliseconds

12