Lines Matching defs:sensors
89 public boolean registerListener(SensorListener listener, int sensors, int rate) {
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) {
149 listener, sensors);
151 listener, sensors);
153 listener, sensors);
155 listener, sensors);
157 listener, sensors);
161 SensorListener listener, int sensors) {
163 if ((sensors & legacyType) != 0) {
170 // are called re-entrantly while sensors are being registered or unregistered.
243 private static boolean hasOrientationSensor(int sensors) {
244 return (sensors & (SensorManager.SENSOR_ORIENTATION