Merge "Add RESERVE_NEW_UI_EVENT_ID field to EventEnum interface."
This commit is contained in:
committed by
Android (Google) Code Review
commit
ddfb9581e4
@@ -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.
|
||||
*
|
||||
* <p>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.
|
||||
*
|
||||
* <pre>
|
||||
* @UiEvent(doc = "Briefly describe the interaction when this event will be logged")
|
||||
* UNIQUE_EVENT_NAME(RESERVE_NEW_UI_EVENT_ID);
|
||||
* </pre>
|
||||
*/
|
||||
int RESERVE_NEW_UI_EVENT_ID = Integer.MIN_VALUE; // Negative IDs are ignored by the logger.
|
||||
|
||||
int getId();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user