Searched defs:sensor (Results 1 - 25 of 50) sorted by relevance

12

/frameworks/base/core/java/android/hardware/
H A DSensorEventListener2.java25 * was called have been delivered to the applications registered for those sensor events. In
27 * even if some other application has called flush() on the same sensor. Starting with
33 * @param sensor The {@link android.hardware.Sensor Sensor} on which flush was called.
36 public void onFlushCompleted(Sensor sensor); argument
H A DTriggerEvent.java21 * associated with a Trigger Sensor. When the sensor detects a trigger
24 * is called with the TriggerEvent. The sensor is automatically canceled
27 * This class holds information such as the value of the sensor
39 * which {@link android.hardware.Sensor sensor} type is being monitored (see
43 * The value field is of length 1. value[0] = 1.0 when the sensor triggers.
49 * The sensor that generated this event. See
52 public Sensor sensor; field in class:TriggerEvent
H A DSensorEvent.java21 * holds information such as the sensor's type, the time-stamp, accuracy and of
22 * course the sensor's {@link SensorEvent#values data}.
60 * which {@link android.hardware.Sensor sensor} type is being monitored (see
74 * A sensor of this type measures the acceleration applied to the device
76 * sensor itself (<b>Fs</b>) using the relation:
152 * same as is used for the acceleration sensor. Rotation is positive in the
234 * <li>values[0]: Proximity sensor distance measured in centimeters </li>
239 * <i>far</i> measurement. In this case, the sensor should report its
246 * are m/s^2. The coordinate system is the same as is used by the acceleration sensor.</p>
247 * <p><b>Note:</b> When the device is at rest, the output of the gravity sensor shoul
639 public Sensor sensor; field in class:SensorEvent
[all...]
H A DSensorEventListener.java21 * there is new sensor data.
26 * Called when there is a new sensor event. Note that "on changed"
28 * new reading from a sensor with the exact same sensor values (but a
32 * for details on possible sensor types.
46 * Called when the accuracy of the registered sensor has changed. Unlike
52 * @param accuracy The new accuracy of this sensor, one of
55 public void onAccuracyChanged(Sensor sensor, int accuracy); argument
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 DSensorEventCallback.java20 * Used for receiving sensor additional information frames.
25 * Called when sensor values have changed.
33 * Called when the accuracy of the registered sensor has changed.
38 public void onAccuracyChanged(Sensor sensor, int accuracy) {} argument
46 public void onFlushCompleted(Sensor sensor) {} argument
49 * Called when a sensor additional information frame is available.
52 * reported from sensor hardware.
H A DSensorAdditionalInfo.java38 * The sensor that generated this event. See
41 public final Sensor sensor; field in class:SensorAdditionalInfo
95 * not taken into account by sensor timestamps.
112 * Vector calibration parameter. Calibration applied to a sensor with 3 elements vector output,
122 * Sensor placement. Describes location and installation angle of the sensor device.
126 * the location and orientation of the sensor. Origin of reference will be the mobile device
127 * geometric sensor. Reference frame is defined as the same as Android sensor frame.
144 * Additional into to sensor hardware. Local geomagnetic field information based on
146 * vector sensor fusio
[all...]
H A DSensorDirectChannel.java30 * Class representing a sensor direct channel. Use
35 * to start delivery of sensor events into shared memory buffer.
63 // sensor rate levels
127 * Close sensor direct channel.
129 * Stop all active sensor in the channel and free sensor system resource related to channel.
145 * Configure sensor rate or stop sensor report.
147 * To start event report of a sensor, or change rate of existing report, call this function with
150 * Each element of the queue has size of 104 bytes and represents a sensor even
188 configure(Sensor sensor, @RateLevel int rateLevel) argument
[all...]
H A DLegacySensorManager.java31 * Helper class for implementing the legacy sensor manager API.
111 // Are we activating this legacy sensor?
114 Sensor sensor = mSensorManager.getDefaultSensor(type);
115 if (sensor != null) {
132 // register this legacy sensor with this legacy listener
135 result = mSensorManager.registerListener(legacyListener, sensor, rate);
137 result = true; // sensor already enabled
163 // Are we deactivating this legacy sensor?
166 Sensor sensor = mSensorManager.getDefaultSensor(type);
167 if (sensor !
249 onAccuracyChanged(Sensor sensor, int accuracy) argument
287 mapSensorDataToWindow(int sensor, float[] values, int orientation) argument
[all...]
/frameworks/native/services/sensorservice/
H A DCorrectedGyroSensor.cpp41 const sensor_t sensor = { local
52 mSensor = Sensor(&sensor);
64 outEvent->sensor = '_cgy';
H A DGravitySensor.cpp40 const sensor_t sensor = { local
51 mSensor = Sensor(&sensor);
64 // translates to an offset in the linear-acceleration sensor.
71 outEvent->sensor = '_grv';
H A DLinearAccelerationSensor.cpp35 const sensor_t sensor = { local
46 mSensor = Sensor(&sensor);
57 outEvent->sensor = '_lin';
H A DOrientationSensor.cpp33 const sensor_t sensor = { local
44 mSensor = Sensor(&sensor);
66 outEvent->sensor = '_ypr';
H A DRotationVectorSensor.cpp32 const sensor_t sensor = { local
43 mSensor = Sensor(&sensor);
57 outEvent->sensor = getSensorToken();
118 const sensor_t sensor = { local
129 mSensor = Sensor(&sensor);
142 outEvent->sensor = '_gbs';
H A DSensorInterface.cpp32 BaseSensor::BaseSensor(const sensor_t& sensor) : argument
34 mSensor(&sensor, mSensorDevice.getHalDeviceVersion()) {
37 BaseSensor::BaseSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]) : argument
39 mSensor(sensor, Sensor::uuid_t(uuid), mSensorDevice.getHalDeviceVersion()) {
44 HardwareSensor::HardwareSensor(const sensor_t& sensor): argument
45 BaseSensor(sensor) {
48 HardwareSensor::HardwareSensor(const sensor_t& sensor, const uint8_t (&uuid)[16]): argument
49 BaseSensor(sensor, uuid) {
/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
H A DOrientationEventListener.java63 * @param rate at which sensor events are processed (see also
83 * Enables the OrientationEventListener so it will monitor the sensor and call
147 public void onAccuracyChanged(Sensor sensor, int accuracy) { argument
153 * Returns true if sensor is enabled and false otherwise
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DMotionSensor.java17 // Make values from a motion sensor (e.g., accelerometer) available as filter outputs.
57 // TODO: currently, the type of sensor is hardcoded. Should be able to set the sensor
68 public final void onAccuracyChanged(Sensor sensor, int accuracy) { argument
69 // (Do we need to do something when sensor accuracy changes?)
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DMotionSensorWTime.java17 // Make values from a motion sensor (e.g., accelerometer) available as filter outputs.
63 // TODO: currently, the type of sensor is hardcoded. Should be able to set the sensor
74 public final void onAccuracyChanged(Sensor sensor, int accuracy) { argument
75 // (Do we need to do something when sensor accuracy changes?)
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/
H A DASensorEventQueue.cpp44 ASensorRef sensor,
48 reinterpret_cast<const SensorInfo *>(sensor)->sensorHandle,
59 int ASensorEventQueue::enableSensor(ASensorRef sensor) { argument
63 sensor, SENSOR_DELAY_NORMAL, 0 /* maxBatchReportLatencyUs */);
67 ASensorRef sensor, int32_t samplingPeriodUs) {
68 // Technically this is not supposed to enable the sensor but using this
69 // API without enabling the sensor first is a no-op, so...
71 sensor, samplingPeriodUs, 0 /* maxBatchReportLatencyUs */);
74 int ASensorEventQueue::disableSensor(ASensorRef sensor) { argument
76 reinterpret_cast<const SensorInfo *>(sensor)
43 registerSensor( ASensorRef sensor, int32_t samplingPeriodUs, int64_t maxBatchReportLatencyUs) argument
66 setEventRate( ASensorRef sensor, int32_t samplingPeriodUs) argument
[all...]
/frameworks/native/libs/binder/
H A DIBatteryStats.cpp37 virtual void noteStartSensor(int uid, int sensor) { argument
41 data.writeInt32(sensor);
45 virtual void noteStopSensor(int uid, int sensor) { argument
49 data.writeInt32(sensor);
146 int sensor = data.readInt32(); local
147 noteStartSensor(uid, sensor);
154 int sensor = data.readInt32(); local
155 noteStopSensor(uid, sensor);
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/
H A DBalls.java60 //android.util.Log.d("rs", "sensor: " + event.sensor + ", x: " + event.values[0] + ", y: " + event.values[1] + ", z: " + event.values[2]);
62 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
70 public void onAccuracyChanged(Sensor sensor, int accuracy) { argument
/frameworks/base/services/core/java/com/android/server/
H A DSensorNotificationService.java51 "sensor.notification.use_mocked"; // max key length is 32
77 if (DBG) Slog.d(TAG, "Cannot obtain dynamic meta sensor, not supported.");
104 if (DBG) Slog.d(TAG, "dynamic sensor broadcast sent");
109 if (event.sensor == mMetaSensor) {
161 public void onAccuracyChanged(Sensor sensor, int accuracy) {} argument
/frameworks/native/libs/sensor/
H A DSensorEventQueue.cpp19 #include <sensor/SensorEventQueue.h>
27 #include <sensor/Sensor.h>
28 #include <sensor/BitTube.h>
29 #include <sensor/ISensorEventConnection.h>
31 #include <android/sensor.h>
124 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const {
125 return enableSensor(sensor, SENSOR_DELAY_NORMAL);
128 status_t SensorEventQueue::enableSensor(Sensor const* sensor, int32_t samplingPeriodUs) const { argument
129 return mSensorEventConnection->enableDisable(sensor->getHandle(), true,
133 status_t SensorEventQueue::disableSensor(Sensor const* sensor) cons
151 setEventRate(Sensor const* sensor, nsecs_t ns) const argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeScreenBrightness.java120 // sensor reports a new brightness. This ensures that when the screen comes on
121 // again, it will only show after the brightness sensor has stabilized,
149 public void onAccuracyChanged(Sensor sensor, int accuracy) { argument
159 // Wait until we get an event from the sensor until indicating ready.

Completed in 294 milliseconds

12