/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 | 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 [all...] |
TrafficStats.java | 23 import android.net.NetworkStats.NonMonotonicException; 86 * Snapshot of {@link NetworkStats} when the currently active profiling 92 private static NetworkStats sActiveProfilingStart; 186 * @return Detailed {@link NetworkStats} of data that occurred since last 190 public static NetworkStats stopDataProfiling(Context context) { 198 final NetworkStats profilingStop = getDataLayerSnapshotForUid(context); 199 final NetworkStats profilingDelta = profilingStop.subtract(sActiveProfilingStart); 498 * Return detailed {@link NetworkStats} for the current UID. Requires no 501 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/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 | 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)); 313 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_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.readNetworkStatsSummary(); 103 final NetworkStats stats = mFactory.readNetworkStatsSummary(); 117 final NetworkStats stats = mFactory.readNetworkStatsSummary(); 130 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; 46 * Creates {@link NetworkStats} instances by parsing various {@code /proc/} 94 * Parse and return interface-level summary {@link NetworkStats}. Values 100 public NetworkStats readNetworkStatsSummary() throws IllegalStateException { 108 private NetworkStats readNetworkStatsSummarySingleFile() { 109 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6) [all...] |
/frameworks/base/core/java/android/os/ |
INetworkManagementService.aidl | 22 import android.net.NetworkStats; 241 NetworkStats getNetworkStatsSummary(); 247 NetworkStats getNetworkStatsDetail(); 253 NetworkStats getNetworkStatsUidDetail(int uid); 260 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; 73 import android.net.NetworkStats; 74 import android.net.NetworkStats.NonMonotonicException; 129 private static final String TAG = "NetworkStats"; 211 private NetworkStats mLastPollNetworkDevSnapshot [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; 197 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1) 214 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1) 251 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; 507 NetworkStats stats = null; 535 stats = new NetworkStats(getElapsedRealtime(), 1) 581 NetworkStats stats = null; 593 stats = new NetworkStats(getElapsedRealtime(), 1) 616 stats = new NetworkStats(getElapsedRealtime(), 1) 640 stats = new NetworkStats(getElapsedRealtime(), 1) 661 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 | 72 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...] |