Searched defs:getDefaultSensor (Results 1 - 2 of 2) sorted by relevance

/frameworks/native/libs/gui/
H A DSensorManager.cpp115 Sensor const* SensorManager::getDefaultSensor(int type) function in class:android::SensorManager
/frameworks/base/core/java/android/hardware/
H A DSensorManager.java53 * mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
404 * @see #getDefaultSensor(int)
445 public Sensor getDefaultSensor(int type) { method in class:SensorManager
470 * <li>getDefaultSensor({@link Sensor#TYPE_ACCELEROMETER}, true) returns a wake-up accelerometer
472 * <li>getDefaultSensor({@link Sensor#TYPE_PROXIMITY}, false) returns a non wake-up proximity
474 * <li>getDefaultSensor({@link Sensor#TYPE_PROXIMITY}, true) returns a wake-up proximity sensor
475 * which is the same as the Sensor returned by {@link #getDefaultSensor(int)}. </li>
490 public Sensor getDefaultSensor(int type, boolean wakeUp) { method in class:SensorManager

Completed in 52 milliseconds