/frameworks/base/core/java/android/hardware/ |
H A D | LegacySensorManager.java | 89 public boolean registerListener(SensorListener listener, int sensors, int rate) { argument 95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; 97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; 99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; 101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; 103 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result; 108 SensorListener listener, int sensors, int rate) { 111 if ((sensors & legacyType) != 0) { 118 // are called reentrantly while sensors are being registered or unregistered. 144 public void unregisterListener(SensorListener listener, int sensors) { argument 107 registerLegacyListener(int legacyType, int type, SensorListener listener, int sensors, int rate) argument 160 unregisterLegacyListener(int legacyType, int type, SensorListener listener, int sensors) argument 243 hasOrientationSensor(int sensors) argument [all...] |
H A D | SensorManager.java | 30 * sensors}. Get an instance of this class by calling 36 * Always make sure to disable sensors you don't need, especially when your 38 * hours. Note that the system will <i>not</i> disable sensors automatically when 81 // Cached lists of sensors by type. Guarded by mSensorListByType. 163 * A constant that includes all sensors 361 * Gets the full list of sensors that are available. 367 * @return available sensors. 377 * Use this method to get the list of available sensors of a certain type. 378 * Make multiple calls to get sensors of different types or use 380 * sensors 450 registerListener(SensorListener listener, int sensors) argument 478 registerListener(SensorListener listener, int sensors, int rate) argument 511 unregisterListener(SensorListener listener, int sensors) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | DeviceOrientationService.java | 145 List<Sensor> sensors = getSensorManager().getSensorList(Sensor.TYPE_ACCELEROMETER); 146 if (sensors.isEmpty()) { 149 // TODO: Consider handling multiple sensors. 151 this, sensors.get(0), SensorManager.SENSOR_DELAY_FASTEST, mHandler); 155 List<Sensor> sensors = getSensorManager().getSensorList(Sensor.TYPE_MAGNETIC_FIELD); 156 if (sensors.isEmpty()) { 159 // TODO: Consider handling multiple sensors. 161 this, sensors.get(0), SensorManager.SENSOR_DELAY_FASTEST, mHandler);
|
H A D | DeviceMotionService.java | 138 List<Sensor> sensors = getSensorManager().getSensorList(Sensor.TYPE_ACCELEROMETER); 139 if (sensors.isEmpty()) { 143 // TODO: Consider handling multiple sensors. 145 this, sensors.get(0), SensorManager.SENSOR_DELAY_UI, mHandler);
|
/frameworks/base/services/sensorservice/ |
H A D | LinearAccelerationSensor.cpp | 23 #include <hardware/sensors.h>
|
H A D | CorrectedGyroSensor.cpp | 23 #include <hardware/sensors.h>
|
H A D | GravitySensor.cpp | 23 #include <hardware/sensors.h>
|
H A D | OrientationSensor.cpp | 23 #include <hardware/sensors.h>
|
H A D | RotationVectorSensor.cpp | 23 #include <hardware/sensors.h>
|
H A D | SensorDevice.cpp | 29 #include <hardware/sensors.h> 136 snprintf(buffer, SIZE, "%d h/w sensors:\n", int(count));
|
H A D | SensorService.cpp | 40 #include <hardware/sensors.h> 103 // (it wants to be instantiated after h/w sensors have been 108 // Always instantiate Android's virtual sensors. Since they are 109 // instantiated behind sensors from the HAL, they won't 121 // virtual debugging sensors... 123 property_get("debug.sensors", value, "0"); 209 snprintf(buffer, SIZE, "Active sensors:\n"); 245 // handle virtual sensors 375 ALOGD_IF(DEBUG_CONNECTIONS, "%d active sensors", size);
|
/frameworks/native/include/gui/ |
H A D | Sensor.h | 28 #include <hardware/sensors.h>
|
/frameworks/native/libs/gui/ |
H A D | Sensor.cpp | 24 #include <hardware/sensors.h>
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 1374 Map<Integer, ? extends BatteryStats.Uid.Sensor> sensors = u.getSensorStats(); 1375 if (sensors.size() > 0) { 1377 : sensors.entrySet()) { 1809 Map<Integer, ? extends BatteryStats.Uid.Sensor> sensors = u.getSensorStats(); 1810 if (sensors.size() > 0) { 1812 : sensors.entrySet()) {
|