/frameworks/base/core/java/android/app/usage/ |
H A D | NetworkStats.java | 100 NetworkStats(Context context, NetworkTemplate template, long startTimestamp, argument 107 mTemplate = template;
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | CaptureRequest.java | 529 * Initialize the builder using the template; the request takes 530 * ownership of the template. 532 * @param template Template settings for this capture request. 546 public Builder(CameraMetadataNative template, boolean reprocess, argument 548 mRequest = new CaptureRequest(template, reprocess, reprocessableSessionId); 1668 * TEMPLATE_STILL_CAPTURE template may be <code>true</code>. The value in other templates is always 1672 * <p>For application-operated ZSL, use CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG template.</p>
|
/frameworks/base/core/java/android/net/ |
H A D | DataUsageRequest.java | 47 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 D | NetworkPolicy.java | 48 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 D | NetworkTemplate.java | 164 * 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 D | TextUtils.java | 877 public static CharSequence replace(CharSequence template, argument 880 SpannableStringBuilder tb = new SpannableStringBuilder(template); 904 * <code>template</code> CharSequence with the corresponding 910 * @param template the input text containing "^1"-style 914 * @param values CharSequences substituted into the template. The 919 * @throws IllegalArgumentException if the template requests a 923 public static CharSequence expandTemplate(CharSequence template, argument 929 SpannableStringBuilder ssb = new SpannableStringBuilder(template); 944 "template requests value ^" + (which+1)); 948 "template request [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/SettingsLib/src/com/android/settingslib/ |
H A D | NetworkPolicyEditor.java | 96 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 setPolicyWarningBytesInner(NetworkTemplate template, long warningBytes) argument 178 setPolicyWarningBytes(NetworkTemplate template, long warningBytes) argument 187 getPolicyLimitBytes(NetworkTemplate template) argument 193 setPolicyLimitBytes(NetworkTemplate template, long limitBytes) argument 207 getPolicyMetered(NetworkTemplate template) argument 216 setPolicyMetered(NetworkTemplate template, boolean metered) argument 259 buildUnquotedNetworkTemplate(NetworkTemplate template) argument [all...] |
/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 | DataUsageController.java | 122 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId); 123 template = NetworkTemplate.normalize(template, mTelephonyManager.getMergedSubscriberIds()); 125 return getDataUsageInfo(template); 129 NetworkTemplate template = NetworkTemplate.buildTemplateWifiWildcard(); 130 return getDataUsageInfo(template); 133 public DataUsageInfo getDataUsageInfo(NetworkTemplate template) { argument 138 final NetworkPolicy policy = findNetworkPolicy(template); 140 final NetworkStatsHistory history = session.getHistoryForNetwork(template, FIELDS); 193 private NetworkPolicy findNetworkPolicy(NetworkTemplate template) { 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);
|
/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/services/core/java/com/android/server/net/ |
H A D | NetworkPolicyManagerService.java | 955 final NetworkTemplate template = intent.getParcelableExtra(EXTRA_NETWORK_TEMPLATE); 956 performSnooze(template, TYPE_WARNING); 974 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(config.SSID); 977 if (mNetworkPolicy.containsKey(template)) { 978 mNetworkPolicy.remove(template); 1005 final NetworkTemplate template = NetworkTemplate.buildTemplateWifi(info.getSSID()); 1008 NetworkPolicy policy = mNetworkPolicy.get(template); 1012 policy = newWifiPolicy(template, meteredHint); 1029 static NetworkPolicy newWifiPolicy(NetworkTemplate template, boolean metered) { argument 1030 return new NetworkPolicy(template, CYCLE_NON 1109 isTemplateRelevant(NetworkTemplate template) argument 1134 notifyOverLimitNL(NetworkTemplate template) argument 1141 notifyUnderLimitNL(NetworkTemplate template) argument 1548 setNetworkTemplateEnabled(NetworkTemplate template, boolean enabled) argument 2327 snoozeLimit(NetworkTemplate template) argument 2338 performSnooze(NetworkTemplate template, int type) argument 3910 getTotalBytes(NetworkTemplate template, long start, long end) argument 3951 buildSnoozeWarningIntent(NetworkTemplate template) argument 3957 buildNetworkOverLimitIntent(Resources res, NetworkTemplate template) argument 3966 buildViewDataUsageIntent(Resources res, NetworkTemplate template) argument [all...] |
H A D | NetworkStatsCollection.java | 169 NetworkTemplate template, int uid, int set, int tag, int fields, 171 return getHistory(template, uid, set, tag, fields, Long.MIN_VALUE, Long.MAX_VALUE, 180 NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, 182 return getHistory(template, uid, set, tag, fields, start, end, accessLevel, 191 NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, 207 && templateMatches(template, key.ident)) { 219 public NetworkStats getSummary(NetworkTemplate template, long start, long end, argument 221 return getSummary(template, start, end, accessLevel, Binder.getCallingUid()); 228 public NetworkStats getSummary(NetworkTemplate template, long start, long end, argument 241 if (templateMatches(template, ke 168 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, @NetworkStatsAccess.Level int accessLevel) argument 179 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, @NetworkStatsAccess.Level int accessLevel) argument 190 getHistory( NetworkTemplate template, int uid, int set, int tag, int fields, long start, long end, @NetworkStatsAccess.Level int accessLevel, int callerUid) argument 636 templateMatches(NetworkTemplate template, NetworkIdentitySet identSet) argument [all...] |
H A D | NetworkStatsObservers.java | 210 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 D | NetworkStatsRecorder.java | 151 public NetworkStats.Entry getTotalSinceBootLocked(NetworkTemplate template) { argument 152 return mSinceBoot.getSummary(template, Long.MIN_VALUE, Long.MAX_VALUE,
|
H A D | NetworkStatsService.java | 523 public NetworkStats getDeviceSummaryForNetwork(NetworkTemplate template, long start, 537 internalGetSummaryForNetwork(template, start, end, 547 NetworkTemplate template, long start, long end) { 549 return internalGetSummaryForNetwork(template, start, end, accessLevel); 553 public NetworkStatsHistory getHistoryForNetwork(NetworkTemplate template, int fields) { 555 return internalGetHistoryForNetwork(template, fields, accessLevel); 560 NetworkTemplate template, long start, long end, boolean includeTags) { 564 getUidComplete().getSummary(template, start, end, accessLevel); 567 .getSummary(template, start, end, accessLevel); 580 NetworkTemplate template, in 625 internalGetSummaryForNetwork( NetworkTemplate template, long start, long end, @NetworkStatsAccess.Level int accessLevel) argument 637 internalGetHistoryForNetwork(NetworkTemplate template, int fields, @NetworkStatsAccess.Level int accessLevel) argument 645 getNetworkTotalBytes(NetworkTemplate template, long start, long end) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 239 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 D | NetworkStatsServiceTest.java | 468 // and verify new history also recorded under different template, which 596 // verify that ALL_MOBILE template combines both 881 assertTrue(Objects.equals(sTemplateWifi, request.template)); 960 private void assertNetworkTotal(NetworkTemplate template, long rxBytes, long rxPackets, argument 962 assertNetworkTotal(template, Long.MIN_VALUE, Long.MAX_VALUE, rxBytes, rxPackets, txBytes, 966 private void assertNetworkTotal(NetworkTemplate template, long start, long end, long rxBytes, argument 969 final NetworkStatsHistory history = mSession.getHistoryForNetwork(template, FIELD_ALL); 973 final NetworkStats stats = mSession.getSummaryForNetwork(template, start, end); 978 private void assertUidTotal(NetworkTemplate template, int uid, long rxBytes, long rxPackets, argument 980 assertUidTotal(template, ui 984 assertUidTotal(NetworkTemplate template, int uid, int set, int metered, 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 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/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. ... |
/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/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/full-support/src/com/android/setupwizardlib/ |
H A D | GlifPreferenceLayout.java | 27 import com.android.setupwizardlib.template.RecyclerMixin; 72 public GlifPreferenceLayout(Context context, int template, int containerId) { argument 73 super(context, template, containerId); 101 protected View onInflateTemplate(LayoutInflater inflater, int template) { argument 102 if (template == 0) { 103 template = R.layout.suw_glif_preference_template; 105 return super.onInflateTemplate(inflater, template);
|
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...] |