Merge "Fix NetworkTemplate generates non-metered carrier template" am: 481b2649f7 am: d3a90fb206
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2064758 Change-Id: Ic29a00a73b6b2ddc2c360c7f66d02bf895802c07 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -393,8 +393,9 @@ public final class NetworkTemplate implements Parcelable {
|
|||||||
//constructor passes METERED_YES for these types.
|
//constructor passes METERED_YES for these types.
|
||||||
this(matchRule, subscriberId, matchSubscriberIds,
|
this(matchRule, subscriberId, matchSubscriberIds,
|
||||||
wifiNetworkKey != null ? new String[] { wifiNetworkKey } : new String[0],
|
wifiNetworkKey != null ? new String[] { wifiNetworkKey } : new String[0],
|
||||||
(matchRule == MATCH_MOBILE || matchRule == MATCH_MOBILE_WILDCARD) ? METERED_YES
|
(matchRule == MATCH_MOBILE || matchRule == MATCH_MOBILE_WILDCARD
|
||||||
: METERED_ALL , ROAMING_ALL, DEFAULT_NETWORK_ALL, NETWORK_TYPE_ALL,
|
|| matchRule == MATCH_CARRIER) ? METERED_YES : METERED_ALL,
|
||||||
|
ROAMING_ALL, DEFAULT_NETWORK_ALL, NETWORK_TYPE_ALL,
|
||||||
OEM_MANAGED_ALL, NetworkStatsUtils.SUBSCRIBER_ID_MATCH_RULE_EXACT);
|
OEM_MANAGED_ALL, NetworkStatsUtils.SUBSCRIBER_ID_MATCH_RULE_EXACT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user