/hardware/invensense/6515/libsensors_iio/software/simple_apps/devnode_parser/ |
read_device_node.c | 56 void get_sensor_data(char *d, short *sensor) 60 sensor[i] = *(short *)(d + 2 + i * 2); 76 short sensor[3]; local 121 get_sensor_data(dptr, sensor); 123 printf("PRESS, %d, %lld\n", (sensor[1] << 16) + (unsigned short)sensor[2], *(long long *)dptr); 129 get_sensor_data(dptr, sensor); 131 printf("ACCEL, %d, %d, %d, %lld\n", sensor[0], sensor[1], sensor[2], *(long long *)dptr) [all...] |
/docs/source.android.com/src/devices/sensors/ |
sensor-types.jd | 1 page.title=Sensor types 27 <h2 id="sensor_axis_definition">Sensor axis definition</h2> 28 <p>Sensor event values from many sensors are expressed in a specific frame that is 35 alt="Coordinate system of sensor API" height="225" /> 38 used by the Sensor API. 43 <p>Some sensor types are named directly after the physical sensors they represent. 45 relay data from a single physical sensor, contrary to ?composite? sensors, for 47 <p>Examples of base sensor types:</p> 53 <p> See the list of Android sensor types below for more details on each 55 <p>Base sensors are not to be confused with their underlying physical sensor. Th [all...] |
index.jd | 32 the sensor Hardware Abstraction Layer (HAL).</p> 37 <li> Notably, camera, fingerprint sensor, microphone and touch screen are currently 48 <li> Often, sensor chips are connected to the SoC through a <a href="sensor-stack.html#sensor_hub">sensor hub</a>, allowing some low-power monitoring and processing of the data. </li> 55 in a sensor hub). </li> 58 href="sensor-stack.html">Sensor stack</a> for more information. </li> 62 <p>Each Android sensor has a ?type? representing how the sensor behaves and wha [all...] |
report-modes.jd | 28 sensor type has one and only one reporting mode associated with it. Four 32 reporting mode are <a href="sensor-types.html#accelerometer">accelerometers</a> and <a href="sensor-types.html#gyroscope">gyroscopes</a>.</p> 35 sensor at the HAL level (calling <code>activate(..., enable=1)</code> on it) also triggers 37 sensor is activated. Example sensors using the on-change reporting mode are the 38 step counter, proximity, and heart rate sensor types.</p> 50 minute (including at time t=0 because of the activation of the sensor, and t=60 55 <p>Upon detection of an event, the sensor deactivates itself and then sends a 57 sensor must be deactivated before the event is reported through the HAL). No 58 other event is sent until the sensor is reactivated. <a href="sensor-types.html#significant_motion">Significant motion</a> is an exampl (…) [all...] |
batching.jd | 28 <p>?Batching? refers to storing sensor events in a hardware FIFO before reporting 35 <p>Batching happens when a sensor possesses a hardware FIFO 38 <li> <code>max_report_latency > 0</code>, meaning the sensor events for this specific sensor can 40 <li> or the SoC is in suspend mode and the sensor is a non-wake-up sensor, meaning 54 <li> or the sensor is a wake-up sensor </li> 57 <li> or when the sensor doesn?t have a hardware FIFO (<code>sensor_t.fifoMaxEventCount = 60 <li> the events are reported if the SoC is awake or the sensor is a wake-up sensor </li [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
JitterVerification.java | 21 import android.hardware.Sensor; 33 * A {@link ISensorVerification} which verifies that the sensor jitter is in an acceptable range. 58 * Get the default {@link JitterVerification} for a sensor. 61 * @return the verification or null if the verification does not apply to the sensor. 144 DEFAULTS.put(Sensor.TYPE_ACCELEROMETER, Integer.MAX_VALUE); 145 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD, Integer.MAX_VALUE); 146 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED, Integer.MAX_VALUE); 147 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, Integer.MAX_VALUE); 148 DEFAULTS.put(Sensor.TYPE_GYROSCOPE_UNCALIBRATED, Integer.MAX_VALUE); 149 DEFAULTS.put(Sensor.TYPE_ORIENTATION, Integer.MAX_VALUE) [all...] |
StandardDeviationVerification.java | 21 import android.hardware.Sensor; 59 * Get the default {@link StandardDeviationVerification} for a sensor. 62 * @return the verification or null if the verification does not apply to the sensor. 166 DEFAULTS.put(Sensor.TYPE_ACCELEROMETER, new float[]{1.0f, 1.0f, 1.0f}); 167 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, new float[]{0.5f, 0.5f, 0.5f}); 169 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD, 171 DEFAULTS.put(Sensor.TYPE_ORIENTATION, 173 DEFAULTS.put(Sensor.TYPE_PRESSURE, 175 DEFAULTS.put(Sensor.TYPE_GRAVITY, 177 DEFAULTS.put(Sensor.TYPE_LINEAR_ACCELERATION [all...] |
/development/samples/browseable/HdrViewfinder/ |
_index.jd | 8 the sensor\'s exposure time between two exposure values on even and odd frames, and then
|
/packages/apps/Dialer/src/com/android/dialer/ |
ProximitySensorAware.java | 20 * An object that is aware of the state of the proximity sensor. 23 /** Start tracking the state of the proximity sensor. */ 27 * Stop tracking the state of the proximity sensor. 29 * @param waitForFarState if true and the sensor is currently in the near state, it will wait
|
/external/qemu/android/ |
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...] |
sensors-port.h | 21 * Encapsulates exchange protocol between the sensor emulator, and an application 22 * running on an Android device that provides sensor values, and is connected to 35 * routine successeds, a connection is established with the sensor reading 43 /* Enables events from a particular sensor. 46 * name - Name of the sensor to enable events on. If this parameter is "all", 54 /* Disables events from a particular sensor. 57 * name - Name of the sensor to disable events on. If this parameter is "all",
|
sensors-port.c | 49 /* Starts sensor emulation. */ 51 /* Stops sensor emulation. */ 53 /* Enables emulation for a sensor. */ 55 /* Disables emulation for a sensor. */ 57 /* This message delivers sensor values. */ 61 /* Describes a sensor on the device. 68 /* Identifies sensor on the device. Value -1 indicates list terminator, 69 * rather than a valid sensor descriptor. */ 71 /* Beginning of zero-terminated sensor name. */ 75 /* Describes a sensor in the array of emulated sensors. * [all...] |
/frameworks/base/core/java/android/hardware/ |
TriggerEventListener.java | 22 * disabled. {@link Sensor#TYPE_SIGNIFICANT_MOTION} is one such example. 24 * {@link SensorManager} lets you access the device's {@link android.hardware.Sensor 36 * // As it is a one shot sensor, it will be canceled automatically. 43 * private final Sensor mSigMotion; 48 * mSigMotion = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); 66 * @see Sensor 70 * The method that will be called when the sensor
|
SensorEvent.java | 20 * This class represents a {@link android.hardware.Sensor Sensor} event and 21 * holds informations such as the sensor's type, the time-stamp, accuracy and of 22 * course the sensor's {@link SensorEvent#values data}. 52 * @see Sensor 60 * which {@link android.hardware.Sensor sensor} type is being monitored (see 64 * <h4>{@link android.hardware.Sensor#TYPE_ACCELEROMETER 65 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2) 74 * A sensor of this type measures the acceleration applied to the devic 491 public Sensor sensor; field in class:SensorEvent [all...] |
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...] |
/device/generic/goldfish/camera/fake-pipeline2/ |
Sensor.h | 23 * The sensor is abstracted as operating as a pipeline 3 stages deep; 25 * processing step for the sensor is marked off by vertical sync signals, which 29 * configuration, the sensor's registers for settings such as exposure time, 31 * 2, the image data for the frame is actually captured by the sensor. Finally, 35 * The sensor is assumed to be rolling-shutter, so low-numbered rows of the 36 * sensor are exposed earlier in time than larger-numbered rows, with the time 39 * The characteristics of this sensor don't correspond to any actual sensor, 46 * C = update sensor registers for frame 89 class Sensor: private Thread, public virtual RefBase [all...] |
/hardware/ti/omap4xxx/camera/inc/ |
SensorListener.h | 20 * This defines API for camerahal to get sensor events 27 #include <android/sensor.h> 28 #include <gui/Sensor.h> 36 * SensorListner class - Registers with sensor manager to get sensor events
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
MotionSensorWTime.java | 17 // Make values from a motion sensor (e.g., accelerometer) available as filter outputs. 22 import android.hardware.Sensor; 39 private Sensor mSensor = null; 62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); 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) { 75 // (Do we need to do something when sensor accuracy changes?)
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
TestSensorEventListener.java | 21 import android.hardware.Sensor; 65 public void onFlushCompleted(Sensor sensor) {} 67 public void onAccuracyChanged(Sensor sensor, int i) {} 73 * Set the sensor, rate, and batch report latency used for the assertions. 94 "Sensor %d: sensor_timestamp=%dns, received_timestamp=%dns, values=%s", 111 public void onAccuracyChanged(Sensor sensor, int accuracy) { 112 mListener.onAccuracyChanged(sensor, accuracy) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
RotationVectorDemo.java | 25 import android.hardware.Sensor; 34 * {@link SensorEvent#values rotation vector sensor} 35 * ({@link Sensor#TYPE_ROTATION_VECTOR TYPE_ROTATION_VECTOR}). 37 * @see Sensor 83 private Sensor mRotationVectorSensor; 87 // find the rotation-vector sensor 89 Sensor.TYPE_ROTATION_VECTOR); 100 // enable our sensor when the activity is resumed, ask for 106 // make sure to turn our sensor off when the activity is paused 111 // we received a sensor event. it is a good practice to chec [all...] |
/frameworks/base/core/jni/ |
android_hardware_SensorManager.cpp | 22 #include <gui/Sensor.h> 66 jclass sensorClass = _env->FindClass("android/hardware/Sensor"); 88 nativeGetNextSensor(JNIEnv *env, jclass clazz, jobject sensor, jint next) 92 Sensor const* const* sensorList; 97 Sensor const* const list = sensorList[next]; 103 env->SetObjectField(sensor, sensorOffsets.name, name); 104 env->SetObjectField(sensor, sensorOffsets.vendor, vendor); 105 env->SetIntField(sensor, sensorOffsets.version, list->getVersion()); 106 env->SetIntField(sensor, sensorOffsets.handle, list->getHandle()); 107 env->SetIntField(sensor, sensorOffsets.type, list->getType()) [all...] |
/frameworks/native/services/sensorservice/tests/ |
sensorservicetest.cpp | 17 #include <android/sensor.h> 18 #include <gui/Sensor.h> 46 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) { 66 Sensor const* const* list; 73 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
StepCounterTestActivity.java | 25 import android.hardware.Sensor; 61 private Sensor mSensorStepCounter; 62 private Sensor mSensorStepDetector; 80 mSensorStepCounter = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER); 81 mSensorStepDetector = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR); 207 // sensor not supported, so no-op 215 String sensorName = counterEvent.sensor.getName(); 243 + TestSensorEnvironment.getSensorMaxDetectionLatencyNs(counterEvent.sensor); 248 counterEvent.sensor.getName()); 272 counterEvent.sensor.getName()) [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
ProximitySensor.java | 30 * Class manages the proximity sensor for the in-call UI. 31 * We enable the proximity sensor while the user in a phone call. The Proximity sensor turns off 35 * sensor should be enabled and disabled. Most of that state is fed into this class through 84 // sensor during incoming call screen. We check hasLiveCall() because a disconnected call 126 // Update the Proximity sensor based on keyboard state 155 * Updates the wake lock used to control proximity sensor behavior, 158 * On devices that have a proximity sensor, to avoid false touches 161 * the screen to turn off automatically when the sensor detects an 165 * sensor [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
SystemFeaturesTest.java | 31 import android.hardware.Sensor; 224 * Check that the sensor features reported by the PackageManager correspond to the sensors 231 Sensor.TYPE_ACCELEROMETER); 233 Sensor.TYPE_PRESSURE); 235 Sensor.TYPE_MAGNETIC_FIELD); 237 Sensor.TYPE_GYROSCOPE); 239 Sensor.TYPE_LIGHT); 241 Sensor.TYPE_PROXIMITY); 243 Sensor.TYPE_STEP_COUNTER); 245 Sensor.TYPE_STEP_DETECTOR) [all...] |