Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDynamicSensorDiscoveryTestActivity.java157 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 …]
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()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DTestSensorEnvironment.java41 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/
DEventBasicVerification.java50 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/
DSensorAdditionalInfoTest.java116 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()