Searched defs:template (Results 1 - 25 of 35) sorted by last modified time

12

/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DCameraOps.java357 public CaptureRequest.Builder createCaptureRequest(int template) throws CameraAccessException { argument
362 return device.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);
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 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/
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 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.");
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 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...]
/frameworks/opt/setupwizard/tools/docs/
H A Ddoclava.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/ccil/ org/ccil/cowan/ org/ccil/cowan/tagsoup/ ...
H A Djsilver.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/clearsilver/ org/clearsilver/DelegatedHdf.class DelegatedHdf. ...
/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/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/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...]

Completed in 565 milliseconds

12