Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DNetworkTemplate.java59 public class NetworkTemplate implements Parcelable { class
114 public static NetworkTemplate buildTemplateMobileAll(String subscriberId) { in buildTemplateMobileAll()
115 return new NetworkTemplate(MATCH_MOBILE, subscriberId, null); in buildTemplateMobileAll()
123 public static NetworkTemplate buildTemplateMobileWildcard() { in buildTemplateMobileWildcard()
124 return new NetworkTemplate(MATCH_MOBILE_WILDCARD, null, null); in buildTemplateMobileWildcard()
132 public static NetworkTemplate buildTemplateWifiWildcard() { in buildTemplateWifiWildcard()
133 return new NetworkTemplate(MATCH_WIFI_WILDCARD, null, null); in buildTemplateWifiWildcard()
138 public static NetworkTemplate buildTemplateWifi() { in buildTemplateWifi()
146 public static NetworkTemplate buildTemplateWifi(String networkId) { in buildTemplateWifi()
147 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()
31 NetworkStats getSummaryForNetwork(in NetworkTemplate template, long start, long end); in getSummaryForNetwork()
34 NetworkStatsHistory getHistoryForNetwork(in NetworkTemplate template, int fields); in getHistoryForNetwork()
38 …NetworkStats getSummaryForAllUid(in NetworkTemplate template, long start, long end, boolean includ… in getSummaryForAllUid()
41 …NetworkStatsHistory getHistoryForUid(in NetworkTemplate template, int uid, int set, int tag, int f… in getHistoryForUid()
43 …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.java54 public NetworkTemplate template;
79 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy()
87 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy()
95 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy()
102 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy()
276 final NetworkTemplate template = NetworkTemplate.getNetworkTemplateFromBackup(in); in getNetworkPolicyFromBackup()
DINetworkPolicyManager.aidl23 import android.net.NetworkTemplate;
52 void snoozeLimit(in NetworkTemplate template); in snoozeLimit()
DNetworkTemplate.aidl19 parcelable 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/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java20 import android.net.NetworkTemplate;
35 public static NetworkTemplate getMobileTemplate(Context context, int subId) { in getMobileTemplate()
41 final NetworkTemplate mobileAll = NetworkTemplate.buildTemplateMobileAll( in getMobileTemplate()
50 return NetworkTemplate.normalize(mobileAll, telephonyManager.getMergedSubscriberIds()); in getMobileTemplate()
DDataUsageController.java35 import android.net.NetworkTemplate;
113 NetworkTemplate template = DataUsageUtils.getMobileTemplate(mContext, mSubscriptionId); in getDataUsageInfo()
119 NetworkTemplate template = NetworkTemplate.buildTemplateWifiWildcard(); in getWifiDataUsageInfo()
123 public DataUsageInfo getDataUsageInfo(NetworkTemplate template) { in getDataUsageInfo()
166 public long getHistoricalUsageLevel(NetworkTemplate template) { in getHistoricalUsageLevel()
170 private long getUsageLevel(NetworkTemplate template, long start, long end) { in getUsageLevel()
183 private NetworkPolicy findNetworkPolicy(NetworkTemplate template) { in findNetworkPolicy()
246 static int getNetworkType(NetworkTemplate networkTemplate) { in getNetworkType()
252 case NetworkTemplate.MATCH_MOBILE: in getNetworkType()
253 case NetworkTemplate.MATCH_MOBILE_WILDCARD: in getNetworkType()
[all …]
DNetworkStatsSummaryLoader.java22 import android.net.NetworkTemplate;
37 private final NetworkTemplate mNetworkTemplate;
80 private NetworkTemplate mNetworkTemplate;
99 public Builder setNetworkTemplate(NetworkTemplate template) { in setNetworkTemplate()
DChartDataLoader.java30 import android.net.NetworkTemplate;
50 public static Bundle buildArgs(NetworkTemplate template, AppItem app) { in buildArgs()
54 public static Bundle buildArgs(NetworkTemplate template, AppItem app, int fields) { in buildArgs()
76 final NetworkTemplate template = mArgs.getParcelable(KEY_TEMPLATE); in loadInBackground()
89 private ChartData loadInBackground(NetworkTemplate template, AppItem app, int fields) in loadInBackground()
136 NetworkTemplate template, int uid, int set, NetworkStatsHistory existing) in collectHistoryForUid()
DSummaryForAllUidLoader.java23 import android.net.NetworkTemplate;
41 public static Bundle buildArgs(NetworkTemplate template, long start, long end) { in buildArgs()
63 final NetworkTemplate template = mArgs.getParcelable(KEY_TEMPLATE); in loadInBackground()
DNetworkCycleDataLoader.java30 import android.net.NetworkTemplate;
52 protected final NetworkTemplate mNetworkTemplate;
179 private NetworkTemplate mNetworkTemplate;
186 public Builder<T> setNetworkTemplate(NetworkTemplate template) {
/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java31 import android.net.NetworkTemplate;
168 public Bucket querySummaryForDevice(NetworkTemplate template, in querySummaryForDevice()
203 NetworkTemplate template; in querySummaryForDevice()
236 NetworkTemplate template; in querySummaryForUser()
273 NetworkTemplate template; in querySummary()
285 public NetworkStats querySummary(NetworkTemplate template, long startTime, in querySummary()
306 public NetworkStats queryDetailsForUid(NetworkTemplate template, in queryDetailsForUid()
353 NetworkTemplate template; in queryDetailsForUidTagState()
360 public NetworkStats queryDetailsForUidTagState(NetworkTemplate template, in queryDetailsForUidTagState()
403 NetworkTemplate template; in queryDetails()
[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/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.java22 import android.net.NetworkTemplate;
89 public abstract SubscriptionPlan getSubscriptionPlan(NetworkTemplate template); in getSubscriptionPlan()
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()
/frameworks/base/tests/net/java/android/app/usage/
DNetworkStatsManagerTest.java38 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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DDataUsageControllerTest.java36 import android.net.NetworkTemplate;
66 private NetworkTemplate mNetworkTemplate;
67 private NetworkTemplate mNetworkTemplate2;
68 private NetworkTemplate mWifiNetworkTemplate;
86 .when(mSession).getHistoryForNetwork(any(NetworkTemplate.class), anyInt()); in setUp()
90 mNetworkTemplate = NetworkTemplate.buildTemplateMobileAll(SUB_ID); in setUp()
91 mNetworkTemplate2 = NetworkTemplate.buildTemplateMobileAll(SUB_ID_2); in setUp()
92 mWifiNetworkTemplate = NetworkTemplate.buildTemplateWifiWildcard(); in setUp()
DDataUsageUtilsTest.java25 import android.net.NetworkTemplate;
85 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_infoNull_returnMobileAll()
95 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_infoExisted_returnMobileMerged()
DNetworkCycleDataForUidLoaderTest.java33 import android.net.NetworkTemplate;
53 private NetworkTemplate mNetworkTemplate;
65 mNetworkTemplate = NetworkTemplate.buildTemplateMobileAll(SUB_ID); in setUp()
DNetworkCycleChartDataLoaderTest.java26 import android.net.NetworkTemplate;
47 private NetworkTemplate mNetworkTemplate;
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
DNetworkPolicyEditorTest.java23 import android.net.NetworkTemplate;
42 private NetworkTemplate mNetworkTemplate;
47 mNetworkTemplate = NetworkTemplate.buildTemplateMobileAll("123456789123456"); in setUp()

12