Searched defs:template (Results 1 - 25 of 35) sorted by path

12

/frameworks/base/core/java/android/app/usage/
H A DNetworkStats.java100 NetworkStats(Context context, NetworkTemplate template, long startTimestamp, argument
107 mTemplate = template;
/frameworks/base/core/java/android/hardware/camera2/
H A DCaptureRequest.java507 * Initialize the builder using the template; the request takes
508 * ownership of the template.
510 * @param template Template settings for this capture request.
524 public Builder(CameraMetadataNative template, boolean reprocess, argument
526 mRequest = new CaptureRequest(template, reprocess, reprocessableSessionId);
/frameworks/base/core/java/android/net/
H A DDataUsageRequest.java47 public final NetworkTemplate template; field in class:DataUsageRequest
54 public DataUsageRequest(int requestId, NetworkTemplate template, long thresholdInBytes) { argument
56 this.template = template;
68 dest.writeParcelable(template, flags);
77 NetworkTemplate template = in.readParcelable(null);
79 DataUsageRequest result = new DataUsageRequest(requestId, template,
93 + ", networkTemplate=" + template
102 && Objects.equals(that.template, this.template)
[all...]
H A DNetworkPolicy.java48 public NetworkTemplate template; field in class:NetworkPolicy
61 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, argument
63 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER,
67 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, argument
70 this.template = checkNotNull(template, "missing NetworkTemplate");
82 template = in.readParcelable(null);
95 dest.writeParcelable(template, flags);
159 return Objects.hash(template, cycleDay, cycleTimezone, warningBytes, limitBytes,
173 && Objects.equals(template, othe
[all...]
H A DNetworkTemplate.java164 * that should be considered to match this template.
274 * Test if given {@link NetworkIdentity} matches this template.
297 throw new IllegalArgumentException("unknown network template");
353 * Check if matches Wi-Fi network template.
366 * Check if matches Ethernet network template.
394 * Check if matches Bluetooth network template.
404 * Check if matches Proxy network template.
438 "Unable to enforce 3G_LOWER template on combined data.");
443 * Examine the given template and normalize if it refers to a "merged"
445 * for key purposes, and expand the template t
452 normalize(NetworkTemplate template, String[] merged) argument
[all...]
/frameworks/base/core/java/android/text/
H A DTextUtils.java843 public static CharSequence replace(CharSequence template, argument
846 SpannableStringBuilder tb = new SpannableStringBuilder(template);
870 * <code>template</code> CharSequence with the corresponding
876 * @param template the input text containing "^1"-style
880 * @param values CharSequences substituted into the template. The
885 * @throws IllegalArgumentException if the template requests a
889 public static CharSequence expandTemplate(CharSequence template, argument
895 SpannableStringBuilder ssb = new SpannableStringBuilder(template);
910 "template requests value ^" + (which+1));
914 "template request
[all...]
/frameworks/base/core/java/android/webkit/
H A DURLUtil.java87 public static String composeSearchUrl(String inQuery, String template, argument
89 int placeHolderIndex = template.indexOf(queryPlaceHolder);
96 buffer.append(template.substring(0, placeHolderIndex));
105 buffer.append(template.substring(
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DNetworkPolicyEditor.java96 public boolean hasLimitedPolicy(NetworkTemplate template) { argument
97 final NetworkPolicy policy = getPolicy(template);
101 public NetworkPolicy getOrCreatePolicy(NetworkTemplate template) { argument
102 NetworkPolicy policy = getPolicy(template);
104 policy = buildDefaultPolicy(template);
110 public NetworkPolicy getPolicy(NetworkTemplate template) { argument
112 if (policy.template.equals(template)) {
119 public NetworkPolicy getPolicyMaybeUnquoted(NetworkTemplate template) { argument
120 NetworkPolicy policy = getPolicy(template);
129 buildDefaultPolicy(NetworkTemplate template) argument
151 getPolicyCycleDay(NetworkTemplate template) argument
156 setPolicyCycleDay(NetworkTemplate template, int cycleDay, String cycleTimezone) argument
165 getPolicyWarningBytes(NetworkTemplate template) argument
170 setPolicyWarningBytes(NetworkTemplate template, long warningBytes) argument
178 getPolicyLimitBytes(NetworkTemplate template) argument
183 setPolicyLimitBytes(NetworkTemplate template, long limitBytes) argument
191 getPolicyMetered(NetworkTemplate template) argument
200 setPolicyMetered(NetworkTemplate template, boolean metered) argument
243 buildUnquotedNetworkTemplate(NetworkTemplate template) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DChartDataLoader.java40 private static final String KEY_TEMPLATE = "template";
47 public static Bundle buildArgs(NetworkTemplate template, AppItem app) { argument
48 return buildArgs(template, app, FIELD_RX_BYTES | FIELD_TX_BYTES);
51 public static Bundle buildArgs(NetworkTemplate template, AppItem app, int fields) { argument
53 args.putParcelable(KEY_TEMPLATE, template);
73 final NetworkTemplate template = mArgs.getParcelable(KEY_TEMPLATE);
78 return loadInBackground(template, app, fields);
86 private ChartData loadInBackground(NetworkTemplate template, AppItem app, int fields) argument
89 data.network = mSession.getHistoryForNetwork(template, fields);
92 // load stats for current uid and template
132 collectHistoryForUid( NetworkTemplate template, int uid, int set, NetworkStatsHistory existing) argument
[all...]
H A DDataUsageController.java112 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId);
113 template = NetworkTemplate.normalize(template, mTelephonyManager.getMergedSubscriberIds());
115 return getDataUsageInfo(template);
119 NetworkTemplate template = NetworkTemplate.buildTemplateWifiWildcard();
120 return getDataUsageInfo(template);
123 public DataUsageInfo getDataUsageInfo(NetworkTemplate template) { argument
128 final NetworkPolicy policy = findNetworkPolicy(template);
130 final NetworkStatsHistory history = session.getHistoryForNetwork(template, FIELDS);
183 private NetworkPolicy findNetworkPolicy(NetworkTemplate template) { argument
[all...]
H A DSummaryForAllUidLoader.java28 private static final String KEY_TEMPLATE = "template";
35 public static Bundle buildArgs(NetworkTemplate template, long start, long end) { argument
37 args.putParcelable(KEY_TEMPLATE, template);
57 final NetworkTemplate template = mArgs.getParcelable(KEY_TEMPLATE);
62 return mSession.getSummaryForAllUid(template, start, end, 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/core/java/com/android/server/net/
H A DNetworkPolicyManagerService.java811 final NetworkTemplate template = intent.getParcelableExtra(EXTRA_NETWORK_TEMPLATE);
812 performSnooze(template, TYPE_WARNING);
830 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(config.SSID);
832 if (mNetworkPolicy.containsKey(template)) {
833 mNetworkPolicy.remove(template);
859 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(info.getSSID());
861 NetworkPolicy policy = mNetworkPolicy.get(template);
865 policy = newWifiPolicy(template, meteredHint);
881 static NetworkPolicy newWifiPolicy(NetworkTemplate template, boolean metered) { argument
882 return new NetworkPolicy(template, CYCLE_NON
961 isTemplateRelevant(NetworkTemplate template) argument
986 notifyOverLimitLocked(NetworkTemplate template) argument
993 notifyUnderLimitLocked(NetworkTemplate template) argument
1191 setNetworkTemplateEnabled(NetworkTemplate template, boolean enabled) argument
1916 snoozeLimit(NetworkTemplate template) argument
1927 performSnooze(NetworkTemplate template, int type) argument
3374 getTotalBytes(NetworkTemplate template, long start, long end) argument
3415 buildSnoozeWarningIntent(NetworkTemplate template) argument
3421 buildNetworkOverLimitIntent(NetworkTemplate template) argument
3430 buildViewDataUsageIntent(NetworkTemplate template) argument
[all...]
H A DNetworkStatsCollection.java163 NetworkTemplate template, int uid, int set, int tag, int fields,
165 return getHistory(template, uid, set, tag, fields, Long.MIN_VALUE, Long.MAX_VALUE,
174 NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end,
176 return getHistory(template, uid, set, tag, fields, start, end, accessLevel,
185 NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end,
201 && templateMatches(template, key.ident)) {
213 public NetworkStats getSummary(NetworkTemplate template, long start, long end, argument
215 return getSummary(template, start, end, accessLevel, Binder.getCallingUid());
222 public NetworkStats getSummary(NetworkTemplate template, long start, long end, argument
235 if (templateMatches(template, ke
162 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, @NetworkStatsAccess.Level int accessLevel) argument
173 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, @NetworkStatsAccess.Level int accessLevel) argument
184 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, @NetworkStatsAccess.Level int accessLevel, int callerUid) argument
603 templateMatches(NetworkTemplate template, NetworkIdentitySet identSet) argument
[all...]
H A DNetworkStatsObservers.java210 request.template, thresholdInBytes);
344 long bytesSoFar = getTotalBytesForNetwork(mRequest.template);
347 + mRequest.template);
365 * Reads stats matching the given template. {@link NetworkStatsCollection} will aggregate
369 private long getTotalBytesForNetwork(NetworkTemplate template) { argument
370 NetworkStats stats = mCollection.getSummary(template,
389 long bytesSoFar = getTotalBytesForNetworkUid(mRequest.template, uidsToMonitor[i]);
407 * Reads all stats matching the given template and uid. Ther history will likely only
411 private long getTotalBytesForNetworkUid(NetworkTemplate template, int uid) { argument
413 NetworkStatsHistory history = mCollection.getHistory(template, ui
[all...]
H A DNetworkStatsRecorder.java149 public NetworkStats.Entry getTotalSinceBootLocked(NetworkTemplate template) { argument
150 return mSinceBoot.getSummary(template, Long.MIN_VALUE, Long.MAX_VALUE,
H A DNetworkStatsService.java511 public NetworkStats getDeviceSummaryForNetwork(NetworkTemplate template, long start,
525 internalGetSummaryForNetwork(template, start, end,
535 NetworkTemplate template, long start, long end) {
537 return internalGetSummaryForNetwork(template, start, end, accessLevel);
541 public NetworkStatsHistory getHistoryForNetwork(NetworkTemplate template, int fields) {
543 return internalGetHistoryForNetwork(template, fields, accessLevel);
548 NetworkTemplate template, long start, long end, boolean includeTags) {
551 getUidComplete().getSummary(template, start, end, accessLevel);
554 .getSummary(template, start, end, accessLevel);
562 NetworkTemplate template, in
607 internalGetSummaryForNetwork( NetworkTemplate template, long start, long end, @NetworkStatsAccess.Level int accessLevel) argument
619 internalGetHistoryForNetwork(NetworkTemplate template, int fields, @NetworkStatsAccess.Level int accessLevel) argument
627 getNetworkTotalBytes(NetworkTemplate template, long start, long end) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkStatsCollectionTest.java239 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets,
242 template, Long.MIN_VALUE, Long.MAX_VALUE, accessLevel)
248 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) {
250 template, Long.MIN_VALUE, Long.MAX_VALUE, NetworkStatsAccess.Level.DEVICE)
238 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, @NetworkStatsAccess.Level int accessLevel) argument
247 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
H A DNetworkStatsServiceTest.java509 // and verify new history also recorded under different template, which
655 // verify that ALL_MOBILE template combines both
936 assertTrue(Objects.equals(sTemplateWifi, request.template));
1023 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, argument
1025 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes,
1029 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, argument
1032 final NetworkStatsHistory history = mSession.getHistoryForNetwork(template, FIELD_ALL);
1036 final NetworkStats stats = mSession.getSummaryForNetwork(template, start, end);
1041 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, argument
1043 assertUidTotal(template, ui
1047 assertUidTotal(NetworkTemplate template, int uid, int set, int roaming, long rxBytes, long rxPackets, long txBytes, long txPackets, int operations) argument
[all...]
/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/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java57 * options in the same way as the provided template would.
59 * <p>The default settings provided by the given template are only ever used
65 * the template that is provided to the camera framework at that time.</p>
69 * @param template Specific template to use for the defaults.
79 public AndroidCamera2Settings(CameraDevice camera, int template, Rect activeArray, argument
88 mTemplateSettings = camera.createCaptureRequest(template);
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/
H A DCamera2RequestSettingsSet.java42 * from the template of choice. Its revision identifier is initially
67 * Specify a setting, potentially overriding the template's default choice.
70 * the template's selection for that {@code key}; the difference here is
77 * the use of the template's default selection for this field.
129 * setting is unset or forced to the template-defined default.
220 * @param template A {@link CaptureRequest} template defined in
228 public CaptureRequest createRequest(CameraDevice camera, int template, Surface... targets) argument
234 Builder reqBuilder = camera.createCaptureRequest(template);
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/
H A DGlifPreferenceLayout.java72 public GlifPreferenceLayout(Context context, int template, int containerId) { argument
73 super(context, template, containerId);
105 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument
106 if (template == 0) {
107 template = R.layout.suw_glif_preference_template;
109 return super.onInflateTemplate(inflater, template);
H A DGlifRecyclerLayout.java56 public GlifRecyclerLayout(Context context, int template) { argument
57 this(context, template, 0);
60 public GlifRecyclerLayout(Context context, int template, int containerId) { argument
61 super(context, template, containerId);
107 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument
108 if (template == 0) {
109 template = R.layout.suw_glif_recycler_template;
111 return super.onInflateTemplate(inflater, template);

Completed in 721 milliseconds

12