diff options
author | Chris Wren <cwren@android.com> | 2015-05-13 18:05:54 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-13 18:05:56 +0000 |
commit | 5e4027fe258f92d2d8b1d181cd959086aa84ac15 (patch) | |
tree | 574012402ec68ad2a13ef46801ba9df6bae226c7 | |
parent | 876677ef2d04545593fd4cd7bb8539fa15e3dc09 (diff) | |
parent | 28890446fdea2a49f5e73f23c88921646a30ed3a (diff) | |
download | frameworks_base-5e4027fe258f92d2d8b1d181cd959086aa84ac15.zip frameworks_base-5e4027fe258f92d2d8b1d181cd959086aa84ac15.tar.gz frameworks_base-5e4027fe258f92d2d8b1d181cd959086aa84ac15.tar.bz2 |
Merge "induct a bunch of new logging categories." into mnc-dev
-rw-r--r-- | core/java/com/android/internal/logging/MetricsConstants.java | 131 | ||||
-rw-r--r-- | core/java/com/android/internal/logging/MetricsLogger.java | 40 |
2 files changed, 88 insertions, 83 deletions
diff --git a/core/java/com/android/internal/logging/MetricsConstants.java b/core/java/com/android/internal/logging/MetricsConstants.java index 6aa81ce..65dc743 100644 --- a/core/java/com/android/internal/logging/MetricsConstants.java +++ b/core/java/com/android/internal/logging/MetricsConstants.java @@ -21,7 +21,9 @@ package com.android.internal.logging; * @hide */ public interface MetricsConstants { - // These constants must match those in the analytic pipeline. + // These constants must match those in the analytic pipeline, do not edit. + public static final int VIEW_UNKNOWN = 0; + public static final int MAIN_SETTINGS = 1; public static final int ACCESSIBILITY = 2; public static final int ACCESSIBILITY_CAPTION_PROPERTIES = 3; public static final int ACCESSIBILITY_SERVICE = 4; @@ -32,16 +34,11 @@ public interface MetricsConstants { public static final int ACCOUNTS_ACCOUNT_SYNC = 9; public static final int ACCOUNTS_CHOOSE_ACCOUNT_ACTIVITY = 10; public static final int ACCOUNTS_MANAGE_ACCOUNTS = 11; - public static final int ACTION_WIFI_ADD_NETWORK = 134; - public static final int ACTION_WIFI_CONNECT = 135; - public static final int ACTION_WIFI_FORCE_SCAN = 136; - public static final int ACTION_WIFI_FORGET = 137; - public static final int ACTION_WIFI_OFF = 138; - public static final int ACTION_WIFI_ON = 139; public static final int APN = 12; public static final int APN_EDITOR = 13; + public static final int APP_OPS_DETAILS = 14; + public static final int APP_OPS_SUMMARY = 15; public static final int APPLICATION = 16; - public static final int APPLICATIONS_ADVANCED = 130; public static final int APPLICATIONS_APP_LAUNCH = 17; public static final int APPLICATIONS_APP_PERMISSION = 18; public static final int APPLICATIONS_APP_STORAGE = 19; @@ -49,8 +46,6 @@ public interface MetricsConstants { public static final int APPLICATIONS_PROCESS_STATS_DETAIL = 21; public static final int APPLICATIONS_PROCESS_STATS_MEM_DETAIL = 22; public static final int APPLICATIONS_PROCESS_STATS_UI = 23; - public static final int APP_OPS_DETAILS = 14; - public static final int APP_OPS_SUMMARY = 15; public static final int BLUETOOTH = 24; public static final int BLUETOOTH_DEVICE_PICKER = 25; public static final int BLUETOOTH_DEVICE_PROFILES = 26; @@ -69,9 +64,7 @@ public interface MetricsConstants { public static final int DEVELOPMENT = 39; public static final int DEVICEINFO = 40; public static final int DEVICEINFO_IMEI_INFORMATION = 41; - @Deprecated public static final int DEVICEINFO_MEMORY = 42; - public static final int DEVICEINFO_STORAGE = 42; public static final int DEVICEINFO_SIM_STATUS = 43; public static final int DEVICEINFO_STATUS = 44; public static final int DEVICEINFO_USB = 45; @@ -86,21 +79,15 @@ public interface MetricsConstants { public static final int FUELGAUGE_POWER_USAGE_SUMMARY = 54; public static final int HOME = 55; public static final int ICC_LOCK = 56; - public static final int INPUTMETHOD_KEYBOARD = 58; public static final int INPUTMETHOD_LANGUAGE = 57; + public static final int INPUTMETHOD_KEYBOARD = 58; public static final int INPUTMETHOD_SPELL_CHECKERS = 59; public static final int INPUTMETHOD_SUBTYPE_ENABLER = 60; public static final int INPUTMETHOD_USER_DICTIONARY = 61; public static final int INPUTMETHOD_USER_DICTIONARY_ADD_WORD = 62; public static final int LOCATION = 63; public static final int LOCATION_MODE = 64; - public static final int LOCATION_SCANNING = 131; - public static final int MAIN_SETTINGS = 1; public static final int MANAGE_APPLICATIONS = 65; - public static final int MANAGE_APPLICATIONS_ALL = 132; - public static final int MANAGE_APPLICATIONS_NOTIFICATIONS = 133; - public static final int MANAGE_DOMAIN_URLS = 143; - public static final int MANAGE_PERMISSIONS = 140; public static final int MASTER_CLEAR = 66; public static final int MASTER_CLEAR_CONFIRM = 67; public static final int NET_DATA_USAGE_METERED = 68; @@ -108,37 +95,16 @@ public interface MetricsConstants { public static final int NFC_PAYMENT = 70; public static final int NOTIFICATION = 71; public static final int NOTIFICATION_APP_NOTIFICATION = 72; - public static final int NOTIFICATION_ITEM = 128; - public static final int NOTIFICATION_ITEM_ACTION = 129; public static final int NOTIFICATION_OTHER_SOUND = 73; - public static final int NOTIFICATION_PANEL = 127; public static final int NOTIFICATION_REDACTION = 74; public static final int NOTIFICATION_STATION = 75; public static final int NOTIFICATION_ZEN_MODE = 76; - public static final int NOTIFICATION_ZEN_MODE_AUTOMATION = 142; - public static final int NOTIFICATION_ZEN_MODE_PRIORITY = 141; public static final int OWNER_INFO = 77; public static final int PRINT_JOB_SETTINGS = 78; public static final int PRINT_SERVICE_SETTINGS = 79; public static final int PRINT_SETTINGS = 80; public static final int PRIVACY = 81; public static final int PROXY_SELECTOR = 82; - public static final int QS_AIRPLANEMODE = 112; - public static final int QS_BLUETOOTH = 113; - public static final int QS_CAST = 114; - public static final int QS_CELLULAR = 115; - public static final int QS_COLORINVERSION = 116; - public static final int QS_DATAUSAGEDETAIL = 117; - public static final int QS_DND = 118; - public static final int QS_FLASHLIGHT = 119; - public static final int QS_HOTSPOT = 120; - public static final int QS_INTENT = 121; - public static final int QS_LOCATION = 122; - public static final int QS_PANEL = 111; - public static final int QS_ROTATIONLOCK = 123; - public static final int QS_USERDETAIL = 125; - public static final int QS_USERDETAILITE = 124; - public static final int QS_WIFI = 126; public static final int RESET_NETWORK = 83; public static final int RESET_NETWORK_CONFIRM = 84; public static final int RUNNING_SERVICE_DETAILS = 85; @@ -147,25 +113,102 @@ public interface MetricsConstants { public static final int SIM = 88; public static final int TESTING = 89; public static final int TETHER = 90; - public static final int TRUSTED_CREDENTIALS = 92; public static final int TRUST_AGENT = 91; + public static final int TRUSTED_CREDENTIALS = 92; public static final int TTS_ENGINE_SETTINGS = 93; public static final int TTS_TEXT_TO_SPEECH = 94; public static final int USAGE_ACCESS = 95; public static final int USER = 96; public static final int USERS_APP_RESTRICTIONS = 97; public static final int USER_DETAILS = 98; - public static final int VIEW_UNKNOWN = 0; public static final int VOICE_INPUT = 99; public static final int VPN = 100; public static final int WALLPAPER_TYPE = 101; public static final int WFD_WIFI_DISPLAY = 102; public static final int WIFI = 103; public static final int WIFI_ADVANCED = 104; - public static final int WIFI_APITEST = 107; public static final int WIFI_CALLING = 105; + public static final int WIFI_SAVED_ACCESS_POINTS = 106; + public static final int WIFI_APITEST = 107; public static final int WIFI_INFO = 108; public static final int WIFI_P2P = 109; - public static final int WIFI_SAVED_ACCESS_POINTS = 106; public static final int WIRELESS = 110; + public static final int QS_PANEL = 111; + public static final int QS_AIRPLANEMODE = 112; + public static final int QS_BLUETOOTH = 113; + public static final int QS_CAST = 114; + public static final int QS_CELLULAR = 115; + public static final int QS_COLORINVERSION = 116; + public static final int QS_DATAUSAGEDETAIL = 117; + public static final int QS_DND = 118; + public static final int QS_FLASHLIGHT = 119; + public static final int QS_HOTSPOT = 120; + public static final int QS_INTENT = 121; + public static final int QS_LOCATION = 122; + public static final int QS_ROTATIONLOCK = 123; + public static final int QS_USERDETAILITE = 124; + public static final int QS_USERDETAIL = 125; + public static final int QS_WIFI = 126; + public static final int NOTIFICATION_PANEL = 127; + public static final int NOTIFICATION_ITEM = 128; + public static final int NOTIFICATION_ITEM_ACTION = 129; + public static final int APPLICATIONS_ADVANCED = 130; + public static final int LOCATION_SCANNING = 131; + public static final int MANAGE_APPLICATIONS_ALL = 132; + public static final int MANAGE_APPLICATIONS_NOTIFICATIONS = 133; + public static final int ACTION_WIFI_ADD_NETWORK = 134; + public static final int ACTION_WIFI_CONNECT = 135; + public static final int ACTION_WIFI_FORCE_SCAN = 136; + public static final int ACTION_WIFI_FORGET = 137; + public static final int ACTION_WIFI_OFF = 138; + public static final int ACTION_WIFI_ON = 139; + public static final int MANAGE_PERMISSIONS = 140; + public static final int NOTIFICATION_ZEN_MODE_PRIORITY = 141; + public static final int NOTIFICATION_ZEN_MODE_AUTOMATION = 142; + public static final int MANAGE_DOMAIN_URLS = 143; + public static final int NOTIFICATION_ZEN_MODE_SCHEDULE_RULE = 144; + public static final int NOTIFICATION_ZEN_MODE_EXTERNAL_RULE = 145; + public static final int NOTIFICATION_ZEN_MODE_EVENT_RULE = 146; + public static final int ACTION_BAN_APP_NOTES = 147; + public static final int ACTION_DISMISS_ALL_NOTES = 148; + public static final int QS_DND_DETAILS = 149; + public static final int QS_BLUETOOTH_DETAILS = 150; + public static final int QS_CAST_DETAILS = 151; + public static final int QS_WIFI_DETAILS = 152; + public static final int QS_WIFI_TOGGLE = 153; + public static final int QS_BLUETOOTH_TOGGLE = 154; + public static final int QS_CELLULAR_TOGGLE = 155; + public static final int QS_SWITCH_USER = 156; + public static final int QS_CAST_SELECT = 157; + public static final int QS_CAST_DISCONNECT = 158; + public static final int ACTION_BLUETOOTH_TOGGLE = 159; + public static final int ACTION_BLUETOOTH_SCAN = 160; + public static final int ACTION_BLUETOOTH_RENAME = 161; + public static final int ACTION_BLUETOOTH_FILES = 162; + public static final int QS_DND_TIME = 163; + public static final int QS_DND_CONDITION_SELECT = 164; + public static final int QS_DND_ZEN_SELECT = 165; + public static final int QS_DND_TOGGLE = 166; + public static final int ACTION_ZEN_ALLOW_REMINDERS = 167; + public static final int ACTION_ZEN_ALLOW_EVENTS = 168; + public static final int ACTION_ZEN_ALLOW_MESSAGES = 169; + public static final int ACTION_ZEN_ALLOW_CALLS = 170; + public static final int ACTION_ZEN_ALLOW_REPEAT_CALLS = 171; + public static final int ACTION_ZEN_ADD_RULE = 172; + public static final int ACTION_ZEN_ADD_RULE_OK = 173; + public static final int ACTION_ZEN_DELETE_RULE = 174; + public static final int ACTION_ZEN_DELETE_RULE_OK = 175; + public static final int ACTION_ZEN_ENABLE_RULE = 176; + public static final int ACTION_AIRPLANE_TOGGLE = 177; + public static final int ACTION_CELL_DATA_TOGGLE = 178; + public static final int NOTIFICATION_ACCESS = 179; + public static final int NOTIFICATION_ZEN_MODE_ACCESS = 180; + public static final int APPLICATIONS_DEFAULT_APPS = 181; + public static final int APPLICATIONS_STORAGE_APPS = 182; + public static final int APPLICATIONS_USAGE_ACCESS_DETAIL = 183; + public static final int APPLICATIONS_HIGH_POWER_APPS = 184; + public static final int FUELGAUGE_HIGH_POWER_DETAILS = 185; + + //aliases + public static final int DEVICEINFO_STORAGE = DEVICEINFO_MEMORY; } diff --git a/core/java/com/android/internal/logging/MetricsLogger.java b/core/java/com/android/internal/logging/MetricsLogger.java index cf25cef..230d96d 100644 --- a/core/java/com/android/internal/logging/MetricsLogger.java +++ b/core/java/com/android/internal/logging/MetricsLogger.java @@ -26,45 +26,7 @@ import android.view.View; * @hide */ public class MetricsLogger implements MetricsConstants { - // These constants are temporary, they should migrate to MetricsConstants. - - public static final int NOTIFICATION_ZEN_MODE_SCHEDULE_RULE = 144; - public static final int NOTIFICATION_ZEN_MODE_EXTERNAL_RULE = 145; - public static final int ACTION_BAN_APP_NOTES = 146; - public static final int NOTIFICATION_ZEN_MODE_EVENT_RULE = 147; - public static final int ACTION_DISMISS_ALL_NOTES = 148; - public static final int QS_DND_DETAILS = 149; - public static final int QS_BLUETOOTH_DETAILS = 150; - public static final int QS_CAST_DETAILS = 151; - public static final int QS_WIFI_DETAILS = 152; - public static final int QS_WIFI_TOGGLE = 153; - public static final int QS_BLUETOOTH_TOGGLE = 154; - public static final int QS_CELLULAR_TOGGLE = 155; - public static final int QS_SWITCH_USER = 156; - public static final int QS_CAST_SELECT = 157; - public static final int QS_CAST_DISCONNECT = 158; - public static final int ACTION_BLUETOOTH_TOGGLE = 159; - public static final int ACTION_BLUETOOTH_SCAN = 160; - public static final int ACTION_BLUETOOTH_RENAME = 161; - public static final int ACTION_BLUETOOTH_FILES = 162; - public static final int QS_DND_TIME = 163; - public static final int QS_DND_CONDITION_SELECT = 164; - public static final int QS_DND_ZEN_SELECT = 165; - public static final int QS_DND_TOGGLE = 166; - public static final int ACTION_ZEN_ALLOW_REMINDERS = 167; - public static final int ACTION_ZEN_ALLOW_EVENTS = 168; - public static final int ACTION_ZEN_ALLOW_MESSAGES = 169; - public static final int ACTION_ZEN_ALLOW_CALLS = 170; - public static final int ACTION_ZEN_ALLOW_REPEAT_CALLS = 171; - public static final int ACTION_ZEN_ADD_RULE = 172; - public static final int ACTION_ZEN_ADD_RULE_OK = 173; - public static final int ACTION_ZEN_DELETE_RULE = 174; - public static final int ACTION_ZEN_DELETE_RULE_OK = 175; - public static final int ACTION_ZEN_ENABLE_RULE = 176; - public static final int ACTION_AIRPLANE_TOGGLE = 177; - public static final int ACTION_CELL_DATA_TOGGLE = 178; - public static final int NOTIFICATION_ACCESS = 179; - public static final int NOTIFICATION_ZEN_MODE_ACCESS = 180; + // Temporary constants go here, to await migration to MetricsConstants. public static void visible(Context context, int category) throws IllegalArgumentException { if (Build.IS_DEBUGGABLE && category == VIEW_UNKNOWN) { |