/frameworks/base/core/java/android/net/ |
NetworkStats.aidl | 19 parcelable NetworkStats;
|
INetworkStatsService.aidl | 19 import android.net.NetworkStats; 32 NetworkStats getSummaryForNetwork(in NetworkTemplate template, long start, long end); 34 NetworkStats getSummaryForAllUid(in NetworkTemplate template, long start, long end, boolean includeTags); 37 NetworkStats getDataLayerSnapshotForUid(int uid);
|
NetworkStats.java | 41 public class NetworkStats implements Parcelable { 42 private static final String TAG = "NetworkStats"; 122 public NetworkStats(long elapsedRealtime, int initialSize) { 136 public NetworkStats(Parcel parcel) { 166 public NetworkStats addIfaceValues( 173 public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes, 183 public NetworkStats addValues(Entry entry) { 233 * Return age of this {@link NetworkStats} object with respect to 250 public NetworkStats combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, 256 public NetworkStats combineValues(String iface, int uid, int set, int tag, long rxBytes [all...] |
TrafficStats.java | 85 * Snapshot of {@link NetworkStats} when the currently active profiling 91 private static NetworkStats sActiveProfilingStart; 185 * @return Detailed {@link NetworkStats} of data that occurred since last 189 public static NetworkStats stopDataProfiling(Context context) { 196 final NetworkStats profilingStop = getDataLayerSnapshotForUid(context); 197 final NetworkStats profilingDelta = profilingStop.subtractClamped( 494 * Return detailed {@link NetworkStats} for the current UID. Requires no 497 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; 260 recordData(start, end, new NetworkStats.Entry( 268 public void recordData(long start, long end, NetworkStats.Entry entry) { 320 final NetworkStats.Entry entry = new NetworkStats.Entry( 503 final NetworkStats.Entry entry = new NetworkStats.Entry [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, 2) [all...] |
NetworkStatsHistoryTest.java | 99 new NetworkStats.Entry(1024L, 10L, 2048L, 20L, 2L)); 112 new NetworkStats.Entry(1024L, 10L, 128L, 2L, 2L)); 128 new NetworkStats.Entry(1000L, 2000L, 5000L, 10000L, 100L)); 147 new NetworkStats.Entry(128L, 2L, 256L, 4L, 1L)); 149 new NetworkStats.Entry(64L, 1L, 512L, 8L, 2L)); 160 new NetworkStats.Entry(2048L, 4L, 2048L, 4L, 2L)); 176 new NetworkStats.Entry(256L, 2L, 256L, 2L, 1L)); 179 new NetworkStats.Entry(1024L, 10L, 1024L, 10L, 10L)); 309 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; 94 NetworkStats pre_test_stats = fetchDataFromProc(mUid); 102 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); 105 NetworkStats post_test_stats = fetchDataFromProc(mUid); 106 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats); 136 NetworkStats pre_test_stats = fetchDataFromProc(mUid); 139 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); 141 NetworkStats post_test_stats = fetchDataFromProc(mUid); 142 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats) [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
NetworkStatsFactoryTest.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; 22 import static android.net.NetworkStats.UID_ALL; 26 import android.net.NetworkStats; 73 final NetworkStats stats = mFactory.readNetworkStatsDetail(); 85 final NetworkStats stats = mFactory.readNetworkStatsDetail(); 94 final NetworkStats stats = mFactory.readNetworkStatsSummary(); 112 final NetworkStats stats = mFactory.readNetworkStatsSummary(); 126 final NetworkStats stats = mFactory.readNetworkStatsSummary() [all...] |
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
DataIdleTest.java | 20 import android.net.NetworkStats.Entry; 22 import android.net.NetworkStats; 76 NetworkStats stats = mStatsService.getSummaryForAllUid(template, Long.MIN_VALUE, 88 void reportStats(NetworkStats stats) {
|
/packages/apps/Settings/src/com/android/settings/net/ |
SummaryForAllUidLoader.java | 22 import android.net.NetworkStats; 27 public class SummaryForAllUidLoader extends AsyncTaskLoader<NetworkStats> { 57 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/core/java/com/android/internal/net/ |
NetworkStatsFactory.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; 24 import android.net.NetworkStats; 44 * Creates {@link NetworkStats} instances by parsing various {@code /proc/} 92 * Parse and return interface-level summary {@link NetworkStats}. Values 98 public NetworkStats readNetworkStatsSummary() throws IllegalStateException { 106 private NetworkStats readNetworkStatsSummarySingleFile() { 107 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6) [all...] |
/frameworks/base/core/java/android/os/ |
INetworkManagementService.aidl | 22 import android.net.NetworkStats; 229 NetworkStats getNetworkStatsSummary(); 235 NetworkStats getNetworkStatsDetail(); 241 NetworkStats getNetworkStatsUidDetail(int uid); 248 NetworkStats getNetworkStatsTethering(in String[] ifacePairs);
|
/frameworks/base/services/java/com/android/server/net/ |
NetworkStatsService.java | 29 import static android.net.NetworkStats.IFACE_ALL; 30 import static android.net.NetworkStats.SET_ALL; 31 import static android.net.NetworkStats.SET_DEFAULT; 32 import static android.net.NetworkStats.SET_FOREGROUND; 33 import static android.net.NetworkStats.TAG_NONE; 34 import static android.net.NetworkStats.UID_ALL; 75 import android.net.NetworkStats; 129 private static final String TAG = "NetworkStats"; 206 private NetworkStats mLastPollNetworkDevSnapshot; 207 private NetworkStats mLastPollNetworkXtSnapshot [all...] |
/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; 59 import android.net.NetworkStats; 196 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1) 213 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1) 250 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1 [all...] |
ThrottleServiceTest.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; 35 import android.net.NetworkStats; 294 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 1);
|
NetworkPolicyManagerServiceTest.java | 64 import android.net.NetworkStats; 496 NetworkStats stats = null; 524 stats = new NetworkStats(getElapsedRealtime(), 1) 568 NetworkStats stats = null; 580 stats = new NetworkStats(getElapsedRealtime(), 1) 602 stats = new NetworkStats(getElapsedRealtime(), 1) 625 stats = new NetworkStats(getElapsedRealtime(), 1) 645 stats = new NetworkStats(getElapsedRealtime(), 1) [all...] |
/frameworks/base/services/java/com/android/server/ |
NetworkManagementService.java | 23 import static android.net.NetworkStats.SET_DEFAULT; 24 import static android.net.NetworkStats.TAG_NONE; 25 import static android.net.NetworkStats.UID_ALL; 35 import android.net.NetworkStats; [all...] |
ThrottleService.java | 33 import android.net.NetworkStats; 514 final NetworkStats stats = mNMService.getNetworkStatsSummary(); 515 final int index = stats.findIndex(mIface, NetworkStats.UID_ALL, 516 NetworkStats.SET_DEFAULT, NetworkStats.TAG_NONE); 519 final NetworkStats.Entry entry = stats.getValues(index, null); [all...] |
/frameworks/base/core/java/com/android/server/ |
NetworkManagementSocketTagger.java | 19 import android.net.NetworkStats;
|
/packages/apps/Settings/src/com/android/settings/ |
DataUsageSummary.java | 70 import android.net.NetworkStats; [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
BatteryStatsImpl.java | 19 import static android.net.NetworkStats.IFACE_ALL; 20 import static android.net.NetworkStats.UID_ALL; 27 import android.net.NetworkStats; [all...] |