HomeSort by relevance Sort by last modified time
    Searched refs:NetworkStats (Results 1 - 25 of 26) sorted by null

1 2

  /frameworks/base/core/java/android/net/
NetworkStats.aidl 19 parcelable NetworkStats;
INetworkStatsService.aidl 20 import android.net.NetworkStats;
34 NetworkStats getDataLayerSnapshotForUid(int uid);
INetworkStatsSession.aidl 19 import android.net.NetworkStats;
27 NetworkStats getSummaryForNetwork(in NetworkTemplate template, long start, long end);
32 NetworkStats getSummaryForAllUid(in NetworkTemplate template, long start, long end, boolean includeTags);
NetworkStats.java 42 public class NetworkStats implements Parcelable {
152 public NetworkStats(long elapsedRealtime, int initialSize) {
166 public NetworkStats(Parcel parcel) {
196 public NetworkStats clone() {
197 final NetworkStats clone = new NetworkStats(elapsedRealtime, size);
198 NetworkStats.Entry entry = null;
207 public NetworkStats addIfaceValues(
214 public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes,
224 public NetworkStats addValues(Entry entry)
    [all...]
TrafficStats.java 102 * Snapshot of {@link NetworkStats} when the currently active profiling
108 private static NetworkStats sActiveProfilingStart;
212 * @return Detailed {@link NetworkStats} of data that occurred since last
216 public static NetworkStats stopDataProfiling(Context context) {
223 final NetworkStats profilingStop = getDataLayerSnapshotForUid(context);
224 final NetworkStats profilingDelta = NetworkStats.subtract(
589 * Return detailed {@link NetworkStats} for the current UID. Requires no
592 private static NetworkStats getDataLayerSnapshotForUid(Context context) {
NetworkStatsHistory.java 19 import static android.net.NetworkStats.IFACE_ALL;
20 import static android.net.NetworkStats.SET_DEFAULT;
21 import static android.net.NetworkStats.TAG_NONE;
22 import static android.net.NetworkStats.UID_ALL;
286 recordData(start, end, new NetworkStats.Entry(
294 public void recordData(long start, long end, NetworkStats.Entry entry) {
360 final NetworkStats.Entry entry = new NetworkStats.Entry(
549 final NetworkStats.Entry entry = new NetworkStats.Entry
    [all...]
  /frameworks/base/core/tests/benchmarks/src/com/android/internal/net/
NetworkStatsFactoryBenchmark.java 19 import android.net.NetworkStats;
43 NetworkStatsFactory.javaReadNetworkStatsDetail(mStats, NetworkStats.UID_ALL);
49 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 0);
51 stats, mStats.getAbsolutePath(), NetworkStats.UID_ALL);
  /frameworks/base/core/java/com/android/internal/net/
NetworkStatsFactory.java 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()
    [all...]
  /frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
BandwidthTest.java 22 import android.net.NetworkStats;
23 import android.net.NetworkStats.Entry;
114 NetworkStats pre_test_stats = fetchDataFromProc(mUid);
122 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext);
125 NetworkStats post_test_stats = fetchDataFromProc(mUid);
126 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats);
174 NetworkStats pre_test_stats = fetchDataFromProc(mUid);
177 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext);
179 NetworkStats post_test_stats = fetchDataFromProc(mUid);
180 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/net/
NetworkStatsTest.java 19 import static android.net.NetworkStats.SET_DEFAULT;
20 import static android.net.NetworkStats.SET_FOREGROUND;
21 import static android.net.NetworkStats.SET_ALL;
22 import static android.net.NetworkStats.IFACE_ALL;
23 import static android.net.NetworkStats.TAG_NONE;
24 import static android.net.NetworkStats.UID_ALL;
43 final NetworkStats stats = new NetworkStats(TEST_START, 3)
55 final NetworkStats stats = new NetworkStats(TEST_START, 3
    [all...]
NetworkStatsHistoryTest.java 97 new NetworkStats.Entry(1024L, 10L, 2048L, 20L, 2L));
110 new NetworkStats.Entry(1024L, 10L, 128L, 2L, 2L));
126 new NetworkStats.Entry(1000L, 2000L, 5000L, 10000L, 100L));
145 new NetworkStats.Entry(128L, 2L, 256L, 4L, 1L));
147 new NetworkStats.Entry(64L, 1L, 512L, 8L, 2L));
158 new NetworkStats.Entry(2048L, 4L, 2048L, 4L, 2L));
174 new NetworkStats.Entry(256L, 2L, 256L, 2L, 1L));
177 new NetworkStats.Entry(1024L, 10L, 1024L, 10L, 10L));
311 final NetworkStats.Entry entry = new NetworkStats.Entry()
    [all...]
  /frameworks/base/core/tests/coretests/src/com/android/internal/net/
NetworkStatsFactoryTest.java 19 import static android.net.NetworkStats.SET_ALL;
20 import static android.net.NetworkStats.SET_DEFAULT;
21 import static android.net.NetworkStats.SET_FOREGROUND;
22 import static android.net.NetworkStats.TAG_NONE;
23 import static android.net.NetworkStats.UID_ALL;
27 import android.net.NetworkStats;
75 final NetworkStats stats = mFactory.readNetworkStatsDetail();
101 final NetworkStats stats = mFactory.readNetworkStatsDetail();
110 final NetworkStats stats = mFactory.readNetworkStatsSummaryDev();
121 final NetworkStats stats = mFactory.readNetworkStatsSummaryXt()
    [all...]
  /frameworks/base/core/java/android/os/
