Searched refs:mActiveClients (Results 1 – 2 of 2) 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 | 41 assertEquals(1, myTracker.mActiveClients.size()); in testTwoClients() 43 assertEquals(2, myTracker.mActiveClients.size()); in testTwoClients() 50 assertEquals(1, myTracker.mActiveClients.size()); in testTwoClients() 55 assertEquals(0, myTracker.mActiveClients.size()); in testTwoClients() 75 assertEquals(1, myTracker.mActiveClients.size()); 77 assertEquals(1, myTracker.mActiveClients.size()); 83 assertEquals(1, myTracker.mActiveClients.size()); 88 assertEquals(0, myTracker.mActiveClients.size()); 101 assertEquals(1, myTracker.mActiveClients.size()); 104 assertEquals(1, myTracker.mActiveClients.size()); [all …]
|