/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/ |
H A D | RecyclerMixinTest.java | 17 package com.android.setupwizardlib.template;
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
H A D | ButtonFooterMixinTest.java | 17 package com.android.setupwizardlib.template;
|
H A D | IconMixinTest.java | 17 package com.android.setupwizardlib.template;
|
H A D | ListMixinTest.java | 17 package com.android.setupwizardlib.template;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
H A D | ChartDataLoader.java | 40 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 D | SummaryForAllUidLoader.java | 28 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 D | DataUsageController.java | 116 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId); 117 template = NetworkTemplate.normalize(template, mTelephonyManager.getMergedSubscriberIds()); 119 return getDataUsageInfo(template); 123 NetworkTemplate template = NetworkTemplate.buildTemplateWifiWildcard(); 124 return getDataUsageInfo(template); 127 public DataUsageInfo getDataUsageInfo(NetworkTemplate template) { argument 132 final NetworkPolicy policy = findNetworkPolicy(template); 134 final NetworkStatsHistory history = session.getHistoryForNetwork(template, FIELDS); 179 private NetworkPolicy findNetworkPolicy(NetworkTemplate template) { argument [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkPolicyManagerInternal.java | 63 * Return the active {@link SubscriptionPlan} for the given template. 65 public abstract SubscriptionPlan getSubscriptionPlan(NetworkTemplate template); argument
|
/frameworks/ex/camera2/utils/src/com/android/ex/camera2/utils/ |
H A D | Camera2RequestSettingsSet.java | 42 * 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/template/ |
H A D | ButtonFooterMixin.java | 17 package com.android.setupwizardlib.template; 158 throw new IllegalStateException("Footer stub is not found in this template");
|
H A D | ListMixin.java | 17 package com.android.setupwizardlib.template; 95 // Client code can assume getListView() will not be null if they know their template contains 110 * should be called when {@link View#onLayout(boolean, int, int, int, int)} of the template
|
H A D | RequireScrollMixin.java | 17 package com.android.setupwizardlib.template; 90 * @param templateLayout The template containing this mixin
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
H A D | ConfigFactory.java | 61 // Read the config template from the resoures. 63 byte[] template = null; 67 template = new byte[inputStream.available()]; 68 inputStream.read(template); 69 templateProto = StatsdConfig.parseFrom(template); 71 Log.e(TAG, "Unable to read or parse loadtest config template. Using an empty config."); 75 Log.d(TAG, "Loadtest template config: " + mTemplate); 81 * All configs are based on the same template. 82 * That template is designed to make the most use of the set of atoms that {@code SequencePusher} 89 * If the config template ha 171 addEventMetric(EventMetric template, int suffix, StatsdConfig.Builder config) argument 190 addCountMetric(CountMetric template, int suffix, TimeUnit bucket, StatsdConfig.Builder config) argument 211 addDurationMetric(DurationMetric template, int suffix, TimeUnit bucket, StatsdConfig.Builder config) argument 232 addGaugeMetric(GaugeMetric template, int suffix, TimeUnit bucket, StatsdConfig.Builder config) argument 253 addValueMetric(ValueMetric template, int suffix, TimeUnit bucket, StatsdConfig.Builder config) argument 274 addPredicate(Predicate template, int suffix, StatsdConfig.Builder config) argument 301 addMatcher(AtomMatcher template, int suffix, StatsdConfig.Builder config) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | URLUtil.java | 88 public static String composeSearchUrl(String inQuery, String template, argument 90 int placeHolderIndex = template.indexOf(queryPlaceHolder); 97 buffer.append(template.substring(0, placeHolderIndex)); 106 buffer.append(template.substring(
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | NetworkPolicyEditor.java | 99 public boolean hasLimitedPolicy(NetworkTemplate template) { argument 100 final NetworkPolicy policy = getPolicy(template); 104 public NetworkPolicy getOrCreatePolicy(NetworkTemplate template) { argument 105 NetworkPolicy policy = getPolicy(template); 107 policy = buildDefaultPolicy(template); 113 public NetworkPolicy getPolicy(NetworkTemplate template) { argument 115 if (policy.template.equals(template)) { 122 public NetworkPolicy getPolicyMaybeUnquoted(NetworkTemplate template) { argument 123 NetworkPolicy policy = getPolicy(template); 132 buildDefaultPolicy(NetworkTemplate template) argument 151 getPolicyCycleDay(NetworkTemplate template) argument 161 setPolicyCycleDay(NetworkTemplate template, int cycleDay, String cycleTimezone) argument 169 getPolicyWarningBytes(NetworkTemplate template) argument 174 setPolicyWarningBytesInner(NetworkTemplate template, long warningBytes) argument 182 setPolicyWarningBytes(NetworkTemplate template, long warningBytes) argument 191 getPolicyLimitBytes(NetworkTemplate template) argument 197 setPolicyLimitBytes(NetworkTemplate template, long limitBytes) argument 216 buildUnquotedNetworkTemplate(NetworkTemplate template) argument [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | GlifListLayout.java | 30 import com.android.setupwizardlib.template.ListMixin; 31 import com.android.setupwizardlib.template.ListViewScrollHandlingDelegate; 32 import com.android.setupwizardlib.template.RequireScrollMixin; 52 public GlifListLayout(Context context, int template) { argument 53 this(context, template, 0); 56 public GlifListLayout(Context context, int template, int containerId) { argument 57 super(context, template, containerId); 88 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument 89 if (template == 0) { 90 template [all...] |
H A D | SetupWizardListLayout.java | 30 import com.android.setupwizardlib.template.ListMixin; 31 import com.android.setupwizardlib.template.ListViewScrollHandlingDelegate; 32 import com.android.setupwizardlib.template.RequireScrollMixin; 44 public SetupWizardListLayout(Context context, int template) { argument 45 this(context, template, 0); 48 public SetupWizardListLayout(Context context, int template, int containerId) { argument 49 super(context, template, containerId); 74 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument 75 if (template == 0) { 76 template [all...] |
H A D | TemplateLayout.java | 33 import com.android.setupwizardlib.template.Mixin; 40 * A generic template class that inflates a template, provided in the constructor or in 41 * {@code android:layout} through XML, and adds its children to a "container" in the template. When 48 * The container of the actual content. This will be a view in the template, which child views 55 public TemplateLayout(Context context, int template, int containerId) { argument 57 init(template, containerId, null, R.attr.suwLayoutTheme); 73 private void init(int template, int containerId, AttributeSet attrs, int defStyleAttr) { argument 76 if (template == 0) { 77 template 160 onInflateTemplate(LayoutInflater inflater, @LayoutRes int template) argument 182 inflateTemplate(LayoutInflater inflater, @StyleRes int fallbackTheme, @LayoutRes int template) argument [all...] |
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/ |
H A D | GlifRecyclerLayout.java | 31 import com.android.setupwizardlib.template.RecyclerMixin; 32 import com.android.setupwizardlib.template.RecyclerViewScrollHandlingDelegate; 33 import com.android.setupwizardlib.template.RequireScrollMixin; 47 public GlifRecyclerLayout(Context context, int template) { argument 48 this(context, template, 0); 51 public GlifRecyclerLayout(Context context, int template, int containerId) { argument 52 super(context, template, containerId); 83 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument 84 if (template == 0) { 85 template [all...] |
H A D | SetupWizardRecyclerLayout.java | 29 import com.android.setupwizardlib.template.RecyclerMixin; 30 import com.android.setupwizardlib.template.RecyclerViewScrollHandlingDelegate; 31 import com.android.setupwizardlib.template.RequireScrollMixin; 50 public SetupWizardRecyclerLayout(Context context, int template, int containerId) { argument 51 super(context, template, containerId); 111 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument 112 if (template == 0) { 113 template = R.layout.suw_recycler_template; 115 return super.onInflateTemplate(inflater, template); 125 "SetupWizardRecyclerLayout should use a template wit [all...] |
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/ |
H A D | RecyclerMixin.java | 17 package com.android.setupwizardlib.template; 136 @SuppressWarnings("NullableProblems") // If clients guarantee that the template has a recycler 137 // view, and call this after the template is inflated, 147 @SuppressWarnings("NullableProblems") // If clients guarantee that the template has a header, 155 * should be called when {@link View#onLayout(boolean, int, int, int, int)} of the template
|
/frameworks/base/core/java/android/app/usage/ |
H A D | NetworkStatsManager.java | 166 public Bucket querySummaryForDevice(NetworkTemplate template, argument 169 NetworkStats stats = new NetworkStats(mContext, template, mFlags, startTime, endTime, 201 NetworkTemplate template; 203 template = createTemplate(networkType, subscriberId); 205 if (DBG) Log.e(TAG, "Cannot create template", e); 209 return querySummaryForDevice(template, startTime, endTime); 234 NetworkTemplate template; 236 template = createTemplate(networkType, subscriberId); 238 if (DBG) Log.e(TAG, "Cannot create template", e); 243 stats = new NetworkStats(mContext, template, mFlag 396 registerUsageCallback(NetworkTemplate template, int networkType, long thresholdBytes, UsageCallback callback, @Nullable Handler handler) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | NetworkPolicy.java | 52 public NetworkTemplate template; field in class:NetworkPolicy 73 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, argument 75 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER, 80 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, argument 83 this(template, buildRule(cycleDay, ZoneId.of(cycleTimezone)), warningBytes, 88 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, argument 91 this(template, cycleRule, warningBytes, limitBytes, lastWarningSnooze, lastLimitSnooze, 95 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, argument 98 this.template = Preconditions.checkNotNull(template, "missin [all...] |
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
H A D | PackageParserTest.java | 333 * @param template templated string with %s subbed with Activity, Service, Provider, Receiver 335 private void assertOneComponentOfEachType(String template, Package p) { argument 339 assertComponent(String.format(template, "Activity"), 342 assertComponent(String.format(template, "Service"), 345 assertComponent(String.format(template, "Provider"), 348 assertComponent(String.format(template, "Receiver"),
|
/frameworks/base/tests/net/java/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 549 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, 552 template, Long.MIN_VALUE, Long.MAX_VALUE, accessLevel, myUid()) 558 NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) { 560 template, Long.MIN_VALUE, Long.MAX_VALUE, NetworkStatsAccess.Level.DEVICE, myUid()) 548 assertSummaryTotal(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets, @NetworkStatsAccess.Level int accessLevel) argument 557 assertSummaryTotalIncludingTags(NetworkStatsCollection collection, NetworkTemplate template, long rxBytes, long rxPackets, long txBytes, long txPackets) argument
|