HomeSort by relevance Sort by last modified time
    Searched refs:Sensor (Results 76 - 100 of 309) sorted by null

1 2 34 5 6 7 8 91011>>

  /cts/tests/app/src/android/app/cts/
SystemFeaturesTest.java 33 import android.hardware.Sensor;
274 * Check that the sensor features reported by the PackageManager correspond to the sensors
281 Sensor.TYPE_ACCELEROMETER);
283 Sensor.TYPE_PRESSURE);
285 Sensor.TYPE_MAGNETIC_FIELD);
287 Sensor.TYPE_GYROSCOPE);
289 Sensor.TYPE_LIGHT);
291 Sensor.TYPE_PROXIMITY);
293 Sensor.TYPE_STEP_COUNTER);
295 Sensor.TYPE_STEP_DETECTOR)
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
MagneticFieldMeasurementTestActivity.java 22 import android.hardware.Sensor;
36 * These test cases require calibration of the sensor before performing the verifications.
53 * This test verifies that the Norm of the sensor data is close to the expected reference value.
54 * The units of the reference value are dependent on the type of sensor.
55 * This test is used to verify that the data reported by the sensor is close to the expected
58 * The test takes a sample from the sensor under test and calculates the Euclidean Norm of the
62 * The test is susceptible to errors when the Sensor under test is uncalibrated, or the units in
68 * - the sensor type and sensor handle that caused the failure
70 * - the values sampled from the sensor
    [all...]
