/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | DynamicSensorDiscoveryTestActivity.java | 157 private Sensor mSensor = null; field in DynamicSensorDiscoveryTestActivity.Callback 163 mSensor = sensor; in onDynamicSensorConnected() 164 Log.d(TAG, "Sensor Connected: " + mSensor); in onDynamicSensorConnected() 173 if (mSensor == sensor) { in onDynamicSensorDisconnected() 174 mSensor = null; in onDynamicSensorDisconnected() 210 if (mSensor == null) { in waitForSensorEvent() 226 eventCallback, mSensor, SensorManager.SENSOR_DELAY_FASTEST)) { in waitForSensorEvent() 246 mSensorManager.getDynamicSensorList(Sensor.TYPE_ALL).contains(mSensor); in isSensorInList() 253 mSensorManager.getDynamicSensorList(mSensor.getType()).contains(mSensor); in isSensorInListOfSpecificType() 257 return assumeSensorIsSet() ? mSensor.getId() : null; in getSensorId() [all …]
|
D | RotationVectorTestActivity.java | 72 private final Sensor[] mSensor = new Sensor[3]; field in RotationVectorTestActivity 80 if (mSensor[ROTATION_VECTOR_INDEX] == null in activitySetUp() 81 && mSensor[GEOMAGNETIC_ROTATION_VECTOR_INDEX] == null in activitySetUp() 82 && mSensor[GAME_ROTATION_VECTOR_INDEX] == null) { in activitySetUp() 126 Sensor sensor = mSensor[sensorIndex]; in verifyVector() 168 mSensor[ROTATION_VECTOR_INDEX] = in onCreate() 170 mSensor[GEOMAGNETIC_ROTATION_VECTOR_INDEX] = in onCreate() 172 mSensor[GAME_ROTATION_VECTOR_INDEX] = in onCreate() 198 Sensor sensor = mSensor[i]; in onResume() 208 mSensorManager.registerListener(this, mSensor[i], SensorManager.SENSOR_DELAY_GAME); in onResume()
|
D | HeartRateMonitorTestActivity.java | 38 private Sensor mSensor; field in HeartRateMonitorTestActivity 54 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE); in onCreate() 61 if (!mSensorManager.registerListener(mSensorListener, mSensor, in onResume() 71 mSensorManager.unregisterListener(mSensorListener, mSensor); in onPause()
|
D | GyroscopeTestActivity.java | 49 private Sensor mSensor; field in GyroscopeTestActivity 76 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); in onCreate() 150 if (!mSensorManager.registerListener(mSensorListener, mSensor, in onResume() 159 mSensorManager.unregisterListener(mSensorListener, mSensor); in onPause()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | TestSensorEnvironment.java | 41 private final Sensor mSensor; field in TestSensorEnvironment 244 mSensor = sensor; in TestSensorEnvironment() 263 return mSensor; in getSensor() 321 int sensorMaxDelay = mSensor.getMaxDelay(); in getExpectedSamplingPeriodUs() 326 return Math.max(expectedSamplingPeriodUs, mSensor.getMinDelay()); in getExpectedSamplingPeriodUs() 339 int sensorReportingMode = mSensor.getReportingMode(); in getMaximumExpectedSamplingPeriodUs() 366 switch (mSensor.getType()) { in getSensorAxesCount() 371 + mSensor.getStringType()); in getSensorAxesCount() 437 mSensor, in toString()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensorverification/ |
D | EventBasicVerification.java | 50 private final Object mSensor; field in EventBasicVerification 64 mSensor = sensor; in EventBasicVerification() 194 return new EventBasicVerification( mExpectedMinNumEvent, (Sensor)mSensor ); in clone() 202 if (event.sensor == mSensor) { in addSensorEventInternal()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | SensorAdditionalInfoTest.java | 116 private final Sensor mSensor; field in SensorAdditionalInfoTest.AdditionalInfoVerifier 119 mSensor = s; in AdditionalInfoVerifier() 124 if (sensor == mSensor) { in onFlushCompleted() 131 if (info.sensor == mSensor && !mFlushPending) { in onSensorAdditionalInfo()
|