Home
last modified time | relevance | path

Searched refs:mActiveSensors (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java642 private final SparseBooleanArray mActiveSensors = new SparseBooleanArray(); field in SystemSensorManager.BaseEventQueue
667 if (mActiveSensors.get(handle)) return false; in addSensor()
670 mActiveSensors.put(handle, true); in addSensor()
684 for (int i = 0; i < mActiveSensors.size(); i++) { in removeAllSensors()
685 if (mActiveSensors.valueAt(i) == true) { in removeAllSensors()
686 int handle = mActiveSensors.keyAt(i); in removeAllSensors()
690 mActiveSensors.put(handle, false); in removeAllSensors()
702 if (mActiveSensors.get(handle)) { in removeSensor()
704 mActiveSensors.put(sensor.getHandle(), false); in removeSensor()
718 return mActiveSensors.indexOfValue(true) >= 0; in hasSensors()
/frameworks/native/services/sensorservice/
DSensorService.cpp467 for (size_t i=0 ; i<mActiveSensors.size() ; i++) { in dump()
468 int handle = mActiveSensors.keyAt(i); in dump()
473 mActiveSensors.valueAt(i)->getNumConnections()); in dump()
585 for (size_t i=0 ; i<mActiveSensors.size() ; i++) { in dumpProtoLocked()
586 int handle = mActiveSensors.keyAt(i); in dumpProtoLocked()
593 int(mActiveSensors.valueAt(i)->getNumConnections())); in dumpProtoLocked()
669 for (size_t i=0 ; i< mActiveSensors.size(); ++i) { in disableAllSensorsLocked()
670 mActiveSensors.valueAt(i)->clearAllPendingFlushConnections(); in disableAllSensorsLocked()
958 SensorRecord* rec = mActiveSensors.valueFor(sensor_handle); in threadLoop()
1480 size_t size = mActiveSensors.size(); in cleanupConnection()
[all …]
DSensorService.h401 DefaultKeyedVector<int, SensorRecord*> mActiveSensors; variable