java.lang.Object | |
↳ | android.app.usage.NetworkStats.Bucket |
Buckets are the smallest elements of a query result. As some dimensions of a result may be aggregated (e.g. time or state) some values may be equal across all buckets.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | STATE_ALL | Combined usage across all other states. | |||||||||
int | STATE_DEFAULT | Usage not accounted in any other states. | |||||||||
int | STATE_FOREGROUND | Foreground usage. | |||||||||
int | UID_ALL | Special UID value for aggregate/unspecified. | |||||||||
int | UID_REMOVED | Special UID value for removed apps. | |||||||||
int | UID_TETHERING | Special UID value for data usage by tethering. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
End timestamp of the bucket's time interval.
| |||||||||||
Number of bytes received during the bucket's time interval.
| |||||||||||
Number of packets received during the bucket's time interval.
| |||||||||||
Start timestamp of the bucket's time interval.
| |||||||||||
Usage state.
| |||||||||||
Number of bytes transmitted during the bucket's time interval.
| |||||||||||
Number of packets transmitted during the bucket's time interval.
| |||||||||||
Key of the bucket.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Combined usage across all other states.
Usage not accounted in any other states.
Foreground usage.
Special UID value for aggregate/unspecified.
Special UID value for removed apps.
Special UID value for data usage by tethering.
End timestamp of the bucket's time interval. Defined in terms of "Unix time", see
currentTimeMillis()
.
Number of bytes received during the bucket's time interval. Statistics are measured at the network layer, so they include both TCP and UDP usage.
Number of packets received during the bucket's time interval. Statistics are measured at the network layer, so they include both TCP and UDP usage.
Start timestamp of the bucket's time interval. Defined in terms of "Unix time", see
currentTimeMillis()
.
Usage state. One of the following values:
Number of bytes transmitted during the bucket's time interval. Statistics are measured at the network layer, so they include both TCP and UDP usage.
Number of packets transmitted during the bucket's time interval. Statistics are measured at the network layer, so they include both TCP and UDP usage.
Key of the bucket. Usually an app uid or one of the following special values: