diff --git a/core/java/com/android/internal/logging/UiEventLogger.java b/core/java/com/android/internal/logging/UiEventLogger.java index 5212265f6c8a3..2f4a14fad2ee5 100644 --- a/core/java/com/android/internal/logging/UiEventLogger.java +++ b/core/java/com/android/internal/logging/UiEventLogger.java @@ -32,6 +32,22 @@ public interface UiEventLogger { * OEMs should use event IDs above 100000 and below 1000000 (1 million). */ interface UiEventEnum { + + /** + * Tag used to request new UI Event IDs via presubmit analysis. + * + *
Use RESERVE_NEW_UI_EVENT_ID as the constructor parameter for a new {@link EventEnum} + * to signal the presubmit analyzer to reserve a new ID for the event. The new ID will be + * returned as a Gerrit presubmit finding. Do not submit {@code RESERVE_NEW_UI_EVENT_ID} as + * the constructor parameter for any event. + * + *
+ * @UiEvent(doc = "Briefly describe the interaction when this event will be logged") + * UNIQUE_EVENT_NAME(RESERVE_NEW_UI_EVENT_ID); + *+ */ + int RESERVE_NEW_UI_EVENT_ID = Integer.MIN_VALUE; // Negative IDs are ignored by the logger. + int getId(); }