HeartRateMonitorTestActivity.java 21 import android.hardware.Sensor;
38 private Sensor mSensor;
54 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE);
111 public void onAccuracyChanged(Sensor sensor, int i) {
  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/
MeanVerification.java 21 import android.hardware.Sensor;
57 * Get the default {@link MeanVerification} for a sensor.
60 * @return the verification or null if the verification does not apply to the sensor.
134 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, new Object[]{
139 DEFAULTS.put(Sensor.TYPE_PRESSURE, new Object[]{
143 DEFAULTS.put(Sensor.TYPE_LINEAR_ACCELERATION, new Object[]{
147 DEFAULTS.put(Sensor.TYPE_GAME_ROTATION_VECTOR, new Object[]{
152 DEFAULTS.put(Sensor.TYPE_GYROSCOPE_UNCALIBRATED, new Object[]{
GyroscopeIntegrationVerification.java 21 import android.hardware.Sensor;
30 * - {@link Sensor#TYPE_GYROSCOPE}
31 * - {@link Sensor#TYPE_GYROSCOPE_UNCALIBRATED}
59 if (sensorType != Sensor.TYPE_GYROSCOPE
60 && sensorType != Sensor.TYPE_GYROSCOPE_UNCALIBRATED) {
MagnitudeVerification.java 21 import android.hardware.Sensor;
63 * Get the default {@link MagnitudeVerification} for a sensor.
66 * @return the verification or null if the verification does not apply to the sensor.
129 DEFAULTS.put(Sensor.TYPE_ACCELEROMETER, new Float[]{SensorManager.STANDARD_GRAVITY, 1.5f});
130 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, new Float[]{0.0f, 1.5f});
132 DEFAULTS.put(Sensor.TYPE_GRAVITY,
  /external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
AppRTCProximitySensor.java 17 import android.hardware.Sensor;
25 * AppRTCProximitySensor manages functions related to the proximity sensor in
27 * On most device, the proximity sensor is implemented as a boolean-sensor.
29 * value i.e. the LUX value of the light sensor is compared with a threshold.
30 * A LUX-value more than the threshold means the proximity sensor returns "FAR".
31 * Anything less than the threshold value and the sensor returns "NEAR".
43 private Sensor proximitySensor = null;
60 * Activate the proximity sensor. Also do initializtion if called for the
67 // Proximity sensor is not supported on this device
    [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...]
  /development/samples/ApiDemos/src/com/example/android/apis/os/
TriggerSensors.java 22 import android.hardware.Sensor;
31 * <h3>Application showing the Trigger Sensor API for the Significant Motion sensor. </h3>
64 // Sensor is auto disabled.
70 private Sensor mSigMotion;
85 // The sensor is auto disabled when triggered.
100 mSigMotion = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION);
  /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...]
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
SensorManagerTest.java 4 import android.hardware.Sensor;
45 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); local
46 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL);
74 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /packages/apps/DevCamera/src/com/android/devcamera/
GyroOperations.java 18 import android.hardware.Sensor;
41 public void onAccuracyChanged(Sensor sensor, int accuracy) {
50 mSensorManager.registerListener(mSensorEventListener, mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), SensorManager.SENSOR_DELAY_FASTEST);
  /cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
SensorDeviceInfo.java 19 import android.hardware.Sensor;
31 * Sensor device info collector.
35 private static final String SENSOR = "sensor";
60 List<Sensor> sensors = sensorManager.getSensorList(Sensor.TYPE_ALL);
61 store.startArray(SENSOR);
62 for (Sensor sensor : sensors) {
64 store.addResult(REPORTING_MODE, sensor.getReportingMode())
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
Compass.java 21 import android.hardware.Sensor;
34 private Sensor mSensor;
48 public void onAccuracyChanged(Sensor sensor, int accuracy) {
56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
  /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?)
  /packages/apps/Dialer/InCallUI/src/com/android/incallui/
AccelerometerListener.java 20 import android.hardware.Sensor;
39 private Sensor mSensor;
44 // mPendingOrientation is the latest orientation computed based on the sensor value.
68 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
121 // If some values are exactly zero, then likely the sensor is not powered up yet.
143 public void onAccuracyChanged(Sensor sensor, int accuracy) {
  /device/google/contexthub/firmware/src/
sensors.c 31 #define SENSOR_RATE_OFF 0x00000000UL /* used in sensor state machine */
32 #define SENSOR_RATE_POWERING_ON 0xFFFFFFF0UL /* used in sensor state machine */
33 #define SENSOR_RATE_POWERING_OFF 0xFFFFFFF1UL /* used in sensor state machine */
34 #define SENSOR_RATE_FW_UPLOADING 0xFFFFFFF2UL /* used in sensor state machine */
43 struct Sensor {
50 uint32_t initComplete:1; /* sensor finished initializing */
51 uint32_t hasOnchange :1; /* sensor supports onchange and wants to be notified to send new clients current state */
52 uint32_t hasOndemand :1; /* sensor supports ondemand and wants to get triggers */
77 static struct Sensor mSensors[MAX_REGISTERED_SENSORS];
109 static struct Sensor* sensorFindByHandle(uint32_t handle
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/
SensorCtsHelper.java 18 import android.hardware.Sensor;
207 "%s | sensor='%s', samplingPeriod=%dus, maxReportLatency=%dus | %s",
216 * @return A {@link File} representing a root directory to store sensor tests data.
224 * Creates the directory structure for the given sensor test data sub-directory.
275 public static String getUnitsForSensor(Sensor sensor) {
276 switch(sensor.getType()) {
277 case Sensor.TYPE_ACCELEROMETER:
279 case Sensor.TYPE_MAGNETIC_FIELD:
280 case Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED
    [all...]
  /development/samples/Compass/src/com/example/android/compass/
CompassActivity.java 30 import android.hardware.Sensor;
77 Sensor gsensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
78 Sensor msensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
205 public void onAccuracyChanged(Sensor sensor, int accuracy) {
209 int type = event.sensor.getType();
211 if (type == Sensor.TYPE_ACCELEROMETER) {
213 } else if (type == Sensor.TYPE_MAGNETIC_FIELD)
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
ProximityClassifier.java 19 import android.hardware.Sensor;
24 * A classifier which looks at the proximity sensor during the gesture. It calculates the percentage
25 * the proximity sensor showing the near state during the whole gesture
44 if (event.sensor.getType() == Sensor.TYPE_PROXIMITY) {
45 update(event.values[0] < event.sensor.getMaximumRange(), event.timestamp);
73 * @param near is the sensor showing the near state right now
  /frameworks/native/services/sensorservice/
CorrectedGyroSensor.cpp 36 mGyro = Sensor(list + i);
41 const sensor_t sensor = { local
42 .name = "Corrected Gyroscope Sensor",
52 mSensor = Sensor(&sensor);
64 outEvent->sensor = '_cgy';
GravitySensor.cpp 35 mAccelerometer = Sensor(list + i);
40 const sensor_t sensor = { local
41 .name = "Gravity Sensor",
51 mSensor = Sensor(&sensor);
64 // translates to an offset in the linear-acceleration sensor.
71 outEvent->sensor = '_grv';
LinearAccelerationSensor.cpp 34 const Sensor &gsensor = mGravitySensor.getSensor();
35 const sensor_t sensor = { local
36 .name = "Linear Acceleration Sensor",
46 mSensor = Sensor(&sensor);
57 outEvent->sensor = '_lin';
  /hardware/bsp/intel/peripheral/sensors/mraa/sensors/
LSM303dAccelerometer.cpp 41 Sensor * LSM303dAccelerometer::createSensor(int pollFd) {
68 double conversion_constant = (double)scale * (double)Sensor::kGravitationalAcceleration / pow(2,15);
  /developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/
BatchStepSensorFragment.java 21 import android.hardware.Sensor;
84 // List of timestamps when sensor events occurred
89 // pointer to next entry in sensor event list
94 // Value of the step counter sensor when the listener was registered.
102 // When a listener is registered, the batch sensor delay in microseconds
135 * higher and has a step counter and step detector sensor.
172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER);
175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER);
178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER);
183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR)
257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local
468 String sensor = "-"; local
    [all...]

Completed in 1631 milliseconds

1 2 34 5 6 7 8 91011>>