/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorTest.java | 128 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testSensorOperations() 140 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER); in testSensorOperations() 152 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR); in testSensorOperations() 164 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); in testSensorOperations() 176 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); in testSensorOperations() 188 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE); in testSensorOperations() 200 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); in testSensorOperations() 207 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_TEMPERATURE); in testSensorOperations() 214 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HINGE_ANGLE); in testSensorOperations() 231 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE); in testBodySensorOperations() [all …]
|
D | SensorBatchingFifoTest.java | 80 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in getReservedFifoLength() 89 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in runBatchingSensorFifoTest()
|
D | SensorSupportTest.java | 163 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in checkHifiVrSensorSupport() 172 return (mSensorManager != null && mSensorManager.getDefaultSensor(sensorType) != null); in hasSensorType()
|
D | SensorParameterRangeTest.java | 173 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in checkSensorRangeAndFrequency() 233 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in checkMinFifoLength()
|
D | SensorDirectReportTest.java | 610 Sensor s = mSensorManager.getDefaultSensor(type); in testCloseWithoutConfigStop() 730 Sensor s = mSensorManager.getDefaultSensor(sensorType); in runSensorDirectReportTest() 760 Sensor s = mSensorManager.getDefaultSensor(sensorType); in runSensorDirectReportUidIdleTest() 813 Sensor s1 = mSensorManager.getDefaultSensor(type1); in runSingleChannelRateIndependencyTest() 814 Sensor s2 = mSensorManager.getDefaultSensor(type2); in runSingleChannelRateIndependencyTest() 867 Sensor s = mSensorManager.getDefaultSensor(type); in runMultiChannelRateIndependencyTest() 924 final Sensor s = mSensorManager.getDefaultSensor(type); in runMultiModeRateIndependencyTest() 977 Sensor s = mSensorManager.getDefaultSensor(type); in runTimestampTest() 1022 Sensor s = mSensorManager.getDefaultSensor(sensorType); in runAtomicCounterTest() 1052 Sensor s = mSensorManager.getDefaultSensor(type); in runReconfigureTest()
|
/cts/tests/tests/view/src/android/view/cts/input/ |
D | InputDeviceSensorManagerTest.java | 362 private Sensor getDefaultSensor(int sensorType) { in getDefaultSensor() method in InputDeviceSensorManagerTest 363 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in getDefaultSensor() 400 getDefaultSensor(Sensor.TYPE_ACCELEROMETER) in testAccelerometerSensorListener() 409 getDefaultSensor(Sensor.TYPE_GYROSCOPE) in testGyroscopeSensorListener() 417 getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in testAllSensorsListeners() 418 getDefaultSensor(Sensor.TYPE_GYROSCOPE) in testAllSensorsListeners() 442 assertNull(mSensorManager.getDefaultSensor(type)); in testUnsupportedSensorTypes() 468 final Sensor accelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testDynamicSensorAPIs()
|
/cts/tests/sensor/sensorratepermission/ReturnedRateInfo/src/android/sensorratepermission/cts/returnedrateinfo/ |
D | ReturnedRateInfoTest.java | 68 Sensor s = mSensorManager.getDefaultSensor(sensorType); in testGetMinDelayMethod() 95 Sensor s = mSensorManager.getDefaultSensor(sensorType); in testGetHighestDirectReportRateLevelMethod()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | DeviceSuspendTestActivity.java | 175 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER, true); in testAPWakeUpWhenReportLatencyExpiresAccel() 183 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE, true); in testAPWakeUpWhenReportLatencyExpiresGyro() 191 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD,true); in testAPWakeUpWhenReportLatencyExpiresMag() 199 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER, true); in testAPWakeUpWhenFIFOFullAccel() 207 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE, true); in testAPWakeUpWhenFIFOFullGyro() 215 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD,true); in testAPWakeUpWhenFIFOFullMag() 223 Sensor accel = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testAccelBatchingInAPSuspendLargeReportLatency() 231 Sensor accel = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testAccelBatchingInAPSuspendZeroReportLatency()
|
D | SensorSynchronizationTestActivity.java | 48 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in startDataCollection() 51 mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD), in startDataCollection() 54 mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), in startDataCollection()
|
D | RotationVectorTestActivity.java | 169 mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR); in onCreate() 171 mSensorManager.getDefaultSensor(Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR); in onCreate() 173 mSensorManager.getDefaultSensor(Sensor.TYPE_GAME_ROTATION_VECTOR); in onCreate()
|
D | EventSanitizationTestActivity.java | 63 final Sensor sensor = sensorManager.getDefaultSensor( in testNoTriggerEventsWhileUidIdle() 107 final Sensor sensor = sensorManager.getDefaultSensor( in testNoOnChangeEventsWhileUidIdle()
|
D | HingeAngleTestActivity.java | 55 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HINGE_ANGLE); in verifyMeasurements()
|
D | StepSensorPermissionTestActivity.java | 171 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in checkSensor() 214 mAccel = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in AccelRecorder()
|
D | OffBodySensorTestActivity.java | 292 mOffBodySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LOW_LATENCY_OFFBODY_DETECT, in activitySetUp() 361 Sensor wakeUpSensor = mSensorManager.getDefaultSensor( in testOffbodyDetectResponseTime() 370 Sensor wakeUpSensor = mSensorManager.getDefaultSensor( in testOnbodyDetectResponseTime() 379 Sensor wakeUpSensor = mSensorManager.getDefaultSensor( in testWakeAPOffbodyDetect()
|
D | HeartRateMonitorTestActivity.java | 54 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE); in onCreate()
|
D | StepCounterTestActivity.java | 80 mSensorStepCounter = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER); in activitySetUp() 81 mSensorStepDetector = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR); in activitySetUp()
|
/cts/tests/sensor/sensorratepermission/DebuggableAPI31/src/android/sensorratepermission/cts/debuggableapi31/ |
D | DebuggableAPI31Test.java | 71 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in testRegisterListener() 95 Sensor s = mSensorManager.getDefaultSensor(sensorType); in testDirectChannel()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/PoseProvider/ |
D | AndroidPoseProvider.java | 56 m6DoFSensor = mSensorManager.getDefaultSensor(SENSOR_TYPE_POSE); in onStartPoseProviding()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | OrientationEventListenerTest.java | 65 boolean hasSensor = (sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null); in testCanDetectOrientation()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | MovementDetectorHelper.java | 52 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in MovementDetectorHelper()
|
/cts/tests/sensor/jni/ |
D | SensorTest.h | 58 TestSensor getDefaultSensor(int type);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/ |
D | StartActivity.java | 62 if (sensorManager.getDefaultSensor(Sensor.TYPE_POSE_6DOF) == null) { in onCreate()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | EventBasicVerificationTest.java | 47 Sensor sensor2 = mgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testVerify()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | PowerTestHostLink.java | 214 if (mSensorManager.getDefaultSensor(sensorId) == null) { in processClientRequest() 399 mSensorManager.getDefaultSensor(sensorId), rateUs); in switchSensor() 404 mSensorManager.getDefaultSensor(sensorId)); in switchSensor()
|
/cts/tests/sensor/sensorratepermission/EventConnectionAPI31/src/android/sensorratepermission/cts/eventconnectionapi31/ |
D | EventConnectionAPI31Test.java | 74 Sensor sensor = sensorManager.getDefaultSensor(sensorType); in setUp()
|