Searched defs:template (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
H A DDataIdleTest.java56 NetworkTemplate template = NetworkTemplate.buildTemplateWifiWildcard();
57 fetchStats(template);
65 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId);
66 fetchStats(template);
72 * @param template {@link NetworkTemplate} to match.
74 private void fetchStats(NetworkTemplate template) { argument
80 template, Long.MIN_VALUE, Long.MAX_VALUE, false);
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
H A DNetworkOverLimitActivity.java52 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.snoozeLimit(template);
86 private static int getLimitedDialogTitleForTemplate(NetworkTemplate template) { argument
87 switch (template.getMatchRule()) {
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsCollectionTest.java173 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) {
175 template, Long.MIN_VALUE, Long.MAX_VALUE).getTotal(null);
180 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) {
182 template, Long.MIN_VALUE, Long.MAX_VALUE).getTotalIncludingTags(null);
172 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
179 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
/frameworks/base/core/java/android/net/
H A DNetworkPolicy.java38 public final NetworkTemplate template; field in class:NetworkPolicy
51 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, argument
53 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER,
57 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, argument
60 this.template = checkNotNull(template, "missing NetworkTemplate");
72 template = in.readParcelable(null);
85 dest.writeParcelable(template, flags);
149 return Objects.hashCode(template, cycleDay, cycleTimezone, warningBytes, limitBytes,
163 && Objects.equal(template, othe
[all...]
/frameworks/base/core/java/android/webkit/
H A DURLUtil.java85 public static String composeSearchUrl(String inQuery, String template, argument
87 int placeHolderIndex = template.indexOf(queryPlaceHolder);
94 buffer.append(template.substring(0, placeHolderIndex));
103 buffer.append(template.substring(
/frameworks/base/core/java/android/os/storage/
H A DStorageVolume.java81 public static StorageVolume fromTemplate(StorageVolume template, File path, UserHandle owner) { argument
82 return new StorageVolume(path, template.mDescriptionId, template.mPrimary,
83 template.mRemovable, template.mEmulated, template.mMtpReserveSpace,
84 template.mAllowMassStorage, template.mMaxFileSize, owner);
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsRecorder.java116 public NetworkStats.Entry getTotalSinceBootLocked(NetworkTemplate template) { argument
117 return mSinceBoot.getSummary(template, Long.MIN_VALUE, Long.MAX_VALUE).getTotal(null);
H A DNetworkStatsCollection.java136 NetworkTemplate template, int uid, int set, int tag, int fields) {
137 return getHistory(template, uid, set, tag, fields, Long.MIN_VALUE, Long.MAX_VALUE);
145 NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end) {
152 && templateMatches(template, key.ident)) {
163 public NetworkStats getSummary(NetworkTemplate template, long start, long end) { argument
175 if (templateMatches(template, key.ident)) {
489 private static boolean templateMatches(NetworkTemplate template, NetworkIdentitySet identSet) { argument
491 if (template.matches(ident)) {
135 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields) argument
144 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end) argument
H A DNetworkStatsService.java488 NetworkTemplate template, long start, long end) {
489 return internalGetSummaryForNetwork(template, start, end);
493 public NetworkStatsHistory getHistoryForNetwork(NetworkTemplate template, int fields) {
494 return internalGetHistoryForNetwork(template, fields);
499 NetworkTemplate template, long start, long end, boolean includeTags) {
500 final NetworkStats stats = getUidComplete().getSummary(template, start, end);
503 .getSummary(template, start, end);
511 NetworkTemplate template, int uid, int set, int tag, int fields) {
513 return getUidComplete().getHistory(template, uid, set, tag, fields);
515 return getUidTagComplete().getHistory(template, ui
531 internalGetSummaryForNetwork( NetworkTemplate template, long start, long end) argument
554 internalGetHistoryForNetwork(NetworkTemplate template, int fields) argument
573 getNetworkTotalBytes(NetworkTemplate template, long start, long end) argument
[all...]
H A DNetworkPolicyManagerService.java535 final NetworkTemplate template = intent.getParcelableExtra(EXTRA_NETWORK_TEMPLATE);
536 performSnooze(template, TYPE_WARNING);
554 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(
557 if (mNetworkPolicy.containsKey(template)) {
558 mNetworkPolicy.remove(template);
584 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(
587 NetworkPolicy policy = mNetworkPolicy.get(template);
591 policy = new NetworkPolicy(template, CYCLE_NONE, Time.TIMEZONE_UTC,
643 if (!isTemplateRelevant(policy.template)) continue;
648 final long totalBytes = getTotalBytes(policy.template, star
686 isTemplateRelevant(NetworkTemplate template) argument
708 notifyOverLimitLocked(NetworkTemplate template) argument
715 notifyUnderLimitLocked(NetworkTemplate template) argument
944 setNetworkTemplateEnabled(NetworkTemplate template, boolean enabled) argument
1477 snoozeLimit(NetworkTemplate template) argument
1488 performSnooze(NetworkTemplate template, int type) argument
2001 getTotalBytes(NetworkTemplate template, long start, long end) argument
2042 buildSnoozeWarningIntent(NetworkTemplate template) argument
2048 buildNetworkOverLimitIntent(NetworkTemplate template) argument
2057 buildViewDataUsageIntent(NetworkTemplate template) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkStatsServiceTest.java460 // and verify new history also recorded under different template, which
603 // verify that ALL_MOBILE template combines both
839 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, argument
841 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
845 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, argument
848 final NetworkStatsHistory history = mSession.getHistoryForNetwork(template, FIELD_ALL);
852 final NetworkStats stats = mSession.getSummaryForNetwork(template, start, end);
857 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, argument
859 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations);
862 private void assertUidTotal(NetworkTemplate template, in argument
[all...]
/frameworks/base/core/java/android/text/
H A DTextUtils.java809 public static CharSequence replace(CharSequence template, argument
812 SpannableStringBuilder tb = new SpannableStringBuilder(template);
836 * <code>template</code> CharSequence with the corresponding
842 * @param template the input text containing "^1"-style
846 * @param values CharSequences substituted into the template. The
851 * @throws IllegalArgumentException if the template requests a
855 public static CharSequence expandTemplate(CharSequence template, argument
861 SpannableStringBuilder ssb = new SpannableStringBuilder(template);
876 "template requests value ^" + (which+1));
880 "template request
[all...]

Completed in 226 milliseconds