Lines Matching refs:connLock
320 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in onUidStateChanged() local
321 for (const sp<SensorEventConnection>& conn : connLock.getActiveConnections()) { in onUidStateChanged()
327 for (const sp<SensorDirectConnection>& conn : connLock.getDirectConnections()) { in onUidStateChanged()
398 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in dump() local
412 disableAllSensorsLocked(&connLock); in dump()
420 enableAllSensorsLocked(&connLock); in dump()
447 return dumpProtoLocked(fd, &connLock); in dump()
513 const auto& activeConnections = connLock.getActiveConnections(); in dump()
520 const auto& directConnections = connLock.getDirectConnections(); in dump()
557 status_t SensorService::dumpProtoLocked(int fd, ConnectionSafeAutolock* connLock) const { in dumpProtoLocked()
638 const auto& activeConnections = connLock->getActiveConnections(); in dumpProtoLocked()
646 const auto& directConnections = connLock->getDirectConnections(); in dumpProtoLocked()
673 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in disableAllSensors() local
674 disableAllSensorsLocked(&connLock); in disableAllSensors()
677 void SensorService::disableAllSensorsLocked(ConnectionSafeAutolock* connLock) { in disableAllSensorsLocked() argument
679 for (const sp<SensorDirectConnection>& conn : connLock->getDirectConnections()) { in disableAllSensorsLocked()
697 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in enableAllSensors() local
698 enableAllSensorsLocked(&connLock); in enableAllSensors()
701 void SensorService::enableAllSensorsLocked(ConnectionSafeAutolock* connLock) { in enableAllSensorsLocked() argument
716 for (const sp<SensorDirectConnection>& conn : connLock->getDirectConnections()) { in enableAllSensorsLocked()
723 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in capRates() local
724 for (const sp<SensorDirectConnection>& conn : connLock.getDirectConnections()) { in capRates()
730 for (const sp<SensorEventConnection>& conn : connLock.getActiveConnections()) { in capRates()
738 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in uncapRates() local
739 for (const sp<SensorDirectConnection>& conn : connLock.getDirectConnections()) { in uncapRates()
745 for (const sp<SensorEventConnection>& conn : connLock.getActiveConnections()) { in uncapRates()
929 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in threadLoop() local
1006 … const std::vector<sp<SensorEventConnection>> activeConnections = connLock.getActiveConnections(); in threadLoop()
1095 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in resetAllWakeLockRefCounts() local
1096 for (const sp<SensorEventConnection>& connection : connLock.getActiveConnections()) { in resetAllWakeLockRefCounts()
1346 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in createSensorDirectConnection() local
1374 for (const sp<SensorDirectConnection>& connection : connLock.getDirectConnections()) { in createSensorDirectConnection()
1550 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in cleanupConnection() local
1586 checkWakeLockStateLocked(&connLock); in cleanupConnection()
1697 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in enable() local
1748 checkWakeLockStateLocked(&connLock); in enable()
2024 ConnectionSafeAutolock connLock = mConnectionHolder.lock(mLock); in checkWakeLockState() local
2025 checkWakeLockStateLocked(&connLock); in checkWakeLockState()
2028 void SensorService::checkWakeLockStateLocked(ConnectionSafeAutolock* connLock) { in checkWakeLockStateLocked() argument
2033 for (const sp<SensorEventConnection>& connection : connLock->getActiveConnections()) { in checkWakeLockStateLocked()