summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhummer <hummer@google.com>2024-04-30 10:46:16 -0700
committerYuki Hamada <hummer@google.com>2024-04-30 19:16:44 +0000
commitcdf639e484a4556c95ede126eb05d91d7b879ff7 (patch)
treebdf73a94e636aeaa0cd67a8114cc65b12b61c416
parent5a2c09f7ed60730d89701a9bd2b493870b73d99f (diff)
downloadanalytics-library-mirror-goog-studio-main.tar.gz
Update studio_stats.protomirror-goog-studio-main
Logs-Approval: cl/629187871 Bug: n/a Test: existing Change-Id: I2b2a652064f0e0a0e2e00ebf06c20fadb84c7b6d
-rw-r--r--protos/src/main/proto/studio_stats.proto44
1 files changed, 44 insertions, 0 deletions
diff --git a/protos/src/main/proto/studio_stats.proto b/protos/src/main/proto/studio_stats.proto
index 2e0b566..fb7fa8b 100644
--- a/protos/src/main/proto/studio_stats.proto
+++ b/protos/src/main/proto/studio_stats.proto
@@ -657,6 +657,10 @@ message AndroidStudioEvent {
// set when kind = ADB_DEVICE_CONNECTED
optional DeviceConnectedNotificationEvent device_connected = 191;
+ // set when kind = SCREENSHOT_TEST_COMPOSE_PREVIEW
+ optional ScreenshotTestComposePreviewEvent
+ screenshot_test_compose_preview_event = 192;
+
enum EventCategory {
// The event was not grouped into any specific category (default).
NO_EVENT_CATEGORY = 0;
@@ -1487,6 +1491,9 @@ message AndroidStudioEvent {
// Event fired every time Studio detects a new device (via adb)
ADB_DEVICE_CONNECTED = 308;
+
+ // Event related to screenshot test with Compose Preview.
+ SCREENSHOT_TEST_COMPOSE_PREVIEW = 309;
}
// Represents different Performance Monitoring types.
@@ -15035,3 +15042,40 @@ message RenderSecurityManagerEvent {
optional Type type = 1;
optional string resource = 2;
}
+
+message ScreenshotTestComposePreviewEvent {
+ enum Type {
+ TYPE_UNKNOWN = 0;
+ PREVIEW_DISCOVERY = 1;
+ PREVIEW_RENDERING = 2;
+ }
+
+ optional Type type = 1;
+
+ message PreviewDiscovery {
+ // Number of processed java classes by preview annotation detector.
+ optional uint32 num_processed_classes = 1;
+ // Duration of the building multipreview in milliseconds.
+ optional uint64 duration_building_multipreview_ms = 2;
+ }
+
+ // This message is populated when the type is PREVIEW_DISCOVERY.
+ optional PreviewDiscovery preview_discovery = 2;
+
+ message PreviewRendering {
+ // Number of rendered images. This number includes failed rendering attempts
+ // that yields a blank image.
+ optional uint32 num_rendered_images = 1;
+ // Duration of the rendering previews in milliseconds.
+ optional uint64 duration_rendering_previews_ms = 2;
+ // Number of rendering attempts that succeeded.
+ optional uint32 num_rendering_succeeded = 3;
+ // Number of rendering attempts that failed.
+ optional uint32 num_rendering_errors = 4;
+ // Number of rendering attempts that succeeded with warning.
+ optional uint32 num_rendering_warnings = 5;
+ }
+
+ // This message is populated when the type is PREVIEW_RENDERING.
+ optional PreviewRendering preview_rendering = 3;
+}