/packages/modules/Connectivity/tests/common/java/android/net/netstats/ |
D | NetworkTemplateTest.kt | 21 import android.net.NetworkStats.METERED_YES in <lambda>() 69 .setMeteredness(METERED_YES).build().let { in <lambda>() 71 emptyArray<String>(), METERED_YES, ROAMING_ALL, DEFAULT_NETWORK_ALL, in <lambda>() 81 .setRoaming(ROAMING_YES).setMeteredness(METERED_YES).build().let { in <lambda>() 83 emptyArray<String>(), METERED_YES, ROAMING_YES, DEFAULT_NETWORK_ALL, in <lambda>() 121 NetworkTemplate.Builder(MATCH_MOBILE).setMeteredness(METERED_YES).build().let { in <lambda>() 124 METERED_YES, ROAMING_ALL, DEFAULT_NETWORK_ALL, NETWORK_TYPE_ALL, in <lambda>() 131 .setMeteredness(METERED_YES).setRatType(TelephonyManager.NETWORK_TYPE_UMTS) in <lambda>() 134 emptyArray<String>(), METERED_YES, ROAMING_ALL, DEFAULT_NETWORK_ALL, in <lambda>()
|
D | NetworkStatsApiTest.kt | 25 import android.net.NetworkStats.METERED_YES 73 METERED_YES, ROAMING_NO, DEFAULT_NETWORK_NO, 25, 3, 47, 8, 2)) in setUp() 109 METERED_YES, ROAMING_NO, DEFAULT_NETWORK_NO, 25, 3, 47, 8, 2)) in setUp()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/ |
D | DataUsageLibTest.kt | 74 assertThat(mobileTemplate.meteredness).isEqualTo(NetworkStats.METERED_YES) in getMobileTemplate_availableSubscriptionInfoListIsNull_returnDefaultSub() 85 assertThat(mobileTemplate.meteredness).isEqualTo(NetworkStats.METERED_YES) in getMobileTemplate_subscriptionNotActive_returnDefaultSub() 98 assertThat(mobileTemplate.meteredness).isEqualTo(NetworkStats.METERED_YES) in getMobileTemplate_mergedImsisFromGroupEmpty_returnRequestedSub() 111 assertThat(mobileTemplate.meteredness).isEqualTo(NetworkStats.METERED_YES) in getMobileTemplate_mergedImsisFromGroupNotContainSub_returnRequestedSub() 126 assertThat(mobileTemplate.meteredness).isEqualTo(NetworkStats.METERED_YES) in getMobileTemplate_mergedImsisFromGroupContainSub_returnRequestedSub() 137 assertThat(mobileTemplate.meteredness).isEqualTo(NetworkStats.METERED_YES) in getMobileTemplateForSubId_subscriberIdNotNull() 148 assertThat(mobileTemplate.meteredness).isEqualTo(NetworkStats.METERED_YES) in getMobileTemplateForSubId_subscriberIdIsNull()
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 26 import static android.net.NetworkStats.METERED_YES; 81 .insertEntry(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testFindIndex() 85 .insertEntry(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, in testFindIndex() 88 assertEquals(4, stats.findIndex(TEST_IFACE, 102, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex() 92 assertEquals(2, stats.findIndex(TEST_IFACE, 101, SET_DEFAULT, TAG_NONE, METERED_YES, in testFindIndex() 117 .insertEntry(TEST_IFACE2, 101, SET_DEFAULT, 0xF00D, METERED_YES, ROAMING_NO, in testFindIndexHinted() 121 .insertEntry(TEST_IFACE2, 102, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_YES, in testFindIndexHinted() 137 METERED_YES, ROAMING_NO, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted() 141 METERED_YES, ROAMING_YES, DEFAULT_NETWORK_NO, hint)); in testFindIndexHinted() 145 METERED_YES, ROAMING_YES, DEFAULT_NETWORK_YES, hint)); in testFindIndexHinted() [all …]
|
D | NetworkTemplateTest.kt | 33 import android.net.NetworkStats.METERED_YES 230 val templateFromBuilder = NetworkTemplate.Builder(MATCH_MOBILE).setMeteredness(METERED_YES) in testBuildTemplateMobileAll_nullSubscriberId() 239 .setMeteredness(METERED_YES) in testMobileMatches() 321 .setMeteredness(METERED_YES) in testCarrierMeteredMatches() 368 .setMeteredness(METERED_YES) in testRatTypeGroupMatches() 372 .setMeteredness(METERED_YES).build() in testRatTypeGroupMatches() 376 .setMeteredness(METERED_YES) in testRatTypeGroupMatches() 486 val templateImsi1 = NetworkTemplate.Builder(MATCH_MOBILE).setMeteredness(METERED_YES) in testEquals() 490 emptyArray<String>(), METERED_YES, ROAMING_ALL, DEFAULT_NETWORK_ALL, in testEquals() 492 val templateImsi2 = NetworkTemplate.Builder(MATCH_MOBILE).setMeteredness(METERED_YES) in testEquals() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsagePreferenceTest.java | 63 .setMeteredness(NetworkStats.METERED_YES).build(), in setTemplate_noDataUsage_shouldDisablePreference() 75 .setMeteredness(NetworkStats.METERED_YES).build(), in setTemplate_hasDataUsage_shouldNotDisablePreference()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkTemplate.java | 35 import static android.net.NetworkStats.METERED_YES; 215 return new NetworkTemplate.Builder(MATCH_MOBILE).setMeteredness(METERED_YES) in buildTemplateMobileAll() 229 return new NetworkTemplate.Builder(MATCH_MOBILE).setMeteredness(METERED_YES).build(); in buildTemplateMobileWildcard() 314 .setMeteredness(METERED_YES) in buildTemplateCarrierMetered() 479 return METERED_YES; in getMeterednessForBackwardsCompatibility() 756 || (mMetered == METERED_YES && ident.mMetered) in matchesMetered() 1004 ? METERED_YES : METERED_ALL, in normalizeImpl()
|
D | NetworkStatsCollection.java | 24 import static android.net.NetworkStats.METERED_YES; 414 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary() 804 .setMeteredness(METERED_YES).build(), "cell"); in dumpCheckin()
|
D | NetworkStats.java | 136 public static final int METERED_YES = 1; field in NetworkStats 143 METERED_YES 1490 case METERED_YES: in meteredToString()
|
/packages/modules/Connectivity/tests/unit/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 23 import static android.net.NetworkStats.METERED_YES; 213 new NetworkTemplate.Builder(MATCH_MOBILE).setMeteredness(METERED_YES).build()); in testNetworkTemplateWhenRunningQueryDetails_NoSubscriberId() 239 .setMeteredness(NetworkStats.Bucket.METERED_YES).build(); in testQueryTaggedSummary() 260 .setMeteredness(NetworkStats.Bucket.METERED_YES).build(); in testQueryDetailsForDevice()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 40 import static android.net.NetworkStats.METERED_YES; 232 .setMeteredness(METERED_YES).setSubscriberIds(Set.of(IMSI_1)).build(); 234 .setMeteredness(METERED_YES).setSubscriberIds(Set.of(IMSI_2)).build(); 1025 .setMeteredness(METERED_YES).build(); in doTestMobileStatsByRatType() 1028 .setMeteredness(METERED_YES).build(); in doTestMobileStatsByRatType() 1031 .setMeteredness(METERED_YES).build(); in doTestMobileStatsByRatType() 1102 .setMeteredness(METERED_YES).build(); in testMobileStatsMeteredness() 1128 .insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testMobileStatsMeteredness() 1130 .insertEntry(TEST_IFACE2, UID_RED, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testMobileStatsMeteredness() 1605 assertValues(stats, IFACE_ALL, UID_RED, SET_DEFAULT, TAG_NONE, METERED_YES, ROAMING_NO, in testMetered() [all …]
|
D | NetworkStatsBaseTest.java | 24 import static android.net.NetworkStats.METERED_YES; 80 meterings = new int[] {METERED_ALL, METERED_YES, METERED_NO}; in assertValues()
|
D | NetworkStatsObserversTest.java | 24 import static android.net.NetworkStats.METERED_YES; 93 .setMeteredness(METERED_YES).build(); 96 .setMeteredness(METERED_YES).build();
|
/packages/modules/Connectivity/framework-t/src/android/app/usage/ |
D | NetworkStats.java | 180 METERED_YES 201 public static final int METERED_YES = 0x2; field in NetworkStats.Bucket 321 case android.net.NetworkStats.METERED_YES: return METERED_YES; in convertMetered()
|
D | NetworkStatsManager.java | 22 import static android.net.NetworkStats.METERED_YES; 1049 .setMeteredness(METERED_YES).build() in createTemplate() 1051 .setMeteredness(METERED_YES) in createTemplate()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | NetworkStatsUtils.java | 150 case NetworkStats.Bucket.METERED_YES: return android.net.NetworkStats.METERED_YES; in convertBucketMetered()
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | NetworkStatsUtilsTest.kt | 84 android.app.usage.NetworkStats.Bucket.METERED_YES, in testBucketToEntry() 89 NetworkStats.SET_DEFAULT, NetworkStats.TAG_NONE, NetworkStats.METERED_YES, in testBucketToEntry()
|
/packages/apps/Settings/src/com/android/settings/datausage/lib/ |
D | DataUsageLib.kt | 97 }.setMeteredness(NetworkStats.METERED_YES).build() in getMobileTemplateForSubId()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataUsageUtils.java | 58 .setMeteredness(NetworkStats.METERED_YES); in getMobileNetworkTemplate()
|
/packages/modules/Connectivity/tests/unit/java/com/android/metrics/ |
D | ConnectivitySampleMetricsTest.kt | 78 MeteredState.METERED_YES in Number()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkStatsManagerTest.java | 23 import static android.app.usage.NetworkStats.Bucket.METERED_YES; 516 ? METERED_YES : METERED_NO; in testAppSummary()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 224 .setMeteredness(android.net.NetworkStats.METERED_YES).build(), in prepareGetMultipathPreferenceTest()
|
/packages/modules/Connectivity/framework-t/api/ |
D | current.txt | 29 field public static final int METERED_YES = 2; // 0x2
|
D | system-current.txt | 326 field public static final int METERED_YES = 1; // 0x1
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsService.java | 37 import static android.net.NetworkStats.METERED_YES; 2694 template = new NetworkTemplate.Builder(MATCH_MOBILE).setMeteredness(METERED_YES).build();
|