/frameworks/base/packages/SystemUI/src/com/android/systemui/net/ |
H A D | NetworkOverLimitActivity.java | 52 final NetworkTemplate template = getIntent().getParcelableExtra(EXTRA_NETWORK_TEMPLATE); 54 builder.setTitle(getLimitedDialogTitleForTemplate(template)); 61 snoozePolicy(template); 76 private void snoozePolicy(NetworkTemplate template) { argument 80 policyService.snoozePolicy(template); 86 private static int getLimitedDialogTitleForTemplate(NetworkTemplate template) { argument 87 switch (template.getMatchRule()) {
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
H A D | DataIdleTest.java | 55 NetworkTemplate template = NetworkTemplate.buildTemplateWifi(); 56 fetchStats(template); 64 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId); 65 fetchStats(template); 71 * @param template {link {@link NetworkTemplate} to match. 73 private void fetchStats(NetworkTemplate template) { argument 76 NetworkStats stats = mStatsService.getSummaryForAllUid(template, Long.MIN_VALUE,
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkPolicy.java | 37 public final NetworkTemplate template; field in class:NetworkPolicy 45 public NetworkPolicy(NetworkTemplate template, int cycleDay, long warningBytes, long limitBytes, argument 47 this.template = checkNotNull(template, "missing NetworkTemplate"); 55 template = in.readParcelable(null); 64 dest.writeParcelable(template, flags); 102 return Objects.hashCode(template, cycleDay, warningBytes, limitBytes, lastSnooze); 109 return Objects.equal(template, other.template) && cycleDay == other.cycleDay 118 return "NetworkPolicy[" + template [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | URLUtil.java | 84 public static String composeSearchUrl(String inQuery, String template, argument 86 int placeHolderIndex = template.indexOf(queryPlaceHolder); 93 buffer.append(template.substring(0, placeHolderIndex)); 102 buffer.append(template.substring(
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkStatsServiceTest.java | 458 // and verify new history also recorded under different template, which 601 // verify that ALL_MOBILE template combines both 775 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, argument 777 final NetworkStatsHistory history = mService.getHistoryForNetwork(template, FIELD_ALL); 782 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, argument 784 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); 787 private void assertUidTotal(NetworkTemplate template, int uid, int set, long rxBytes, argument 790 template, uid, set, TAG_NONE, FIELD_ALL);
|
/frameworks/base/core/java/android/text/ |
H A D | TextUtils.java | 799 public static CharSequence replace(CharSequence template, argument 802 SpannableStringBuilder tb = new SpannableStringBuilder(template); 826 * <code>template</code> CharSequence with the corresponding 832 * @param template the input text containing "^1"-style 836 * @param values CharSequences substituted into the template. The 841 * @throws IllegalArgumentException if the template requests a 845 public static CharSequence expandTemplate(CharSequence template, argument 851 SpannableStringBuilder ssb = new SpannableStringBuilder(template); 866 "template requests value ^" + (which+1)); 870 "template request [all...] |
/frameworks/base/services/java/com/android/server/net/ |
H A D | NetworkPolicyManagerService.java | 452 if (!isTemplateRelevant(policy.template)) continue; 456 final long totalBytes = getTotalBytes(policy.template, start, end); 463 notifyOverLimitLocked(policy.template); 467 notifyUnderLimitLocked(policy.template); 493 private boolean isTemplateRelevant(NetworkTemplate template) { argument 494 switch (template.getMatchRule()) { 499 return Objects.equal(getActiveSubscriberId(), template.getSubscriberId()); 508 private void notifyOverLimitLocked(NetworkTemplate template) { argument 509 if (!mOverLimitNotified.contains(template)) { 510 mContext.startActivity(buildNetworkOverLimitIntent(template)); 515 notifyUnderLimitLocked(NetworkTemplate template) argument 732 setNetworkTemplateEnabled(NetworkTemplate template, boolean enabled) argument 1123 snoozePolicy(NetworkTemplate template) argument 1552 getTotalBytes(NetworkTemplate template, long start, long end) argument 1578 buildNetworkOverLimitIntent(NetworkTemplate template) argument 1587 buildViewDataUsageIntent(NetworkTemplate template) argument [all...] |
H A D | NetworkStatsService.java | 380 public NetworkStatsHistory getHistoryForNetwork(NetworkTemplate template, int fields) { argument 382 return getHistoryForNetworkDev(template, fields); 385 private NetworkStatsHistory getHistoryForNetworkDev(NetworkTemplate template, int fields) { argument 386 return getHistoryForNetwork(template, fields, mNetworkDevStats); 389 private NetworkStatsHistory getHistoryForNetworkXt(NetworkTemplate template, int fields) { argument 390 return getHistoryForNetwork(template, fields, mNetworkXtStats); 393 private NetworkStatsHistory getHistoryForNetwork(NetworkTemplate template, int fields, argument 396 // combine all interfaces that match template 400 if (templateMatches(template, ident)) { 413 NetworkTemplate template, in 412 getHistoryForUid( NetworkTemplate template, int uid, int set, int tag, int fields) argument 436 getSummaryForNetwork(NetworkTemplate template, long start, long end) argument 441 getSummaryForNetworkDev(NetworkTemplate template, long start, long end) argument 445 getSummaryForNetworkXt(NetworkTemplate template, long start, long end) argument 449 getSummaryForNetwork(NetworkTemplate template, long start, long end, HashMap<NetworkIdentitySet, NetworkStatsHistory> source) argument 481 getHistoryStartLocked( NetworkTemplate template, HashMap<NetworkIdentitySet, NetworkStatsHistory> source) argument 494 getSummaryForAllUid( NetworkTemplate template, long start, long end, boolean includeTags) argument 1614 templateMatches(NetworkTemplate template, NetworkIdentitySet identSet) argument [all...] |