/cts/tests/sensor/jni/ |
D | SensorTest.h | 77 TestSensor(ASensor const *s) : mSensor(s) { } in TestSensor() 83 return ASensor_getType(mSensor); in getType() 90 return ASensor_isDirectChannelTypeSupported(mSensor, channelType); in isDirectChannelTypeSupported() 97 return ASensor_getHighestDirectReportRateLevel(mSensor); in getHighestDirectReportRateLevel() 100 operator ASensor const * () { return mSensor; } 102 bool isValid() const { return mSensor != nullptr; } in isValid() 104 ASensor const * mSensor;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
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 | DynamicSensorDiscoveryTestActivity.java | 158 private Sensor mSensor = null; field in DynamicSensorDiscoveryTestActivity.Callback 168 mSensor = sensor; in onDynamicSensorConnected() 177 if (mSensor == sensor) { in onDynamicSensorDisconnected() 178 mSensor = null; in onDynamicSensorDisconnected() 215 if (mSensor == null) { in waitForSensorEvent() 231 eventCallback, mSensor, SensorManager.SENSOR_DELAY_FASTEST)) { in waitForSensorEvent() 251 mSensorManager.getDynamicSensorList(Sensor.TYPE_ALL).contains(mSensor); in isSensorInList() 258 mSensorManager.getDynamicSensorList(mSensor.getType()).contains(mSensor); in isSensorInListOfSpecificType() 262 return assumeSensorIsSet() ? mSensor.getId() : null; in getSensorId() 267 if (mSensor == null) { in assumeSensorIsSet()
|
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/sensor/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/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | EventBasicVerification.java | 52 private final Object mSensor; field in EventBasicVerification 66 mSensor = sensor; in EventBasicVerification() 196 return new EventBasicVerification( mExpectedMinNumEvent, (Sensor)mSensor ); in clone() 204 if (event.sensor == mSensor) { in addSensorEventInternal()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorAdditionalInfoTest.java | 184 private final Sensor mSensor; field in SensorAdditionalInfoTest.AdditionalInfoVerifier 187 mSensor = s; in AdditionalInfoVerifier() 192 if (sensor == mSensor) { in onFlushCompleted() 199 if (info.sensor == mSensor && !mFlushPending) { in onSensorAdditionalInfo()
|
D | SensorDirectReportTest.java | 1599 Sensor mSensor; 1602 mSensor = s; 1611 if (mSensor == null || event.sensor == mSensor) {
|