/frameworks/base/core/java/android/net/ |
D | NetworkTemplate.java | 67 public class NetworkTemplate implements Parcelable { class 139 public static NetworkTemplate buildTemplateMobileAll(String subscriberId) { in buildTemplateMobileAll() 140 return new NetworkTemplate(MATCH_MOBILE, subscriberId, null); in buildTemplateMobileAll() 148 public static NetworkTemplate buildTemplateMobileWithRatType(@Nullable String subscriberId, in buildTemplateMobileWithRatType() 151 return new NetworkTemplate(MATCH_MOBILE_WILDCARD, null, null, null, in buildTemplateMobileWithRatType() 154 return new NetworkTemplate(MATCH_MOBILE, subscriberId, new String[]{subscriberId}, null, in buildTemplateMobileWithRatType() 163 public static NetworkTemplate buildTemplateMobileWildcard() { in buildTemplateMobileWildcard() 164 return new NetworkTemplate(MATCH_MOBILE_WILDCARD, null, null); in buildTemplateMobileWildcard() 172 public static NetworkTemplate buildTemplateWifiWildcard() { in buildTemplateWifiWildcard() 173 return new NetworkTemplate(MATCH_WIFI_WILDCARD, null, null); in buildTemplateWifiWildcard() [all …]
|
D | INetworkStatsSession.aidl | 21 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()
|
D | DataUsageRequest.java | 19 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);
|
D | NetworkPolicy.java | 54 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()
|
D | INetworkPolicyManager.aidl | 23 import android.net.NetworkTemplate; 52 void snoozeLimit(in NetworkTemplate template); in snoozeLimit()
|
D | NetworkTemplate.aidl | 19 parcelable NetworkTemplate;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 23 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/ |
D | DataUsageUtils.java | 20 import android.net.NetworkTemplate; 39 public static NetworkTemplate getMobileTemplate(Context context, int subId) { in getMobileTemplate() 61 private static NetworkTemplate getNormalizedMobileTemplate( in getNormalizedMobileTemplate() 63 final NetworkTemplate mobileTemplate = getMobileTemplateForSubId(telephonyManager, subId); in getNormalizedMobileTemplate() 71 return NetworkTemplate.normalize(mobileTemplate, mergedSubscriberIds); in getNormalizedMobileTemplate() 74 private static NetworkTemplate getMobileTemplateForSubId( in getMobileTemplateForSubId() 76 return NetworkTemplate.buildTemplateMobileAll(telephonyManager.getSubscriberId(subId)); in getMobileTemplateForSubId()
|
D | DataUsageController.java | 35 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() 247 static int getNetworkType(NetworkTemplate networkTemplate) { in getNetworkType() 253 case NetworkTemplate.MATCH_MOBILE: in getNetworkType() 254 case NetworkTemplate.MATCH_MOBILE_WILDCARD: in getNetworkType() [all …]
|
D | ChartDataLoader.java | 30 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()
|
D | NetworkStatsSummaryLoader.java | 22 import android.net.NetworkTemplate; 37 private final NetworkTemplate mNetworkTemplate; 80 private NetworkTemplate mNetworkTemplate; 99 public Builder setNetworkTemplate(NetworkTemplate template) { in setNetworkTemplate()
|
D | SummaryForAllUidLoader.java | 23 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()
|
D | NetworkCycleDataLoader.java | 30 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/ |
D | NetworkStatsManager.java | 33 import android.net.NetworkTemplate; 176 public Bucket querySummaryForDevice(NetworkTemplate template, in querySummaryForDevice() 217 NetworkTemplate template; in querySummaryForDevice() 256 NetworkTemplate template; in querySummaryForUser() 299 NetworkTemplate template; in querySummary() 311 public NetworkStats querySummary(NetworkTemplate template, long startTime, in querySummary() 332 public NetworkStats queryDetailsForUid(NetworkTemplate template, in queryDetailsForUid() 385 NetworkTemplate template; in queryDetailsForUidTagState() 392 public NetworkStats queryDetailsForUidTagState(NetworkTemplate template, in queryDetailsForUidTagState() 441 NetworkTemplate template; in queryDetails() [all …]
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkTemplateTest.kt | 27 import android.net.NetworkTemplate.MATCH_MOBILE 28 import android.net.NetworkTemplate.MATCH_WIFI 29 import android.net.NetworkTemplate.NETWORK_TYPE_5G_NSA 30 import android.net.NetworkTemplate.NETWORK_TYPE_ALL 31 import android.net.NetworkTemplate.buildTemplateMobileWithRatType 74 private fun NetworkTemplate.assertMatches(ident: NetworkIdentity) = in NetworkTemplate() method 77 private fun NetworkTemplate.assertDoesNotMatch(ident: NetworkIdentity) = in NetworkTemplate() method 141 val templateMobile = NetworkTemplate(MATCH_MOBILE, TEST_IMSI1, null, null, METERED_ALL, in testParcelUnparcel() 143 val templateWifi = NetworkTemplate(MATCH_WIFI, null, null, TEST_SSID1, METERED_ALL, in testParcelUnparcel()
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 23 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/ |
D | NetworkOverLimitActivity.java | 20 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/ |
D | NetworkStatsManagerTest.java | 38 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/ |
D | NetworkStatsManagerInternal.java | 21 import android.net.NetworkTemplate; 25 public abstract long getNetworkTotalBytes(NetworkTemplate template, long start, long end); in getNetworkTotalBytes() 28 public abstract NetworkStats getNetworkUidBytes(NetworkTemplate template, long start, long end); in getNetworkUidBytes()
|
D | NetworkPolicyManagerInternal.java | 23 import android.net.NetworkTemplate; 91 public abstract SubscriptionPlan getSubscriptionPlan(NetworkTemplate template); in getSubscriptionPlan()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | DataUsageControllerTest.java | 36 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()
|
D | DataUsageUtilsTest.java | 26 import android.net.NetworkTemplate; 83 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_infoNull_returnMobileAll() 96 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_groupUuidNull_returnMobileAll() 109 final NetworkTemplate networkTemplate = DataUsageUtils.getMobileTemplate(mContext, SUB_ID); in getMobileTemplate_groupUuidExist_returnMobileMerged()
|
D | NetworkCycleDataForUidLoaderTest.java | 33 import android.net.NetworkTemplate; 53 private NetworkTemplate mNetworkTemplate; 65 mNetworkTemplate = NetworkTemplate.buildTemplateMobileAll(SUB_ID); in setUp()
|
D | NetworkCycleChartDataLoaderTest.java | 26 import android.net.NetworkTemplate; 47 private NetworkTemplate mNetworkTemplate;
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/ |
D | NetworkPolicyEditorTest.java | 23 import android.net.NetworkTemplate; 42 private NetworkTemplate mNetworkTemplate; 47 mNetworkTemplate = NetworkTemplate.buildTemplateMobileAll("123456789123456"); in setUp()
|