Home
last modified time | relevance | path

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

/frameworks/native/include/gui/
DSensorManager.h55 Sensor const* getDefaultSensor(int type);
/frameworks/base/services/sensorservice/tests/
Dsensorservicetest.cpp73 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); in main()
/frameworks/native/libs/gui/
DSensorManager.cpp115 Sensor const* SensorManager::getDefaultSensor(int type) in getDefaultSensor() function in android::SensorManager
/frameworks/base/tests/RenderScriptTests/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()
DWindowOrientationListener.java80 mSensor = mSensorManager.getDefaultSensor(USE_GRAVITY_SENSOR in WindowOrientationListener()
/frameworks/base/native/android/
Dsensor.cpp59 return static_cast<SensorManager*>(manager)->getDefaultSensor(type); in ASensorManager_getDefaultSensor()
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java113 Sensor sensor = mSensorManager.getDefaultSensor(type); in registerLegacyListener()
165 Sensor sensor = mSensorManager.getDefaultSensor(type); in unregisterLegacyListener()
DSensorManager.java427 public Sensor getDefaultSensor(int type) { in getDefaultSensor() method in SensorManager
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_position.jd140 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
193 mOrientation = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
241 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
262 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
283 mProximity = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY);
Dsensors_motion.jd192 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
282 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GRAVITY);
301 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE);
381 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
415 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ROTATION_VECTOR);
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/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSimpleModelView.java56 mRotationVectorSensor = mSensorManager.getDefaultSensor( in SimpleModelView()
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java79 mAcceleration = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in CamGLSurfaceView()
/frameworks/base/services/java/com/android/server/
DPowerManagerService.java3073 mProximitySensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY); in systemReady()
3076 mLightSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LIGHT); in systemReady()
/frameworks/base/docs/html/sdk/api_diff/3/
DmissingSinces.txt200 NO DOC BLOCK: android.hardware.SensorManager Method getDefaultSensor(int)
/frameworks/base/api/
D14.txt9530 method public android.hardware.Sensor getDefaultSensor(int);
D15.txt9566 method public android.hardware.Sensor getDefaultSensor(int);
Dcurrent.txt9851 method public android.hardware.Sensor getDefaultSensor(int);
D16.txt9851 method public android.hardware.Sensor getDefaultSensor(int);