Home
last modified time | relevance | path

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

12

/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/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java25 import android.net.TrafficStats;
124 TrafficStats.startDataProfiling(mContext); in downloadFile()
127 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); in downloadFile()
180 TrafficStats.startDataProfiling(mContext); in uploadFile()
182 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); in uploadFile()
233 TrafficStats.startDataProfiling(mContext); in downloadFileUsingDownloadManager()
240 NetworkStats prof_stats = TrafficStats.stopDataProfiling(mContext); in downloadFileUsingDownloadManager()
/frameworks/base/core/java/android/net/
DPrivateDnsConnectivityChecker.java47 TrafficStats.setThreadStatsTag(TrafficStats.TAG_SYSTEM_APP); in canConnectToPrivateDnsServer()
DSntpClient.java104 final int oldTag = TrafficStats.getAndSetThreadStatsTag( in requestTime()
172 TrafficStats.setThreadStatsTag(oldTag); in requestTime()
DTrafficStats.java55 public class TrafficStats { class
/frameworks/base/services/core/java/com/android/server/location/
DGpsPsdsDownloader.java19 import android.net.TrafficStats;
97 final int oldTag = TrafficStats.getAndSetThreadStatsTag( in downloadPsdsData()
102 TrafficStats.setThreadStatsTag(oldTag); in downloadPsdsData()
/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/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java24 import android.net.TrafficStats;
85 TrafficStats.closeQuietly(session); in fetchStats()
/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/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java30 import android.net.TrafficStats;
119 case TrafficStats.UID_REMOVED: in buildUidDetail()
125 case TrafficStats.UID_TETHERING: in buildUidDetail()
DNetworkCycleDataLoader.java31 import android.net.TrafficStats;
129 TrafficStats.closeQuietly(networkSession); in loadFourWeeksData()
DDataUsageController.java22 import static android.net.TrafficStats.MB_IN_BYTES;
/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;
160 import android.net.TrafficStats;
3075 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3077 .setDataUsage(1 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3085 .setDataUsage(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3091 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3093 .setDataUsage(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3102 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3104 .setDataUsage(1 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3110 .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;
DNetworkStatsCollection.java30 import static android.net.TrafficStats.UID_REMOVED;
39 import android.net.TrafficStats;
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java29 import android.net.TrafficStats;
115 final int oldTag = TrafficStats.getAndSetThreadStatsTag(
123 TrafficStats.setThreadStatsTag(oldTag);
DNetworkDiagnostics.java26 import android.net.TrafficStats;
385 final int oldTag = TrafficStats.getAndSetThreadStatsTag( in setupSocket()
390 TrafficStats.setThreadStatsTag(oldTag); in setupSocket()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java33 import android.net.TrafficStats;
242 int oldTag = TrafficStats.getAndSetThreadStatsTag( in testForCaptivePortal()
257 TrafficStats.setThreadStatsTag(oldTag); in testForCaptivePortal()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsFactoryTest.java35 import android.net.TrafficStats;
113 assertEquals(TrafficStats.TAG_SYSTEM_DOWNLOAD, kernelToTag("0xffffff0100000000")); in testKernelTags()
/frameworks/base/services/net/java/android/net/ip/
DRouterAdvertisementDaemon.java31 import android.net.TrafficStats;
590 final int oldTag = TrafficStats.getAndSetThreadStatsTag(
604 TrafficStats.setThreadStatsTag(oldTag);
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java47 import android.net.TrafficStats;
1017 TrafficStats.setThreadStatsUid(uid); in IpSecService()
1018 TrafficStats.tagFileDescriptor(fd); in IpSecService()
1020 TrafficStats.clearThreadStatsUid(); in IpSecService()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java32 import android.net.TrafficStats;
341 / (slowest * TrafficStats.KB_IN_BYTES / 8)); in isInsane()
/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