/frameworks/base/packages/SystemUI/src/com/android/systemui/net/ |
H A D | NetworkOverLimitActivity.java | 52 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 D | DataIdleTest.java | 56 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | SetupWizardListLayout.java | 37 public SetupWizardListLayout(Context context, int template) { argument 38 super(context, template); 51 public SetupWizardListLayout(Context context, int template, AttributeSet attrs, argument 53 super(context, template, attrs, defStyleAttr); 57 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument 58 if (template == 0) { 59 template = R.layout.suw_list_template; 61 return inflater.inflate(template, this, false);
|
H A D | SetupWizardLayout.java | 54 * The container of the actual content. This will be a view in the template, which child views 56 * in the template that has the ID of {@link #getContainerId()}. For the default implementation 66 public SetupWizardLayout(Context context, int template) { argument 68 init(template, null, R.attr.suwLayoutTheme); 83 public SetupWizardLayout(Context context, int template, AttributeSet attrs, int defStyleAttr) { argument 85 init(template, attrs, defStyleAttr); 90 private void init(int template, AttributeSet attrs, int defStyleAttr) { argument 93 if (template == 0) { 94 template = a.getResourceId(R.styleable.SuwSetupWizardLayout_android_layout, 0); 96 inflateTemplate(template); 204 onInflateTemplate(LayoutInflater inflater, int template) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 173 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/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/base/core/java/android/net/ |
H A D | NetworkPolicy.java | 38 public 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.hash(template, cycleDay, cycleTimezone, warningBytes, limitBytes, 163 && Objects.equals(template, othe [all...] |
H A D | NetworkTemplate.java | 156 * that should be considered to match this template. 256 * Test if given {@link NetworkIdentity} matches this template. 277 throw new IllegalArgumentException("unknown network template"); 334 * Check if matches Wi-Fi network template. 347 * Check if matches Ethernet network template. 375 * Check if matches Bluetooth network template. 410 "Unable to enforce 3G_LOWER template on combined data."); 415 * Examine the given template and normalize if it refers to a "merged" 417 * for key purposes, and expand the template to match all other merged 420 * For example, given an incoming template matchin 424 normalize(NetworkTemplate template, String[] merged) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | URLUtil.java | 87 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/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | MobileDataControllerImpl.java | 116 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId); 117 template = NetworkTemplate.normalize(template, mTelephonyManager.getMergedSubscriberIds()); 119 final NetworkPolicy policy = findNetworkPolicy(template); 121 final NetworkStatsHistory history = mSession.getHistoryForNetwork(template, FIELDS); 173 private NetworkPolicy findNetworkPolicy(NetworkTemplate template) { argument 174 if (mPolicyManager == null || template == null) return null; 180 if (policy != null && template.equals(policy.template)) {
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 57 * 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 D | NetworkStats.java | 92 NetworkStats(Context context, NetworkTemplate template, long startTimestamp, argument 99 mTemplate = template;
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 161 NetworkTemplate template, int uid, int set, int tag, int fields) { 162 return getHistory(template, uid, set, tag, fields, Long.MIN_VALUE, Long.MAX_VALUE); 170 NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end) { 186 && templateMatches(template, key.ident)) { 198 public NetworkStats getSummary(NetworkTemplate template, long start, long end) { argument 211 if (templateMatches(template, key.ident) && isAccessibleToUser(key.uid, callerUid) 583 private static boolean templateMatches(NetworkTemplate template, NetworkIdentitySet identSet) { argument 585 if (template.matches(ident)) { 160 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields) argument 169 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end) argument
|
H A D | NetworkStatsRecorder.java | 118 public NetworkStats.Entry getTotalSinceBootLocked(NetworkTemplate template) { argument 119 return mSinceBoot.getSummary(template, Long.MIN_VALUE, Long.MAX_VALUE).getTotal(null);
|
H A D | NetworkStatsService.java | 492 public NetworkStats getDeviceSummaryForNetwork(NetworkTemplate template, long start, 498 result.combineAllValues(internalGetSummaryForNetwork(template, start, end)); 507 NetworkTemplate template, long start, long end) { 509 return internalGetSummaryForNetwork(template, start, end); 513 public NetworkStatsHistory getHistoryForNetwork(NetworkTemplate template, int fields) { 514 return internalGetHistoryForNetwork(template, fields); 519 NetworkTemplate template, long start, long end, boolean includeTags) { 521 final NetworkStats stats = getUidComplete().getSummary(template, start, end); 524 .getSummary(template, start, end); 532 NetworkTemplate template, in 614 internalGetSummaryForNetwork( NetworkTemplate template, long start, long end) argument 625 internalGetHistoryForNetwork(NetworkTemplate template, int fields) argument 632 getNetworkTotalBytes(NetworkTemplate template, long start, long end) argument [all...] |
H A D | NetworkPolicyManagerService.java | 682 final NetworkTemplate template = intent.getParcelableExtra(EXTRA_NETWORK_TEMPLATE); 683 performSnooze(template, TYPE_WARNING); 701 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(config.SSID); 703 if (mNetworkPolicy.containsKey(template)) { 704 mNetworkPolicy.remove(template); 730 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(info.getSSID()); 732 NetworkPolicy policy = mNetworkPolicy.get(template); 736 policy = new NetworkPolicy(template, CYCLE_NONE, Time.TIMEZONE_UTC, 789 if (!isTemplateRelevant(policy.template)) continue; 794 final long totalBytes = getTotalBytes(policy.template, star 833 isTemplateRelevant(NetworkTemplate template) argument 858 notifyOverLimitLocked(NetworkTemplate template) argument 865 notifyUnderLimitLocked(NetworkTemplate template) argument 1102 setNetworkTemplateEnabled(NetworkTemplate template, boolean enabled) argument 1730 snoozeLimit(NetworkTemplate template) argument 1741 performSnooze(NetworkTemplate template, int type) argument 2529 getTotalBytes(NetworkTemplate template, long start, long end) argument 2570 buildSnoozeWarningIntent(NetworkTemplate template) argument 2576 buildNetworkOverLimitIntent(NetworkTemplate template) argument 2585 buildViewDataUsageIntent(NetworkTemplate template) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkStatsServiceTest.java | 461 // and verify new history also recorded under different template, which 604 // verify that ALL_MOBILE template combines both 840 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, argument 842 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 846 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, argument 849 final NetworkStatsHistory history = mSession.getHistoryForNetwork(template, FIELD_ALL); 853 final NetworkStats stats = mSession.getSummaryForNetwork(template, start, end); 858 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, argument 860 assertUidTotal(template, uid, SET_ALL, rxBytes, rxPackets, txBytes, txPackets, operations); 863 private void assertUidTotal(NetworkTemplate template, in argument [all...] |
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/ |
H A D | CameraOps.java | 357 public CaptureRequest.Builder createCaptureRequest(int template) throws CameraAccessException { argument 362 return device.createCaptureRequest(template);
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CaptureRequest.java | 507 * 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/text/ |
H A D | TextUtils.java | 848 public static CharSequence replace(CharSequence template, argument 851 SpannableStringBuilder tb = new SpannableStringBuilder(template); 875 * <code>template</code> CharSequence with the corresponding 881 * @param template the input text containing "^1"-style 885 * @param values CharSequences substituted into the template. The 890 * @throws IllegalArgumentException if the template requests a 894 public static CharSequence expandTemplate(CharSequence template, argument 900 SpannableStringBuilder ssb = new SpannableStringBuilder(template); 915 "template requests value ^" + (which+1)); 919 "template request [all...] |
/frameworks/data-binding/prebuilds/1.0-rc0/ |
H A D | databinding-studio-bundle.jar | META-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ... |