INetworkManagementService.aidl 22 import android.net.NetworkStats;
241 NetworkStats getNetworkStatsSummaryDev();
242 NetworkStats getNetworkStatsSummaryXt();
248 NetworkStats getNetworkStatsDetail();
254 NetworkStats getNetworkStatsUidDetail(int uid);
261 NetworkStats getNetworkStatsTethering(in String[] ifacePairs);
  /packages/apps/Settings/src/com/android/settings/net/
SummaryForAllUidLoader.java 22 import android.net.NetworkStats;
27 public class SummaryForAllUidLoader extends AsyncTaskLoader<NetworkStats> {
56 public NetworkStats loadInBackground() {
ChartDataLoader.java 19 import static android.net.NetworkStats.SET_DEFAULT;
20 import static android.net.NetworkStats.SET_FOREGROUND;
21 import static android.net.NetworkStats.TAG_NONE;
  /frameworks/base/services/tests/servicestests/src/com/android/server/
NetworkStatsServiceTest.java 25 import static android.net.NetworkStats.IFACE_ALL;
26 import static android.net.NetworkStats.SET_ALL;
27 import static android.net.NetworkStats.SET_DEFAULT;
28 import static android.net.NetworkStats.SET_FOREGROUND;
29 import static android.net.NetworkStats.TAG_NONE;
30 import static android.net.NetworkStats.UID_ALL;
62 import android.net.NetworkStats;
204 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1)
221 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1)
258 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1
    [all...]
NetworkPolicyManagerServiceTest.java 67 import android.net.NetworkStats;
581 NetworkStats stats = null;
610 stats = new NetworkStats(getElapsedRealtime(), 1)
657 NetworkStats stats = null;
669 stats = new NetworkStats(getElapsedRealtime(), 1)
693 stats = new NetworkStats(getElapsedRealtime(), 1)
718 stats = new NetworkStats(getElapsedRealtime(), 1)
739 stats = new NetworkStats(getElapsedRealtime(), 1)
788 NetworkStats stats = null;
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/net/
NetworkStatsCollectionTest.java 19 import static android.net.NetworkStats.SET_DEFAULT;
20 import static android.net.NetworkStats.TAG_NONE;
21 import static android.net.NetworkStats.UID_ALL;
27 import android.net.NetworkStats;
144 final NetworkStats.Entry entry = new NetworkStats.Entry();
174 final NetworkStats.Entry entry = collection.getSummary(
181 final NetworkStats.Entry entry = collection.getSummary(
187 NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) {
  /frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DataIdleTest.java 21 import android.net.NetworkStats;
22 import android.net.NetworkStats.Entry;
79 final NetworkStats stats = session.getSummaryForAllUid(
93 void reportStats(NetworkStats stats) {
  /frameworks/base/services/java/com/android/server/net/
NetworkStatsService.java 32 import static android.net.NetworkStats.IFACE_ALL;
33 import static android.net.NetworkStats.SET_ALL;
34 import static android.net.NetworkStats.SET_DEFAULT;
35 import static android.net.NetworkStats.SET_FOREGROUND;
36 import static android.net.NetworkStats.TAG_NONE;
37 import static android.net.NetworkStats.UID_ALL;
90 import android.net.NetworkStats;
91 import android.net.NetworkStats.NonMonotonicObserver;
140 private static final String TAG = "NetworkStats";
241 private NetworkStats mUidOperations = new NetworkStats(0L, 10)
    [all...]
NetworkStatsRecorder.java 19 import static android.net.NetworkStats.TAG_NONE;
24 import android.net.NetworkStats;
25 import android.net.NetworkStats.NonMonotonicObserver;
52 * Logic to record deltas between periodic {@link NetworkStats} snapshots into
78 private NetworkStats mLastSnapshot;
116 public NetworkStats.Entry getTotalSinceBootLocked(NetworkTemplate template) {
123 * {@link #recordSnapshotLocked(NetworkStats, Map, long)} snapshots as long
144 * Record any delta that occurred since last {@link NetworkStats} snapshot,
148 public void recordSnapshotLocked(NetworkStats snapshot,
163 final NetworkStats delta = NetworkStats.subtract
    [all...]
NetworkStatsCollection.java 19 import static android.net.NetworkStats.IFACE_ALL;
20 import static android.net.NetworkStats.SET_ALL;
21 import static android.net.NetworkStats.SET_DEFAULT;
22 import static android.net.NetworkStats.TAG_NONE;
23 import static android.net.NetworkStats.UID_ALL;
27 import android.net.NetworkStats;
163 public NetworkStats getSummary(NetworkTemplate template, long start, long end) {
166 final NetworkStats stats = new NetworkStats(end - start, 24);
167 final NetworkStats.Entry entry = new NetworkStats.Entry()
    [all...]
  /frameworks/base/core/tests/utillib/src/android/test/
BandwidthTestCase.java 18 import android.net.NetworkStats;
105 NetworkStats stats = TrafficStats.stopDataProfiling(null);
106 NetworkStats.Entry entry = stats.getTotal(null);
147 private Bundle getBandwidthStats(NetworkStats.Entry entry){
  /frameworks/base/services/java/com/android/server/
NetworkManagementService.java 22 import static android.net.NetworkStats.SET_DEFAULT;
23 import static android.net.NetworkStats.TAG_NONE;
24 import static android.net.NetworkStats.UID_ALL;
41 import android.net.NetworkStats;
    [all...]
  /packages/apps/Settings/src/com/android/settings/
DataUsageSummary.java 76 import android.net.NetworkStats;
    [all...]

Completed in 362 milliseconds

1 2