metrics_registry/
metrics_registry.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// This file was generated by Cobalt's Registry parser based on the registry YAML
// in the cobalt_config repository. Edit the YAML there to make changes.
pub const CUSTOMER_NAME: &str = "fuchsia";
pub const CUSTOMER_ID: u32 = 1;
pub const PROJECT_NAME: &str = "input_pipeline";
pub const PROJECT_ID: u32 = 19;

// Metric ID Constants
// input_pipeline_error
pub const INPUT_PIPELINE_ERROR_METRIC_ID: u32 = 1;

// Enum for input_pipeline (Metric Dimension event)
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum InputPipelineMetricDimensionEvent {
  Unset = 0,
  AutorepeatCouldNotFireTimer = 1,
  AutorepeatCouldNotRunAutorepeat = 2,
  ConsumerControlsSendEventFailed = 3,
  FactoryResetFailedToReset = 4,
  FactoryResetNotAllowedReset = 5,
  FactoryResetFailedToSendCountdown = 6,
  FocusChainListenerRequestError = 7,
  ImeFailedToDispatchKeyToIme = 8,
  InputDeviceCreateInputReportProxyFailed = 9,
  InputDeviceGetInputReportsReaderError = 10,
  InputPipelineCouldNotForwardEvent = 11,
  InputPipelineDisplayOwnershipIsNotSupposedToTerminate = 12,
  InputPipelineAutorepeatRunningError = 13,
  InputPipelineUnableToWatchForNewInputDevices = 14,
  InputPipelineCouldNotForwardEventFromDriver = 15,
  InputPipelineStopHandlingEvents = 16,
  InputPipelineNoDeviceDescriptor = 17,
  InputPipelineFailedToBind = 18,
  KeyboardEmptyDeviceInfo = 19,
  KeyboardFailedToParse = 20,
  KeyboardFailedToSendKeyboardEvent = 21,
  MediaButtonErrorWhilePushingTask = 22,
  MouseDescriptionNotMouse = 23,
  MouseFailedToSendEvent = 24,
  MouseInjectorUpdateCursorRendererFailed = 25,
  MouseInjectorEnsureInjectorRegisteredFailed = 26,
  MouseInjectorSendEventToScenicFailed = 27,
  MouseInjectorMissingIsPrecisionScroll = 28,
  MouseInjectorErrorWhileReadingViewportUpdate = 29,
  MouseInjectorViewportUpdateStreamTerminatedUnexpectedly = 30,
  PointerDisplayScaleNoPhysicalPixel = 31,
  PointerSensorScaleHandlerScaledMotionInvalid = 32,
  PointerSensorScaleHandlerScaledScrollInvalid = 33,
  TextSettingsHandlerExit = 34,
  TextSettingsHandlerCantRun = 35,
  TouchFailedToSendTouchScreenEvent = 36,
  TouchFailedToSendTouchpadEvent = 37,
  TouchInjectorEnsureInjectorRegisteredFailed = 38,
  TouchInjectorSendEventToScenicFailed = 39,
  TouchInjectorErrorWhileReadingViewportUpdate = 40,
  TouchInjectorViewportUpdateStreamTerminatedUnexpectedly = 41,
  LightEmptyDeviceInfo = 42,
  LightFailedToSendEvent = 43,
}

impl cobalt_client::traits::AsEventCode for InputPipelineMetricDimensionEvent {
  fn as_event_code(&self) -> u32 {
    *self as u32
  }
}
// Alias for input_pipeline_error (Metric Dimension event) which has the same event codes
pub use InputPipelineMetricDimensionEvent as InputPipelineErrorMetricDimensionEvent;