From 4d675b22521cbcf6882e1f4983cb1e2f9eed717e Mon Sep 17 00:00:00 2001 From: Jenna Himawan Date: Fri, 2 Jun 2023 06:47:27 -0700 Subject: Update studio_stats.proto Logs-Approval: cl/537149902 Bug: 285139320 Test: existing Change-Id: I11532f05087e3e20c1d853985c78456a487f9680 --- protos/src/main/proto/studio_stats.proto | 82 +++++++++++++++++++++++++++++++- 1 file changed, 80 insertions(+), 2 deletions(-) (limited to 'protos/src') diff --git a/protos/src/main/proto/studio_stats.proto b/protos/src/main/proto/studio_stats.proto index bd355b7..2759e55 100644 --- a/protos/src/main/proto/studio_stats.proto +++ b/protos/src/main/proto/studio_stats.proto @@ -600,6 +600,9 @@ message AndroidStudioEvent { // set when kind = DEVICE_SCREENSHOT_EVENT optional DeviceScreenshotEvent device_screenshot_event = 172; + // set when kind = EDITOR_NOTIFICATION + optional EditorNotification editor_notification = 173; + enum EventCategory { // The event was not grouped into any specific category (default). NO_EVENT_CATEGORY = 0; @@ -1370,6 +1373,9 @@ message AndroidStudioEvent { // Event related to screenshots taken of running devices DEVICE_SCREENSHOT_EVENT = 288; + + // Event related to a notification being displayed to the user + EDITOR_NOTIFICATION = 289; } // Represents different Performance Monitoring types. @@ -1964,8 +1970,6 @@ message AndroidStudioEvent { CONFIRM_DISTRIBUTIONSHA256SUM_FROM_WRAPPER_HYPERLINK = 47; ENABLE_ANDROIDX_HYPERLINK = 48; REMOVE_JCENTER_HYPERLINK = 49; - OPEN_UPGRADE_ASSISTANT_HYPERLINK = 50; - SUPPRESS_UNSUPPORTED_SDK_HYPERLINK = 51; } } @@ -6274,8 +6278,13 @@ message AppLinksAssistantEvent { // and for PWG approved scenarios. optional string raw_project_id = 10; + optional ValidationSummary validation_summary = 11; + + optional IntentFilterFix intent_filter_fix = 12; + // UI event source. enum EventSource { + // Will be deprecated and replaced by NEW_LINK_CREATION_SIDE_PANEL. ASSISTANT_SIDE_PANEL = 1; // UI elements of URL mapping panel. @@ -6306,6 +6315,33 @@ message AppLinksAssistantEvent { APP_LINKS_TEST_PANEL = 17; APP_LINKS_TEST_PANEL_MODULE_SELECTION = 18; APP_LINKS_TEST_PANEL_RUN_TEST_BUTTON = 19; + + // The new link creation panel. + NEW_LINK_CREATION_SIDE_PANEL = 20; + + // The main page of the new App Links Assistant. + OVERVIEW_TABLE = 22; + OVERVIEW_TABLE_FIX_ALL_APP_CHECKS_BUTTON = 23; + OVERVIEW_TABLE_FIX_ALL_WEB_CHECKS_BUTTON = 24; + OVERVIEW_TABLE_SEARCH_BOX = 25; + OVERVIEW_TABLE_FILTERS = 26; + + // App link details page of new App Links Assistant. + DETAILS = 27; + DETAILS_FIX_ONE_LINK_APP_CHECKS_BUTTON = 28; + DETAILS_FIX_ONE_LINK_WEB_CHECKS_BUTTON = 29; + DETAILS_RUN_CHECKS_BUTTON = 30; + + // Manual fix guidance page of new App Links Assistant. + MANUAL_FIX = 31; + MANUAL_FIX_ROW = 32; + + // Fix web checks page of new App Links Assistant. + FIX_WEB_CHECKS_CREATE_JSON_BUTTON = 33; + FIX_WEB_CHECKS_SAVE_JSON_BUTTON = 34; + + // Event sources that are not tied to any particular UI. + VALIDATION = 35; } // The state list of UI event source. @@ -6333,6 +6369,38 @@ message AppLinksAssistantEvent { // Android Manifest File PATH_PATTERN = 3; } + + // Message to be sent when validation is run. + message ValidationSummary { + // Stats of custom scheme links + optional int64 total_cs_links = 1; + optional int64 total_valid_cs_links = 2; + // cs_links_app_check_failed = total_cs_links - total_valid_cs_links + + // Stats of app links + optional int64 total_app_links = 3; + optional int64 total_valid_app_links = 4; + // Number of links with app checks issues + optional int64 app_links_app_check_failed = 5; + // Number of links with web checks issues + optional int64 app_links_web_check_failed = 6; + // Number of links with Google Ads policy notifications + optional int64 app_links_google_ads_policy_failed = 7; + + // Stats of domains + optional int64 total_domains = 8; + // Number of domains with issues + optional int64 domains_web_check_failed = 9; + } + + message IntentFilterFix { + // Total number of links that we are trying to fix in this operation + optional int64 total_links = 1; + // Initial number of invalid links + optional int64 num_broken_links_before = 2; + // Number of invalid links after fixing (i.e. links that need manual fixes) + optional int64 num_broken_links_after = 3; + } } // ADB Assistant event details @@ -13333,3 +13401,13 @@ message DeviceScreenshotEvent { FRAMED = 4; } } + +message EditorNotification { + // The type of notification being displayed to the user + optional NotificationType notification_type = 1; + + enum NotificationType { + UNKNOWN = 0; + ESSENTIALS_MODE = 1; + } +} -- cgit v1.2.3