Home | History | Annotate | Download | only in usage

Lines Matching refs:Bucket

22 import android.app.usage.NetworkStats.Bucket;
41 * discrete bins of time called 'Buckets'. See {@link NetworkStats.Bucket} for details.
54 * bucket for a particular key and state and roaming combination. In case of the user-wide and
55 * device-wide summaries a single bucket containing the totalised network usage is returned.
62 * can be multiple buckets for a particular key but all Bucket's state is going to be
63 * {@link NetworkStats.Bucket#STATE_ALL} and all Bucket's roaming is going to be
64 * {@link NetworkStats.Bucket#ROAMING_ALL}.
106 * device. Result is a single Bucket aggregated over time, state, uid, tag and roaming. This
107 * means the bucket's start and end timestamp are going to be the same as the 'startTime' and
108 * 'endTime' parameters. State is going to be {@link NetworkStats.Bucket#STATE_ALL}, uid
109 * {@link NetworkStats.Bucket#UID_ALL}, tag {@link NetworkStats.Bucket#TAG_NONE}
110 * and roaming {@link NetworkStats.Bucket#ROAMING_ALL}.
120 * @return Bucket object or null if permissions are insufficient or error happened during
123 public Bucket querySummaryForDevice(int networkType, String subscriberId,
133 Bucket bucket = null;
135 bucket = stats.getDeviceSummaryForNetwork();
138 return bucket;
143 * belonging to calling user. Result is a single Bucket aggregated over time, state and uid.
144 * This means the bucket's start and end timestamp are going to be the same as the 'startTime'
145 * and 'endTime' parameters, state is going to be {@link NetworkStats.Bucket#STATE_ALL} and uid
146 * {@link NetworkStats.Bucket#UID_ALL}.
156 * @return Bucket object or null if permissions are insufficient or error happened during
159 public Bucket querySummaryForUser(int networkType, String subscriberId, long startTime,
220 NetworkStats.Bucket.TAG_NONE);
227 * 'endTime' parameters. State is going to be {@link NetworkStats.Bucket#STATE_ALL}, uid the
230 * interpolate across partial buckets. Since bucket length is in the order of hours, this
242 * @param tag TAG of interest. Use {@link NetworkStats.Bucket#TAG_NONE} for no tags.
267 * parameters. State is going to be {@link NetworkStats.Bucket#STATE_ALL}, uid will vary,
268 * tag {@link NetworkStats.Bucket#TAG_NONE} and roaming is going to be
269 * {@link NetworkStats.Bucket#ROAMING_ALL}.
271 * interpolate across partial buckets. Since bucket length is in the order of hours, this