diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-27 18:43:43 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-27 18:43:43 +0000 |
commit | 22071aecb04c373a9748c7184e6fa32bef36616f (patch) | |
tree | 0d999f757d730226f5e169d75a6d4b4e1b08efe7 | |
parent | d1d5c873114b9e634f3026201972122dc2ccb082 (diff) | |
parent | 1073986e00a51aaaa5377fb532fb40a9abbb61d3 (diff) | |
download | analytics-library-22071aecb04c373a9748c7184e6fa32bef36616f.tar.gz |
Snap for 10569231 from 1073986e00a51aaaa5377fb532fb40a9abbb61d3 to studio-hedgehog-release
Change-Id: Id321506c7b6c9a5f6e13c7eb88fa54fc3bf2f124
-rw-r--r-- | protos/src/main/proto/studio_stats.proto | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/protos/src/main/proto/studio_stats.proto b/protos/src/main/proto/studio_stats.proto index 55235ca..1333473 100644 --- a/protos/src/main/proto/studio_stats.proto +++ b/protos/src/main/proto/studio_stats.proto @@ -621,6 +621,9 @@ message AndroidStudioEvent { // set when kind = ESSENTIALS_MODE_EVENT optional EssentialsModeEvent essentials_mode_event = 179; + // set when kind = LINT_TOOLTIP_LINK_EVENT + optional LintTooltipLinkEvent lint_tooltip_link_event = 180; + enum EventCategory { // The event was not grouped into any specific category (default). NO_EVENT_CATEGORY = 0; @@ -1412,6 +1415,9 @@ message AndroidStudioEvent { // Event related to essentials mode state changes ESSENTIALS_MODE_EVENT = 295; + + // Event for links clicked in Lint tooltips. + LINT_TOOLTIP_LINK_EVENT = 296; } // Represents different Performance Monitoring types. @@ -1728,6 +1734,7 @@ message AndroidStudioEvent { GRADLE2_REQUIRED = 22; CORRUPT_GRADLE_DEPENDENCY = 23; INTERNET_CONNECTION_ERROR = 24; + // Failure when Studio does not support too old AGP. OLD_ANDROID_PLUGIN = 25; MISSING_CMAKE = 26; NDK_NOT_CONFIGURED = 27; @@ -1739,6 +1746,14 @@ message AndroidStudioEvent { GRADLE_DISTRIBUTION_INSTALL_ERROR = 33; DISTRIBUTIONSHA256SUM_FOUND_IN_WRAPPER = 34; GRADLE_JVM_NOT_COMPATIBLE_WITH_AGP = 35; + // Failure because older Studio does not support newer AGP. + ANDROID_PLUGIN_TOO_NEW = 36; + // Failure because Studio and AGP preview versions differ. + ANDROID_PLUGIN_VERSION_INCOMPATIBLE = 37; + // Failure because of multiple AGP versions detected in projects. + MULTIPLE_ANDROID_PLUGIN_VERSIONS = 38; + ANDROID_SYNC_NO_VALID_NATIVE_ABI_FOUND = 39; + ANDROID_SYNC_NO_VARIANTS_FOUND = 40; } // IDE brand containing the android plugin @@ -2380,6 +2395,45 @@ message EmulatorAvdInfo { CHROMEOS = 10; // Next tag: 11 } + enum EmulatorDeviceName { + UNKNOWN_EMULATOR_DEVICE_NAME = 0; + RESIZABLE = 1; + FOLDABLE_7_6_IN = 2; + SMALL_PHONE = 3; + MEDIUM_PHONE = 4; + MEDIUM_TABLET = 5; + PIXEL_C = 6; + PIXEL = 7; + PIXEL_XL = 8; + PIXEL_2 = 9; + PIXEL_2_XL = 10; + PIXEL_3 = 11; + PIXEL_3_XL = 12; + PIXEL_3A = 13; + PIXEL_3A_XL = 14; + PIXEL_4 = 15; + PIXEL_4_XL = 16; + PIXEL_4A = 17; + PIXEL_5 = 18; + PIXEL_6 = 19; + PIXEL_6_PRO = 20; + PIXEL_6A = 21; + PIXEL_7_PRO = 22; + PIXEL_7 = 23; + PIXEL_FOLD = 24; + PIXEL_TABLET = 25; + AUTOMOTIVE_1024P_LANDSCAPE = 26; + DESKTOP_SMALL = 27; + DESKTOP_MEDIUM = 28; + DESKTOP_LARGE = 29; + TV_4K = 30; + TV_1080P = 31; + TV_720P = 32; + WEAROS_LARGE_ROUND = 33; + WEAROS_SMALL_ROUND = 34; + WEAROS_RECT = 35; + WEAROS_SQUARE = 36; + } // Name of the AVD. Deprecated as it could potentially contain PII. optional string name = 1 [deprecated = true]; // Api level (23 = M, 24 = N, ...) @@ -2401,6 +2455,8 @@ message EmulatorAvdInfo { // Collection of other AVD properties, mostly relating to flavor // (TV vs phone vs Auto, etc) repeated EmulatorAvdProperty properties = 9; + // Device name of the AVD (for example, PIXEL_2) + optional EmulatorDeviceName device_name = 10; } // State of emulator feature flags, including @@ -13346,6 +13402,9 @@ message BuildOutputDownloadsInfoEvent { message SmlResponseMetadata { // Trace id (provided by the server) for this response optional int64 rpc_global_id = 1; + + // AIDA server-side experiment ids. + repeated int32 server_experiment_ids = 2; } message SmlCompletionEvent { @@ -13453,6 +13512,14 @@ message SmlChatBotEvent { message BotResponse { optional SmlResponseMetadata metadata = 1; optional uint64 latency_ms = 2; + + // Currently, fact retrieval is a different API from the chat API. But + // retrieval's only use is for the chat API, so here we model it as part + // of the chat event since we'll very likely want to associate it with + // the corresponding chat event. (Note that retrieval by itself doesn't + // have a trace id, so including it here allows us to associate it with the + // chat event). + optional uint64 retrieval_latency_ms = 3; } message UserFeedback { @@ -13660,3 +13727,22 @@ message EssentialsModeEvent { // when the mode was just enabled or not optional bool enabled = 1; } + +// Logged when a user clicks a link in a Lint warning/error tooltip in the +// code editor. We only do this for Lint issues where the issue vendor is +// Google or AOSP. +message LintTooltipLinkEvent { + // The issue id is a unique identifier for each type of coding issue found by + // Lint. We only log a LintTooltipLinkEvent for issues where the vendor is + // Google or AOSP. Examples of issue ids are "HardcodedText" and "NewApi". + optional string issue_id = 1; + + // The URL of the link that was clicked, which will usually be to some + // developer documentation or article. The URL is from the issue description. + // The issue description was written by us (Google) as part of the lint check. + // Examples of some of the URLs we link to: + // https://developer.android.com/guide/topics/resources/localization.html + // https://goo.gle/GetInstance + // https://krebsonsecurity.com/2021/11/trojan-source-bug-threatens-the-security-of-all-code/ + optional string url = 2; +} |