Home
last modified time | relevance | path

Searched refs:TrafficStats (Results 1 – 25 of 46) 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.java114 final int oldTag = TrafficStats.getAndSetThreadStatsTag( in requestTime()
183 TrafficStats.setThreadStatsTag(oldTag); in requestTime()
DTrafficStats.java56 public class TrafficStats { class
/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/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/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/opt/net/wifi/service/java/com/android/server/wifi/
DFrameworkFacade.java27 import android.net.TrafficStats;
165 return TrafficStats.getTxPackets(iface); in getTxPackets()
169 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/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;
DNetworkStatsRecorder.java20 import static android.net.TrafficStats.KB_IN_BYTES;
21 import static android.net.TrafficStats.MB_IN_BYTES;
28 import android.net.TrafficStats;
DNetworkPolicyManagerService.java77 import static android.net.TrafficStats.MB_IN_BYTES;
165 import android.net.TrafficStats;
3163 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3165 .setDataUsage(1 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3173 .setDataUsage(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3179 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3181 .setDataUsage(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3190 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3192 .setDataUsage(1 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
3198 .setDataLimit(5 * TrafficStats.GB_IN_BYTES, in getSubscriptionPlans()
[all …]
DNetworkStatsCollection.java30 import static android.net.TrafficStats.UID_REMOVED;
40 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.java28 import android.net.TrafficStats;
448 final int oldTag = TrafficStats.getAndSetThreadStatsTag( in setupSocket()
455 TrafficStats.setThreadStatsTag(oldTag); in setupSocket()
748 TrafficStats.getAndSetThreadStatsTag(TrafficStatsConstants.TAG_SYSTEM_PROBE); in run()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java33 import android.net.TrafficStats;
241 int oldTag = TrafficStats.getAndSetThreadStatsTag( in testForCaptivePortal()
256 TrafficStats.setThreadStatsTag(oldTag); in testForCaptivePortal()
/frameworks/base/packages/Tethering/src/android/net/ip/
DRouterAdvertisementDaemon.java29 import android.net.TrafficStats;
605 final int oldTag = TrafficStats.getAndSetThreadStatsTag(
618 TrafficStats.setThreadStatsTag(oldTag);
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java45 import android.net.TrafficStats;
1027 TrafficStats.setThreadStatsUid(uid); in IpSecService()
1028 TrafficStats.tagFileDescriptor(fd); in IpSecService()
1030 TrafficStats.clearThreadStatsUid(); in IpSecService()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsFactoryTest.java38 import android.net.TrafficStats;
388 assertEquals(TrafficStats.TAG_SYSTEM_DOWNLOAD, kernelToTag("0xffffff0100000000")); in testKernelTags()
/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