Home
last modified time | relevance | path

Searched refs:metered (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkPolicy.java59 @Deprecated public boolean metered = true; field in NetworkPolicy
74 long warningBytes, long limitBytes, boolean metered) { in NetworkPolicy() argument
76 SNOOZE_NEVER, metered, false); in NetworkPolicy()
82 boolean metered, boolean inferred) { in NetworkPolicy() argument
84 limitBytes, lastWarningSnooze, lastLimitSnooze, metered, inferred); in NetworkPolicy()
89 long limitBytes, long lastWarningSnooze, long lastLimitSnooze, boolean metered, in NetworkPolicy() argument
92 SNOOZE_NEVER, metered, inferred); in NetworkPolicy()
97 boolean metered, boolean inferred) { in NetworkPolicy() argument
105 this.metered = metered; in NetworkPolicy()
117 metered = source.readInt() != 0; in NetworkPolicy()
[all …]
DNetworkStats.java119 private int[] metered; field in NetworkStats
138 public int metered; field in NetworkStats.Entry
172 public Entry(String iface, int uid, int set, int tag, int metered, int roaming, in Entry() argument
179 this.metered = metered; in Entry()
213 builder.append(" metered=").append(meteredToString(metered)); in toString()
228 return uid == e.uid && set == e.set && tag == e.tag && metered == e.metered in equals()
239 return Objects.hash(uid, set, tag, metered, roaming, defaultNetwork, iface); in hashCode()
252 this.metered = new int[initialSize]; in NetworkStats()
274 metered = parcel.createIntArray(); in NetworkStats()
293 dest.writeIntArray(metered); in writeToParcel()
[all …]
DNetworkIdentity.java65 boolean metered, boolean defaultNetwork) { in NetworkIdentity() argument
71 mMetered = metered; in NetworkIdentity()
205 boolean metered = !state.networkCapabilities.hasCapability( in buildNetworkIdentity()
230 return new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in buildNetworkIdentity()
Dnetwork-policy-restrictions.md24 ## On metered networks
37 ## On non-metered networks
DNetworkTemplate.java187 String networkId, int metered, int roaming, int defaultNetwork) { in NetworkTemplate() argument
192 mMetered = metered; in NetworkTemplate()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java70 final boolean metered; in NetworkIdentitySet()
72 metered = in.readBoolean(); in NetworkIdentitySet()
77 metered = (type == TYPE_MOBILE); in NetworkIdentitySet()
87 add(new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in NetworkIdentitySet()
DNetworkPolicyManagerService.java1823 if (hasLimit || policy.metered) {
2044 policy.lastLimitSnooze, policy.metered, policy.inferred); in updateDefaultMobilePolicyAL()
2159 final boolean metered; in readPolicyAL()
2161 metered = readBooleanAttribute(in, ATTR_METERED); in readPolicyAL()
2165 metered = true; in readPolicyAL()
2168 metered = false; in readPolicyAL()
2189 lastLimitSnooze, metered, inferred)); in readPolicyAL()
2337 config.meteredOverride = policy.metered in upgradeWifiMeteredOverrideAL()
2393 writeBooleanAttribute(out, ATTR_METERED, policy.metered); in writePolicyAL()
DNetworkStatsCollection.java381 entry.metered = key.ident.isAnyMemberMetered() ? METERED_YES : METERED_NO; in getSummary()
/frameworks/base/core/jni/
Dcom_android_internal_net_NetworkStatsFactory.cpp53 jfieldID metered; member
226 ScopedIntArrayRW metered(env, get_int_array(env, stats, in statsLinesToNetworkStats() local
227 gNetworkStatsClassInfo.metered, size, grow)); in statsLinesToNetworkStats()
228 if (metered.get() == NULL) return -1; in statsLinesToNetworkStats()
272 env->SetObjectField(stats, gNetworkStatsClassInfo.metered, metered.getJavaArray()); in statsLinesToNetworkStats()
351 gNetworkStatsClassInfo.metered = GetFieldIDOrDie(env, clazz, "metered", "[I"); in register_com_android_internal_net_NetworkStatsFactory()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java135 final boolean metered; in buildDefaultPolicy()
139 metered = false; in buildDefaultPolicy()
143 metered = true; in buildDefaultPolicy()
147 LIMIT_DISABLED, SNOOZE_NEVER, SNOOZE_NEVER, metered, true); in buildDefaultPolicy()
/frameworks/base/core/java/android/app/usage/
DNetworkStats.java314 private static @Metered int convertMetered(int metered) { in convertMetered() argument
315 switch (metered) { in convertMetered()
614 bucketOut.mMetered = Bucket.convertMetered(mRecycledSummaryEntry.metered); in fillBucketFromSummaryEntry()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsTest.java861 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertContains() argument
863 int index = stats.findIndex(iface, uid, set, tag, metered, roaming, defaultNetwork); in assertContains()
865 assertValues(stats, index, iface, uid, set, tag, metered, roaming, defaultNetwork, in assertContains()
870 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
873 assertValues(entry, iface, uid, set, tag, metered, roaming, defaultNetwork); in assertValues()
878 NetworkStats.Entry entry, String iface, int uid, int set, int tag, int metered, in assertValues() argument
884 assertEquals(metered, entry.metered); in assertValues()
/frameworks/base/tests/net/java/android/net/dhcp/
DDhcpPacketTest.java161 byte[] metered = "ANDROID_METERED".getBytes("US-ASCII"); in testDomainName()
163 byte[] meteredEmbeddedNull = metered.clone(); in testDomainName()
166 byte[] meteredTrailingNull = metered.clone(); in testDomainName()
171 assertDomainAndVendorInfoParses("goo.gl", nonNullDomain, "ANDROID_METERED", metered); in testDomainName()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java697 boolean metered = false; in isMetered()
699 metered = true; in isMetered()
702 metered = true; in isMetered()
706 metered = true; in isMetered()
710 metered = false; in isMetered()
712 return metered; in isMetered()
/frameworks/base/core/proto/android/service/
Dnetstats.proto75 optional bool metered = 5; field
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java1063 private void assertUidTotal(NetworkTemplate template, int uid, int set, int metered, in assertUidTotal() argument
1075 assertValues(stats, IFACE_ALL, uid, set, TAG_NONE, metered, roaming, defaultNetwork, in assertUidTotal()
1165 int tag, int metered, int roaming, int defaultNetwork, long rxBytes, long rxPackets, in assertValues() argument
1183 if (metered == METERED_ALL) { in assertValues()
1186 meterings = new int[] { metered }; in assertValues()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java319 boolean metered = false; in updateCapabilities()
339 metered |= !underlyingCaps.hasCapability(NET_CAPABILITY_NOT_METERED); in updateCapabilities()
346 metered = true; in updateCapabilities()
354 caps.setCapability(NET_CAPABILITY_NOT_METERED, !metered); in updateCapabilities()
/frameworks/base/core/proto/android/server/
Djobscheduler.proto216 // we consider matching it against a metered network.
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java553 entry.metered = NetworkStats.METERED_ALL; in rollupNetworkStatsByFGBG()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt3477 Landroid/net/NetworkPolicy;->metered:Z
3508 Landroid/net/NetworkStats;->metered:[I