Home
last modified time | relevance | path

Searched refs:NetworkTemplate (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/core/java/android/net/
DNetworkTemplate.java57 public class NetworkTemplate implements Parcelable { class
99 public static NetworkTemplate buildTemplateMobileAll(String subscriberId) { in buildTemplateMobileAll()
100 return new NetworkTemplate(MATCH_MOBILE, subscriberId, null); in buildTemplateMobileAll()
107 public static NetworkTemplate buildTemplateMobileWildcard() { in buildTemplateMobileWildcard()
108 return new NetworkTemplate(MATCH_MOBILE_WILDCARD, null, null); in buildTemplateMobileWildcard()
115 public static NetworkTemplate buildTemplateWifiWildcard() { in buildTemplateWifiWildcard()
116 return new NetworkTemplate(MATCH_WIFI_WILDCARD, null, null); in buildTemplateWifiWildcard()
120 public static NetworkTemplate buildTemplateWifi() { in buildTemplateWifi()
128 public static NetworkTemplate buildTemplateWifi(String networkId) { in buildTemplateWifi()
129 return new NetworkTemplate(MATCH_WIFI, null, networkId); in buildTemplateWifi()
[all …]
DINetworkStatsSession.aidl21 import android.net.NetworkTemplate;
27 NetworkStats getDeviceSummaryForNetwork(in NetworkTemplate template, long start, long end); in getDeviceSummaryForNetwork()
30 NetworkStats getSummaryForNetwork(in NetworkTemplate template, long start, long end); in getSummaryForNetwork()
32 NetworkStatsHistory getHistoryForNetwork(in NetworkTemplate template, int fields); in getHistoryForNetwork()
35 …NetworkStats getSummaryForAllUid(in NetworkTemplate template, long start, long end, boolean includ… in getSummaryForAllUid()
37 …NetworkStatsHistory getHistoryForUid(in NetworkTemplate template, int uid, int set, int tag, int f… in getHistoryForUid()
39 …NetworkStatsHistory getHistoryIntervalForUid(in NetworkTemplate template, int uid, int set, int ta… in getHistoryIntervalForUid()
DDataUsageRequest.java19 import android.net.NetworkTemplate;
47 public final NetworkTemplate template;
54 public DataUsageRequest(int requestId, NetworkTemplate template, long thresholdInBytes) { in DataUsageRequest()
77 NetworkTemplate template = in.readParcelable(null);
DNetworkPolicy.java52 public NetworkTemplate template;
73 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy()
80 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy()
88 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy()
95 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy()
264 final NetworkTemplate template = NetworkTemplate.getNetworkTemplateFromBackup(in); in getNetworkPolicyFromBackup()
DINetworkPolicyManager.aidl23 import android.net.NetworkTemplate;
48 void snoozeLimit(in NetworkTemplate template); in snoozeLimit()
DNetworkTemplate.aidl19 parcelable NetworkTemplate;
DINetworkStatsService.aidl24 import android.net.NetworkTemplate;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java23 import static android.net.NetworkTemplate.MATCH_WIFI;
29 import android.net.NetworkTemplate;
99 public boolean hasLimitedPolicy(NetworkTemplate template) { in hasLimitedPolicy()
104 public NetworkPolicy getOrCreatePolicy(NetworkTemplate template) { in getOrCreatePolicy()
113 public NetworkPolicy getPolicy(NetworkTemplate template) { in getPolicy()
122 public NetworkPolicy getPolicyMaybeUnquoted(NetworkTemplate template) { in getPolicyMaybeUnquoted()
132 private static NetworkPolicy buildDefaultPolicy(NetworkTemplate template) { in buildDefaultPolicy()
151 public int getPolicyCycleDay(NetworkTemplate template) { in getPolicyCycleDay()
161 public void setPolicyCycleDay(NetworkTemplate template, int cycleDay, String cycleTimezone) { in setPolicyCycleDay()
169 public long getPolicyWarningBytes(NetworkTemplate template) { in getPolicyWarningBytes()
[all …]
/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java30 import android.net.NetworkTemplate;
166 public Bucket querySummaryForDevice(NetworkTemplate template, in querySummaryForDevice()
201 NetworkTemplate template; in querySummaryForDevice()
234 NetworkTemplate template; in querySummaryForUser()
271 NetworkTemplate template; in querySummary()
338 NetworkTemplate template; in queryDetailsForUidTagState()
381 NetworkTemplate template; in queryDetails()
396 public void registerUsageCallback(NetworkTemplate template, int networkType, in registerUsageCallback()
454 NetworkTemplate template = createTemplate(networkType, subscriberId); in registerUsageCallback()
499 private static NetworkTemplate createTemplate(int networkType, String subscriberId) { in createTemplate()
[all …]
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java23 import android.net.NetworkTemplate;
56 NetworkTemplate template = NetworkTemplate.buildTemplateWifiWildcard(); in testWifiIdle()
65 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId); in testMobile()
74 private void fetchStats(NetworkTemplate template) { in fetchStats()
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
DNetworkOverLimitActivity.java20 import static android.net.NetworkTemplate.MATCH_MOBILE;
29 import android.net.NetworkTemplate;
50 final NetworkTemplate template = getIntent().getParcelableExtra(EXTRA_NETWORK_TEMPLATE); in onCreate()
74 private void snoozePolicy(NetworkTemplate template) { in snoozePolicy()
84 private static int getLimitedDialogTitleForTemplate(NetworkTemplate template) { in getLimitedDialogTitleForTemplate()
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java39 import android.net.NetworkTemplate;
109 when(mStatsSession.getHistoryIntervalForUid(any(NetworkTemplate.class), in testQueryDetails()
114 NetworkTemplate template = inv.getArgument(0); in testQueryDetails()
120 when(mStatsSession.getHistoryIntervalForUid(any(NetworkTemplate.class), in testQueryDetails()
125 NetworkTemplate template = inv.getArgument(0); in testQueryDetails()
182 when(mStatsSession.getHistoryIntervalForUid(any(NetworkTemplate.class), in testQueryDetails_NoSubscriberId()
187 argThat((NetworkTemplate t) -> in testQueryDetails_NoSubscriberId()
189 t.getMatchRule() == NetworkTemplate.MATCH_MOBILE_WILDCARD), in testQueryDetails_NoSubscriberId()
195 argThat((NetworkTemplate t) -> in testQueryDetails_NoSubscriberId()
197 t.getMatchRule() == NetworkTemplate.MATCH_MOBILE_WILDCARD), in testQueryDetails_NoSubscriberId()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsManagerInternal.java20 import android.net.NetworkTemplate;
24 public abstract long getNetworkTotalBytes(NetworkTemplate template, long start, long end); in getNetworkTotalBytes()
27 public abstract NetworkStats getNetworkUidBytes(NetworkTemplate template, long start, long end); in getNetworkUidBytes()
DNetworkPolicyManagerInternal.java20 import android.net.NetworkTemplate;
65 public abstract SubscriptionPlan getSubscriptionPlan(NetworkTemplate template); in getSubscriptionPlan()
DNetworkStatsService.java42 import static android.net.NetworkTemplate.buildTemplateMobileWildcard;
43 import static android.net.NetworkTemplate.buildTemplateWifiWildcard;
98 import android.net.NetworkTemplate;
597 NetworkTemplate template, long start, long end) { in openSessionInternal()
604 NetworkTemplate template, long start, long end) { in openSessionInternal()
610 public NetworkStatsHistory getHistoryForNetwork(NetworkTemplate template, int fields) { in openSessionInternal()
617 NetworkTemplate template, long start, long end, boolean includeTags) { in openSessionInternal()
636 NetworkTemplate template, int uid, int set, int tag, int fields) { in openSessionInternal()
649 NetworkTemplate template, int uid, int set, int tag, int fields, in openSessionInternal()
682 private SubscriptionPlan resolveSubscriptionPlan(NetworkTemplate template, int flags) { in resolveSubscriptionPlan()
[all …]
DNetworkStatsCollection.java38 import android.net.NetworkTemplate;
242 public NetworkStatsHistory getHistory(NetworkTemplate template, SubscriptionPlan augmentPlan, in getHistory()
355 public NetworkStats getSummary(NetworkTemplate template, long start, long end, in getSummary()
714 dumpCheckin(pw, start, end, NetworkTemplate.buildTemplateMobileWildcard(), "cell"); in dumpCheckin()
715 dumpCheckin(pw, start, end, NetworkTemplate.buildTemplateWifiWildcard(), "wifi"); in dumpCheckin()
716 dumpCheckin(pw, start, end, NetworkTemplate.buildTemplateEthernet(), "eth"); in dumpCheckin()
717 dumpCheckin(pw, start, end, NetworkTemplate.buildTemplateBluetooth(), "bt"); in dumpCheckin()
724 private void dumpCheckin(PrintWriter pw, long start, long end, NetworkTemplate groupTemplate, in dumpCheckin()
766 private static boolean templateMatches(NetworkTemplate template, NetworkIdentitySet identSet) { in templateMatches()
DNetworkPolicyManagerService.java70 import static android.net.NetworkTemplate.MATCH_MOBILE;
71 import static android.net.NetworkTemplate.MATCH_WIFI;
72 import static android.net.NetworkTemplate.buildTemplateMobileAll;
157 import android.net.NetworkTemplate;
435 final ArrayMap<NetworkTemplate, NetworkPolicy> mNetworkPolicy = new ArrayMap<>();
503 private final ArraySet<NetworkTemplate> mOverLimitNotified = new ArraySet<>();
1038 final NetworkTemplate template = intent.getParcelableExtra(EXTRA_NETWORK_TEMPLATE);
1222 private @Nullable ApplicationInfo findRapidBlame(NetworkTemplate template, in findRapidBlame()
1266 private int findRelevantSubIdNL(NetworkTemplate template) { in findRelevantSubIdNL()
1285 private void notifyOverLimitNL(NetworkTemplate template) { in notifyOverLimitNL()
[all …]
DNetworkStatsObservers.java27 import android.net.NetworkTemplate;
365 private long getTotalBytesForNetwork(NetworkTemplate template) { in getTotalBytesForNetwork()
407 private long getTotalBytesForNetworkUid(NetworkTemplate template, int uid) { in getTotalBytesForNetworkUid()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DChartDataLoader.java30 import android.net.NetworkTemplate;
47 public static Bundle buildArgs(NetworkTemplate template, AppItem app) { in buildArgs()
51 public static Bundle buildArgs(NetworkTemplate template, AppItem app, int fields) { in buildArgs()
73 final NetworkTemplate template = mArgs.getParcelable(KEY_TEMPLATE); in loadInBackground()
86 private ChartData loadInBackground(NetworkTemplate template, AppItem app, int fields) in loadInBackground()
133 NetworkTemplate template, int uid, int set, NetworkStatsHistory existing) in collectHistoryForUid()
DDataUsageController.java34 import android.net.NetworkTemplate;
116 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId); in getDataUsageInfo()
117 template = NetworkTemplate.normalize(template, mTelephonyManager.getMergedSubscriberIds()); in getDataUsageInfo()
123 NetworkTemplate template = NetworkTemplate.buildTemplateWifiWildcard(); in getWifiDataUsageInfo()
127 public DataUsageInfo getDataUsageInfo(NetworkTemplate template) { in getDataUsageInfo()
179 private NetworkPolicy findNetworkPolicy(NetworkTemplate template) { in findNetworkPolicy()
DSummaryForAllUidLoader.java23 import android.net.NetworkTemplate;
35 public static Bundle buildArgs(NetworkTemplate template, long start, long end) { in buildArgs()
57 final NetworkTemplate template = mArgs.getParcelable(KEY_TEMPLATE); in loadInBackground()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
DNetworkPolicyEditorTest.java21 import android.net.NetworkTemplate;
39 private NetworkTemplate mNetworkTemplate;
44 mNetworkTemplate = NetworkTemplate.buildTemplateMobileAll("123456789123456"); in setUp()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java27 import static android.net.NetworkTemplate.buildTemplateMobileAll;
28 import static android.net.NetworkTemplate.buildTemplateWifiWildcard;
46 import android.net.NetworkTemplate;
90 private static NetworkTemplate sTemplateWifi = buildTemplateWifiWildcard();
91 private static NetworkTemplate sTemplateImsi1 = buildTemplateMobileAll(IMSI_1);
92 private static NetworkTemplate sTemplateImsi2 = buildTemplateMobileAll(IMSI_2);
DNetworkStatsServiceTest.java43 import static android.net.NetworkTemplate.buildTemplateMobileAll;
44 import static android.net.NetworkTemplate.buildTemplateWifiWildcard;
84 import android.net.NetworkTemplate;
142 private static NetworkTemplate sTemplateWifi = buildTemplateWifiWildcard();
143 private static NetworkTemplate sTemplateImsi1 = buildTemplateMobileAll(IMSI_1);
144 private static NetworkTemplate sTemplateImsi2 = buildTemplateMobileAll(IMSI_2);
1039 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, in assertNetworkTotal()
1045 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, in assertNetworkTotal()
1057 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, in assertUidTotal()
1063 private void assertUidTotal(NetworkTemplate template, int uid, int set, int metered, in assertUidTotal()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java50 import android.net.NetworkTemplate;
194 private final NetworkTemplate mNetworkTemplate;
221 mNetworkTemplate = new NetworkTemplate( in MultipathTracker()
222 NetworkTemplate.MATCH_MOBILE, subscriberId, new String[] { subscriberId }, in MultipathTracker()

12