Searched refs:mRequestStats (Results 1 – 4 of 4) sorted by relevance
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ClientWakelockAccountant.java | 30 public ClientRequestStats mRequestStats = new ClientRequestStats(); field in ClientWakelockAccountant 36 mRequestStats.setCallingPackage(callingPackage); in ClientWakelockAccountant() 78 synchronized (mRequestStats) { in completeRequest() 79 mRequestStats.addCompletedWakelockTime(wlInfo.getWakelockTimeAttributedToClient()); in completeRequest() 80 mRequestStats.incrementCompletedRequestsCount(); in completeRequest() 81 mRequestStats.updateRequestHistograms(wlInfo.getRilRequestSent(), in completeRequest() 100 synchronized (mRequestStats) { in updatePendingRequestWakelockTime() 101 mRequestStats.setPendingRequestsCount(getPendingRequestCount()); in updatePendingRequestWakelockTime() 102 mRequestStats.setPendingRequestsWakelockTime(totalPendingWakelockTime); in updatePendingRequestWakelockTime() 130 "mRequestStats=" + mRequestStats + in toString()
|
D | ClientWakelockTracker.java | 82 list.add(new ClientRequestStats(client.mRequestStats)); in getClientRequestStats()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ClientWakelockAccountantTest.java | 60 Assert.assertEquals(0, mClient.mRequestStats.getCompletedRequestsCount()); in testStopAttributingWakelock() 63 Assert.assertEquals(1, mClient.mRequestStats.getRequestHistograms().size()); in testStopAttributingWakelock() 66 Assert.assertEquals(2, mClient.mRequestStats.getCompletedRequestsCount()); in testStopAttributingWakelock() 67 Assert.assertEquals(600, mClient.mRequestStats.getCompletedRequestsWakelockTime()); in testStopAttributingWakelock() 69 Assert.assertEquals(2, mClient.mRequestStats.getRequestHistograms().size()); in testStopAttributingWakelock() 79 Assert.assertEquals(2, mClient.mRequestStats.getCompletedRequestsCount()); in testStopAllPendingRequests() 80 Assert.assertEquals(275, mClient.mRequestStats.getCompletedRequestsWakelockTime()); in testStopAllPendingRequests() 82 Assert.assertEquals(2, mClient.mRequestStats.getRequestHistograms().size()); in testStopAllPendingRequests()
|
D | ClientWakelockTrackerTest.java | 69 assertTrue(abc.mRequestStats.getCompletedRequestsWakelockTime() > (time - 1)); in assertTimeTaken() 70 assertTrue(abc.mRequestStats.getCompletedRequestsWakelockTime() < (time + 19)); in assertTimeTaken() 96 assertEquals(2, abc.mRequestStats.getCompletedRequestsCount()); 118 assertEquals(2, abc.mRequestStats.getCompletedRequestsCount()); 141 assertEquals(1, abc.mRequestStats.getCompletedRequestsCount());
|