summaryrefslogtreecommitdiff
path: root/java/com/android/dialer
diff options
context:
space:
mode:
authorzachh <zachh@google.com>2017-07-13 12:44:55 -0700
committerEric Erfanian <erfanian@google.com>2017-07-24 18:48:03 +0000
commit687f1931532d66b51790998b318abca6a0d3f928 (patch)
treea6b370ac982b84cb83278df61e3b8548f8a0b810 /java/com/android/dialer
parent85c793406262562f940d46076a99515975b74910 (diff)
Reorganized dialer traffic stats tags.
We now have googledialer, aosp dialer, and voip registries for traffic tags which should always be used to avoid reusing tags. There are comments in each file about the reserved tag ranges. Note that this moves some traffic tags from one value to another. Traffic data is cleared across device restarts so that shouldn't be a problem. Test: unit tests verify no conflicts PiperOrigin-RevId: 161848949 Change-Id: I5b51e6242494a0bc211748f793a415a5fead5097
Diffstat (limited to 'java/com/android/dialer')
-rw-r--r--java/com/android/dialer/constants/TrafficStatsTags.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/java/com/android/dialer/constants/TrafficStatsTags.java b/java/com/android/dialer/constants/TrafficStatsTags.java
index b473402db..1eca7840a 100644
--- a/java/com/android/dialer/constants/TrafficStatsTags.java
+++ b/java/com/android/dialer/constants/TrafficStatsTags.java
@@ -18,17 +18,16 @@ package com.android.dialer.constants;
/** Registry of tags for {@link android.net.TrafficStats#setThreadStatsTag(int)} */
public class TrafficStatsTags {
- public static final int CONTACT_PHOTO_DOWNLOAD_TAG = 0x0001;
- public static final int NEARBY_PLACES_TAG = 0xaaaa;
- public static final int REVERSE_LOOKUP_CONTACT_TAG = 0xbaaa;
- public static final int REVERSE_LOOKUP_IMAGE_TAG = 0xbaab;
- public static final int DOWNLOAD_LOCATION_MAP_TAG = 0xd000;
- public static final int REVERSE_GEOCODE_TAG = 0xd001;
- public static final int VISUAL_VOICEMAIL_TAG = 0xd002;
- public static final int DIALER_VOIP_TAG = 0xd003;
+ public static final int CONTACT_PHOTO_DOWNLOAD_TAG = 0x00000001;
+ public static final int NEARBY_PLACES_TAG = 0x00000002;
+ public static final int REVERSE_LOOKUP_CONTACT_TAG = 0x00000003;
+ public static final int REVERSE_LOOKUP_IMAGE_TAG = 0x00000004;
+ public static final int DOWNLOAD_LOCATION_MAP_TAG = 0x00000005;
+ public static final int REVERSE_GEOCODE_TAG = 0x00000006;
+ public static final int VISUAL_VOICEMAIL_TAG = 0x00000007;
- // 0xFFFFFE00 to 0xFFFFFF00 reserved for proprietary extensions to the dialer app.
+ // 0xfffffe00 to 0xffffff00 reserved for proprietary extensions to the dialer app.
- // 0xFFFFFF00 to 0xFFFFFFFF reserved by the system (see TrafficStats#getAndSetThreadStatsTag)
+ // 0xffffff00 to 0xffffffff reserved by the system (see TrafficStats#getAndSetThreadStatsTag)
}