OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mActiveSensors
(Results
1 - 5
of
5
) sorted by null
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DeviceMotionAndOrientation.java
75
final Set<Integer>
mActiveSensors
= new HashSet<Integer>();
121
deviceMotionSensors.removeAll(
mActiveSensors
);
154
Set<Integer> sensorsToDeactivate = new HashSet<Integer>(
mActiveSensors
);
158
if (
mActiveSensors
.isEmpty()) {
348
sensorsToActivate.removeAll(
mActiveSensors
);
359
mActiveSensors
.add(sensorType);
368
if (
mActiveSensors
.contains(sensorType)) {
370
mActiveSensors
.remove(sensorType);
/frameworks/base/core/java/android/hardware/
SystemSensorManager.java
233
private final SparseBooleanArray
mActiveSensors
= new SparseBooleanArray();
254
if (
mActiveSensors
.get(handle)) return false;
257
mActiveSensors
.put(handle, true);
271
for (int i=0 ; i<
mActiveSensors
.size(); i++) {
272
if (
mActiveSensors
.valueAt(i) == true) {
273
int handle =
mActiveSensors
.keyAt(i);
277
mActiveSensors
.put(handle, false);
289
if (
mActiveSensors
.get(handle)) {
291
mActiveSensors
.put(sensor.getHandle(), false);
305
return
mActiveSensors
.indexOfValue(true) >= 0
[
all
...]
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
DeviceMotionAndOrientationTest.java
40
mDeviceMotionAndOrientation.
mActiveSensors
.containsAll(
59
mDeviceMotionAndOrientation.
mActiveSensors
.containsAll(
79
mDeviceMotionAndOrientation.
mActiveSensors
.containsAll(
82
mDeviceMotionAndOrientation.
mActiveSensors
.containsAll(
89
assertEquals(union.size(), mDeviceMotionAndOrientation.
mActiveSensors
.size());
104
mDeviceMotionAndOrientation.
mActiveSensors
.isEmpty());
118
mDeviceMotionAndOrientation.
mActiveSensors
.isEmpty());
132
mDeviceMotionAndOrientation.
mActiveSensors
.containsAll(
143
mDeviceMotionAndOrientation.
mActiveSensors
.isEmpty());
/frameworks/native/services/sensorservice/
SensorService.cpp
274
for (size_t i=0 ; i<
mActiveSensors
.size() ; i++) {
275
int handle =
mActiveSensors
.keyAt(i);
279
mActiveSensors
.valueAt(i)->getNumConnections());
510
size_t size =
mActiveSensors
.size();
513
int handle =
mActiveSensors
.keyAt(i);
522
SensorRecord* rec =
mActiveSensors
.valueAt(i);
523
ALOGE_IF(!rec, "
mActiveSensors
[%d] is null (handle=0x%08x)!", i, handle);
530
mActiveSensors
.removeItemsAt(i, 1);
553
SensorRecord* rec =
mActiveSensors
.valueFor(handle);
556
mActiveSensors
.add(handle, rec)
[
all
...]
SensorService.h
156
DefaultKeyedVector<int, SensorRecord*>
mActiveSensors
;
Completed in 97 milliseconds