/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
TestSensorEvent.java | 19 import android.hardware.Sensor; 30 public final Sensor sensor; field in class:TestSensorEvent 40 * @param event the received sensor event 55 sensor = event.sensor; 65 public TestSensorEvent(Sensor sensor, long timestamp, int accuracy, float[] values) { 66 this(sensor, timestamp, timestamp, accuracy, values); 72 public TestSensorEvent(Sensor sensor, long timestamp, long receivedTimestamp, int accuracy [all...] |
TestSensorEnvironment.java | 20 import android.hardware.Sensor; 28 * The environment is self contained and carries its state around all the sensor test framework. 33 * It represents the fraction of the expected sampling frequency, at which the sensor can 39 private final Sensor mSensor; 45 * Constructs an environment for sensor testing. 48 * @param sensorType The type of the sensor under test 49 * @param samplingPeriodUs The requested collection period for the sensor under test 51 * @deprecated Use variants with {@link Sensor} objects. 59 * Constructs an environment for sensor testing. 62 * @param sensorType The type of the sensor under tes 286 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
FrequencyVerification.java | 21 import android.hardware.Sensor; 31 * A {@link ISensorVerification} which verifies that the sensor frequency are within the expected 62 * Get the default {@link FrequencyVerification} for a sensor. 65 * @return the verification or null if the verification does not apply to the sensor. 68 Sensor sensor = environment.getSensor(); local 69 if (sensor.getReportingMode() != Sensor.REPORTING_MODE_CONTINUOUS) { 75 sensor.getName(), 76 sensor.getMinDelay() [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
RotationVectorTestActivity.java | 26 import android.hardware.Sensor; 72 private final Sensor[] mSensor = new Sensor[3]; 120 * Verifies that a given 'Rotation Vector' sensor does not drift over time. 126 Sensor sensor = mSensor[sensorIndex]; local 127 if (sensor == null) { 150 return verifyVector(ROTATION_VECTOR_INDEX, Sensor.TYPE_ROTATION_VECTOR); 156 Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR); 160 return verifyVector(GAME_ROTATION_VECTOR_INDEX, Sensor.TYPE_GAME_ROTATION_VECTOR) 198 Sensor sensor = mSensor[i]; local [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
SensorIntegrationTests.java | 19 import android.hardware.Sensor; 42 * This test focuses in the interaction of continuous and batching clients for the same Sensor 43 * under test. The verification ensures that sensor clients can interact with the System and 51 * that the sensors must be independent. Activating one sensor should not cause another sensor 59 * - the sensor type and sensor handle that caused the failure 61 * It is important to look at the internals of the Sensor HAL to identify how the interaction 70 Sensor.TYPE_ACCELEROMETER, 71 Sensor.TYPE_MAGNETIC_FIELD 86 Sensor sensor = TestSensorEnvironment.getSensor(context, sensorType); local 264 Sensor sensor = TestSensorEnvironment.getSensor(getContext(), sensorType); local [all...] |
SensorTest.java | 25 import android.hardware.Sensor; 63 private List<Sensor> mSensorList; 75 mSensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); 97 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 100 // accelerometer sensor is optional 102 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType()); 103 assertSensorValues(sensor); 237 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 246 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 255 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local 267 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 309 Sensor sensor = null; local [all...] |
SingleSensorTests.java | 20 import android.hardware.Sensor; 39 * For each sensor that reports continuously, it takes a set of samples. The test suite verifies 40 * that the event ordering, frequency, and jitter pass for the collected sensor events. It 41 * additionally tests that the mean, standard deviation, and magnitude are correct for the sensor 44 * The event ordering test verifies the ordering of the sampled data reported by the Sensor under 45 * test. This test is used to guarantee that sensor data is reported in the order it occurs, and 49 * if the sensor sampled data is not timestamped at the hardware level. Or events sampled at high 52 * The frequency test verifies that the sensor under test can sample and report data at the maximum 55 * susceptible to errors if the sensor is not capable to sample data at the maximum rate it 56 * supports, or the sensor events are not timestamped at the hardware level 117 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey()); local [all...] |
/development/ndk/platforms/android-19/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. 111 int32_t sensor; member in struct:AMetaDataEvent 136 int32_t sensor; member in struct:ASensorEvent 177 * Get a reference to the sensor manager. ASensorManager is a singleton. 193 * Returns the default sensor for the given type, or NULL if no sensor [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...] |
/cts/tests/tests/app/src/android/app/cts/ |
SystemFeaturesTest.java | 31 import android.hardware.Sensor; 273 * Check that the sensor features reported by the PackageManager correspond to the sensors 280 Sensor.TYPE_ACCELEROMETER); 282 Sensor.TYPE_PRESSURE); 284 Sensor.TYPE_MAGNETIC_FIELD); 286 Sensor.TYPE_GYROSCOPE); 288 Sensor.TYPE_LIGHT); 290 Sensor.TYPE_PROXIMITY); 292 Sensor.TYPE_STEP_COUNTER); 294 Sensor.TYPE_STEP_DETECTOR) [all...] |
/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...] |
/developers/samples/android/sensors/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...] |
/development/samples/browseable/BatchStepSensor/src/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...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
PowerTestHostLink.java | 22 import android.hardware.Sensor; 203 final String REQUEST_SENSOR_ON = "SENSOR ON "; 204 final String REQUEST_SENSOR_OFF = "SENSOR OFF"; 205 final String REQUEST_SENSOR_AVAILABILITY = "SENSOR? "; 212 final String sensor = request.substring(REQUEST_SENSOR_AVAILABILITY.length()); local 213 final int sensorId = getSensorId(sensor); 331 Log.e(TAG, "Unknown sensor in request: " + sensorName); 337 Log.e(TAG, "Improperly formatted command received on setting sensor state"); 347 sensorId = Sensor.TYPE_ACCELEROMETER; 349 sensorId = Sensor.TYPE_AMBIENT_TEMPERATURE [all...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
DeviceSensors.java | 8 import android.hardware.Sensor; 71 Sensor.TYPE_ROTATION_VECTOR); 74 Sensor.TYPE_ACCELEROMETER, 75 Sensor.TYPE_LINEAR_ACCELERATION, 76 Sensor.TYPE_GYROSCOPE); 78 Sensor.TYPE_LIGHT); 91 * Start listening for sensor events. If this object is already listening 189 public void onAccuracyChanged(Sensor sensor, int accuracy) { 195 sensorChanged(event.sensor.getType(), event.values) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
ItsService.java | 34 import android.hardware.Sensor; 166 public Sensor sensor; field in class:ItsService.MySensorEvent 172 // For capturing motion sensor traces. 174 private Sensor mAccelSensor = null; 175 private Sensor mMagSensor = null; 176 private Sensor mGyroSensor = null; 208 mAccelSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 209 mMagSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); 210 mGyroSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE) [all...] |
/external/chromium_org/third_party/libaddressinput/src/java/ |
android.jar | |