Home
last modified time | relevance | path

Searched refs:usageCallback (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java431 final NetworkStatsManager.UsageCallback usageCallback = usageCallbackCaptor.getValue(); in testOnThresholdReached() local
433 assertNotNull(usageCallback); in testOnThresholdReached()
441 usageCallback.onThresholdReached(template); in testOnThresholdReached()
445 .unregisterUsageCallback(eq(usageCallback)); in testOnThresholdReached()
447 eq(template), eq(DataUnit.MEGABYTES.toBytes(9)), any(), eq(usageCallback)); in testOnThresholdReached()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsManagerTest.java855 TestUsageCallback usageCallback = new TestUsageCallback(); in testCallback() local
860 getSubscriberId(i), THRESHOLD_BYTES, usageCallback, handler); in testCallback()
867 mNsm.unregisterUsageCallback(usageCallback); in testCallback()
873 getSubscriberId(i), THRESHOLD_BYTES, usageCallback); in testCallback()
874 mNsm.unregisterUsageCallback(usageCallback); in testCallback()