Home
last modified time | relevance | path

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

12

/frameworks/native/include/gui/
DSensorManager.h59 Sensor const* getDefaultSensor(int type);
/frameworks/base/services/core/java/com/android/server/policy/
DWakeGestureListener.java46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE); in WakeGestureListener()
DWindowOrientationListener.java90 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DEVICE_ORIENTATION); in WindowOrientationListener()
97 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener()
/frameworks/base/services/core/java/com/android/server/
DSensorNotificationService.java55 mMetaSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_DYNAMIC_SENSOR_META); in onBootPhase()
DGestureLauncherService.java196 mCameraLaunchSensor = sensorManager.getDefaultSensor( in registerCameraLaunchGesture()
DAnyMotionDetector.java116 mAccelSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in AnyMotionDetector()
DDeviceIdleController.java1371 mMotionSensor = mSensorManager.getDefaultSensor(sigMotionSensorId, true); in onBootPhase()
1375 mMotionSensor = mSensorManager.getDefaultSensor( in onBootPhase()
1380 mMotionSensor = mSensorManager.getDefaultSensor( in onBootPhase()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare()
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_position.jd206 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GAME_ROTATION_VECTOR);
227 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GEOMAGNETIC_ROTATION_VECTOR);
242 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
295 mOrientation = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
343 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
381 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED);
393 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
414 mProximity = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
Dsensors_motion.jd240 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
330 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
349 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);
445 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE_UNCALIBRATED);
459 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
493 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);
548 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION);
575 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER);
590 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR);
Dsensors_overview.jd421 android.hardware.SensorManager#getDefaultSensor getDefaultSensor()} method and passing in the type
430 if (mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD) != null){
470 if (mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY) != null){
482 if (mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null){
483 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
562 mLight = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT);
655 if (mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE) != null){
Dsensors_environment.jd120 mPressure = mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE);
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp74 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); in main()
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
DBalls.java88 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in onResume()
/frameworks/base/core/java/android/view/
DOrientationEventListener.java71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in OrientationEventListener()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DMotionSensorWTime.java62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare()
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java113 Sensor sensor = mSensorManager.getDefaultSensor(type); in registerLegacyListener()
165 Sensor sensor = mSensorManager.getDefaultSensor(type); in unregisterLegacyListener()
DSensorManager.java485 public Sensor getDefaultSensor(int type) { in getDefaultSensor() method in SensorManager
531 public Sensor getDefaultSensor(int type, boolean wakeUp) { in getDefaultSensor() method in SensorManager
/frameworks/base/native/android/
Dsensor.cpp68 return static_cast<SensorManager*>(manager)->getDefaultSensor(type); in ASensorManager_getDefaultSensor()
/frameworks/native/libs/gui/
DSensorManager.cpp187 Sensor const* SensorManager::getDefaultSensor(int type) in getDefaultSensor() function in android::SensorManager
/frameworks/base/services/core/java/com/android/server/power/
DWirelessChargerDetector.java149 mGravitySensor = sensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY); in WirelessChargerDetector()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeService.java496 mSensor = mSensors.getDefaultSensor(type); in TriggerSensor()
592 final Sensor sensor = mSensors.getDefaultSensor(Sensor.TYPE_PROXIMITY);
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingManager.java152 Sensor s = mSensorManager.getDefaultSensor(sensorType); in registerSensors()
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java79 mAcceleration = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in CamGLSurfaceView()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java216 mLightSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in AutomaticBrightnessController()

12