From a968ac3b6cdf86a4ec956a8090c2f89b9c76df83 Mon Sep 17 00:00:00 2001 From: "Wesley.CW Wang" Date: Mon, 28 Sep 2020 16:03:22 +0800 Subject: [PATCH] Add metrics for WallpaperPicker launch source Bug: 154781896 Test: make statsd_testdrive; statsd_testdrive 179 Change-Id: I37aec888cc3208ec6d6e518d4a82682682213335 --- cmds/statsd/src/atoms.proto | 1 + core/proto/android/stats/style/style_enums.proto | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/cmds/statsd/src/atoms.proto b/cmds/statsd/src/atoms.proto index 3d67e6574652d..c9356c55e6a10 100644 --- a/cmds/statsd/src/atoms.proto +++ b/cmds/statsd/src/atoms.proto @@ -3361,6 +3361,7 @@ message StyleUIChanged { optional int32 color_preference = 9; optional android.stats.style.LocationPreference location_preference = 10; optional android.stats.style.DatePreference date_preference = 11; + optional android.stats.style.LaunchedPreference launched_preference = 12; } /** diff --git a/core/proto/android/stats/style/style_enums.proto b/core/proto/android/stats/style/style_enums.proto index 828e4127a708d..2876882e78ba9 100644 --- a/core/proto/android/stats/style/style_enums.proto +++ b/core/proto/android/stats/style/style_enums.proto @@ -41,6 +41,7 @@ enum Action { LIVE_WALLPAPER_QUESTIONNAIRE_SELECT = 19; LIVE_WALLPAPER_QUESTIONNAIRE_APPLIED = 20; LIVE_WALLPAPER_EFFECT_SHOW = 21; + APP_LAUNCHED = 22; } enum LocationPreference { @@ -55,3 +56,14 @@ enum DatePreference { DATE_UNAVAILABLE = 1; DATE_MANUAL = 2; } + +enum LaunchedPreference { + LAUNCHED_PREFERENCE_UNSPECIFIED = 0; + LAUNCHED_LAUNCHER = 1; + LAUNCHED_SETTINGS = 2; + LAUNCHED_SUW = 3; + LAUNCHED_TIPS = 4; + LAUNCHED_LAUNCH_ICON = 5; + LAUNCHED_CROP_AND_SET_ACTION = 6; + LAUNCHED_DEEP_LINK = 7; +}