Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java227 private static NetworkTemplate sTemplateWifi = new NetworkTemplate.Builder(MATCH_WIFI) field in NetworkStatsServiceTest
708 assertNetworkTotal(sTemplateWifi, 0L, 0L, 0L, 0L, 0); in testNetworkStatsCarrierWifi()
717 assertNetworkTotal(sTemplateWifi, 1024L, 1L, 2048L, 2L, 0); in testNetworkStatsCarrierWifi()
727 assertNetworkTotal(sTemplateWifi, 4096L, 4L, 8192L, 8L, 0); in testNetworkStatsCarrierWifi()
735 assertNetworkTotal(sTemplateWifi, 0L, 0L, 0L, 0L, 0); in testNetworkStatsNonCarrierWifi()
743 assertNetworkTotal(sTemplateWifi, 1024L, 1L, 2048L, 2L, 0); in testNetworkStatsNonCarrierWifi()
753 assertNetworkTotal(sTemplateWifi, 4096L, 4L, 8192L, 8L, 0); in testNetworkStatsNonCarrierWifi()
774 assertNetworkTotal(sTemplateWifi, 0L, 0L, 0L, 0L, 0); in testStatsRebootPersist()
799 assertNetworkTotal(sTemplateWifi, 1024L, 8L, 2048L, 16L, 0); in testStatsRebootPersist()
800 assertUidTotal(sTemplateWifi, UID_RED, 1024L, 8L, 512L, 4L, 10); in testStatsRebootPersist()
[all …]
DNetworkStatsObserversTest.java90 private static NetworkTemplate sTemplateWifi = new NetworkTemplate.Builder(MATCH_WIFI).build(); field in NetworkStatsObserversTest
155 DataUsageRequest.REQUEST_ID_UNSET, sTemplateWifi, thresholdTooLowBytes); in testRegister_thresholdTooLow_setsDefaultThreshold()
160 assertTrue(Objects.equals(sTemplateWifi, requestByApp.template)); in testRegister_thresholdTooLow_setsDefaultThreshold()
168 assertTrue(Objects.equals(sTemplateWifi, requestBySystem.template)); in testRegister_thresholdTooLow_setsDefaultThreshold()
176 DataUsageRequest.REQUEST_ID_UNSET, sTemplateWifi, highThresholdBytes); in testRegister_highThreshold_accepted()
181 assertTrue(Objects.equals(sTemplateWifi, request.template)); in testRegister_highThreshold_accepted()
188 DataUsageRequest.REQUEST_ID_UNSET, sTemplateWifi, THRESHOLD_BYTES); in testRegister_twoRequests_twoIds()
193 assertTrue(Objects.equals(sTemplateWifi, request1.template)); in testRegister_twoRequests_twoIds()
199 assertTrue(Objects.equals(sTemplateWifi, request2.template)); in testRegister_twoRequests_twoIds()
206 DataUsageRequest.REQUEST_ID_UNSET, sTemplateWifi, THRESHOLD_BYTES); in testRegister_limit()
[all …]