Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/policy/
DWakeGestureListener.java46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE); in WakeGestureListener()
DWindowOrientationListener.java87 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare()
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp74 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); in main()
/frameworks/native/include/gui/
DSensorManager.h108 Sensor const* getDefaultSensor(int type);
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
DBalls.java88 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in onResume()
/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){
469 if (mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY) != null){
481 if (mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null){
482 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
561 mLight = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT);
654 if (mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE) != null){
Dsensors_environment.jd120 mPressure = mSensorManager.getDefaultSensor(Sensor.TYPE_PRESSURE);
/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/native/libs/gui/
DSensorManager.cpp112 Sensor const* SensorManager::getDefaultSensor(int type) in getDefaultSensor() function in android::SensorManager
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java113 Sensor sensor = mSensorManager.getDefaultSensor(type); in registerLegacyListener()
165 Sensor sensor = mSensorManager.getDefaultSensor(type); in unregisterLegacyListener()
DSensorManager.java447 public Sensor getDefaultSensor(int type) { in getDefaultSensor() method in SensorManager
493 public Sensor getDefaultSensor(int type, boolean wakeUp) { in getDefaultSensor() method in SensorManager
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSimpleModelView.java56 mRotationVectorSensor = mSensorManager.getDefaultSensor( in SimpleModelView()
/frameworks/base/native/android/
Dsensor.cpp72 return static_cast<SensorManager*>(manager)->getDefaultSensor(type); in ASensorManager_getDefaultSensor()
/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.java482 mSensor = mSensors.getDefaultSensor(type); in TriggerSensor()
578 final Sensor sensor = mSensors.getDefaultSensor(Sensor.TYPE_PROXIMITY);
/frameworks/base/services/core/java/com/android/server/
DAnyMotionDetector.java115 mAccelSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in AnyMotionDetector()
DDeviceIdleController.java885 mSigMotionSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); in onBootPhase()
/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.java218 mLightSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in AutomaticBrightnessController()
DDisplayPowerController.java361 mProximitySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in DisplayPowerController()
/frameworks/base/docs/html/sdk/api_diff/21/
DmissingSinces.txt430 NO DOC BLOCK: android.hardware.SensorManager Method getDefaultSensor(int, boolean)

12