/frameworks/base/core/tests/coretests/src/android/net/ |
D | 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) in testFindIndex() 55 final NetworkStats stats = new NetworkStats(TEST_START, 3) in testFindIndexHinted() 76 final NetworkStats stats = new NetworkStats(TEST_START, 2); in testAddEntryGrow() 102 final NetworkStats stats = new NetworkStats(TEST_START, 10); in testCombineExisting() [all …]
|
D | NetworkStatsHistoryTest.java | 97 new NetworkStats.Entry(1024L, 10L, 2048L, 20L, 2L)); in testRecordSingleBucket() 110 new NetworkStats.Entry(1024L, 10L, 128L, 2L, 2L)); in testRecordEqualBuckets() 126 new NetworkStats.Entry(1000L, 2000L, 5000L, 10000L, 100L)); in testRecordTouchingBuckets() 145 new NetworkStats.Entry(128L, 2L, 256L, 4L, 1L)); in testRecordGapBuckets() 147 new NetworkStats.Entry(64L, 1L, 512L, 8L, 2L)); in testRecordGapBuckets() 158 new NetworkStats.Entry(2048L, 4L, 2048L, 4L, 2L)); in testRecordGapBuckets() 174 new NetworkStats.Entry(256L, 2L, 256L, 2L, 1L)); in testRecordOverlapBuckets() 177 new NetworkStats.Entry(1024L, 10L, 1024L, 10L, 10L)); in testRecordOverlapBuckets() 311 final NetworkStats.Entry entry = new NetworkStats.Entry(); in testFuzzing() 349 new NetworkStats.Entry(1024L, 10L, 2048L, 20L, 4L)); in testIgnoreFields() [all …]
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkStatsFactory.java | 19 import static android.net.NetworkStats.SET_ALL; 20 import static android.net.NetworkStats.TAG_ALL; 21 import static android.net.NetworkStats.TAG_NONE; 22 import static android.net.NetworkStats.UID_ALL; 25 import android.net.NetworkStats; 92 public NetworkStats readNetworkStatsSummaryDev() throws IOException { in readNetworkStatsSummaryDev() 95 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6); in readNetworkStatsSummaryDev() 96 final NetworkStats.Entry entry = new NetworkStats.Entry(); in readNetworkStatsSummaryDev() 145 public NetworkStats readNetworkStatsSummaryXt() throws IOException { in readNetworkStatsSummaryXt() 151 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 6); in readNetworkStatsSummaryXt() [all …]
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 22 import android.net.NetworkStats; 23 import android.net.NetworkStats.Entry; 112 NetworkStats pre_test_stats = fetchDataFromProc(mUid); in downloadFile() 120 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); in downloadFile() 123 NetworkStats post_test_stats = fetchDataFromProc(mUid); in downloadFile() 124 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats); in downloadFile() 172 NetworkStats pre_test_stats = fetchDataFromProc(mUid); in uploadFile() 175 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); in uploadFile() 177 NetworkStats post_test_stats = fetchDataFromProc(mUid); in uploadFile() 178 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats); in uploadFile() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkStats.java | 44 public class NetworkStats implements Parcelable { class 157 public NetworkStats(long elapsedRealtime, int initialSize) { in NetworkStats() method in NetworkStats 186 public NetworkStats(Parcel parcel) { in NetworkStats() method in NetworkStats 218 public NetworkStats clone() { in clone() 219 final NetworkStats clone = new NetworkStats(elapsedRealtime, size); in clone() 220 NetworkStats.Entry entry = null; in clone() 229 public NetworkStats addIfaceValues( in addIfaceValues() 236 public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes, in addValues() 246 public NetworkStats addValues(Entry entry) { in addValues() 318 public NetworkStats combineValues(String iface, int uid, int tag, long rxBytes, long rxPackets, in combineValues() [all …]
|
D | INetworkStatsSession.aidl | 19 import android.net.NetworkStats; 27 NetworkStats getSummaryForNetwork(in NetworkTemplate template, long start, long end); in getSummaryForNetwork() 32 …NetworkStats getSummaryForAllUid(in NetworkTemplate template, long start, long end, boolean includ… in getSummaryForAllUid()
|
D | TrafficStats.java | 109 private static NetworkStats sActiveProfilingStart; 229 public static NetworkStats stopDataProfiling(Context context) { in stopDataProfiling() 236 final NetworkStats profilingStop = getDataLayerSnapshotForUid(context); in stopDataProfiling() 237 final NetworkStats profilingDelta = NetworkStats.subtract( in stopDataProfiling() 605 private static NetworkStats getDataLayerSnapshotForUid(Context context) { in getDataLayerSnapshotForUid()
|
D | INetworkStatsService.aidl | 20 import android.net.NetworkStats; 34 NetworkStats getDataLayerSnapshotForUid(int uid); in getDataLayerSnapshotForUid()
|
D | 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; 288 recordData(start, end, new NetworkStats.Entry( in recordData() 296 public void recordData(long start, long end, NetworkStats.Entry entry) { in recordData() 362 final NetworkStats.Entry entry = new NetworkStats.Entry( in recordHistory() 551 final NetworkStats.Entry entry = new NetworkStats.Entry( in generateRandom()
|
D | NetworkStats.aidl | 19 parcelable NetworkStats;
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
D | 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(); in testNetworkStatsDetail() 101 final NetworkStats stats = mFactory.readNetworkStatsDetail(); in testNetworkStatsWithSet() 110 final NetworkStats stats = mFactory.readNetworkStatsSummaryDev(); in testNetworkStatsSingle() 121 final NetworkStats stats = mFactory.readNetworkStatsSummaryXt(); in testNetworkStatsXt() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | 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; 61 import android.net.NetworkStats; 204 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1) in testNetworkStatsWifi() 221 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1) in testNetworkStatsWifi() 258 expectNetworkStatsSummary(new NetworkStats(getElapsedRealtime(), 1) in testStatsRebootPersist() [all …]
|
D | NetworkPolicyManagerServiceTest.java | 67 import android.net.NetworkStats; 581 NetworkStats stats = null; in testNetworkPolicyAppliedCycleLastMonth() 610 stats = new NetworkStats(getElapsedRealtime(), 1) in testNetworkPolicyAppliedCycleLastMonth() 657 NetworkStats stats = null; in testOverWarningLimitNotification() 669 stats = new NetworkStats(getElapsedRealtime(), 1) in testOverWarningLimitNotification() 693 stats = new NetworkStats(getElapsedRealtime(), 1) in testOverWarningLimitNotification() 718 stats = new NetworkStats(getElapsedRealtime(), 1) in testOverWarningLimitNotification() 739 stats = new NetworkStats(getElapsedRealtime(), 1) in testOverWarningLimitNotification() 788 NetworkStats stats = null; in testMeteredNetworkWithoutLimit() 800 stats = new NetworkStats(getElapsedRealtime(), 1) in testMeteredNetworkWithoutLimit()
|
/frameworks/base/core/tests/benchmarks/src/com/android/internal/net/ |
D | NetworkStatsFactoryBenchmark.java | 19 import android.net.NetworkStats; 43 NetworkStatsFactory.javaReadNetworkStatsDetail(mStats, NetworkStats.UID_ALL); in timeReadNetworkStatsDetailJava() 49 final NetworkStats stats = new NetworkStats(SystemClock.elapsedRealtime(), 0); in timeReadNetworkStatsDetailNative() 51 stats, mStats.getAbsolutePath(), NetworkStats.UID_ALL); in timeReadNetworkStatsDetailNative()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | 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(); in testStartEndAtomicBuckets() 174 final NetworkStats.Entry entry = collection.getSummary( in assertSummaryTotal() 181 final NetworkStats.Entry entry = collection.getSummary( in assertSummaryTotalIncludingTags() 187 NetworkStats.Entry entry, long rxBytes, long rxPackets, long txBytes, long txPackets) { in assertEntry()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsService.java | 30 import static android.net.NetworkStats.IFACE_ALL; 31 import static android.net.NetworkStats.SET_ALL; 32 import static android.net.NetworkStats.SET_DEFAULT; 33 import static android.net.NetworkStats.SET_FOREGROUND; 34 import static android.net.NetworkStats.TAG_NONE; 35 import static android.net.NetworkStats.UID_ALL; 83 import android.net.NetworkStats; 84 import android.net.NetworkStats.NonMonotonicObserver; 233 private NetworkStats mUidOperations = new NetworkStats(0L, 10); 460 public NetworkStats getSummaryForNetwork( in openSession() [all …]
|
D | 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; 30 import android.net.NetworkStats; 167 public NetworkStats getSummary(NetworkTemplate template, long start, long end) { in getSummary() 170 final NetworkStats stats = new NetworkStats(end - start, 24); in getSummary() 171 final NetworkStats.Entry entry = new NetworkStats.Entry(); in getSummary() 206 long end, NetworkStats.Entry entry) { in recordData() [all …]
|
D | NetworkStatsRecorder.java | 19 import static android.net.NetworkStats.TAG_NONE; 24 import android.net.NetworkStats; 25 import android.net.NetworkStats.NonMonotonicObserver; 79 private NetworkStats mLastSnapshot; 117 public NetworkStats.Entry getTotalSinceBootLocked(NetworkTemplate template) { in getTotalSinceBootLocked() 165 public void recordSnapshotLocked(NetworkStats snapshot, in recordSnapshotLocked() 180 final NetworkStats delta = NetworkStats.subtract( in recordSnapshotLocked() 185 NetworkStats.Entry entry = null; in recordSnapshotLocked()
|
/frameworks/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 23 import android.net.NetworkStats; 242 NetworkStats getNetworkStatsSummaryDev(); in getNetworkStatsSummaryDev() 243 NetworkStats getNetworkStatsSummaryXt(); in getNetworkStatsSummaryXt() 249 NetworkStats getNetworkStatsDetail(); in getNetworkStatsDetail() 255 NetworkStats getNetworkStatsUidDetail(int uid); in getNetworkStatsUidDetail() 260 NetworkStats getNetworkStatsTethering(); in getNetworkStatsTethering()
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 21 import android.net.NetworkStats; 22 import android.net.NetworkStats.Entry; 79 final NetworkStats stats = session.getSummaryForAllUid( in fetchStats() 93 void reportStats(NetworkStats stats) { in reportStats()
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 18 import android.net.NetworkStats; 105 NetworkStats stats = TrafficStats.stopDataProfiling(null); in runTest() 106 NetworkStats.Entry entry = stats.getTotal(null); in runTest() 147 private Bundle getBandwidthStats(NetworkStats.Entry entry){ in getBandwidthStats()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 22 import static android.net.NetworkStats.SET_DEFAULT; 23 import static android.net.NetworkStats.TAG_ALL; 24 import static android.net.NetworkStats.TAG_NONE; 25 import static android.net.NetworkStats.UID_ALL; 48 import android.net.NetworkStats; 1480 public NetworkStats getNetworkStatsSummaryDev() { in getNetworkStatsSummaryDev() 1490 public NetworkStats getNetworkStatsSummaryXt() { in getNetworkStatsSummaryXt() 1500 public NetworkStats getNetworkStatsDetail() { in getNetworkStatsDetail() 1661 public NetworkStats getNetworkStatsUidDetail(int uid) { in getNetworkStatsUidDetail() 1671 public NetworkStats getNetworkStatsTethering() { in getNetworkStatsTethering() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 19 import static android.net.NetworkStats.UID_ALL; 27 import android.net.NetworkStats; 434 private NetworkStats mCurMobileSnapshot = new NetworkStats(SystemClock.elapsedRealtime(), 50); 435 private NetworkStats mLastMobileSnapshot = new NetworkStats(SystemClock.elapsedRealtime(), 50); 436 private NetworkStats mCurWifiSnapshot = new NetworkStats(SystemClock.elapsedRealtime(), 50); 437 private NetworkStats mLastWifiSnapshot = new NetworkStats(SystemClock.elapsedRealtime(), 50); 438 private NetworkStats mTmpNetworkStats; 439 private final NetworkStats.Entry mTmpNetworkStatsEntry = new NetworkStats.Entry(); 7148 final NetworkStats snapshot; in updateNetworkActivityLocked() 7149 final NetworkStats last = mCurMobileSnapshot; in updateNetworkActivityLocked() [all …]
|
/frameworks/base/ |
D | preloaded-classes | 925 android.net.NetworkStats 926 android.net.NetworkStats$1
|