Lines Matching defs:NetworkStats
44 public class NetworkStats implements Parcelable {
157 public NetworkStats(long elapsedRealtime, int initialSize) {
186 public NetworkStats(Parcel parcel) {
218 public NetworkStats clone() {
219 final NetworkStats clone = new NetworkStats(elapsedRealtime, size);
220 NetworkStats.Entry entry = null;
229 public NetworkStats addIfaceValues(
236 public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes,
246 public NetworkStats addValues(Entry entry) {
301 * Return age of this {@link NetworkStats} object with respect to
318 public NetworkStats combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets,
324 public NetworkStats combineValues(String iface, int uid, int set, int tag, long rxBytes,
335 public NetworkStats combineValues(Entry entry) {
351 * Combine all values from another {@link NetworkStats} into this object.
353 public void combineAllValues(NetworkStats another) {
354 NetworkStats.Entry entry = null;
400 * Splice in {@link #operations} from the given {@link NetworkStats} based
404 public void spliceOperationsFrom(NetworkStats stats) {
447 * checking if a {@link #subtract(NetworkStats)} delta passes a threshold.
532 * Subtract the given {@link NetworkStats}, effectively leaving the delta
536 public NetworkStats subtract(NetworkStats right) {
541 * Subtract the two given {@link NetworkStats} objects, returning the delta
548 public static <C> NetworkStats subtract(NetworkStats left, NetworkStats right,
554 * Subtract the two given {@link NetworkStats} objects, returning the delta
561 * If <var>recycle</var> is supplied, this NetworkStats object will be
565 public static <C> NetworkStats subtract(NetworkStats left, NetworkStats right,
566 NonMonotonicObserver<C> observer, C cookie, NetworkStats recycle) {
577 final NetworkStats result;
583 result = new NetworkStats(deltaRealtime, left.size);
631 public NetworkStats groupedByIface() {
632 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
659 public NetworkStats groupedByUid() {
660 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
687 public NetworkStats withoutUids(int[] uids) {
688 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
703 pw.print("NetworkStats: elapsedRealtime="); pw.println(elapsedRealtime);
754 public static final Creator<NetworkStats> CREATOR = new Creator<NetworkStats>() {
756 public NetworkStats createFromParcel(Parcel in) {
757 return new NetworkStats(in);
761 public NetworkStats[] newArray(int size) {
762 return new NetworkStats[size];
768 NetworkStats left, int leftIndex, NetworkStats right, int rightIndex, C cookie);