Lines Matching refs:activeConnections
293 SortedVector< sp<SensorEventConnection> > activeConnections; in setSensorAccess() local
294 populateActiveConnections(&activeConnections); in setSensorAccess()
297 for (size_t i = 0 ; i < activeConnections.size(); i++) { in setSensorAccess()
298 if (activeConnections[i] != 0 && activeConnections[i]->getUid() == uid) { in setSensorAccess()
299 activeConnections[i]->setSensorAccess(hasAccess); in setSensorAccess()
645 SortedVector< sp<SensorEventConnection> > activeConnections; in threadLoop() local
646 populateActiveConnections(&activeConnections); in threadLoop()
771 size_t numConnections = activeConnections.size(); in threadLoop()
773 if (activeConnections[i] != NULL) { in threadLoop()
774 activeConnections[i]->removeSensor(handle); in threadLoop()
784 size_t numConnections = activeConnections.size(); in threadLoop()
786 if (activeConnections[i] != 0) { in threadLoop()
787 activeConnections[i]->sendEvents(mSensorEventBuffer, count, mSensorEventScratch, in threadLoop()
789 needsWakeLock |= activeConnections[i]->needsWakeLock(); in threadLoop()
792 if (activeConnections[i]->hasOneShotSensors()) { in threadLoop()
793 cleanupAutoDisabledSensorLocked(activeConnections[i], mSensorEventBuffer, in threadLoop()
814 SortedVector< sp<SensorEventConnection> > activeConnections; in resetAllWakeLockRefCounts() local
815 populateActiveConnections(&activeConnections); in resetAllWakeLockRefCounts()
818 for (size_t i=0 ; i < activeConnections.size(); ++i) { in resetAllWakeLockRefCounts()
819 if (activeConnections[i] != 0) { in resetAllWakeLockRefCounts()
820 activeConnections[i]->resetWakeLockRefCount(); in resetAllWakeLockRefCounts()
1616 SortedVector< sp<SensorEventConnection> >* activeConnections) { in populateActiveConnections()
1621 activeConnections->add(connection); in populateActiveConnections()