Home
last modified time | relevance | path

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

12

/cts/tests/sensor/src/android/hardware/cts/
DSensorTest.java114 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testSensorOperations()
125 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER); in testSensorOperations()
136 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR); in testSensorOperations()
147 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_HEART_RATE); in testSensorOperations()
158 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); in testSensorOperations()
169 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); in testSensorOperations()
176 sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_TEMPERATURE); in testSensorOperations()
228 Sensor curr_sensor = mSensorManager.getDefaultSensor(sensor.getType(), false); in testGetDefaultSensorWithWakeUpFlag()
235 curr_sensor = mSensorManager.getDefaultSensor(sensor.getType(), true); in testGetDefaultSensorWithWakeUpFlag()
256 mTriggerSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testRequestTriggerWithNonTriggerSensor()
[all …]
DSensorParameterRangeTest.java80 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in testAccelerometerRange()
88 mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE), in testGyroscopeRange()
96 mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD), in testMagnetometerRange()
105 mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE), in testPressureRange()
165 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in checkMinFifoLength()
DSensorBatchingFifoTest.java80 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in getReservedFifoLength()
89 Sensor sensor = mSensorManager.getDefaultSensor(sensorType); in runBatchingSensorFifoTest()
DSensorSupportTest.java113 assertTrue(mSensorManager.getDefaultSensor(sensorType) != null); in checkSupportsSensor()
DSensorDirectReportTest.java259 Sensor s = mSensorManager.getDefaultSensor(sensorType); in runSensorDirectReportTest()
DSingleSensorTests.java124 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey()); in testSensorProperties()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java126 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER, true); in testAPWakeUpWhenReportLatencyExpiresAccel()
134 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE, true); in testAPWakeUpWhenReportLatencyExpiresGyro()
142 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD,true); in testAPWakeUpWhenReportLatencyExpiresMag()
150 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER, true); in testAPWakeUpWhenFIFOFullAccel()
158 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE, true); in testAPWakeUpWhenFIFOFullGyro()
166 Sensor wakeUpSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD,true); in testAPWakeUpWhenFIFOFullMag()
174 Sensor accel = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in testAccelBatchingInAPSuspendLargeReportLatency()
182 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()
DOffBodySensorTestActivity.java291 mOffBodySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LOW_LATENCY_OFFBODY_DETECT, in activitySetUp()
360 Sensor wakeUpSensor = mSensorManager.getDefaultSensor( in testOffbodyDetectResponseTime()
369 Sensor wakeUpSensor = mSensorManager.getDefaultSensor( in testOnbodyDetectResponseTime()
378 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()
DRVCVRecordActivity.java711 mAccSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in init()
712 mGyroSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE_UNCALIBRATED); in init()
713 mMagSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED); in init()
830 mRVSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR); in init()
DGyroscopeTestActivity.java76 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); in onCreate()
DSignificantMotionTestActivity.java289 mSensorSignificantMotion = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION);
/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.java64 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()
DTestSensorEnvironment.java389 Sensor sensor = sensorManager.getDefaultSensor(sensorType); in getSensor()
/cts/tests/sensor/jni/
DSensorTest.h58 TestSensor getDefaultSensor(int type);
DSensorTest.cpp53 TestSensor TestSensorManager::getDefaultSensor(int type) { in getDefaultSensor() function in android::SensorTest::TestSensorManager
DSensorTestCases.cpp150 TestSensor sensor = mManager->getDefaultSensor(sensorType); in testDirectReport()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Activities/
DStartActivity.java62 if (sensorManager.getDefaultSensor(Sensor.TYPE_POSE_6DOF) == null) { in onCreate()
/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/helpers/
DPowerTestHostLink.java214 if (mSensorManager.getDefaultSensor(sensorId) == null) { in processClientRequest()
399 mSensorManager.getDefaultSensor(sensorId), rateUs); in switchSensor()
404 mSensorManager.getDefaultSensor(sensorId)); in switchSensor()

12