Home
last modified time | relevance | path

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

12

/frameworks/support/v4/ics/android/support/v4/net/
DTrafficStatsCompatIcs.java19 import android.net.TrafficStats;
29 TrafficStats.clearThreadStatsTag(); in clearThreadStatsTag()
33 return TrafficStats.getThreadStatsTag(); in getThreadStatsTag()
37 TrafficStats.incrementOperationCount(operationCount); in incrementOperationCount()
41 TrafficStats.incrementOperationCount(tag, operationCount); in incrementOperationCount()
45 TrafficStats.setThreadStatsTag(tag); in setThreadStatsTag()
49 TrafficStats.tagSocket(socket); in tagSocket()
53 TrafficStats.untagSocket(socket); in untagSocket()
/frameworks/base/core/tests/benchmarks/src/android/net/
DTrafficStatsBenchmark.java24 TrafficStats.getUidRxBytes(android.os.Process.myUid()); in timeGetUidRxBytes()
30 TrafficStats.getMobileRxBytes(); in timeGetMobileRxBytes()
36 TrafficStats.getTotalRxBytes(); in timeGetTotalRxBytes()
/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/volley/src/com/android/volley/
DNetworkDispatcher.java20 import android.net.TrafficStats;
77 TrafficStats.setThreadStatsTag(request.getTrafficStatsTag()); in addTrafficStatsTag()
DRequest.java19 import android.net.TrafficStats;
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java24 import android.net.TrafficStats;
85 TrafficStats.closeQuietly(session); in fetchStats()
/frameworks/base/docs/html/sdk/api_diff/12/
DmissingSinces.txt48 NO DOC BLOCK: android.net.TrafficStats Method getUidRxPackets(int)
49 NO DOC BLOCK: android.net.TrafficStats Method getUidTcpRxBytes(int)
50 NO DOC BLOCK: android.net.TrafficStats Method getUidTcpRxSegments(int)
51 NO DOC BLOCK: android.net.TrafficStats Method getUidTcpTxBytes(int)
52 NO DOC BLOCK: android.net.TrafficStats Method getUidTcpTxSegments(int)
53 NO DOC BLOCK: android.net.TrafficStats Method getUidTxPackets(int)
54 NO DOC BLOCK: android.net.TrafficStats Method getUidUdpRxBytes(int)
55 NO DOC BLOCK: android.net.TrafficStats Method getUidUdpRxPackets(int)
56 NO DOC BLOCK: android.net.TrafficStats Method getUidUdpTxBytes(int)
57 NO DOC BLOCK: android.net.TrafficStats Method getUidUdpTxPackets(int)
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiTrafficPoller.java25 import android.net.TrafficStats;
178 mTxPkts = TrafficStats.getTxPackets(mInterface); in notifyOnDataActivity()
179 mRxPkts = TrafficStats.getRxPackets(mInterface); in notifyOnDataActivity()
/frameworks/base/docs/html/tools/debugging/
Dddms.jd237 {@link android.net.TrafficStats} API allows you
239 android.net.TrafficStats#setThreadStatsTag setThreadStatsTag()}, followed
241 android.net.TrafficStats#tagSocket tagSocket()} and {@link
242 android.net.TrafficStats#untagSocket untagSocket()}. For example:</p>
244 <pre>TrafficStats.setThreadStatsTag(0xF00D);
245 TrafficStats.tagSocket(outputSocket);
247 TrafficStats.untagSocket(outputSocket);</pre>
253 {@link android.net.TrafficStats#getThreadStatsTag getThreadStatsTag()}).
256 {@link android.net.TrafficStats#setThreadStatsTag setThreadStatsTag()}
260 be returned by {@link android.net.TrafficStats#getThreadStatsTag getThreadStatsTag()}
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
DNetworkStatsFactoryTest.java28 import android.net.TrafficStats;
95 assertEquals(TrafficStats.TAG_SYSTEM_DOWNLOAD, kernelToTag("0xffffff0100000000")); in testKernelTags()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsRecorder.java20 import static android.net.TrafficStats.KB_IN_BYTES;
21 import static android.net.TrafficStats.MB_IN_BYTES;
28 import android.net.TrafficStats;
DNetworkStatsCollection.java24 import static android.net.TrafficStats.UID_REMOVED;
33 import android.net.TrafficStats;
DNetworkStatsService.java38 import static android.net.TrafficStats.KB_IN_BYTES;
39 import static android.net.TrafficStats.MB_IN_BYTES;
87 import android.net.TrafficStats;
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java19 import static android.net.TrafficStats.MB_IN_BYTES;
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkMonitor.java32 import android.net.TrafficStats;
441 TrafficStats.setThreadStatsUid(mUidResponsibleForReeval); in enter()
503 TrafficStats.clearThreadStatsUid(); in exit()
/frameworks/base/docs/html/training/efficient-downloads/
Defficient-network-access.jd154 … to tag the data transfers occurring within a thread using the {@code TrafficStats.setThreadStatsT…
156 <pre>TrafficStats.setThreadStatsTag(0xF00D);
157 TrafficStats.tagSocket(outputSocket);
159 TrafficStats.untagSocket(outputSocket);</pre>
163 <pre>TrafficStats.setThreadStatsTag(0xF00D);
167 TrafficStats.clearThreadStatsTag();
/frameworks/base/core/java/android/net/
DTrafficStats.java42 public class TrafficStats { class
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkStatsHistoryTest.java27 import static android.net.TrafficStats.GB_IN_BYTES;
28 import static android.net.TrafficStats.MB_IN_BYTES;
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkStatsServiceTest.java34 import static android.net.TrafficStats.MB_IN_BYTES;
35 import static android.net.TrafficStats.UID_REMOVED;
36 import static android.net.TrafficStats.UID_TETHERING;
DNetworkPolicyManagerServiceTest.java31 import static android.net.TrafficStats.KB_IN_BYTES;
32 import static android.net.TrafficStats.MB_IN_BYTES;
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java19 import static android.net.TrafficStats.MB_IN_BYTES;
/frameworks/base/core/java/android/os/storage/
DStorageManager.java19 import static android.net.TrafficStats.MB_IN_BYTES;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcTrackerBase.java32 import android.net.TrafficStats;
499 this.txPkts = TrafficStats.getMobileTcpTxPackets(); in updateTxRxSum()
500 this.rxPkts = TrafficStats.getMobileTcpRxPackets(); in updateTxRxSum()
/frameworks/base/core/java/android/provider/
DDocumentsContract.java19 import static android.net.TrafficStats.KB_IN_BYTES;

12