Home
last modified time | relevance | path

Searched refs:sTemplateWifi (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java145 private static NetworkTemplate sTemplateWifi = buildTemplateWifiWildcard(); field in NetworkStatsServiceTest
272 assertNetworkTotal(sTemplateWifi, 0L, 0L, 0L, 0L, 0);
284 assertNetworkTotal(sTemplateWifi, 1024L, 1L, 2048L, 2L, 0);
297 assertNetworkTotal(sTemplateWifi, 4096L, 4L, 8192L, 8L, 0);
315 assertNetworkTotal(sTemplateWifi, 0L, 0L, 0L, 0L, 0);
337 assertNetworkTotal(sTemplateWifi, 1024L, 8L, 2048L, 16L, 0);
338 assertUidTotal(sTemplateWifi, UID_RED, 1024L, 8L, 512L, 4L, 10);
339 assertUidTotal(sTemplateWifi, UID_RED, SET_DEFAULT, METERED_NO, ROAMING_NO,
341 assertUidTotal(sTemplateWifi, UID_RED, SET_FOREGROUND, METERED_NO, ROAMING_NO,
343 assertUidTotal(sTemplateWifi, UID_BLUE, 128L, 1L, 128L, 1L, 0);
[all …]
DNetworkStatsObserversTest.java81 private static NetworkTemplate sTemplateWifi = buildTemplateWifiWildcard(); field in NetworkStatsObserversTest
134 DataUsageRequest.REQUEST_ID_UNSET, sTemplateWifi, thresholdTooLowBytes); in testRegister_thresholdTooLow_setsDefaultThreshold()
139 assertTrue(Objects.equals(sTemplateWifi, request.template)); in testRegister_thresholdTooLow_setsDefaultThreshold()
147 DataUsageRequest.REQUEST_ID_UNSET, sTemplateWifi, highThresholdBytes); in testRegister_highThreshold_accepted()
152 assertTrue(Objects.equals(sTemplateWifi, request.template)); in testRegister_highThreshold_accepted()
159 DataUsageRequest.REQUEST_ID_UNSET, sTemplateWifi, THRESHOLD_BYTES); in testRegister_twoRequests_twoIds()
164 assertTrue(Objects.equals(sTemplateWifi, request1.template)); in testRegister_twoRequests_twoIds()
170 assertTrue(Objects.equals(sTemplateWifi, request2.template)); in testRegister_twoRequests_twoIds()
177 123456 /* id */, sTemplateWifi, THRESHOLD_BYTES); in testUnregister_unknownRequest_noop()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java214 private static NetworkTemplate sTemplateWifi = buildTemplateWifi(TEST_SSID); field in NetworkPolicyManagerServiceTest
956 sTemplateWifi, 5, TIMEZONE_UTC, 1024L, 1024L, false);
968 sTemplateWifi, 20, TIMEZONE_UTC, 1024L, 1024L, false);
980 sTemplateWifi, 30, TIMEZONE_UTC, 1024L, 1024L, false);
992 sTemplateWifi, 30, TIMEZONE_UTC, 1024L, 1024L, false);
1000 sTemplateWifi, 29, TIMEZONE_UTC, 1024L, 1024L, false);
1025 sTemplateWifi, 10, "US/Central", 1024L, 1024L, false);
1034 sTemplateWifi, 10, "Israel", 1024L, 1024L, false);
1042 sTemplateWifi, 14, "US/Pacific", 1024L, 1024L, false);
1088 when(mStatsService.getNetworkTotalBytes(sTemplateWifi, CYCLE_START, CYCLE_END))
[all …]