Home | History | Annotate | Download | only in net

Lines Matching full:networkstats

19 import static android.net.NetworkStats.SET_ALL;
20 import static android.net.NetworkStats.TAG_NONE;
21 import static android.net.NetworkStats.UID_ALL;
24 import android.net.NetworkStats;
39 * Creates {@link NetworkStats} instances by parsing various {@code /proc/}
67 * Parse and return interface-level summary {@link NetworkStats} measured
74 public NetworkStats readNetworkStatsSummaryDev() throws IOException {
77 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6);
78 final NetworkStats.Entry entry = new NetworkStats.Entry();
121 * Parse and return interface-level summary {@link NetworkStats}. Designed
127 public NetworkStats readNetworkStatsSummaryXt() throws IOException {
133 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6);
134 final NetworkStats.Entry entry = new NetworkStats.Entry();
167 public NetworkStats readNetworkStatsDetail() throws IOException {
171 public NetworkStats readNetworkStatsDetail(int limitUid) throws IOException {
173 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 0);
178 final NetworkStats javaStats = javaReadNetworkStatsDetail(mStatsXtUid, limitUid);
188 * Parse and return {@link NetworkStats} with UID-level details. Values are
192 public static NetworkStats javaReadNetworkStatsDetail(File detailPath, int limitUid)
196 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 24);
197 final NetworkStats.Entry entry = new NetworkStats.Entry();
243 public void assertEquals(NetworkStats expected, NetworkStats actual) {
249 NetworkStats.Entry expectedRow = null;
250 NetworkStats.Entry actualRow = null;
262 * Parse statistics from file into given {@link NetworkStats} object. Values
267 NetworkStats stats, String path, int limitUid);