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

12

/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/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/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/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 DSetupWizardPreferenceLayout.java71 public SetupWizardPreferenceLayout(Context context, int template, int containerId) { argument
72 super(context, template, containerId);
104 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument
105 if (template == 0) {
106 template = R.layout.suw_preference_template;
108 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);
H A DSetupWizardRecyclerLayout.java64 public SetupWizardRecyclerLayout(Context context, int template, int containerId) { argument
65 super(context, template, containerId);
147 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument
148 if (template == 0) {
149 template = R.layout.suw_recycler_template;
151 return super.onInflateTemplate(inflater, template);
173 + " the template to require scrolling.");
/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 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);
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...]
/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
/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/main/src/com/android/setupwizardlib/
H A DTemplateLayout.java33 * A generic template class that inflates a template, provided in the constructor or in
34 * {@code android:layout} through XML, and adds its children to a "container" in the template. When
41 * The container of the actual content. This will be a view in the template, which child views
46 public TemplateLayout(Context context, int template, int containerId) { argument
48 init(template, containerId, null, R.attr.suwLayoutTheme);
64 private void init(int template, int containerId, AttributeSet attrs, int defStyleAttr) { argument
67 if (template == 0) {
68 template = a.getResourceId(R.styleable.SuwTemplateLayout_android_layout, 0);
73 inflateTemplate(template, containerI
109 onInflateTemplate(LayoutInflater inflater, int template) argument
[all...]
H A DGlifLayout.java67 public GlifLayout(Context context, int template) { argument
68 this(context, template, 0);
71 public GlifLayout(Context context, int template, int containerId) { argument
72 super(context, template, containerId);
121 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument
122 if (template == 0) {
123 template = R.layout.suw_glif_template;
126 return super.onInflateTemplate(inflater, template);
H A DGlifListLayout.java59 public GlifListLayout(Context context, int template) { argument
60 this(context, template, 0);
63 public GlifListLayout(Context context, int template, int containerId) { argument
64 super(context, template, containerId);
107 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument
108 if (template == 0) {
109 template = R.layout.suw_glif_list_template;
111 return super.onInflateTemplate(inflater, template);
H A DSetupWizardListLayout.java49 public SetupWizardListLayout(Context context, int template) { argument
50 this(context, template, 0);
53 public SetupWizardListLayout(Context context, int template, int containerId) { argument
54 super(context, template, containerId);
79 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument
80 if (template == 0) {
81 template = R.layout.suw_list_template;
83 return super.onInflateTemplate(inflater, template);
124 + " the template to require scrolling.");
H A DSetupWizardLayout.java61 public SetupWizardLayout(Context context, int template) { argument
62 this(context, template, 0);
65 public SetupWizardLayout(Context context, int template, int containerId) { argument
66 super(context, template, containerId);
172 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument
173 if (template == 0) {
174 template = R.layout.suw_template;
177 return super.onInflateTemplate(inflater, template);
211 + " the template to require scrolling.");
/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/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/base/core/java/android/app/usage/
H A DNetworkStats.java100 NetworkStats(Context context, NetworkTemplate template, long startTimestamp, argument
107 mTemplate = template;
/frameworks/base/services/core/java/com/android/server/net/
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...]

Completed in 730 milliseconds

12