Home
last modified time | relevance | path

Searched refs:TrafficStats (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/support/compat/src/main/java/androidx/core/net/
DTrafficStatsCompat.java19 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/
DTrafficStatsBenchmark.java22 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/
DGpsXtraDownloader.java19 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/
DBandwidthTest.java24 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/
DBandwidthTestCase.java19 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/
DFrameworkFacade.java26 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/
DNetworkStats.java25 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/
DSntpClient.java104 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_NTP); in requestTime()
171 TrafficStats.setThreadStatsTag(oldTag); in requestTime()
DTrafficStats.java53 public class TrafficStats { class
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java24 import android.net.TrafficStats;
85 TrafficStats.closeQuietly(session); in fetchStats()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java30 import android.net.TrafficStats;
118 case TrafficStats.UID_REMOVED: in buildUidDetail()
124 case TrafficStats.UID_TETHERING: in buildUidDetail()
DDataUsageController.java22 import static android.net.TrafficStats.MB_IN_BYTES;
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java29 import android.net.TrafficStats;
112 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_PAC);
119 TrafficStats.setThreadStatsTag(oldTag);
DNetworkDiagnostics.java26 import android.net.TrafficStats;
386 final int oldTag = TrafficStats.getAndSetThreadStatsTag(TrafficStats.TAG_SYSTEM_PROBE); in setupSocket()
390 TrafficStats.setThreadStatsTag(oldTag); in setupSocket()
DNetworkMonitor.java39 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/
DNetworkStatsAccess.java21 import static android.net.TrafficStats.UID_REMOVED;
22 import static android.net.TrafficStats.UID_TETHERING;
DNetworkPolicyManagerService.java73 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 …]
DNetworkStatsRecorder.java20 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/
DCaptivePortalLoginActivity.java33 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/
DRouterAdvertisementDaemon.java27 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/
DNetworkStatsFactoryTest.java33 import android.net.TrafficStats;
106 assertEquals(TrafficStats.TAG_SYSTEM_DOWNLOAD, kernelToTag("0xffffff0100000000")); in testKernelTags()
/frameworks/base/services/net/java/android/net/dhcp/
DDhcpClient.java33 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/
DConnectivityController.java32 import android.net.TrafficStats;
131 / (slowest * TrafficStats.KB_IN_BYTES / 8)); in isInsane()
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java44 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/
DNetworkStatsHistoryTest.java27 import static android.net.TrafficStats.GB_IN_BYTES;
28 import static android.net.TrafficStats.MB_IN_BYTES;

12