Home
last modified time | relevance | path

Searched refs:mRequestStats (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DClientWakelockAccountant.java30 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()
DClientWakelockTracker.java82 list.add(new ClientRequestStats(client.mRequestStats)); in getClientRequestStats()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DClientWakelockAccountantTest.java59 Assert.assertEquals(0, mClient.mRequestStats.getCompletedRequestsCount()); in testStopAttributingWakelock()
62 Assert.assertEquals(1, mClient.mRequestStats.getRequestHistograms().size()); in testStopAttributingWakelock()
65 Assert.assertEquals(2, mClient.mRequestStats.getCompletedRequestsCount()); in testStopAttributingWakelock()
66 Assert.assertEquals(600, mClient.mRequestStats.getCompletedRequestsWakelockTime()); in testStopAttributingWakelock()
68 Assert.assertEquals(2, mClient.mRequestStats.getRequestHistograms().size()); in testStopAttributingWakelock()
78 Assert.assertEquals(2, mClient.mRequestStats.getCompletedRequestsCount()); in testStopAllPendingRequests()
79 Assert.assertEquals(275, mClient.mRequestStats.getCompletedRequestsWakelockTime()); in testStopAllPendingRequests()
81 Assert.assertEquals(2, mClient.mRequestStats.getRequestHistograms().size()); in testStopAllPendingRequests()
DClientWakelockTrackerTest.java68 assertTrue(abc.mRequestStats.getCompletedRequestsWakelockTime() > (time - 1)); in assertTimeTaken()
69 assertTrue(abc.mRequestStats.getCompletedRequestsWakelockTime() < (time + 19)); in assertTimeTaken()
95 assertEquals(2, abc.mRequestStats.getCompletedRequestsCount());
117 assertEquals(2, abc.mRequestStats.getCompletedRequestsCount());
140 assertEquals(1, abc.mRequestStats.getCompletedRequestsCount());