summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Thomson <paulthomson@google.com>2023-07-24 13:37:05 +0100
committerPaul Thomson <paulthomson@google.com>2023-07-24 13:37:05 +0100
commitb16ba704cdebf87a1ab4a6aeeee1abe0e7c17189 (patch)
tree5e8f91683ffedfb49881d072800f1d4464198bf5
parent3765b4648092c4e448c19aa23832b879e3d2ac9c (diff)
downloadanalytics-library-b16ba704cdebf87a1ab4a6aeeee1abe0e7c17189.tar.gz
Update studio_stats.proto
Logs-Approval: cl/550041119 Bug: 292074974 Logs-Approval: cl/549452285 Bug: 290647837 Test: existing Change-Id: Icb7b2b5189ece202011ddd1185c313ca50f7c601
-rw-r--r--protos/src/main/proto/studio_stats.proto66
1 files changed, 66 insertions, 0 deletions
diff --git a/protos/src/main/proto/studio_stats.proto b/protos/src/main/proto/studio_stats.proto
index 55235ca..73a5cd8 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.
@@ -2380,6 +2386,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 +2446,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
@@ -13660,3 +13707,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;
+}