Searched refs:mActiveClients (Results 1 – 5 of 5) sorted by relevance
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ClientWakelockTracker.java | 35 public ArrayList<ClientWakelockAccountant> mActiveClients = new ArrayList<>(); field in ClientWakelockTracker 43 synchronized (mActiveClients) { in startTracking() 44 if (!mActiveClients.contains(client)) { in startTracking() 45 mActiveClients.add(client); in startTracking() 56 synchronized (mActiveClients) { in stopTracking() 57 mActiveClients.remove(client); in stopTracking() 66 synchronized (mActiveClients) { in stopTrackingAll() 67 for (ClientWakelockAccountant client : mActiveClients) { in stopTrackingAll() 70 mActiveClients.clear(); in stopTrackingAll() 103 synchronized (mActiveClients) { in updateConcurrentRequests() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ClientWakelockTrackerTest.java | 45 assertEquals(1, myTracker.mActiveClients.size()); in testTwoClients() 47 assertEquals(2, myTracker.mActiveClients.size()); in testTwoClients() 54 assertEquals(1, myTracker.mActiveClients.size()); in testTwoClients() 59 assertEquals(0, myTracker.mActiveClients.size()); in testTwoClients() 80 assertEquals(1, myTracker.mActiveClients.size()); 82 assertEquals(1, myTracker.mActiveClients.size()); 88 assertEquals(1, myTracker.mActiveClients.size()); 93 assertEquals(0, myTracker.mActiveClients.size()); 107 assertEquals(1, myTracker.mActiveClients.size()); 110 assertEquals(1, myTracker.mActiveClients.size()); [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/ |
D | WakeLock.java | 92 private final HashMap<String, Integer> mActiveClients = new HashMap<>(); 96 mActiveClients.putIfAbsent(why, 0); 97 mActiveClients.put(why, mActiveClients.get(why) + 1); 103 Integer count = mActiveClients.get(why); 108 mActiveClients.remove(why); 110 mActiveClients.put(why, count - 1); 122 return "active clients= " + mActiveClients.toString();
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioOutputDescriptor.cpp | 90 auto clientIter = std::find(begin(mActiveClients), end(mActiveClients), client); in setClientActive() 91 if (active == (clientIter != end(mActiveClients))) { in setClientActive() 98 mActiveClients.push_back(client); in setClientActive() 100 mActiveClients.erase(clientIter); in setClientActive() 237 return std::find_if(begin(mActiveClients), end(mActiveClients), in isAnyActive() 239 return client->volumeSource() != volumeSourceToIgnore; }) != end(mActiveClients); in isAnyActive() 261 if (!mActiveClients.empty()) { in dump() 264 for (const auto& client : mActiveClients) { in dump()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioOutputDescriptor.h | 290 auto clientIter = std::find(begin(mActiveClients), end(mActiveClients), client); in removeClient() 291 LOG_ALWAYS_FATAL_IF(clientIter != mActiveClients.end(), in removeClient() 298 return mActiveClients; in getActiveClients() 319 TrackClientVector mActiveClients; variable
|