Searched refs:usageCallback (Results 1 – 2 of 2) sorted by relevance
431 final NetworkStatsManager.UsageCallback usageCallback = usageCallbackCaptor.getValue(); in testOnThresholdReached() local433 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()
855 TestUsageCallback usageCallback = new TestUsageCallback(); in testCallback() local860 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()