/frameworks/support/compat/src/main/java/androidx/core/net/ |
D | TrafficStatsCompat.java | 19 import android.net.TrafficStats; 41 TrafficStats.clearThreadStatsTag(); in clearThreadStatsTag() 53 return TrafficStats.getThreadStatsTag(); in getThreadStatsTag() 67 TrafficStats.incrementOperationCount(operationCount); in incrementOperationCount() 81 TrafficStats.incrementOperationCount(tag, operationCount); in incrementOperationCount() 99 TrafficStats.setThreadStatsTag(tag); in setThreadStatsTag() 114 TrafficStats.tagSocket(socket); in tagSocket() 124 TrafficStats.untagSocket(socket); in untagSocket() 138 TrafficStats.tagDatagramSocket(socket); in tagDatagramSocket() 141 TrafficStats.tagSocket(new DatagramSocketWrapper(socket, pfd.getFileDescriptor())); in tagDatagramSocket() [all …]
|
/frameworks/base/core/tests/benchmarks/src/android/net/ |
D | TrafficStatsBenchmark.java | 22 TrafficStats.getUidRxBytes(android.os.Process.myUid()); in timeGetUidRxBytes() 28 TrafficStats.getMobileRxBytes(); in timeGetMobileRxBytes() 34 TrafficStats.getTotalRxBytes(); in timeGetTotalRxBytes()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GpsXtraDownloader.java | 19 import android.net.TrafficStats; 95 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_GPS); in downloadXtraData() 99 TrafficStats.setThreadStatsTag(oldTag); in downloadXtraData()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 24 import android.net.TrafficStats; 117 TrafficStats.startDataProfiling(mContext); in downloadFile() 120 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); in downloadFile() 173 TrafficStats.startDataProfiling(mContext); in uploadFile() 175 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); in uploadFile() 226 TrafficStats.startDataProfiling(mContext); in downloadFileUsingDownloadManager() 233 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); in downloadFileUsingDownloadManager()
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 19 import android.net.TrafficStats; 99 TrafficStats.startDataProfiling(null); in runTest() 105 NetworkStats stats = TrafficStats.stopDataProfiling(null); in runTest()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | FrameworkFacade.java | 26 import android.net.TrafficStats; 151 return TrafficStats.getTxPackets(iface); in getTxPackets() 155 return TrafficStats.getRxPackets(iface); in getRxPackets()
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 25 import android.net.TrafficStats; 166 public static final int UID_REMOVED = TrafficStats.UID_REMOVED; 171 public static final int UID_TETHERING = TrafficStats.UID_TETHERING; 301 case TrafficStats.UID_REMOVED: return UID_REMOVED; in convertUid() 302 case TrafficStats.UID_TETHERING: return UID_TETHERING; in convertUid()
|
/frameworks/base/core/java/android/net/ |
D | SntpClient.java | 104 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_NTP); in requestTime() 171 TrafficStats.setThreadStatsTag(oldTag); in requestTime()
|
D | TrafficStats.java | 53 public class TrafficStats { class
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 24 import android.net.TrafficStats; 85 TrafficStats.closeQuietly(session); in fetchStats()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | UidDetailProvider.java | 30 import android.net.TrafficStats; 118 case TrafficStats.UID_REMOVED: in buildUidDetail() 124 case TrafficStats.UID_TETHERING: in buildUidDetail()
|
D | DataUsageController.java | 22 import static android.net.TrafficStats.MB_IN_BYTES;
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PacManager.java | 29 import android.net.TrafficStats; 112 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_PAC); 119 TrafficStats.setThreadStatsTag(oldTag);
|
D | NetworkDiagnostics.java | 26 import android.net.TrafficStats; 386 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_PROBE); in setupSocket() 390 TrafficStats.setThreadStatsTag(oldTag); in setupSocket()
|
D | NetworkMonitor.java | 39 import android.net.TrafficStats; 594 TrafficStats.setThreadStatsUid(mUidResponsibleForReeval); in enter() 652 TrafficStats.clearThreadStatsUid(); in processMessage() 672 TrafficStats.clearThreadStatsUid(); in exit() 1077 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_PROBE); in sendHttpProbe() 1141 TrafficStats.setThreadStatsTag(oldTag); in sendHttpProbe()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsAccess.java | 21 import static android.net.TrafficStats.UID_REMOVED; 22 import static android.net.TrafficStats.UID_TETHERING;
|
D | NetworkPolicyManagerService.java | 73 import static android.net.TrafficStats.MB_IN_BYTES; 159 import android.net.TrafficStats; 3001 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans() 3003 .setDataUsage(1 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans() 3011 .setDataUsage(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans() 3017 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans() 3019 .setDataUsage(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans() 3028 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans() 3030 .setDataUsage(1 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans() 3036 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans() [all …]
|
D | NetworkStatsRecorder.java | 20 import static android.net.TrafficStats.KB_IN_BYTES; 21 import static android.net.TrafficStats.MB_IN_BYTES; 31 import android.net.TrafficStats;
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CaptivePortalLoginActivity.java | 33 import android.net.TrafficStats; 254 int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_PROBE); in testForCaptivePortal() 268 TrafficStats.setThreadStatsTag(oldTag); in testForCaptivePortal()
|
/frameworks/base/services/net/java/android/net/ip/ |
D | RouterAdvertisementDaemon.java | 27 import android.net.TrafficStats; 574 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_NEIGHBOR); 587 TrafficStats.setThreadStatsTag(oldTag);
|
/frameworks/base/tests/net/java/com/android/internal/net/ |
D | NetworkStatsFactoryTest.java | 33 import android.net.TrafficStats; 106 assertEquals(TrafficStats.TAG_SYSTEM_DOWNLOAD, kernelToTag("0xffffff0100000000")); in testKernelTags()
|
/frameworks/base/services/net/java/android/net/dhcp/ |
D | DhcpClient.java | 33 import android.net.TrafficStats; 309 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_DHCP); in initUdpSocket() 322 TrafficStats.setThreadStatsTag(oldTag); in initUdpSocket()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | ConnectivityController.java | 32 import android.net.TrafficStats; 131 / (slowest * TrafficStats.KB_IN_BYTES / 8)); in isInsane()
|
/frameworks/base/services/core/java/com/android/server/ |
D | IpSecService.java | 44 import android.net.TrafficStats; 994 TrafficStats.setThreadStatsUid(uid); in IpSecService() 995 TrafficStats.tagFileDescriptor(fd); in IpSecService() 997 TrafficStats.clearThreadStatsUid(); in IpSecService()
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 27 import static android.net.TrafficStats.GB_IN_BYTES; 28 import static android.net.TrafficStats.MB_IN_BYTES;
|