Lines Matching refs:stats
71 stageFile(R.raw.xt_qtaguid_typical, new File(mTestProc, "net/xt_qtaguid/stats"));
73 final NetworkStats stats = mFactory.readNetworkStatsDetail();
74 assertEquals(70, stats.size());
75 assertStatsEntry(stats, "wlan0", 0, SET_DEFAULT, 0x0, 18621L, 2898L);
76 assertStatsEntry(stats, "wlan0", 10011, SET_DEFAULT, 0x0, 35777L, 5718L);
77 assertStatsEntry(stats, "wlan0", 10021, SET_DEFAULT, 0x7fffff01, 562386L, 49228L);
78 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 227423L);
79 assertStatsEntry(stats, "rmnet2", 10001, SET_DEFAULT, 0x0, 1125899906842624L, 984L);
85 final NetworkStats stats = mFactory.readNetworkStatsSummary();
86 assertEquals(6, stats.size());
87 assertStatsEntry(stats, "lo", UID_ALL, SET_DEFAULT, TAG_NONE, 8308L, 8308L);
88 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_DEFAULT, TAG_NONE, 1507570L, 489339L);
89 assertStatsEntry(stats, "ifb0", UID_ALL, SET_DEFAULT, TAG_NONE, 52454L, 0L);
90 assertStatsEntry(stats, "ifb1", UID_ALL, SET_DEFAULT, TAG_NONE, 52454L, 0L);
91 assertStatsEntry(stats, "sit0", UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L);
92 assertStatsEntry(stats, "ip6tnl0", UID_ALL, SET_DEFAULT, TAG_NONE, 0L, 0L);
103 final NetworkStats stats = mFactory.readNetworkStatsSummary();
104 assertEquals(7, stats.size());
105 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_DEFAULT, TAG_NONE, 1507570L, 489339L);
106 assertStatsEntry(stats, "wlan0", UID_ALL, SET_DEFAULT, TAG_NONE, 1024L, 2048L);
117 final NetworkStats stats = mFactory.readNetworkStatsSummary();
118 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_DEFAULT, TAG_NONE, 1507570L + 10L,
130 final NetworkStats stats = mFactory.readNetworkStatsSummary();
131 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_DEFAULT, TAG_NONE, 10L, 20L, 30L, 40L);
143 stageFile(R.raw.xt_qtaguid_typical, new File(mTestProc, "net/xt_qtaguid/stats"));
145 final NetworkStats stats = mFactory.readNetworkStatsDetail();
146 assertEquals(70, stats.size());
147 assertStatsEntry(stats, "rmnet1", 10021, SET_DEFAULT, 0x30100000, 219110L, 578L, 227423L, 676L);
148 assertStatsEntry(stats, "rmnet1", 10021, SET_FOREGROUND, 0x30100000, 742L, 3L, 1265L, 3L);
154 final NetworkStats stats = mFactory.readNetworkStatsSummary();
155 assertEquals(6, stats.size());
156 assertStatsEntry(stats, "rmnet0", UID_ALL, SET_DEFAULT, TAG_NONE, 2112L, 24L, 700L, 10L);
157 assertStatsEntry(stats, "test1", UID_ALL, SET_DEFAULT, TAG_NONE, 6L, 8L, 10L, 12L);
158 assertStatsEntry(stats, "test2", UID_ALL, SET_DEFAULT, TAG_NONE, 1L, 2L, 3L, 4L);
190 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set,
192 final int i = stats.findIndex(iface, uid, set, tag);
193 final NetworkStats.Entry entry = stats.getValues(i, null);
198 private static void assertStatsEntry(NetworkStats stats, String iface, int uid, int set,
200 final int i = stats.findIndex(iface, uid, set, tag);
201 final NetworkStats.Entry entry = stats.getValues(i, null);