Home | History | Annotate | Download | only in net

Lines Matching defs:NetworkStats

42 public class NetworkStats implements Parcelable {
43 private static final String TAG = "NetworkStats";
125 public NetworkStats(long elapsedRealtime, int initialSize) {
139 public NetworkStats(Parcel parcel) {
169 public NetworkStats clone() {
170 final NetworkStats clone = new NetworkStats(elapsedRealtime, size);
171 NetworkStats.Entry entry = null;
180 public NetworkStats addIfaceValues(
187 public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes,
197 public NetworkStats addValues(Entry entry) {
247 * Return age of this {@link NetworkStats} object with respect to
264 public NetworkStats combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets,
270 public NetworkStats combineValues(String iface, int uid, int set, int tag, long rxBytes,
281 public NetworkStats combineValues(Entry entry) {
297 * Combine all values from another {@link NetworkStats} into this object.
299 public void combineAllValues(NetworkStats another) {
300 NetworkStats.Entry entry = null;
346 * Splice in {@link #operations} from the given {@link NetworkStats} based
350 public void spliceOperationsFrom(NetworkStats stats) {
393 * checking if a {@link #subtract(NetworkStats)} delta passes a threshold.
462 * Subtract the given {@link NetworkStats}, effectively leaving the delta
466 public NetworkStats subtract(NetworkStats value) throws NonMonotonicException {
471 * Subtract the given {@link NetworkStats}, effectively leaving the delta
478 public NetworkStats subtract(NetworkStats value, boolean clampNonMonotonic)
487 final NetworkStats result = new NetworkStats(deltaRealtime, size);
535 public NetworkStats groupedByIface() {
536 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
563 public NetworkStats groupedByUid() {
564 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
591 public NetworkStats withoutUid(int uid) {
592 final NetworkStats stats = new NetworkStats(elapsedRealtime, 10);
607 pw.print("NetworkStats: elapsedRealtime="); pw.println(elapsedRealtime);
658 public static final Creator<NetworkStats> CREATOR = new Creator<NetworkStats>() {
659 public NetworkStats createFromParcel(Parcel in) {
660 return new NetworkStats(in);
663 public NetworkStats[] newArray(int size) {
664 return new NetworkStats[size];
669 public final NetworkStats left;
670 public final NetworkStats right;
674 public NonMonotonicException(NetworkStats left, NetworkStats right) {
679 NetworkStats left, int leftIndex, NetworkStats right, int rightIndex) {