Home
last modified time | relevance | path

Searched refs:getDefaultSensor (Results 1 – 25 of 38) sorted by relevance

12

/cts/tests/sensor/src/android/hardware/cts/
DSensorTest.java135 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testSensorOperations_accelerometer()
149 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER); in testSensorOperations_stepCounter()
163 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR); in testSensorOperations_stepDetector()
177 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); in testSensorOperations_magneticField()
192 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); in testSensorOperations_gyroscope()
206 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE); in testSensorOperations_pressure()
221 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); in testSensorOperations_orientation()
231 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_TEMPERATURE); in testSensorOperations_temperature()
240 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HINGE_ANGLE); in testSensorOperations_hingeAngle()
278 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in validateLimitedAxesImuSensorType()
[all …]
DSensorBatchingFifoTest.java80 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in getReservedFifoLength()
89 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in runBatchingSensorFifoTest()
DSensorSupportTest.java163 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in checkHifiVrSensorSupport()
172 return (mSensorManager != null && mSensorManager.getDefaultSensor(sensorType) != null); in hasSensorType()
DSensorParameterRangeTest.java173 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in checkSensorRangeAndFrequency()
233 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in checkMinFifoLength()
DSensorDirectReportTest.java610 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/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/
DVirtualSensorTest.java215 Sensor sensor = mVirtualDeviceSensorManager.getDefaultSensor(TYPE_ACCELEROMETER); in getSensorList_returnsVirtualSensor()
217 Sensor defaultDeviceSensor = mSensorManager.getDefaultSensor(TYPE_ACCELEROMETER); in getSensorList_returnsVirtualSensor()
305 Sensor sensor = mVirtualDeviceSensorManager.getDefaultSensor(TYPE_ACCELEROMETER); in closeVirtualDevice_removesSensor()
306 Sensor defaultDeviceSensor = mSensorManager.getDefaultSensor(TYPE_ACCELEROMETER); in closeVirtualDevice_removesSensor()
317 Sensor sensor = mVirtualDeviceSensorManager.getDefaultSensor(TYPE_ACCELEROMETER); in registerListener_triggersVirtualSensorCallback()
350 Sensor sensor = mVirtualDeviceSensorManager.getDefaultSensor(TYPE_ACCELEROMETER); in sendEvent_reachesRegisteredListeners()
380 Sensor sensor = mVirtualDeviceSensorManager.getDefaultSensor(TYPE_ACCELEROMETER); in sendEvent_explicitTimestampSpecified()
402 Sensor sensor = mVirtualDeviceSensorManager.getDefaultSensor(TYPE_ACCELEROMETER); in sendEvent_invalidValues_eventIsDropped()
429 Sensor sensor = mVirtualDeviceSensorManager.getDefaultSensor(CUSTOM_SENSOR_TYPE); in virtualSensor_arbitrarySensorType()
462 Sensor sensor = mVirtualDeviceSensorManager.getDefaultSensor(TYPE_ACCELEROMETER); in directConnection_memoryFile_notSupported()
[all …]
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceSensorManagerTest.java365 private Sensor getDefaultSensor(int sensorType) { in getDefaultSensor() method in InputDeviceSensorManagerTest
366 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in getDefaultSensor()
438 getDefaultSensor(Sensor.TYPE_ACCELEROMETER) in testAccelerometerSensorListener()
447 getDefaultSensor(Sensor.TYPE_GYROSCOPE) in testGyroscopeSensorListener()
455 getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in testAllSensorsListeners()
456 getDefaultSensor(Sensor.TYPE_GYROSCOPE) in testAllSensorsListeners()
480 assertNull(mSensorManager.getDefaultSensor(type)); in testUnsupportedSensorTypes()
506 final Sensor accelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testDynamicSensorAPIs()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java152 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER, true); in testAPWakeUpWhenReportLatencyExpiresAccel()
160 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE, true); in testAPWakeUpWhenReportLatencyExpiresGyro()
168 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD,true); in testAPWakeUpWhenReportLatencyExpiresMag()
176 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER, true); in testAPWakeUpWhenFIFOFullAccel()
184 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE, true); in testAPWakeUpWhenFIFOFullGyro()
192 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD,true); in testAPWakeUpWhenFIFOFullMag()
200 Sensor accel = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testAccelBatchingInAPSuspendLargeReportLatency()
208 Sensor accel = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testAccelBatchingInAPSuspendZeroReportLatency()
DSensorSynchronizationTestActivity.java48 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in startDataCollection()
51 mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD), in startDataCollection()
54 mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), in startDataCollection()
DRotationVectorTestActivity.java169 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()
DEventSanitizationTestActivity.java63 final Sensor sensor = sensorManager.getDefaultSensor( in testNoTriggerEventsWhileUidIdle()
107 final Sensor sensor = sensorManager.getDefaultSensor( in testNoOnChangeEventsWhileUidIdle()
DHingeAngleTestActivity.java55 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HINGE_ANGLE); in verifyMeasurements()
DStepSensorPermissionTestActivity.java171 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in checkSensor()
214 mAccel = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in AccelRecorder()
DOffBodySensorTestActivity.java292 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()
DStepCounterTestActivity.java80 mSensorStepCounter = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER); in activitySetUp()
81 mSensorStepDetector = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR); in activitySetUp()
DHeartRateMonitorTestActivity.java54 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE); in onCreate()
/cts/tests/sensor/sensorratepermission/ReturnedRateInfo/src/android/sensorratepermission/cts/returnedrateinfo/
DReturnedRateInfoTest.java68 Sensor s = mSensorManager.getDefaultSensor(sensorType); in testGetMinDelayMethod()
95 Sensor s = mSensorManager.getDefaultSensor(sensorType); in testGetHighestDirectReportRateLevelMethod()
/cts/tests/sensor/sensorratepermission/DebuggableAPI31/src/android/sensorratepermission/cts/debuggableapi31/
DDebuggableAPI31Test.java71 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/
DAndroidPoseProvider.java56 m6DoFSensor = mSensorManager.getDefaultSensor(SENSOR_TYPE_POSE); in onStartPoseProviding()
/cts/tests/tests/view/src/android/view/cts/
DOrientationEventListenerTest.java67 boolean hasSensor = (sm.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null); in testCanDetectOrientation()
/cts/tests/sensor/src/android/hardware/cts/helpers/
DMovementDetectorHelper.java52 mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in MovementDetectorHelper()
/cts/tests/sensor/jni/
DSensorTest.h58 TestSensor getDefaultSensor(int type);
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DEventBasicVerificationTest.java47 Sensor sensor2 = mgr.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testVerify()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/
DStartActivity.java62 if (sensorManager.getDefaultSensor(Sensor.TYPE_POSE_6DOF) == null) { in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java214 if (mSensorManager.getDefaultSensor(sensorId) == null) { in processClientRequest()
399 mSensorManager.getDefaultSensor(sensorId), rateUs); in switchSensor()
404 mSensorManager.getDefaultSensor(sensorId)); in switchSensor()

12