Lines Matching refs:TrafficStats
237 {@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()}
264 {@link android.net.TrafficStats#clearThreadStatsTag clearThreadStatsTag()}
267 <pre>TrafficStats.setThreadStatsTag(0xF00D);
271 TrafficStats.clearThreadStatsTag();