Migrate setThreadStatsTag() from String to int.
Jeff Sharkey [Sat, 25 Jun 2011 19:57:52 +0000 (12:57 -0700)]
Bug: 4948913
Change-Id: I831b9149208f0cc007cf3ebede3ef433b2636600

src/com/android/providers/downloads/DownloadThread.java

index 75d4ca3..5cda3a1 100644 (file)
@@ -155,7 +155,7 @@ public class DownloadThread extends Thread {
 
             // network traffic on this thread should be counted against the
             // requesting uid, and is tagged with well-known value.
-            TrafficStats.setThreadStatsTag("android:DownloadManager");
+            TrafficStats.setThreadStatsTag(TrafficStats.TAG_SYSTEM_DOWNLOAD);
             TrafficStats.setThreadStatsUid(mInfo.mUid);
 
             boolean finished = false;