Home
last modified time | relevance | path

Searched refs:activeClients (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DClientTrackingWakeLock.kt35 private val activeClients = ConcurrentHashMap<String, AtomicInteger>() in <lambda>() constant
38 val count = activeClients.computeIfAbsent(why) { _ -> AtomicInteger(0) }.incrementAndGet() in <lambda>()
48 val count = activeClients[why]?.decrementAndGet() ?: -1 in <lambda>()
52 activeClients[why]?.incrementAndGet() in <lambda>()
62 fun activeClients(): Int = in <lambda>() method
63 activeClients.reduceValuesToInt(Long.MAX_VALUE, AtomicInteger::get, 0, Integer::sum) in <lambda>()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioIODescriptorInterface.h45 auto activeClients = desc->clientsList(true /*activeOnly*/); in findPreferredDevice() local
46 active = activeClients.size() > 0; in findPreferredDevice()
64 if (activeClients.size() == activeClientsWithRoute.size()) { in findPreferredDevice()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/wakelock/
DClientTrackingWakeLockTest.kt119 Assert.assertEquals(5, mWakeLock.activeClients()) in acquireSeveralLocks_stringReportsCorrectCount()
123 Assert.assertEquals(3, mWakeLock.activeClients()) in acquireSeveralLocks_stringReportsCorrectCount()
128 Assert.assertEquals(0, mWakeLock.activeClients()) in acquireSeveralLocks_stringReportsCorrectCount()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp642 size_t activeClients; in doOnUpdateActiveSpatializerTracks() local
645 activeClients = countActiveClientsOnOutput_l(output); in doOnUpdateActiveSpatializerTracks()
647 mSpatializer->updateActiveTracks(activeClients); in doOnUpdateActiveSpatializerTracks()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp3534 auto activeClients = desc->clientsList(true /*activeOnly*/, productStrategy, in setVolumeIndexForAttributes() local
3536 if (activeClients.empty()) { in setVolumeIndexForAttributes()
3541 for (const auto &client : activeClients) { in setVolumeIndexForAttributes()
8704 const TrackClientVector activeClients = output->getActiveClients(); in areAllActiveTracksRerouted() local
8705 if (activeClients.empty()) { in areAllActiveTracksRerouted()
8726 for (const auto& client : activeClients) { in areAllActiveTracksRerouted()