Lines Matching defs:NetworkStats

41 public class NetworkStats implements Parcelable {
139 public NetworkStats(long elapsedRealtime, int initialSize) {
153 public NetworkStats(Parcel parcel) {
183 public NetworkStats clone() {
184 final NetworkStats clone = new NetworkStats(elapsedRealtime, size);
185 NetworkStats.Entry entry = null;
194 public NetworkStats addIfaceValues(
201 public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes,
211 public NetworkStats addValues(Entry entry) {
261 * Return age of this {@link NetworkStats} object with respect to
278 public NetworkStats combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets,
284 public NetworkStats combineValues(String iface, int uid, int set, int tag, long rxBytes,
295 public NetworkStats combineValues(Entry entry) {
311 * Combine all values from another {@link NetworkStats} into this object.
313 public void combineAllValues(NetworkStats another) {
314 NetworkStats.Entry entry = null;
360 * Splice in {@link #operations} from the given {@link NetworkStats} based
364 public void spliceOperationsFrom(NetworkStats stats) {
407 * checking if a {@link #subtract(NetworkStats)} delta passes a threshold.
481 * Subtract the given {@link NetworkStats}, effectively leaving the delta
485 public NetworkStats subtract(NetworkStats right) {
490 * Subtract the two given {@link NetworkStats} objects, returning the delta
497 public static <C> NetworkStats subtract(
498 NetworkStats left, NetworkStats right, NonMonotonicObserver<C> observer, C cookie) {
509 final NetworkStats result = new NetworkStats(deltaRealtime, left.size);
556 public NetworkStats groupedByIface() {
557 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
584 public NetworkStats groupedByUid() {
585 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
612 public NetworkStats withoutUids(int[] uids) {
613 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
628 pw.print("NetworkStats: elapsedRealtime="); pw.println(elapsedRealtime);
679 public static final Creator<NetworkStats> CREATOR = new Creator<NetworkStats>() {
681 public NetworkStats createFromParcel(Parcel in) {
682 return new NetworkStats(in);
686 public NetworkStats[] newArray(int size) {
687 return new NetworkStats[size];
693 NetworkStats left, int leftIndex, NetworkStats right, int rightIndex, C cookie);