Home
last modified time | relevance | path

Searched refs:mSensor (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DTestSensorEnvironment.java39 private final Sensor mSensor; field in TestSensorEnvironment
183 mSensor = sensor; in TestSensorEnvironment()
201 return mSensor; in getSensor()
259 int sensorMaxDelay = mSensor.getMaxDelay(); in getExpectedSamplingPeriodUs()
264 return Math.max(expectedSamplingPeriodUs, mSensor.getMinDelay()); in getExpectedSamplingPeriodUs()
276 int sensorReportingMode = mSensor.getReportingMode(); in getMaximumExpectedSamplingPeriodUs()
289 switch (mSensor.getType()) { in getSensorAxesCount()
294 + mSensor.getStringType()); in getSensorAxesCount()
360 mSensor, in toString()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRotationVectorTestActivity.java72 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()
DHeartRateMonitorTestActivity.java38 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()
DGyroscopeTestActivity.java49 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()