perfetto_protos/
perfetto.protos.rs

1#[derive(Clone, PartialEq, ::prost::Message)]
2pub struct ObservableEvents {
3    #[prost(message, repeated, tag="1")]
4    pub instance_state_changes: ::prost::alloc::vec::Vec<observable_events::DataSourceInstanceStateChange>,
5    #[prost(bool, optional, tag="2")]
6    pub all_data_sources_started: ::core::option::Option<bool>,
7    #[prost(message, optional, tag="3")]
8    pub clone_trigger_hit: ::core::option::Option<observable_events::CloneTriggerHit>,
9}
10/// Nested message and enum types in `ObservableEvents`.
11pub mod observable_events {
12    #[derive(Clone, PartialEq, ::prost::Message)]
13    pub struct DataSourceInstanceStateChange {
14        #[prost(string, optional, tag="1")]
15        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
16        #[prost(string, optional, tag="2")]
17        pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
18        #[prost(enumeration="DataSourceInstanceState", optional, tag="3")]
19        pub state: ::core::option::Option<i32>,
20    }
21    #[derive(Clone, PartialEq, ::prost::Message)]
22    pub struct CloneTriggerHit {
23        /// The TracingSessionID of the original tracing session which had a
24        /// CLONE_SNAPSHOT trigger defined. This is necessary just because the
25        /// consumer has no idea of what is the TSID of its own tracing session and
26        /// there is no other good way to plumb it.
27        #[prost(int64, optional, tag="1")]
28        pub tracing_session_id: ::core::option::Option<i64>,
29        /// The name of the CLONE_SNAPSHOT trigger which was hit.
30        #[prost(string, optional, tag="2")]
31        pub trigger_name: ::core::option::Option<::prost::alloc::string::String>,
32        /// The name of the producer that sent the CLONE_SNAPSHOT trigger.
33        #[prost(string, optional, tag="3")]
34        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
35        /// The uid of the producer that sent the CLONE_SNAPSHOT trigger.
36        #[prost(uint32, optional, tag="4")]
37        pub producer_uid: ::core::option::Option<u32>,
38        /// The timestamp of the CLONE_SNAPSHOT trigger which was hit.
39        #[prost(uint64, optional, tag="5")]
40        pub boot_time_ns: ::core::option::Option<u64>,
41        /// The configured delay of the CLONE_SNAPSHOT trigger which was hit. For
42        /// informational purposes only.
43        #[prost(uint64, optional, tag="6")]
44        pub trigger_delay_ms: ::core::option::Option<u64>,
45    }
46    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
47    #[repr(i32)]
48    pub enum Type {
49        Unspecified = 0,
50        /// State changes of data source instances associated with the consumer's
51        /// session. Note that not all data sources may support these notifications.
52        /// See |will_notify_on_start/stop| in DataSourceDescriptor.
53        DataSourcesInstances = 1,
54        /// State change triggered when all data sources are in the STARTED state.
55        /// For data sources that registered with |will_notify_on_start| this happens
56        /// only after the data source has acked the start. This allows the consumer
57        /// to synchronize with the data sources and to perform actions (e.g. start a
58        /// test binary) only after trace recording is actually started.
59        /// Introduced in Android 11 (R).
60        AllDataSourcesStarted = 2,
61        /// When a tracing session has one or more triggers of type CLONE_SNAPSHOT
62        /// and a matching trigger is hit, the service will send this notification to
63        /// the consumer after |stop_delay_ms|.
64        CloneTriggerHit = 4,
65    }
66    impl Type {
67        /// String value of the enum field names used in the ProtoBuf definition.
68        ///
69        /// The values are not transformed in any way and thus are considered stable
70        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
71        pub fn as_str_name(&self) -> &'static str {
72            match self {
73                Type::Unspecified => "TYPE_UNSPECIFIED",
74                Type::DataSourcesInstances => "TYPE_DATA_SOURCES_INSTANCES",
75                Type::AllDataSourcesStarted => "TYPE_ALL_DATA_SOURCES_STARTED",
76                Type::CloneTriggerHit => "TYPE_CLONE_TRIGGER_HIT",
77            }
78        }
79    }
80    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
81    #[repr(i32)]
82    pub enum DataSourceInstanceState {
83        /// A data source is created in stopped state.
84        Stopped = 1,
85        Started = 2,
86    }
87    impl DataSourceInstanceState {
88        /// String value of the enum field names used in the ProtoBuf definition.
89        ///
90        /// The values are not transformed in any way and thus are considered stable
91        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
92        pub fn as_str_name(&self) -> &'static str {
93            match self {
94                DataSourceInstanceState::Stopped => "DATA_SOURCE_INSTANCE_STATE_STOPPED",
95                DataSourceInstanceState::Started => "DATA_SOURCE_INSTANCE_STATE_STARTED",
96            }
97        }
98    }
99}
100#[derive(Clone, PartialEq, ::prost::Message)]
101pub struct FtraceDescriptor {
102    /// Report the available atrace categories.
103    ///
104    /// Used by Traceur via `perfetto --query`.
105    #[prost(message, repeated, tag="1")]
106    pub atrace_categories: ::prost::alloc::vec::Vec<ftrace_descriptor::AtraceCategory>,
107}
108/// Nested message and enum types in `FtraceDescriptor`.
109pub mod ftrace_descriptor {
110    #[derive(Clone, PartialEq, ::prost::Message)]
111    pub struct AtraceCategory {
112        #[prost(string, optional, tag="1")]
113        pub name: ::core::option::Option<::prost::alloc::string::String>,
114        #[prost(string, optional, tag="2")]
115        pub description: ::core::option::Option<::prost::alloc::string::String>,
116    }
117}
118/// Description of GPU counters.
119/// This message is sent by a GPU counter producer to specify the counters
120/// available in the hardware.
121#[derive(Clone, PartialEq, ::prost::Message)]
122pub struct GpuCounterDescriptor {
123    #[prost(message, repeated, tag="1")]
124    pub specs: ::prost::alloc::vec::Vec<gpu_counter_descriptor::GpuCounterSpec>,
125    #[prost(message, repeated, tag="2")]
126    pub blocks: ::prost::alloc::vec::Vec<gpu_counter_descriptor::GpuCounterBlock>,
127    /// optional.  Minimum sampling period supported by the producer in
128    /// nanoseconds.
129    #[prost(uint64, optional, tag="3")]
130    pub min_sampling_period_ns: ::core::option::Option<u64>,
131    /// optional.  Maximum sampling period supported by the producer in
132    /// nanoseconds.
133    #[prost(uint64, optional, tag="4")]
134    pub max_sampling_period_ns: ::core::option::Option<u64>,
135    /// optional.  The producer supports counter sampling by instrumenting the
136    /// command buffer.
137    #[prost(bool, optional, tag="5")]
138    pub supports_instrumented_sampling: ::core::option::Option<bool>,
139}
140/// Nested message and enum types in `GpuCounterDescriptor`.
141pub mod gpu_counter_descriptor {
142    #[derive(Clone, PartialEq, ::prost::Message)]
143    pub struct GpuCounterSpec {
144        #[prost(uint32, optional, tag="1")]
145        pub counter_id: ::core::option::Option<u32>,
146        #[prost(string, optional, tag="2")]
147        pub name: ::core::option::Option<::prost::alloc::string::String>,
148        #[prost(string, optional, tag="3")]
149        pub description: ::core::option::Option<::prost::alloc::string::String>,
150        #[prost(enumeration="MeasureUnit", repeated, packed="false", tag="7")]
151        pub numerator_units: ::prost::alloc::vec::Vec<i32>,
152        #[prost(enumeration="MeasureUnit", repeated, packed="false", tag="8")]
153        pub denominator_units: ::prost::alloc::vec::Vec<i32>,
154        #[prost(bool, optional, tag="9")]
155        pub select_by_default: ::core::option::Option<bool>,
156        #[prost(enumeration="GpuCounterGroup", repeated, packed="false", tag="10")]
157        pub groups: ::prost::alloc::vec::Vec<i32>,
158        #[prost(oneof="gpu_counter_spec::PeakValue", tags="5, 6")]
159        pub peak_value: ::core::option::Option<gpu_counter_spec::PeakValue>,
160    }
161    /// Nested message and enum types in `GpuCounterSpec`.
162    pub mod gpu_counter_spec {
163        #[derive(Clone, PartialEq, ::prost::Oneof)]
164        pub enum PeakValue {
165            #[prost(int64, tag="5")]
166            IntPeakValue(i64),
167            #[prost(double, tag="6")]
168            DoublePeakValue(f64),
169        }
170    }
171    /// Allow producer to group counters into block to represent counter islands.
172    /// A capacity may be specified to indicate the number of counters that can be
173    /// enable simultaneously in that block.
174    #[derive(Clone, PartialEq, ::prost::Message)]
175    pub struct GpuCounterBlock {
176        /// required. Unique ID for the counter group.
177        #[prost(uint32, optional, tag="1")]
178        pub block_id: ::core::option::Option<u32>,
179        /// optional. Number of counters supported by the block. No limit if unset.
180        #[prost(uint32, optional, tag="2")]
181        pub block_capacity: ::core::option::Option<u32>,
182        /// optional. Name of block.
183        #[prost(string, optional, tag="3")]
184        pub name: ::core::option::Option<::prost::alloc::string::String>,
185        /// optional. Description for the block.
186        #[prost(string, optional, tag="4")]
187        pub description: ::core::option::Option<::prost::alloc::string::String>,
188        /// list of counters that are part of the block.
189        #[prost(uint32, repeated, packed="false", tag="5")]
190        pub counter_ids: ::prost::alloc::vec::Vec<u32>,
191    }
192    /// Logical groups for a counter.  This is used in the UI to present the
193    /// related counters together.
194    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
195    #[repr(i32)]
196    pub enum GpuCounterGroup {
197        Unclassified = 0,
198        System = 1,
199        Vertices = 2,
200        Fragments = 3,
201        Primitives = 4,
202        /// Includes counters relating to caching and bandwidth.
203        Memory = 5,
204        Compute = 6,
205        RayTracing = 7,
206    }
207    impl GpuCounterGroup {
208        /// String value of the enum field names used in the ProtoBuf definition.
209        ///
210        /// The values are not transformed in any way and thus are considered stable
211        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
212        pub fn as_str_name(&self) -> &'static str {
213            match self {
214                GpuCounterGroup::Unclassified => "UNCLASSIFIED",
215                GpuCounterGroup::System => "SYSTEM",
216                GpuCounterGroup::Vertices => "VERTICES",
217                GpuCounterGroup::Fragments => "FRAGMENTS",
218                GpuCounterGroup::Primitives => "PRIMITIVES",
219                GpuCounterGroup::Memory => "MEMORY",
220                GpuCounterGroup::Compute => "COMPUTE",
221                GpuCounterGroup::RayTracing => "RAY_TRACING",
222            }
223        }
224    }
225    /// next id: 41
226    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
227    #[repr(i32)]
228    pub enum MeasureUnit {
229        None = 0,
230        Bit = 1,
231        Kilobit = 2,
232        Megabit = 3,
233        Gigabit = 4,
234        Terabit = 5,
235        Petabit = 6,
236        Byte = 7,
237        Kilobyte = 8,
238        Megabyte = 9,
239        Gigabyte = 10,
240        Terabyte = 11,
241        Petabyte = 12,
242        Hertz = 13,
243        Kilohertz = 14,
244        Megahertz = 15,
245        Gigahertz = 16,
246        Terahertz = 17,
247        Petahertz = 18,
248        Nanosecond = 19,
249        Microsecond = 20,
250        Millisecond = 21,
251        Second = 22,
252        Minute = 23,
253        Hour = 24,
254        Vertex = 25,
255        Pixel = 26,
256        Triangle = 27,
257        Primitive = 38,
258        Fragment = 39,
259        Milliwatt = 28,
260        Watt = 29,
261        Kilowatt = 30,
262        Joule = 31,
263        Volt = 32,
264        Ampere = 33,
265        Celsius = 34,
266        Fahrenheit = 35,
267        Kelvin = 36,
268        /// Values should be out of 100.
269        Percent = 37,
270        Instruction = 40,
271    }
272    impl MeasureUnit {
273        /// String value of the enum field names used in the ProtoBuf definition.
274        ///
275        /// The values are not transformed in any way and thus are considered stable
276        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
277        pub fn as_str_name(&self) -> &'static str {
278            match self {
279                MeasureUnit::None => "NONE",
280                MeasureUnit::Bit => "BIT",
281                MeasureUnit::Kilobit => "KILOBIT",
282                MeasureUnit::Megabit => "MEGABIT",
283                MeasureUnit::Gigabit => "GIGABIT",
284                MeasureUnit::Terabit => "TERABIT",
285                MeasureUnit::Petabit => "PETABIT",
286                MeasureUnit::Byte => "BYTE",
287                MeasureUnit::Kilobyte => "KILOBYTE",
288                MeasureUnit::Megabyte => "MEGABYTE",
289                MeasureUnit::Gigabyte => "GIGABYTE",
290                MeasureUnit::Terabyte => "TERABYTE",
291                MeasureUnit::Petabyte => "PETABYTE",
292                MeasureUnit::Hertz => "HERTZ",
293                MeasureUnit::Kilohertz => "KILOHERTZ",
294                MeasureUnit::Megahertz => "MEGAHERTZ",
295                MeasureUnit::Gigahertz => "GIGAHERTZ",
296                MeasureUnit::Terahertz => "TERAHERTZ",
297                MeasureUnit::Petahertz => "PETAHERTZ",
298                MeasureUnit::Nanosecond => "NANOSECOND",
299                MeasureUnit::Microsecond => "MICROSECOND",
300                MeasureUnit::Millisecond => "MILLISECOND",
301                MeasureUnit::Second => "SECOND",
302                MeasureUnit::Minute => "MINUTE",
303                MeasureUnit::Hour => "HOUR",
304                MeasureUnit::Vertex => "VERTEX",
305                MeasureUnit::Pixel => "PIXEL",
306                MeasureUnit::Triangle => "TRIANGLE",
307                MeasureUnit::Primitive => "PRIMITIVE",
308                MeasureUnit::Fragment => "FRAGMENT",
309                MeasureUnit::Milliwatt => "MILLIWATT",
310                MeasureUnit::Watt => "WATT",
311                MeasureUnit::Kilowatt => "KILOWATT",
312                MeasureUnit::Joule => "JOULE",
313                MeasureUnit::Volt => "VOLT",
314                MeasureUnit::Ampere => "AMPERE",
315                MeasureUnit::Celsius => "CELSIUS",
316                MeasureUnit::Fahrenheit => "FAHRENHEIT",
317                MeasureUnit::Kelvin => "KELVIN",
318                MeasureUnit::Percent => "PERCENT",
319                MeasureUnit::Instruction => "INSTRUCTION",
320            }
321        }
322    }
323}
324#[derive(Clone, PartialEq, ::prost::Message)]
325pub struct TrackEventCategory {
326    #[prost(string, optional, tag="1")]
327    pub name: ::core::option::Option<::prost::alloc::string::String>,
328    #[prost(string, optional, tag="2")]
329    pub description: ::core::option::Option<::prost::alloc::string::String>,
330    #[prost(string, repeated, tag="3")]
331    pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
332}
333#[derive(Clone, PartialEq, ::prost::Message)]
334pub struct TrackEventDescriptor {
335    #[prost(message, repeated, tag="1")]
336    pub available_categories: ::prost::alloc::vec::Vec<TrackEventCategory>,
337}
338/// This message is sent from Producer(s) to the tracing Service when registering
339/// to advertise their capabilities. It describes the structure of tracing
340/// protos that will be produced by the data source and the supported filters.
341#[derive(Clone, PartialEq, ::prost::Message)]
342pub struct DataSourceDescriptor {
343    /// e.g., "linux.ftrace", "chromium.tracing"
344    #[prost(string, optional, tag="1")]
345    pub name: ::core::option::Option<::prost::alloc::string::String>,
346    /// When non-zero, this is a unique ID within the scope of the Producer for
347    /// this data source (it is NOT globally unique). This is useful to
348    /// differentiate between data sources with matching names when calling
349    /// UpdateDataSource(). This field has been introduced in November 2021
350    /// (v22, Android T) and is not supported on older versions.
351    #[prost(uint64, optional, tag="7")]
352    pub id: ::core::option::Option<u64>,
353    /// When true the data source is expected to ack the stop request through the
354    /// NotifyDataSourceStopped() IPC. This field has been introduced after
355    /// Android P in Jul 2018 and is not supported on older versions.
356    #[prost(bool, optional, tag="2")]
357    pub will_notify_on_stop: ::core::option::Option<bool>,
358    /// When true the data source is expected to ack the start request through the
359    /// NotifyDataSourceStarted() IPC. This field has been introduced after
360    /// Android P in March 2019 and is not supported on older versions.
361    #[prost(bool, optional, tag="3")]
362    pub will_notify_on_start: ::core::option::Option<bool>,
363    /// If true, opt into receiving the ClearIncrementalState() IPC. This should be
364    /// set if the data source writes packets that refer to previous trace
365    /// contents, and knows how to stop referring to the already-emitted data.
366    #[prost(bool, optional, tag="4")]
367    pub handles_incremental_state_clear: ::core::option::Option<bool>,
368    /// If true, indicates that the data source does nothing upon Flush. This
369    /// allows the service to reduce the flush-related IPC traffic and better deal
370    /// with frozen producers (see go/perfetto-frozen). This is usually the case
371    /// for data sources like 'track_event' that don't have access to the various
372    /// thread task runners to post a flush task and rely purely on server-side
373    /// scraping.
374    /// Introduced in v39 / Android V.
375    #[prost(bool, optional, tag="9")]
376    pub no_flush: ::core::option::Option<bool>,
377    /// Optional specification about available GPU counters.
378    #[prost(message, optional, tag="5")]
379    pub gpu_counter_descriptor: ::core::option::Option<GpuCounterDescriptor>,
380    #[prost(message, optional, tag="6")]
381    pub track_event_descriptor: ::core::option::Option<TrackEventDescriptor>,
382    #[prost(message, optional, tag="8")]
383    pub ftrace_descriptor: ::core::option::Option<FtraceDescriptor>,
384}
385/// Reports the state of the tracing service. Used to gather details about the
386/// data sources connected.
387/// See ConsumerPort::QueryServiceState().
388#[derive(Clone, PartialEq, ::prost::Message)]
389pub struct TracingServiceState {
390    /// Lists all the producers connected.
391    #[prost(message, repeated, tag="1")]
392    pub producers: ::prost::alloc::vec::Vec<tracing_service_state::Producer>,
393    /// Lists the data sources available.
394    #[prost(message, repeated, tag="2")]
395    pub data_sources: ::prost::alloc::vec::Vec<tracing_service_state::DataSource>,
396    /// Lists the tracing sessions active AND owned by a consumer that has the same
397    /// UID of the caller (or all of them if the caller is root).
398    /// Introduced in v24 / Android T.
399    #[prost(message, repeated, tag="6")]
400    pub tracing_sessions: ::prost::alloc::vec::Vec<tracing_service_state::TracingSession>,
401    /// This is always set to true from v24 and beyond. This flag is only used to
402    /// tell the difference between: (1) talking to a recent service which happens
403    /// to have no tracing session active; (2) talking to an older version of the
404    /// service which will never report any tracing session.
405    #[prost(bool, optional, tag="7")]
406    pub supports_tracing_sessions: ::core::option::Option<bool>,
407    /// Total number of tracing sessions.
408    #[prost(int32, optional, tag="3")]
409    pub num_sessions: ::core::option::Option<i32>,
410    /// Number of tracing sessions in the started state. Always <= num_sessions.
411    #[prost(int32, optional, tag="4")]
412    pub num_sessions_started: ::core::option::Option<i32>,
413    /// The version of traced (the same returned by `traced --version`).
414    /// This is a human readable string with and its format varies depending on
415    /// the build system and the repo (standalone vs AOSP).
416    /// This is intended for human debugging only.
417    #[prost(string, optional, tag="5")]
418    pub tracing_service_version: ::core::option::Option<::prost::alloc::string::String>,
419}
420/// Nested message and enum types in `TracingServiceState`.
421pub mod tracing_service_state {
422    /// Describes a producer process.
423    #[derive(Clone, PartialEq, ::prost::Message)]
424    pub struct Producer {
425        /// Unique ID of the producer (monotonic counter).
426        #[prost(int32, optional, tag="1")]
427        pub id: ::core::option::Option<i32>,
428        /// Typically matches the process name.
429        #[prost(string, optional, tag="2")]
430        pub name: ::core::option::Option<::prost::alloc::string::String>,
431        /// Unix pid of the remote process. Supported only on Linux-based systems.
432        /// Introduced in v24 / Android T.
433        #[prost(int32, optional, tag="5")]
434        pub pid: ::core::option::Option<i32>,
435        /// Unix uid of the remote process.
436        #[prost(int32, optional, tag="3")]
437        pub uid: ::core::option::Option<i32>,
438        /// The version of the client library used by the producer.
439        /// This is a human readable string with and its format varies depending on
440        /// the build system and the repo (standalone vs AOSP).
441        /// This is intended for human debugging only.
442        #[prost(string, optional, tag="4")]
443        pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
444        /// Returns true if the process appears to be frozen (Android only).
445        /// Introduced in Perfetto V49 / Android 24Q4.
446        #[prost(bool, optional, tag="6")]
447        pub frozen: ::core::option::Option<bool>,
448    }
449    /// Describes a data source registered by a producer. Data sources are listed
450    /// regardless of the fact that they are being used or not.
451    #[derive(Clone, PartialEq, ::prost::Message)]
452    pub struct DataSource {
453        /// Descriptor passed by the data source when calling RegisterDataSource().
454        #[prost(message, optional, tag="1")]
455        pub ds_descriptor: ::core::option::Option<super::DataSourceDescriptor>,
456        /// ID of the producer, as per Producer.id.
457        #[prost(int32, optional, tag="2")]
458        pub producer_id: ::core::option::Option<i32>,
459    }
460    #[derive(Clone, PartialEq, ::prost::Message)]
461    pub struct TracingSession {
462        /// The TracingSessionID.
463        #[prost(uint64, optional, tag="1")]
464        pub id: ::core::option::Option<u64>,
465        /// The Unix uid of the consumer that started the session.
466        /// This is meaningful only if the caller is root. In all other cases only
467        /// tracing sessions that match the caller UID will be displayed.
468        #[prost(int32, optional, tag="2")]
469        pub consumer_uid: ::core::option::Option<i32>,
470        /// Internal state of the tracing session.
471        /// These strings are FYI only and subjected to change.
472        #[prost(string, optional, tag="3")]
473        pub state: ::core::option::Option<::prost::alloc::string::String>,
474        /// The unique_session_name as set in the trace config (might be empty).
475        #[prost(string, optional, tag="4")]
476        pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
477        /// The number and size of each buffer.
478        #[prost(uint32, repeated, packed="false", tag="5")]
479        pub buffer_size_kb: ::prost::alloc::vec::Vec<u32>,
480        /// Duration, as specified in the TraceConfig.duration_ms.
481        #[prost(uint32, optional, tag="6")]
482        pub duration_ms: ::core::option::Option<u32>,
483        /// Number of data sources involved in the session.
484        #[prost(uint32, optional, tag="7")]
485        pub num_data_sources: ::core::option::Option<u32>,
486        /// Time when the session was started, in the CLOCK_REALTIME domain.
487        /// Available only on Linux-based systems.
488        #[prost(int64, optional, tag="8")]
489        pub start_realtime_ns: ::core::option::Option<i64>,
490        // The fields below have been introduced in v42.
491
492        /// The bugreport_score, as set in TraceConfig.bugreport_score.
493        #[prost(int32, optional, tag="9")]
494        pub bugreport_score: ::core::option::Option<i32>,
495        /// As per TraceConfig.bugreport_filename.
496        #[prost(string, optional, tag="10")]
497        pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
498        /// If true, the session is in the STARTED state. If false the session is in
499        /// any other state (see `state` field).
500        #[prost(bool, optional, tag="11")]
501        pub is_started: ::core::option::Option<bool>,
502    }
503}
504#[derive(Clone, PartialEq, ::prost::Message)]
505pub struct TracingServiceCapabilities {
506    /// Whether the service supports QueryCapabilities() at all or not.
507    /// This is only used at the C++ level to distinguish the case of talking to
508    /// an older version of the service that doesn't support QueryCapabilities().
509    /// In that case the IPC layer will just reject the unknown call, and the
510    /// consumer_ipc_client_impl.cc will return an empty message where this field
511    /// is false. In all other cases, this is always set to true.
512    #[prost(bool, optional, tag="1")]
513    pub has_query_capabilities: ::core::option::Option<bool>,
514    /// The set of known events that can be passed to ConsumerPort.ObserveEvents().
515    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="2")]
516    pub observable_events: ::prost::alloc::vec::Vec<i32>,
517    /// Whether the service supports TraceConfig.output_path (for asking traced to
518    /// create the output file instead of passing a file descriptor).
519    #[prost(bool, optional, tag="3")]
520    pub has_trace_config_output_path: ::core::option::Option<bool>,
521    /// Whether the service supports CloneSession and CLONE_SNAPSHOT triggers.
522    #[prost(bool, optional, tag="4")]
523    pub has_clone_session: ::core::option::Option<bool>,
524}
525/// Statistics for the internals of the tracing service.
526///
527/// Next id: 19.
528#[derive(Clone, PartialEq, ::prost::Message)]
529pub struct TraceStats {
530    /// Stats for the TraceBuffer(s) of the current trace session.
531    #[prost(message, repeated, tag="1")]
532    pub buffer_stats: ::prost::alloc::vec::Vec<trace_stats::BufferStats>,
533    /// The thresholds of each the `writer_stats` histogram buckets. This is
534    /// emitted only once as all WriterStats share the same bucket layout.
535    /// This field has the same cardinality of the
536    /// `writer_stats.chunk_payload_histogram_{counts,sum}` - 1.
537    /// (The -1 is because the last overflow bucket is not reported in the _def).
538    /// An array of values [10, 100, 1000] in the _def array means that there are
539    /// four buckets (3 + the implicit overflow bucket):
540    /// \[0\]: x <= 10; \[1\]: 100 < x <= 1000; \[2\]: 1000 < x <= 1000; \[3\]: x > 1000.
541    #[prost(int64, repeated, packed="false", tag="17")]
542    pub chunk_payload_histogram_def: ::prost::alloc::vec::Vec<i64>,
543    #[prost(message, repeated, tag="18")]
544    pub writer_stats: ::prost::alloc::vec::Vec<trace_stats::WriterStats>,
545    /// Num. producers connected (whether they are involved in the current tracing
546    /// session or not).
547    #[prost(uint32, optional, tag="2")]
548    pub producers_connected: ::core::option::Option<u32>,
549    /// Num. producers ever seen for all trace sessions since startup (it's a good
550    /// proxy for inferring num. producers crashed / killed).
551    #[prost(uint64, optional, tag="3")]
552    pub producers_seen: ::core::option::Option<u64>,
553    /// Num. data sources registered for all trace sessions.
554    #[prost(uint32, optional, tag="4")]
555    pub data_sources_registered: ::core::option::Option<u32>,
556    /// Num. data sources ever seen for all trace sessions since startup.
557    #[prost(uint64, optional, tag="5")]
558    pub data_sources_seen: ::core::option::Option<u64>,
559    /// Num. concurrently active tracing sessions.
560    #[prost(uint32, optional, tag="6")]
561    pub tracing_sessions: ::core::option::Option<u32>,
562    /// Num. buffers for all tracing session (not just the current one). This will
563    /// be >= buffer_stats.size(), because the latter is only about the current
564    /// session.
565    #[prost(uint32, optional, tag="7")]
566    pub total_buffers: ::core::option::Option<u32>,
567    // The fields below have been introduced in Android Q.
568
569    /// Num. chunks that were discarded by the service before attempting to commit
570    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
571    #[prost(uint64, optional, tag="8")]
572    pub chunks_discarded: ::core::option::Option<u64>,
573    /// Num. patches that were discarded by the service before attempting to apply
574    /// them to a buffer, e.g. because the producer specified an invalid buffer ID.
575    #[prost(uint64, optional, tag="9")]
576    pub patches_discarded: ::core::option::Option<u64>,
577    /// Packets that failed validation of the TrustedPacket. If this is > 0, there
578    /// is a bug in the producer.
579    #[prost(uint64, optional, tag="10")]
580    pub invalid_packets: ::core::option::Option<u64>,
581    #[prost(message, optional, tag="11")]
582    pub filter_stats: ::core::option::Option<trace_stats::FilterStats>,
583    /// Count of Flush() requests (either from the Consumer, or self-induced
584    /// periodic flushes). The final Flush() is also included in the count.
585    #[prost(uint64, optional, tag="12")]
586    pub flushes_requested: ::core::option::Option<u64>,
587    /// The count of the Flush() requests that were completed successfully.
588    /// In a well behaving trace this should always be == `flush_requests`.
589    #[prost(uint64, optional, tag="13")]
590    pub flushes_succeeded: ::core::option::Option<u64>,
591    /// The count of the Flush() requests that failed (in most timed out).
592    /// In a well behaving trace this should always be == 0.
593    #[prost(uint64, optional, tag="14")]
594    pub flushes_failed: ::core::option::Option<u64>,
595    #[prost(enumeration="trace_stats::FinalFlushOutcome", optional, tag="15")]
596    pub final_flush_outcome: ::core::option::Option<i32>,
597}
598/// Nested message and enum types in `TraceStats`.
599pub mod trace_stats {
600    /// From TraceBuffer::Stats.
601    ///
602    /// Next id: 21.
603    #[derive(Clone, PartialEq, ::prost::Message)]
604    pub struct BufferStats {
605        /// Size of the circular buffer in bytes.
606        #[prost(uint64, optional, tag="12")]
607        pub buffer_size: ::core::option::Option<u64>,
608        /// Num. bytes written into the circular buffer, including chunk headers.
609        #[prost(uint64, optional, tag="1")]
610        pub bytes_written: ::core::option::Option<u64>,
611        /// Num. bytes overwritten before they have been read (i.e. loss of data).
612        #[prost(uint64, optional, tag="13")]
613        pub bytes_overwritten: ::core::option::Option<u64>,
614        /// Total size of chunks that were fully read from the circular buffer by the
615        /// consumer. This may not be equal to |bytes_written| either in the middle
616        /// of tracing, or if |chunks_overwritten| is non-zero. Note that this is the
617        /// size of the chunks read from the buffer, including chunk headers, which
618        /// will be different from the total size of packets returned to the
619        /// consumer.
620        ///
621        /// The current utilization of the trace buffer (mid-tracing) can be obtained
622        /// by subtracting |bytes_read| and |bytes_overwritten| from |bytes_written|,
623        /// adding the difference of |padding_bytes_written| and
624        /// |padding_bytes_cleared|, and comparing this sum to the |buffer_size|.
625        /// Note that this represents the total size of buffered data in the buffer,
626        /// yet this data may be spread non-contiguously through the buffer and may
627        /// be overridden before the utilization reaches 100%.
628        #[prost(uint64, optional, tag="14")]
629        pub bytes_read: ::core::option::Option<u64>,
630        /// Num. bytes that were allocated as padding between chunks in the circular
631        /// buffer.
632        #[prost(uint64, optional, tag="15")]
633        pub padding_bytes_written: ::core::option::Option<u64>,
634        /// Num. of padding bytes that were removed from the circular buffer when
635        /// they were overwritten.
636        ///
637        /// The difference between |padding_bytes_written| and
638        /// |padding_bytes_cleared| denotes the total size of padding currently
639        /// present in the buffer.
640        #[prost(uint64, optional, tag="16")]
641        pub padding_bytes_cleared: ::core::option::Option<u64>,
642        /// Num. chunks (!= packets) written into the buffer.
643        #[prost(uint64, optional, tag="2")]
644        pub chunks_written: ::core::option::Option<u64>,
645        /// Num. chunks (!= packets) rewritten into the buffer. This means we rewrote
646        /// the same chunk with additional packets appended to the end.
647        #[prost(uint64, optional, tag="10")]
648        pub chunks_rewritten: ::core::option::Option<u64>,
649        /// Num. chunks overwritten before they have been read (i.e. loss of data).
650        #[prost(uint64, optional, tag="3")]
651        pub chunks_overwritten: ::core::option::Option<u64>,
652        /// Num. chunks discarded (i.e. loss of data). Can be > 0 only when a buffer
653        /// is configured with FillPolicy == DISCARD.
654        #[prost(uint64, optional, tag="18")]
655        pub chunks_discarded: ::core::option::Option<u64>,
656        /// Num. chunks (!= packets) that were fully read from the circular buffer by
657        /// the consumer. This may not be equal to |chunks_written| either in the
658        /// middle of tracing, or if |chunks_overwritten| is non-zero.
659        #[prost(uint64, optional, tag="17")]
660        pub chunks_read: ::core::option::Option<u64>,
661        /// Num. chunks that were committed out of order.
662        #[prost(uint64, optional, tag="11")]
663        pub chunks_committed_out_of_order: ::core::option::Option<u64>,
664        /// Num. times the ring buffer wrapped around.
665        #[prost(uint64, optional, tag="4")]
666        pub write_wrap_count: ::core::option::Option<u64>,
667        /// Num. out-of-band (OOB) patches that succeeded.
668        #[prost(uint64, optional, tag="5")]
669        pub patches_succeeded: ::core::option::Option<u64>,
670        /// Num. OOB patches that failed (e.g., the chunk to patch was gone).
671        #[prost(uint64, optional, tag="6")]
672        pub patches_failed: ::core::option::Option<u64>,
673        /// Num. readaheads (for large multi-chunk packet reads) that ended up in a
674        /// successful packet read.
675        #[prost(uint64, optional, tag="7")]
676        pub readaheads_succeeded: ::core::option::Option<u64>,
677        /// Num. readaheads aborted because of missing chunks in the sequence stream.
678        /// Note that a small number > 0 is totally expected: occasionally, when
679        /// issuing a read, the very last packet in a sequence might be incomplete
680        /// (because the producer is still writing it while we read). The read will
681        /// stop at that point, for that sequence, increasing this counter.
682        #[prost(uint64, optional, tag="8")]
683        pub readaheads_failed: ::core::option::Option<u64>,
684        /// Num. of violations of the SharedMemoryABI found while writing or reading
685        /// the buffer. This is an indication of either a bug in the producer(s) or
686        /// malicious producer(s).
687        #[prost(uint64, optional, tag="9")]
688        pub abi_violations: ::core::option::Option<u64>,
689        // The fields below have been introduced in Android R.
690
691        /// Num. of times the service detected packet loss on a trace writer
692        /// sequence. This is usually caused by exhaustion of available chunks in the
693        /// writer process's SMB. Note that this relies on the client's TraceWriter
694        /// indicating this loss to the service -- packets lost for other reasons are
695        /// not reflected in this stat.
696        #[prost(uint64, optional, tag="19")]
697        pub trace_writer_packet_loss: ::core::option::Option<u64>,
698    }
699    /// Per TraceWriter stat. Each {producer, trace writer} tuple is publicly
700    /// visible as a unique sequence ID in the trace.
701    #[derive(Clone, PartialEq, ::prost::Message)]
702    pub struct WriterStats {
703        /// This matches the TracePacket.trusted_packet_sequence_id and is used to
704        /// correlate the stats with the actual packet types.
705        #[prost(uint64, optional, tag="1")]
706        pub sequence_id: ::core::option::Option<u64>,
707        /// The buffer index (0..N, as defined in the TraceConfig).
708        #[prost(uint32, optional, tag="4")]
709        pub buffer: ::core::option::Option<u32>,
710        /// These two arrays have the same cardinality and match the cardinality of
711        /// chunk_payload_histogram_def + 1 (for the overflow bucket, see below).
712        /// `sum` contains the SUM(entries) and `counts` contains the COUNT(entries)
713        /// for each bucket.
714        #[prost(uint64, repeated, tag="2")]
715        pub chunk_payload_histogram_counts: ::prost::alloc::vec::Vec<u64>,
716        #[prost(int64, repeated, tag="3")]
717        pub chunk_payload_histogram_sum: ::prost::alloc::vec::Vec<i64>,
718    }
719    /// This is set only when the TraceConfig specifies a TraceFilter.
720    #[derive(Clone, PartialEq, ::prost::Message)]
721    pub struct FilterStats {
722        #[prost(uint64, optional, tag="1")]
723        pub input_packets: ::core::option::Option<u64>,
724        #[prost(uint64, optional, tag="2")]
725        pub input_bytes: ::core::option::Option<u64>,
726        #[prost(uint64, optional, tag="3")]
727        pub output_bytes: ::core::option::Option<u64>,
728        #[prost(uint64, optional, tag="4")]
729        pub errors: ::core::option::Option<u64>,
730        #[prost(uint64, optional, tag="5")]
731        pub time_taken_ns: ::core::option::Option<u64>,
732        /// The number of bytes discarded by the filter (i.e. output - input).
733        /// The array has one entry for each buffer defined in the config (unless no
734        /// packets for that buffer were seen and hence filtered).
735        /// Note: the SUM(bytes_discarded_per_buffer) will be <= but not == the total
736        /// (output_bytes - input_bytes) because the filter might also discard
737        /// server-generated synthetic packets, that have no buffer index.
738        #[prost(uint64, repeated, packed="false", tag="20")]
739        pub bytes_discarded_per_buffer: ::prost::alloc::vec::Vec<u64>,
740    }
741    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
742    #[repr(i32)]
743    pub enum FinalFlushOutcome {
744        FinalFlushUnspecified = 0,
745        FinalFlushSucceeded = 1,
746        FinalFlushFailed = 2,
747    }
748    impl FinalFlushOutcome {
749        /// String value of the enum field names used in the ProtoBuf definition.
750        ///
751        /// The values are not transformed in any way and thus are considered stable
752        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
753        pub fn as_str_name(&self) -> &'static str {
754            match self {
755                FinalFlushOutcome::FinalFlushUnspecified => "FINAL_FLUSH_UNSPECIFIED",
756                FinalFlushOutcome::FinalFlushSucceeded => "FINAL_FLUSH_SUCCEEDED",
757                FinalFlushOutcome::FinalFlushFailed => "FINAL_FLUSH_FAILED",
758            }
759        }
760    }
761}
762#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
763#[repr(i32)]
764pub enum BuiltinClock {
765    Unknown = 0,
766    Realtime = 1,
767    RealtimeCoarse = 2,
768    Monotonic = 3,
769    MonotonicCoarse = 4,
770    MonotonicRaw = 5,
771    Boottime = 6,
772    Tsc = 9,
773    Perf = 10,
774    MaxId = 63,
775}
776impl BuiltinClock {
777    /// String value of the enum field names used in the ProtoBuf definition.
778    ///
779    /// The values are not transformed in any way and thus are considered stable
780    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
781    pub fn as_str_name(&self) -> &'static str {
782        match self {
783            BuiltinClock::Unknown => "BUILTIN_CLOCK_UNKNOWN",
784            BuiltinClock::Realtime => "BUILTIN_CLOCK_REALTIME",
785            BuiltinClock::RealtimeCoarse => "BUILTIN_CLOCK_REALTIME_COARSE",
786            BuiltinClock::Monotonic => "BUILTIN_CLOCK_MONOTONIC",
787            BuiltinClock::MonotonicCoarse => "BUILTIN_CLOCK_MONOTONIC_COARSE",
788            BuiltinClock::MonotonicRaw => "BUILTIN_CLOCK_MONOTONIC_RAW",
789            BuiltinClock::Boottime => "BUILTIN_CLOCK_BOOTTIME",
790            BuiltinClock::Tsc => "BUILTIN_CLOCK_TSC",
791            BuiltinClock::Perf => "BUILTIN_CLOCK_PERF",
792            BuiltinClock::MaxId => "BUILTIN_CLOCK_MAX_ID",
793        }
794    }
795}
796/// Data source that lists game modes and game interventions of games
797/// on an Android device.
798#[derive(Clone, PartialEq, ::prost::Message)]
799pub struct AndroidGameInterventionListConfig {
800    /// If not empty, emit info about only the following list of package names
801    /// (exact match, no regex). Otherwise, emit info about all packages.
802    #[prost(string, repeated, tag="1")]
803    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
804}
805/// Custom configuration for the "android.input.inputevent" data source.
806///
807/// NOTE: Input traces can only be taken on debuggable (userdebug/eng) builds!
808///
809/// Next ID: 5
810#[derive(Clone, PartialEq, ::prost::Message)]
811pub struct AndroidInputEventConfig {
812    /// The tracing mode to use. If unspecified, it will default to
813    /// TRACE_MODE_USE_RULES.
814    #[prost(enumeration="android_input_event_config::TraceMode", optional, tag="1")]
815    pub mode: ::core::option::Option<i32>,
816    /// The list of rules to use to determine the trace level of events.
817    /// Each event will be traced using the TraceLevel of the first rule that it
818    /// triggers from this list. The rules are evaluated in the order in which they
819    /// are specified. If an event does not match any of the rules,
820    /// TRACE_LEVEL_NONE will be used by default.
821    #[prost(message, repeated, tag="2")]
822    pub rules: ::prost::alloc::vec::Vec<android_input_event_config::TraceRule>,
823    // --- Control flags ---
824
825    /// Trace input events processed by the system as they are being dispatched
826    /// to application windows. All trace rules will apply.
827    ///    - If this flag is used without enabling trace_dispatcher_window_dispatch,
828    ///    it will
829    ///      trace InputDispatcher's inbound events (which does not include events
830    ///      synthesized within InputDispatcher) that match the rules.
831    ///    - If used with trace_dispatcher_window_dispatch, all inbound and outbound
832    ///    events
833    ///      matching the rules, including all events synthesized within
834    ///      InputDispatcher, will be traced.
835    #[prost(bool, optional, tag="3")]
836    pub trace_dispatcher_input_events: ::core::option::Option<bool>,
837    /// Trace details about which windows the system is sending each input event
838    /// to. All trace rules will apply.
839    #[prost(bool, optional, tag="4")]
840    pub trace_dispatcher_window_dispatch: ::core::option::Option<bool>,
841}
842/// Nested message and enum types in `AndroidInputEventConfig`.
843pub mod android_input_event_config {
844    /// A rule that specifies the TraceLevel for an event based on matching
845    /// conditions. All matchers in the rule are optional. To trigger this rule, an
846    /// event must match all of its specified matchers (i.e. the matchers function
847    /// like a series of conditions connected by a logical 'AND' operator). A rule
848    /// with no specified matchers will match all events. Next ID: 6
849    #[derive(Clone, PartialEq, ::prost::Message)]
850    pub struct TraceRule {
851        /// The trace level to be used for events that trigger this rule.
852        /// If unspecified, TRACE_LEVEL_NONE will be used by default.
853        #[prost(enumeration="TraceLevel", optional, tag="1")]
854        pub trace_level: ::core::option::Option<i32>,
855        // --- Optional Matchers ---
856
857        /// Package matchers
858        ///
859        /// Respectively matches if all or any of the target apps for this event are
860        /// contained in the specified list of package names.
861        ///
862        /// Intended usage:
863        ///    - Use match_all_packages to selectively allow tracing for the listed
864        ///    packages.
865        ///    - Use match_any_packages to selectively deny tracing for certain
866        ///    packages.
867        ///
868        /// WARNING: Great care must be taken when designing rules for field tracing!
869        ///           This is because each event is almost always sent to more than
870        ///           one app.
871        ///               For example, when allowing tracing for a package that has a
872        ///               spy window
873        ///           over the display (e.g. SystemUI) using match_any_packages,
874        ///           essentially all input will be recorded on that display. This is
875        ///           because the events will be sent to the spy as well as the
876        ///           foreground app, and regardless of what the foreground app is,
877        ///           the event will end up being traced.
878        ///               Alternatively, when attempting to block tracing for specific
879        ///               packages using
880        ///           match_all_packages, no events will likely be blocked. This is
881        ///           because the event will also be sent to other apps (such as, but
882        ///           not limited to, ones with spy windows), so the matcher will not
883        ///           match unless all other targets are also listed under the
884        ///           match_all_packages list.
885        #[prost(string, repeated, tag="2")]
886        pub match_all_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
887        #[prost(string, repeated, tag="3")]
888        pub match_any_packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
889        /// Matches if the event is secure, which means that at least one of the
890        /// targets of this event is using the window flag FLAG_SECURE.
891        #[prost(bool, optional, tag="4")]
892        pub match_secure: ::core::option::Option<bool>,
893        /// Matches if there was an active IME connection while this event was being
894        /// processed.
895        #[prost(bool, optional, tag="5")]
896        pub match_ime_connection_active: ::core::option::Option<bool>,
897    }
898    /// Trace modes are tracing presets that are included in the system.
899    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
900    #[repr(i32)]
901    pub enum TraceMode {
902        /// Preset mode for maximal tracing.
903        /// WARNING: This will bypass all privacy measures on debuggable builds, and
904        /// will record all
905        ///           input events processed by the system, regardless of the context
906        ///           in which they were processed. It should only be used for tracing
907        ///           on a local device or for tests. It should NEVER be used for
908        ///           field tracing.
909        TraceAll = 0,
910        /// Use the tracing rules defined in this config to specify what events to
911        /// trace.
912        UseRules = 1,
913    }
914    impl TraceMode {
915        /// String value of the enum field names used in the ProtoBuf definition.
916        ///
917        /// The values are not transformed in any way and thus are considered stable
918        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
919        pub fn as_str_name(&self) -> &'static str {
920            match self {
921                TraceMode::TraceAll => "TRACE_MODE_TRACE_ALL",
922                TraceMode::UseRules => "TRACE_MODE_USE_RULES",
923            }
924        }
925    }
926    /// The level of tracing that should be applied to an event.
927    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
928    #[repr(i32)]
929    pub enum TraceLevel {
930        /// Do not trace the input event.
931        None = 0,
932        /// Trace the event as a redacted event, where certain sensitive fields are
933        /// omitted from the trace, including the coordinates of pointer events and
934        /// the key/scan codes of key events.
935        Redacted = 1,
936        /// Trace the complete event.
937        Complete = 2,
938    }
939    impl TraceLevel {
940        /// String value of the enum field names used in the ProtoBuf definition.
941        ///
942        /// The values are not transformed in any way and thus are considered stable
943        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
944        pub fn as_str_name(&self) -> &'static str {
945            match self {
946                TraceLevel::None => "TRACE_LEVEL_NONE",
947                TraceLevel::Redacted => "TRACE_LEVEL_REDACTED",
948                TraceLevel::Complete => "TRACE_LEVEL_COMPLETE",
949            }
950        }
951    }
952}
953/// Values from NDK's android/log.h.
954#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
955#[repr(i32)]
956pub enum AndroidLogId {
957    /// MAIN.
958    LidDefault = 0,
959    LidRadio = 1,
960    LidEvents = 2,
961    LidSystem = 3,
962    LidCrash = 4,
963    LidStats = 5,
964    LidSecurity = 6,
965    LidKernel = 7,
966}
967impl AndroidLogId {
968    /// String value of the enum field names used in the ProtoBuf definition.
969    ///
970    /// The values are not transformed in any way and thus are considered stable
971    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
972    pub fn as_str_name(&self) -> &'static str {
973        match self {
974            AndroidLogId::LidDefault => "LID_DEFAULT",
975            AndroidLogId::LidRadio => "LID_RADIO",
976            AndroidLogId::LidEvents => "LID_EVENTS",
977            AndroidLogId::LidSystem => "LID_SYSTEM",
978            AndroidLogId::LidCrash => "LID_CRASH",
979            AndroidLogId::LidStats => "LID_STATS",
980            AndroidLogId::LidSecurity => "LID_SECURITY",
981            AndroidLogId::LidKernel => "LID_KERNEL",
982        }
983    }
984}
985#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
986#[repr(i32)]
987pub enum AndroidLogPriority {
988    PrioUnspecified = 0,
989    /// _DEFAULT, but should never be seen in logs.
990    PrioUnused = 1,
991    PrioVerbose = 2,
992    PrioDebug = 3,
993    PrioInfo = 4,
994    PrioWarn = 5,
995    PrioError = 6,
996    PrioFatal = 7,
997}
998impl AndroidLogPriority {
999    /// String value of the enum field names used in the ProtoBuf definition.
1000    ///
1001    /// The values are not transformed in any way and thus are considered stable
1002    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1003    pub fn as_str_name(&self) -> &'static str {
1004        match self {
1005            AndroidLogPriority::PrioUnspecified => "PRIO_UNSPECIFIED",
1006            AndroidLogPriority::PrioUnused => "PRIO_UNUSED",
1007            AndroidLogPriority::PrioVerbose => "PRIO_VERBOSE",
1008            AndroidLogPriority::PrioDebug => "PRIO_DEBUG",
1009            AndroidLogPriority::PrioInfo => "PRIO_INFO",
1010            AndroidLogPriority::PrioWarn => "PRIO_WARN",
1011            AndroidLogPriority::PrioError => "PRIO_ERROR",
1012            AndroidLogPriority::PrioFatal => "PRIO_FATAL",
1013        }
1014    }
1015}
1016#[derive(Clone, PartialEq, ::prost::Message)]
1017pub struct AndroidLogConfig {
1018    #[prost(enumeration="AndroidLogId", repeated, packed="false", tag="1")]
1019    pub log_ids: ::prost::alloc::vec::Vec<i32>,
1020    /// If set ignores all log messages whose prio is < the given value.
1021    #[prost(enumeration="AndroidLogPriority", optional, tag="3")]
1022    pub min_prio: ::core::option::Option<i32>,
1023    /// If non-empty ignores all log messages whose tag doesn't match one of the
1024    /// specified values.
1025    #[prost(string, repeated, tag="4")]
1026    pub filter_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1027}
1028/// Data source that polls for display state. This should only be used for
1029/// backward-compatibility; AndroidSystemPropertyConfig should be preferred.
1030#[derive(Clone, PartialEq, ::prost::Message)]
1031pub struct AndroidPolledStateConfig {
1032    /// Frequency of polling. If absent the state will be recorded once, at the
1033    /// start of the trace.
1034    /// This is required to be > 100ms to avoid excessive CPU usage.
1035    #[prost(uint32, optional, tag="1")]
1036    pub poll_ms: ::core::option::Option<u32>,
1037}
1038/// Data source that polls for system properties.
1039#[derive(Clone, PartialEq, ::prost::Message)]
1040pub struct AndroidSystemPropertyConfig {
1041    /// Frequency of polling. If absent the state will be recorded once, at the
1042    /// start of the trace.
1043    /// This is required to be > 100ms to avoid excessive CPU usage.
1044    #[prost(uint32, optional, tag="1")]
1045    pub poll_ms: ::core::option::Option<u32>,
1046    /// Properties to poll. All property names must start with "debug.tracing.".
1047    #[prost(string, repeated, tag="2")]
1048    pub property_name: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1049}
1050/// Data source that controls the system properties used to guard initialization
1051/// of track_event producers (i.e. Skia) in apps using HWUI, and certain
1052/// processes like SurfaceFlinger.
1053///
1054/// This data source only tells Skia to initialized the Perfetto SDK and start
1055/// routing data to the Track Event system instead of ATrace. For those events
1056/// to actually show up in a trace, the track_event data source must be used as
1057/// well. The Perfetto SDK cannot be de-initialized, so some long-lived apps and
1058/// processes may need to be restarted for Skia to revert to using ATrace if
1059/// Track Events are no longer desired.
1060///
1061/// In addition to switching Skia to use Perfetto's track_event data source,
1062/// this "guard" also controls Skia's "broad tracing", which removes Skia's
1063/// internal tracing constraints and allows the track_event config to specify
1064/// which categories should be traced. Filtering to the "skia.always" category
1065/// *tag* in a track_event config can be used to re-enable the standard
1066/// constraints typically used with ATrace.
1067///
1068/// Data source name: android.sdk_sysprop_guard
1069/// Introduced in Android 14 (U) QPR1.
1070/// Next id: 4
1071#[derive(Clone, PartialEq, ::prost::Message)]
1072pub struct AndroidSdkSyspropGuardConfig {
1073    /// If true, configures SurfaceFlinger to initialize Skia's Perfetto
1074    /// integration with the track_event data source in RenderEngine.
1075    /// If false or omitted, the simpler ATrace fallback is used.
1076    ///
1077    /// NOTE: once enabled, Skia will only revert to ATrace if SurfaceFlinger is
1078    /// restarted.
1079    ///
1080    /// Specifically this sets the following system properties:
1081    ///    - debug.tracing.ctl.renderengine.skia_tracing_enabled
1082    ///    - debug.tracing.ctl.renderengine.skia_use_perfetto_track_events
1083    ///
1084    /// Does not affect actual track_event data *collection*, which must be
1085    /// configured separately.
1086    #[prost(bool, optional, tag="1")]
1087    pub surfaceflinger_skia_track_events: ::core::option::Option<bool>,
1088    /// If true, configures HWUI apps to initialize Skia's Perfetto integration
1089    /// with the track_event data source. hwui_package_name_filter
1090    /// can be used to control which apps are affected.
1091    /// If false or omitted, the simpler ATrace fallback is used.
1092    ///
1093    /// NOTE: once enabled, Skia will only revert to ATrace if the app is
1094    /// restarted.
1095    ///
1096    /// ATTENTION: affects ALL HWUI APPS if hwui_package_name_filter is not set!
1097    /// If filtering is NOT set, this controls these GLOBAL system properties:
1098    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled
1099    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events
1100    /// If filtering IS set, this controls these APP-SPECIFIC system properties,
1101    /// for each package listed in the filter:
1102    ///    - debug.tracing.ctl.hwui.skia_tracing_enabled.<package.name>
1103    ///    - debug.tracing.ctl.hwui.skia_use_perfetto_track_events.<package.name>
1104    ///
1105    /// Does not affect actual track_event data *collection*, which must be
1106    /// configured separately.
1107    #[prost(bool, optional, tag="2")]
1108    pub hwui_skia_track_events: ::core::option::Option<bool>,
1109    /// If non-empty, hwui_skia_track_events applies to only the packages listed.
1110    /// Otherwise, hwui_skia_track_events applies globally to all HWUI apps.
1111    #[prost(string, repeated, tag="3")]
1112    pub hwui_package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1113}
1114/// Configuration for the android.app_wakelocks data source.
1115#[derive(Clone, PartialEq, ::prost::Message)]
1116pub struct AppWakelocksConfig {
1117    /// Specifies the delay (in milliseconds) after which the data source will
1118    /// attempt to write events. Writing less frequently reduces the trace size by
1119    /// making better use of the packed arrays and reducing the total number of
1120    /// TracePackets needed (which each have dozens of bytes of overhead). The
1121    /// suggested delay is 5000ms.
1122    #[prost(int32, optional, tag="1")]
1123    pub write_delay_ms: ::core::option::Option<i32>,
1124    /// When set, wakelocks held for less than this amount of time are filtered
1125    /// from the resulting trace. Note: duration is computed by matching wakelocks
1126    /// with identical attributes, not by tracking the underlying objects. The
1127    /// threshold should be < the trace's flush_period_ms.
1128    #[prost(int32, optional, tag="2")]
1129    pub filter_duration_below_ms: ::core::option::Option<i32>,
1130    /// When true, the owner_pid is dropped from the resulting output, reducing the
1131    /// size of the interning tables.
1132    #[prost(bool, optional, tag="3")]
1133    pub drop_owner_pid: ::core::option::Option<bool>,
1134}
1135/// Data source that records CPU per UID data.
1136#[derive(Clone, PartialEq, ::prost::Message)]
1137pub struct CpuPerUidConfig {
1138    /// Record at this frequency.
1139    #[prost(uint32, optional, tag="1")]
1140    pub poll_ms: ::core::option::Option<u32>,
1141}
1142/// Data source that records kernel (and native) wakelock data.
1143#[derive(Clone, PartialEq, ::prost::Message)]
1144pub struct KernelWakelocksConfig {
1145    /// Record at this frequency.
1146    #[prost(uint32, optional, tag="1")]
1147    pub poll_ms: ::core::option::Option<u32>,
1148}
1149/// Network tracing data source that records details on all packets sent or
1150/// received by the network.
1151#[derive(Clone, PartialEq, ::prost::Message)]
1152pub struct NetworkPacketTraceConfig {
1153    /// Polling frequency in milliseconds. Network tracing writes to a fixed size
1154    /// ring buffer. The polling interval should be such that the ring buffer is
1155    /// unlikely to fill in that interval (or that filling is an acceptable risk).
1156    /// The minimum polling rate is 100ms (values below this are ignored).
1157    /// Introduced in Android 14 (U).
1158    #[prost(uint32, optional, tag="1")]
1159    pub poll_ms: ::core::option::Option<u32>,
1160    /// The aggregation_threshold is the number of packets at which an event will
1161    /// switch from per-packet details to aggregate details. For example, a value
1162    /// of 50 means that if a particular event (grouped by the unique combinations
1163    /// of metadata fields: {interface, direction, uid, etc}) has fewer than 50
1164    /// packets, the exact timestamp and length are recorded for each packet. If
1165    /// there were 50 or more packets in an event, it would only record the total
1166    /// duration, packets, and length. A value of zero or unspecified will always
1167    /// / record per-packet details. A value of 1 always records aggregate details.
1168    #[prost(uint32, optional, tag="2")]
1169    pub aggregation_threshold: ::core::option::Option<u32>,
1170    /// Specifies the maximum number of packet contexts to intern at a time. This
1171    /// prevents the interning table from growing too large and controls whether
1172    /// interning is enabled or disabled (a value of zero disables interning and
1173    /// is the default). When a data sources interning table reaches this amount,
1174    /// packet contexts will be inlined into NetworkPacketEvents.
1175    #[prost(uint32, optional, tag="3")]
1176    pub intern_limit: ::core::option::Option<u32>,
1177    /// The following fields specify whether certain fields should be dropped from
1178    /// the output. Dropping fields improves normalization results, reduces the
1179    /// size of the interning table, and slightly reduces event size.
1180    #[prost(bool, optional, tag="4")]
1181    pub drop_local_port: ::core::option::Option<bool>,
1182    #[prost(bool, optional, tag="5")]
1183    pub drop_remote_port: ::core::option::Option<bool>,
1184    #[prost(bool, optional, tag="6")]
1185    pub drop_tcp_flags: ::core::option::Option<bool>,
1186}
1187/// Data source that lists details (such as version code) about packages on an
1188/// Android device.
1189#[derive(Clone, PartialEq, ::prost::Message)]
1190pub struct PackagesListConfig {
1191    /// If not empty, emit info about only the following list of package names
1192    /// (exact match, no regex). Otherwise, emit info about all packages.
1193    #[prost(string, repeated, tag="1")]
1194    pub package_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1195    /// If present and non-zero, the data source will periodically poll for CPU
1196    /// use by packages and only emit results for those that it sees. If absent,
1197    /// the data source will emit results for all packages at startup. The package
1198    /// name filter applies either way.
1199    #[prost(uint32, optional, tag="2")]
1200    pub only_write_on_cpu_use_every_ms: ::core::option::Option<u32>,
1201}
1202/// Data source that records events from the modem.
1203#[derive(Clone, PartialEq, ::prost::Message)]
1204pub struct PixelModemConfig {
1205    #[prost(enumeration="pixel_modem_config::EventGroup", optional, tag="1")]
1206    pub event_group: ::core::option::Option<i32>,
1207    /// If set, record only events with these hashes.
1208    #[prost(int64, repeated, packed="false", tag="2")]
1209    pub pigweed_hash_allow_list: ::prost::alloc::vec::Vec<i64>,
1210    /// If set and allow_list is not set, deny events with these hashes.
1211    #[prost(int64, repeated, packed="false", tag="3")]
1212    pub pigweed_hash_deny_list: ::prost::alloc::vec::Vec<i64>,
1213}
1214/// Nested message and enum types in `PixelModemConfig`.
1215pub mod pixel_modem_config {
1216    /// Event group to record, as defined by the modem.
1217    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1218    #[repr(i32)]
1219    pub enum EventGroup {
1220        Unknown = 0,
1221        /// Events suitable for low bandwidth tracing only.
1222        LowBandwidth = 1,
1223        /// Events suitable for high and low bandwidth tracing.
1224        HighAndLowBandwidth = 2,
1225    }
1226    impl EventGroup {
1227        /// String value of the enum field names used in the ProtoBuf definition.
1228        ///
1229        /// The values are not transformed in any way and thus are considered stable
1230        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1231        pub fn as_str_name(&self) -> &'static str {
1232            match self {
1233                EventGroup::Unknown => "EVENT_GROUP_UNKNOWN",
1234                EventGroup::LowBandwidth => "EVENT_GROUP_LOW_BANDWIDTH",
1235                EventGroup::HighAndLowBandwidth => "EVENT_GROUP_HIGH_AND_LOW_BANDWIDTH",
1236            }
1237        }
1238    }
1239}
1240#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1241#[repr(i32)]
1242pub enum ProtoLogLevel {
1243    ProtologLevelUndefined = 0,
1244    ProtologLevelDebug = 1,
1245    ProtologLevelVerbose = 2,
1246    ProtologLevelInfo = 3,
1247    ProtologLevelWarn = 4,
1248    ProtologLevelError = 5,
1249    ProtologLevelWtf = 6,
1250}
1251impl ProtoLogLevel {
1252    /// String value of the enum field names used in the ProtoBuf definition.
1253    ///
1254    /// The values are not transformed in any way and thus are considered stable
1255    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1256    pub fn as_str_name(&self) -> &'static str {
1257        match self {
1258            ProtoLogLevel::ProtologLevelUndefined => "PROTOLOG_LEVEL_UNDEFINED",
1259            ProtoLogLevel::ProtologLevelDebug => "PROTOLOG_LEVEL_DEBUG",
1260            ProtoLogLevel::ProtologLevelVerbose => "PROTOLOG_LEVEL_VERBOSE",
1261            ProtoLogLevel::ProtologLevelInfo => "PROTOLOG_LEVEL_INFO",
1262            ProtoLogLevel::ProtologLevelWarn => "PROTOLOG_LEVEL_WARN",
1263            ProtoLogLevel::ProtologLevelError => "PROTOLOG_LEVEL_ERROR",
1264            ProtoLogLevel::ProtologLevelWtf => "PROTOLOG_LEVEL_WTF",
1265        }
1266    }
1267}
1268/// Custom configuration for the "android.protolog" data source.
1269/// ProtoLog is a logging mechanism that is intented to be more efficient than
1270/// logcat. This configures what logs to capture in the tracing instance.
1271#[derive(Clone, PartialEq, ::prost::Message)]
1272pub struct ProtoLogConfig {
1273    /// Specified the configurations for each of the logging groups. If none is
1274    /// specified for a group the defaults will be used.
1275    #[prost(message, repeated, tag="1")]
1276    pub group_overrides: ::prost::alloc::vec::Vec<ProtoLogGroup>,
1277    /// Specified what tracing mode to use for the tracing instance.
1278    #[prost(enumeration="proto_log_config::TracingMode", optional, tag="2")]
1279    pub tracing_mode: ::core::option::Option<i32>,
1280    /// If set, any message with log level higher than this level (inclusive) will
1281    /// be traced. Group overrides take precedence over this value.
1282    #[prost(enumeration="ProtoLogLevel", optional, tag="3")]
1283    pub default_log_from_level: ::core::option::Option<i32>,
1284}
1285/// Nested message and enum types in `ProtoLogConfig`.
1286pub mod proto_log_config {
1287    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1288    #[repr(i32)]
1289    pub enum TracingMode {
1290        /// When using the DEFAULT tracing mode, only log groups and levels specified
1291        /// in the group_overrides are traced.
1292        Default = 0,
1293        /// When using the ENABLE_ALL tracing mode, all log groups and levels are
1294        /// traced, unless specified in the group_overrides.
1295        EnableAll = 1,
1296    }
1297    impl TracingMode {
1298        /// String value of the enum field names used in the ProtoBuf definition.
1299        ///
1300        /// The values are not transformed in any way and thus are considered stable
1301        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1302        pub fn as_str_name(&self) -> &'static str {
1303            match self {
1304                TracingMode::Default => "DEFAULT",
1305                TracingMode::EnableAll => "ENABLE_ALL",
1306            }
1307        }
1308    }
1309}
1310#[derive(Clone, PartialEq, ::prost::Message)]
1311pub struct ProtoLogGroup {
1312    /// The ProtoLog group name this configuration entry applies to.
1313    #[prost(string, optional, tag="1")]
1314    pub group_name: ::core::option::Option<::prost::alloc::string::String>,
1315    /// Specify the level from which to start capturing protologs.
1316    /// e.g. if ProtoLogLevel.WARN is specified only warning, errors and fatal log
1317    /// message will be traced.
1318    #[prost(enumeration="ProtoLogLevel", optional, tag="2")]
1319    pub log_from: ::core::option::Option<i32>,
1320    /// When set to true we will collect the stacktrace for each protolog message
1321    /// in this group that we are tracing.
1322    #[prost(bool, optional, tag="3")]
1323    pub collect_stacktrace: ::core::option::Option<bool>,
1324}
1325/// Custom configuration for the "android.surfaceflinger.layers" data source.
1326#[derive(Clone, PartialEq, ::prost::Message)]
1327pub struct SurfaceFlingerLayersConfig {
1328    #[prost(enumeration="surface_flinger_layers_config::Mode", optional, tag="1")]
1329    pub mode: ::core::option::Option<i32>,
1330    #[prost(enumeration="surface_flinger_layers_config::TraceFlag", repeated, packed="false", tag="2")]
1331    pub trace_flags: ::prost::alloc::vec::Vec<i32>,
1332}
1333/// Nested message and enum types in `SurfaceFlingerLayersConfig`.
1334pub mod surface_flinger_layers_config {
1335    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1336    #[repr(i32)]
1337    pub enum Mode {
1338        Unspecified = 0,
1339        /// Trace layers snapshots. A snapshot is taken every time a layers change
1340        /// occurs.
1341        Active = 1,
1342        /// Generate layers snapshots from the transactions kept in the
1343        /// SurfaceFlinger's internal ring buffer.
1344        /// The layers snapshots generation occurs when this data source is flushed.
1345        Generated = 2,
1346        /// Trace a single layers snapshot.
1347        Dump = 3,
1348        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1349        /// Same as MODE_GENERATED, but triggers the layers snapshots generation only
1350        /// when a bugreport is taken.
1351        GeneratedBugreportOnly = 4,
1352    }
1353    impl Mode {
1354        /// String value of the enum field names used in the ProtoBuf definition.
1355        ///
1356        /// The values are not transformed in any way and thus are considered stable
1357        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1358        pub fn as_str_name(&self) -> &'static str {
1359            match self {
1360                Mode::Unspecified => "MODE_UNSPECIFIED",
1361                Mode::Active => "MODE_ACTIVE",
1362                Mode::Generated => "MODE_GENERATED",
1363                Mode::Dump => "MODE_DUMP",
1364                Mode::GeneratedBugreportOnly => "MODE_GENERATED_BUGREPORT_ONLY",
1365            }
1366        }
1367    }
1368    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1369    #[repr(i32)]
1370    pub enum TraceFlag {
1371        Unspecified = 0,
1372        Input = 2,
1373        Composition = 4,
1374        Extra = 8,
1375        Hwc = 16,
1376        Buffers = 32,
1377        VirtualDisplays = 64,
1378        /// INPUT | COMPOSITION | EXTRA
1379        All = 14,
1380    }
1381    impl TraceFlag {
1382        /// String value of the enum field names used in the ProtoBuf definition.
1383        ///
1384        /// The values are not transformed in any way and thus are considered stable
1385        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1386        pub fn as_str_name(&self) -> &'static str {
1387            match self {
1388                TraceFlag::Unspecified => "TRACE_FLAG_UNSPECIFIED",
1389                TraceFlag::Input => "TRACE_FLAG_INPUT",
1390                TraceFlag::Composition => "TRACE_FLAG_COMPOSITION",
1391                TraceFlag::Extra => "TRACE_FLAG_EXTRA",
1392                TraceFlag::Hwc => "TRACE_FLAG_HWC",
1393                TraceFlag::Buffers => "TRACE_FLAG_BUFFERS",
1394                TraceFlag::VirtualDisplays => "TRACE_FLAG_VIRTUAL_DISPLAYS",
1395                TraceFlag::All => "TRACE_FLAG_ALL",
1396            }
1397        }
1398    }
1399}
1400/// Custom configuration for the "android.surfaceflinger.transactions" data
1401/// source.
1402#[derive(Clone, PartialEq, ::prost::Message)]
1403pub struct SurfaceFlingerTransactionsConfig {
1404    #[prost(enumeration="surface_flinger_transactions_config::Mode", optional, tag="1")]
1405    pub mode: ::core::option::Option<i32>,
1406}
1407/// Nested message and enum types in `SurfaceFlingerTransactionsConfig`.
1408pub mod surface_flinger_transactions_config {
1409    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1410    #[repr(i32)]
1411    pub enum Mode {
1412        Unspecified = 0,
1413        /// Default mode (applied by SurfaceFlinger if no mode is specified).
1414        /// SurfaceFlinger writes its internal ring buffer of transactions every time
1415        /// the data source is flushed. The ring buffer contains the SurfaceFlinger's
1416        /// initial state and the latest transactions.
1417        Continuous = 1,
1418        /// SurfaceFlinger writes the initial state and then each incoming
1419        /// transaction until the data source is stopped.
1420        Active = 2,
1421    }
1422    impl Mode {
1423        /// String value of the enum field names used in the ProtoBuf definition.
1424        ///
1425        /// The values are not transformed in any way and thus are considered stable
1426        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1427        pub fn as_str_name(&self) -> &'static str {
1428            match self {
1429                Mode::Unspecified => "MODE_UNSPECIFIED",
1430                Mode::Continuous => "MODE_CONTINUOUS",
1431                Mode::Active => "MODE_ACTIVE",
1432            }
1433        }
1434    }
1435}
1436/// Custom configuration for the "android.windowmanager" data source.
1437#[derive(Clone, PartialEq, ::prost::Message)]
1438pub struct WindowManagerConfig {
1439    #[prost(enumeration="window_manager_config::LogFrequency", optional, tag="1")]
1440    pub log_frequency: ::core::option::Option<i32>,
1441    #[prost(enumeration="window_manager_config::LogLevel", optional, tag="2")]
1442    pub log_level: ::core::option::Option<i32>,
1443}
1444/// Nested message and enum types in `WindowManagerConfig`.
1445pub mod window_manager_config {
1446    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1447    #[repr(i32)]
1448    pub enum LogFrequency {
1449        Unspecified = 0,
1450        /// Trace state snapshots when a frame is committed.
1451        Frame = 1,
1452        /// Trace state snapshots every time a transaction is committed.
1453        Transaction = 2,
1454        /// Trace single state snapshots when the data source is started.
1455        SingleDump = 3,
1456    }
1457    impl LogFrequency {
1458        /// String value of the enum field names used in the ProtoBuf definition.
1459        ///
1460        /// The values are not transformed in any way and thus are considered stable
1461        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1462        pub fn as_str_name(&self) -> &'static str {
1463            match self {
1464                LogFrequency::Unspecified => "LOG_FREQUENCY_UNSPECIFIED",
1465                LogFrequency::Frame => "LOG_FREQUENCY_FRAME",
1466                LogFrequency::Transaction => "LOG_FREQUENCY_TRANSACTION",
1467                LogFrequency::SingleDump => "LOG_FREQUENCY_SINGLE_DUMP",
1468            }
1469        }
1470    }
1471    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1472    #[repr(i32)]
1473    pub enum LogLevel {
1474        Unspecified = 0,
1475        /// Logs all elements with maximum amount of information.
1476        Verbose = 1,
1477        /// Logs all elements but doesn't write all configuration data.
1478        Debug = 2,
1479        /// Logs only visible elements, with the minimum amount of performance
1480        /// overhead
1481        Critical = 3,
1482    }
1483    impl LogLevel {
1484        /// String value of the enum field names used in the ProtoBuf definition.
1485        ///
1486        /// The values are not transformed in any way and thus are considered stable
1487        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1488        pub fn as_str_name(&self) -> &'static str {
1489            match self {
1490                LogLevel::Unspecified => "LOG_LEVEL_UNSPECIFIED",
1491                LogLevel::Verbose => "LOG_LEVEL_VERBOSE",
1492                LogLevel::Debug => "LOG_LEVEL_DEBUG",
1493                LogLevel::Critical => "LOG_LEVEL_CRITICAL",
1494            }
1495        }
1496    }
1497}
1498#[derive(Clone, PartialEq, ::prost::Message)]
1499pub struct ChromeConfig {
1500    #[prost(string, optional, tag="1")]
1501    pub trace_config: ::core::option::Option<::prost::alloc::string::String>,
1502    /// When enabled, the data source should only fill in fields in the output that
1503    /// are not potentially privacy sensitive.
1504    #[prost(bool, optional, tag="2")]
1505    pub privacy_filtering_enabled: ::core::option::Option<bool>,
1506    /// Instead of emitting binary protobuf, convert the trace data to the legacy
1507    /// JSON format. Note that the trace data will still be returned as a series of
1508    /// TracePackets, but the embedded data will be JSON instead of serialized
1509    /// protobuf.
1510    #[prost(bool, optional, tag="3")]
1511    pub convert_to_legacy_json: ::core::option::Option<bool>,
1512    #[prost(enumeration="chrome_config::ClientPriority", optional, tag="4")]
1513    pub client_priority: ::core::option::Option<i32>,
1514    /// Applicable only when using legacy JSON format.
1515    /// If |json_agent_label_filter| is not empty, only data pertaining to
1516    /// the specified tracing agent label (e.g. "traceEvents") will be returned.
1517    #[prost(string, optional, tag="5")]
1518    pub json_agent_label_filter: ::core::option::Option<::prost::alloc::string::String>,
1519    ///   When enabled, event names should not contain package names.
1520    #[prost(bool, optional, tag="6")]
1521    pub event_package_name_filter_enabled: ::core::option::Option<bool>,
1522}
1523/// Nested message and enum types in `ChromeConfig`.
1524pub mod chrome_config {
1525    /// Priority of the tracing session client. A higher priority session may
1526    /// preempt a lower priority one in configurations where concurrent sessions
1527    /// aren't supported.
1528    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1529    #[repr(i32)]
1530    pub enum ClientPriority {
1531        Unknown = 0,
1532        Background = 1,
1533        UserInitiated = 2,
1534    }
1535    impl ClientPriority {
1536        /// String value of the enum field names used in the ProtoBuf definition.
1537        ///
1538        /// The values are not transformed in any way and thus are considered stable
1539        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1540        pub fn as_str_name(&self) -> &'static str {
1541            match self {
1542                ClientPriority::Unknown => "UNKNOWN",
1543                ClientPriority::Background => "BACKGROUND",
1544                ClientPriority::UserInitiated => "USER_INITIATED",
1545            }
1546        }
1547    }
1548}
1549#[derive(Clone, PartialEq, ::prost::Message)]
1550pub struct V8Config {
1551    /// Whether to log the actual content of scripts (e.g. content of the JS file
1552    /// that was compiled to generate code).
1553    /// ATTENTION: This could considerably increase the size of the resuling trace
1554    ///             file.
1555    #[prost(bool, optional, tag="1")]
1556    pub log_script_sources: ::core::option::Option<bool>,
1557    /// Whether to log the generated code for jitted functions (machine code or
1558    /// bytecode).
1559    /// ATTENTION: This could considerably increase the size of the resuling trace
1560    ///             file.
1561    #[prost(bool, optional, tag="2")]
1562    pub log_instructions: ::core::option::Option<bool>,
1563}
1564/// Proto definition based on the struct _EVENT_TRACE_PROPERTIES definition
1565/// See: <https://learn.microsoft.com/en-us/windows/win32/api/evntrace/>
1566/// ns-evntrace-event_trace_properties
1567#[derive(Clone, PartialEq, ::prost::Message)]
1568pub struct EtwConfig {
1569    /// The kernel_flags determines the flags that will be used by the etw tracing
1570    /// session. These kernel flags have been built to expose the useful events
1571    /// captured from the kernel mode only.
1572    #[prost(enumeration="etw_config::KernelFlag", repeated, packed="false", tag="1")]
1573    pub kernel_flags: ::prost::alloc::vec::Vec<i32>,
1574    // See the list of keywords for for individual providers.
1575    // <https://learn.microsoft.com/en-us/windows/win32/etw/system-providers>
1576
1577    /// Provides events relating to the scheduler.
1578    #[prost(string, repeated, tag="2")]
1579    pub scheduler_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1580    /// Provides events relating to the memory manager.
1581    #[prost(string, repeated, tag="3")]
1582    pub memory_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1583    /// Provides events relating to file I/O.
1584    #[prost(string, repeated, tag="4")]
1585    pub file_provider_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1586}
1587/// Nested message and enum types in `EtwConfig`.
1588pub mod etw_config {
1589    /// The KernelFlag represent list of kernel flags that we are intrested in.
1590    /// To get a more extensive list run 'xperf -providers k'.
1591    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1592    #[repr(i32)]
1593    pub enum KernelFlag {
1594        Cswitch = 0,
1595        Dispatcher = 1,
1596    }
1597    impl KernelFlag {
1598        /// String value of the enum field names used in the ProtoBuf definition.
1599        ///
1600        /// The values are not transformed in any way and thus are considered stable
1601        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1602        pub fn as_str_name(&self) -> &'static str {
1603            match self {
1604                KernelFlag::Cswitch => "CSWITCH",
1605                KernelFlag::Dispatcher => "DISPATCHER",
1606            }
1607        }
1608    }
1609}
1610#[derive(Clone, PartialEq, ::prost::Message)]
1611pub struct ChromiumSystemMetricsConfig {
1612    /// Samples counters every X ms.
1613    #[prost(uint32, optional, tag="1")]
1614    pub sampling_interval_ms: ::core::option::Option<u32>,
1615}
1616/// Next id: 38
1617#[derive(Clone, PartialEq, ::prost::Message)]
1618pub struct FtraceConfig {
1619    /// Ftrace events to record, example: "sched/sched_switch".
1620    #[prost(string, repeated, tag="1")]
1621    pub ftrace_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1622    /// Android-specific event categories:
1623    #[prost(string, repeated, tag="2")]
1624    pub atrace_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1625    #[prost(string, repeated, tag="3")]
1626    pub atrace_apps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1627    /// Some processes can emit data through atrace or through the perfetto SDK via
1628    /// the "track_event" data source. For these categories, the SDK will be
1629    /// preferred, if possible, for this config.
1630    #[prost(string, repeated, tag="28")]
1631    pub atrace_categories_prefer_sdk: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1632    /// If true, do *not* add in extra ftrace events when |atrace_categories| are
1633    /// set. This skips the legacy "atrace" behaviour of adding hardcoded ftrace
1634    /// events for convenience (and the vendor-specific events on top).
1635    /// Introduced in: perfetto v52.
1636    #[prost(bool, optional, tag="34")]
1637    pub atrace_userspace_only: ::core::option::Option<bool>,
1638    /// Size of each per-cpu kernel ftrace ring buffer.
1639    /// Not guaranteed if there are multiple concurrent tracing sessions, as the
1640    /// buffers cannot be resized without pausing recording in the kernel.
1641    #[prost(uint32, optional, tag="10")]
1642    pub buffer_size_kb: ::core::option::Option<u32>,
1643    /// If true, |buffer_size_kb| is interpreted as a lower bound, allowing the
1644    /// implementation to choose a bigger buffer size.
1645    ///
1646    /// Most configs for perfetto v43+ should simply leave both fields unset.
1647    ///
1648    /// If you need a config compatible with a range of perfetto builds and you
1649    /// used to set a non-default buffer_size_kb, consider setting both fields.
1650    /// Example:
1651    ///    buffer_size_kb: 4096
1652    ///    buffer_size_lower_bound: true
1653    /// On older builds, the per-cpu buffers will be exactly 4 MB.
1654    /// On v43+, buffers will be at least 4 MB.
1655    /// In both cases, neither is guaranteed if there are other concurrent
1656    /// perfetto ftrace sessions, as the buffers cannot be resized without pausing
1657    /// the recording in the kernel.
1658    /// Introduced in: perfetto v43.
1659    #[prost(bool, optional, tag="27")]
1660    pub buffer_size_lower_bound: ::core::option::Option<bool>,
1661    /// If set, specifies how often the tracing daemon reads from the kernel ring
1662    /// buffer. Not guaranteed if there are multiple concurrent tracing sessions.
1663    /// Leave unset unless you're fine-tuning a local config.
1664    #[prost(uint32, optional, tag="11")]
1665    pub drain_period_ms: ::core::option::Option<u32>,
1666    /// If set, the tracing daemon will read kernel ring buffers as soon as
1667    /// they're filled past this percentage of occupancy. In other words, a value
1668    /// of 50 means that a read pass is triggered as soon as any per-cpu buffer is
1669    /// half-full. Not guaranteed if there are multiple concurrent tracing
1670    /// sessions.
1671    /// Currently does nothing on Linux kernels below v6.9.
1672    /// Introduced in: perfetto v48.
1673    #[prost(uint32, optional, tag="29")]
1674    pub drain_buffer_percent: ::core::option::Option<u32>,
1675    #[prost(message, optional, tag="12")]
1676    pub compact_sched: ::core::option::Option<ftrace_config::CompactSchedConfig>,
1677    #[prost(message, optional, tag="22")]
1678    pub print_filter: ::core::option::Option<ftrace_config::PrintFilter>,
1679    /// Enables symbol name resolution against /proc/kallsyms.
1680    /// It requires that either traced_probes is running as root or that
1681    /// kptr_restrict has been manually lowered.
1682    /// It does not disclose KASLR, symbol addresses are mangled.
1683    #[prost(bool, optional, tag="13")]
1684    pub symbolize_ksyms: ::core::option::Option<bool>,
1685    #[prost(enumeration="ftrace_config::KsymsMemPolicy", optional, tag="17")]
1686    pub ksyms_mem_policy: ::core::option::Option<i32>,
1687    /// When this boolean is true AND the ftrace_events contains "kmem/rss_stat",
1688    /// this option causes traced_probes to enable the "kmem/rss_stat_throttled"
1689    /// event instead if present, and fall back to "kmem/rss_stat" if not present.
1690    /// The historical context for this is the following:
1691    /// - Up to Android S (12), the rss_stat was internally throttled in its
1692    ///    kernel implementation.
1693    /// - A change introduced in the kernels after S has introduced a new
1694    ///    "rss_stat_throttled" making the original "rss_stat" event unthrottled
1695    ///    (hence very spammy).
1696    /// - Not all Android T/13 devices will receive a new kernel though, hence we
1697    ///    need to deal with both cases.
1698    /// For more context: go/rss-stat-throttled.
1699    #[prost(bool, optional, tag="15")]
1700    pub throttle_rss_stat: ::core::option::Option<bool>,
1701    /// If true, use self-describing proto messages when writing events not known
1702    /// at compile time (aka generic events). Each event bundle will have a set of
1703    /// serialised proto descriptors for events within that bundle.
1704    ///
1705    /// Default if unset:
1706    /// * v53+: true
1707    /// * before v53: false
1708    ///
1709    /// Added in: perfetto v50.
1710    #[prost(bool, optional, tag="32")]
1711    pub denser_generic_event_encoding: ::core::option::Option<bool>,
1712    /// If true, avoid enabling events that aren't statically known by
1713    /// traced_probes. Otherwise, the default is to emit such events as
1714    /// GenericFtraceEvent protos.
1715    /// Prefer to keep this flag at its default. This was added for Android
1716    /// tracing, where atrace categories and/or atrace HAL requested events can
1717    /// expand to events that aren't of interest to the tracing user.
1718    /// Introduced in: Android T.
1719    #[prost(bool, optional, tag="16")]
1720    pub disable_generic_events: ::core::option::Option<bool>,
1721    /// The subset of syscalls to record. To record all syscalls, leave this unset
1722    /// and add "ftrace_events: raw_syscalls/sys_{enter,exit}" to the config.
1723    /// * before perfetto v43, requires the config to also enable
1724    ///    raw_syscalls/sys_{enter,exit}.
1725    /// * perfetto v43+ does the right thing if you set only this field.
1726    /// Example: ["sys_read", "sys_open"].
1727    /// Introduced in: Android U.
1728    #[prost(string, repeated, tag="18")]
1729    pub syscall_events: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1730    /// If true, enable the "function_graph" kernel tracer that emits events
1731    /// whenever a kernel function is entered and exited
1732    /// (funcgraph_entry/funcgraph_exit).
1733    /// Notes on use:
1734    /// * Requires |symbolize_ksyms| for function name resolution.
1735    /// * Use |function_filters| or |function_graph_roots| to constrain the traced
1736    ///    set of functions, otherwise the event bandwidth will be too high for
1737    ///    practical use.
1738    /// * The data source might be rejected if there is already a concurrent
1739    ///    ftrace data source that does not use function graph itself, as we do not
1740    ///    support switching kernel tracers mid-trace.
1741    /// * Requires a kernel compiled with CONFIG_FUNCTION_GRAPH_TRACER. This is
1742    ///    enabled if "cat /sys/kernel/tracing/available_tracers" includes
1743    ///    "function_graph".
1744    /// Android:
1745    /// * Available only on debuggable builds.
1746    /// * Introduced in: Android U.
1747    #[prost(bool, optional, tag="19")]
1748    pub enable_function_graph: ::core::option::Option<bool>,
1749    /// Constrains the set of functions traced when |enable_function_graph| is
1750    /// true. Supports globs, e.g. "sched*". You can specify multiple filters,
1751    /// in which case all matching functions will be traced. See kernel
1752    /// documentation on ftrace "set_ftrace_filter" file for more details.
1753    /// Android:
1754    /// * Available only on debuggable builds.
1755    /// * Introduced in: Android U.
1756    #[prost(string, repeated, tag="20")]
1757    pub function_filters: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1758    /// If |enable_function_graph| is true, trace this set of functions *and* all
1759    /// of its callees. Supports globs. Can be set together with
1760    /// |function_filters|, in which case only callees matching the filter will be
1761    /// traced. If setting both, you most likely want all roots to also be
1762    /// included in |function_filters|.
1763    /// Android:
1764    /// * Available only on debuggable builds.
1765    /// * Introduced in: Android U.
1766    #[prost(string, repeated, tag="21")]
1767    pub function_graph_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
1768    /// If |enable_function_graph| is true, only trace the specified
1769    /// number of calls down the stack. Sets the max_graph_depth value
1770    /// in sys/kernel/tracing/
1771    ///
1772    /// Only respected for the first tracing session that enables
1773    /// function_graph tracing.
1774    ///
1775    /// Introduced in: perfetto v51.
1776    /// Supported on: Android 25Q3+.
1777    #[prost(uint32, optional, tag="33")]
1778    pub function_graph_max_depth: ::core::option::Option<u32>,
1779    /// Ftrace events to record, specific for kprobes and kretprobes
1780    #[prost(message, repeated, tag="30")]
1781    pub kprobe_events: ::prost::alloc::vec::Vec<ftrace_config::KprobeEvent>,
1782    /// If true, does not clear kernel ftrace buffers when starting the trace.
1783    /// This makes sense only if this is the first ftrace data source instance
1784    /// created after the daemon has been started. Can be useful for gathering boot
1785    /// traces, if ftrace has been separately configured (e.g. via kernel
1786    /// commandline).
1787    /// NB: when configuring the pre-perfetto ftrace, prefer to set
1788    /// "/sys/kernel/tracing/trace_clock" to "boot" if your trace will contain
1789    /// anything besides ftrace. Otherwise timestamps might be skewed.
1790    #[prost(bool, optional, tag="23")]
1791    pub preserve_ftrace_buffer: ::core::option::Option<bool>,
1792    /// If true, overrides the default timestamp clock and uses a raw hardware
1793    /// based monotonic clock for getting timestamps.
1794    /// * Introduced in: Android U.
1795    #[prost(bool, optional, tag="24")]
1796    pub use_monotonic_raw_clock: ::core::option::Option<bool>,
1797    /// If |instance_name| is not empty, then attempt to use that tracefs instance
1798    /// for event recording. Normally, this means
1799    /// `/sys/kernel/tracing/instances/$instance_name`.
1800    ///
1801    /// Names "hyp" and "hypervisor" are reserved.
1802    ///
1803    /// The instance must already exist, the tracing daemon *will not* create it
1804    /// for you as it typically doesn't have such permissions.
1805    /// Only a subset of features is guaranteed to work with non-default instances,
1806    /// at the time of writing:
1807    ///   * ftrace_events
1808    ///   * buffer_size_kb
1809    #[prost(string, optional, tag="25")]
1810    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
1811    /// For perfetto developer use. If true and on a debuggable android build,
1812    /// serialise raw tracing pages that the implementation cannot parse.
1813    #[prost(bool, optional, tag="31")]
1814    pub debug_ftrace_abi: ::core::option::Option<bool>,
1815    // =================================================
1816    // Exclusive single-tenant features: HERE BE DRAGONS
1817    // =================================================
1818    // The features below are considered "advanced" and require an exclusive
1819    // tracing session (as of Android 25Q3+ and Perfetto v52).
1820    //
1821    // These features directly manipulate the kernel's global ftrace state and
1822    // are incompatible with concurrent ftrace sessions. They are only enabled
1823    // if included in the *first* ftrace data source configured. Subsequent
1824    // ftrace data sources (even those not using advanced features) will be
1825    // rejected while a session with these features is active.
1826    //
1827    // To run the session in exclusive mode, see:
1828    // <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
1829
1830    /// Filter ftrace events by Thread ID (TID).
1831    /// This writes the TIDs to `/sys/kernel/tracing/set_event_pid`.
1832    ///
1833    /// Note: this is an exclusive feature, see:
1834    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
1835    ///
1836    /// Introduced in: perfetto v52.
1837    /// Supported on: Android 25Q3+.
1838    #[prost(uint32, repeated, packed="false", tag="35")]
1839    pub tids_to_trace: ::prost::alloc::vec::Vec<u32>,
1840    #[prost(message, repeated, tag="36")]
1841    pub tracefs_options: ::prost::alloc::vec::Vec<ftrace_config::TracefsOption>,
1842    /// This mask restricts tracing to a specific set of CPUs using a
1843    /// comma-separated hex mask. Each hex number (up to 8 digits) represents a
1844    /// 32-bit chunk of the CPU mask.
1845    ///
1846    /// The chunks are ordered from high CPUs to low CPUs (left to right):
1847    ///    - Rightmost chunk: CPUs 0-31
1848    ///    - 2nd chunk from right: CPUs 32-63
1849    ///    - ...and so on.
1850    ///
1851    /// Example (assuming NR_CPUS=128, requiring 4 chunks):
1852    /// The full mask would be in the format: "chunk3,chunk2,chunk1,chunk0"
1853    /// where chunk3 maps to CPUs 96-127, chunk2 to 64-95, chunk1 to 32-63, and
1854    /// chunk0 to 0-31.
1855    ///    - "ffffffff,0,0,0": Enables CPUs 96-127 only.
1856    ///    - "f,ff": Enables CPUs 0-7 (from "ff") and CPUs 32-35 (from "f").
1857    ///
1858    /// Note: This is an exclusive feature, see:
1859    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
1860    ///
1861    /// Introduced in: perfetto v52.
1862    /// Supported on: Android 25Q3+.
1863    #[prost(string, optional, tag="37")]
1864    pub tracing_cpumask: ::core::option::Option<::prost::alloc::string::String>,
1865    /// No-op in perfetto v28+. Name preserved because of existing references in
1866    /// textproto configs.
1867    #[deprecated]
1868    #[prost(bool, optional, tag="14")]
1869    pub initialize_ksyms_synchronously_for_testing: ::core::option::Option<bool>,
1870}
1871/// Nested message and enum types in `FtraceConfig`.
1872pub mod ftrace_config {
1873    /// Configuration for compact encoding of scheduler events. When enabled (and
1874    /// recording the relevant ftrace events), specific high-volume events are
1875    /// encoded in a denser format than normal.
1876    #[derive(Clone, PartialEq, ::prost::Message)]
1877    pub struct CompactSchedConfig {
1878        /// If true, and sched_switch or sched_waking ftrace events are enabled,
1879        /// record those events in the compact format.
1880        ///
1881        /// If the field is unset, the default is:
1882        /// * perfetto v42.0+: enabled
1883        /// * before: disabled
1884        #[prost(bool, optional, tag="1")]
1885        pub enabled: ::core::option::Option<bool>,
1886    }
1887    /// Optional filter for "ftrace/print" events.
1888    ///
1889    /// The filter consists of multiple rules. As soon as a rule matches (the rules
1890    /// are processed in order), its `allow` field will be used as the outcome: if
1891    /// `allow` is true, the event will be included in the trace, otherwise it will
1892    /// be discarded. If an event does not match any rule, it will be allowed by
1893    /// default (a rule with an empty prefix and allow=false, disallows everything
1894    /// by default).
1895    #[derive(Clone, PartialEq, ::prost::Message)]
1896    pub struct PrintFilter {
1897        #[prost(message, repeated, tag="1")]
1898        pub rules: ::prost::alloc::vec::Vec<print_filter::Rule>,
1899    }
1900    /// Nested message and enum types in `PrintFilter`.
1901    pub mod print_filter {
1902        #[derive(Clone, PartialEq, ::prost::Message)]
1903        pub struct Rule {
1904            #[prost(bool, optional, tag="2")]
1905            pub allow: ::core::option::Option<bool>,
1906            #[prost(oneof="rule::Match", tags="1, 3")]
1907            pub r#match: ::core::option::Option<rule::Match>,
1908        }
1909        /// Nested message and enum types in `Rule`.
1910        pub mod rule {
1911            /// Matches an atrace message of the form:
1912            /// <type>|pid|<prefix>...
1913            #[derive(Clone, PartialEq, ::prost::Message)]
1914            pub struct AtraceMessage {
1915                #[prost(string, optional, tag="1")]
1916                pub r#type: ::core::option::Option<::prost::alloc::string::String>,
1917                #[prost(string, optional, tag="2")]
1918                pub prefix: ::core::option::Option<::prost::alloc::string::String>,
1919            }
1920            #[derive(Clone, PartialEq, ::prost::Oneof)]
1921            pub enum Match {
1922                /// This rule matches if `prefix` matches exactly with the beginning of
1923                /// the "ftrace/print" "buf" field.
1924                #[prost(string, tag="1")]
1925                Prefix(::prost::alloc::string::String),
1926                /// This rule matches if the "buf" field contains an atrace-style print
1927                /// message as specified in `atrace_msg`.
1928                #[prost(message, tag="3")]
1929                AtraceMsg(AtraceMessage),
1930            }
1931        }
1932    }
1933    #[derive(Clone, PartialEq, ::prost::Message)]
1934    pub struct KprobeEvent {
1935        /// Kernel function name to attach to, for example "fuse_file_write_iter"
1936        #[prost(string, optional, tag="1")]
1937        pub probe: ::core::option::Option<::prost::alloc::string::String>,
1938        #[prost(enumeration="kprobe_event::KprobeType", optional, tag="2")]
1939        pub r#type: ::core::option::Option<i32>,
1940    }
1941    /// Nested message and enum types in `KprobeEvent`.
1942    pub mod kprobe_event {
1943        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1944        #[repr(i32)]
1945        pub enum KprobeType {
1946            Unknown = 0,
1947            Kprobe = 1,
1948            Kretprobe = 2,
1949            Both = 3,
1950        }
1951        impl KprobeType {
1952            /// String value of the enum field names used in the ProtoBuf definition.
1953            ///
1954            /// The values are not transformed in any way and thus are considered stable
1955            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
1956            pub fn as_str_name(&self) -> &'static str {
1957                match self {
1958                    KprobeType::Unknown => "KPROBE_TYPE_UNKNOWN",
1959                    KprobeType::Kprobe => "KPROBE_TYPE_KPROBE",
1960                    KprobeType::Kretprobe => "KPROBE_TYPE_KRETPROBE",
1961                    KprobeType::Both => "KPROBE_TYPE_BOTH",
1962                }
1963            }
1964        }
1965    }
1966    /// Tracefs options to set directly in the tracefs instance. This is a very
1967    /// niche feature since almost all of the options deal with formatting textual
1968    /// output (the /trace file), which perfetto doesn't use.
1969    ///
1970    /// The options with a known use-case:
1971    /// * event-fork: when using `tids_to_trace` above, the kernel will
1972    ///    automatically add newly spawned descendant threads to the set of TIDs.
1973    ///
1974    /// Full list of options is available at
1975    /// <https://docs.kernel.org/trace/ftrace.html#trace-options.>
1976    ///
1977    /// Note: this is an exclusive feature, see:
1978    /// <https://perfetto.dev/docs/learning-more/android#exclusive-tracing-sessions.>
1979    ///
1980    /// Introduced in: perfetto v52.
1981    /// Supported on: Android 25Q3+.
1982    #[derive(Clone, PartialEq, ::prost::Message)]
1983    pub struct TracefsOption {
1984        /// The name of the tracefs option as found in tracefs/trace_options (without
1985        /// the "no" prefix).
1986        #[prost(string, optional, tag="1")]
1987        pub name: ::core::option::Option<::prost::alloc::string::String>,
1988        #[prost(enumeration="tracefs_option::State", optional, tag="2")]
1989        pub state: ::core::option::Option<i32>,
1990    }
1991    /// Nested message and enum types in `TracefsOption`.
1992    pub mod tracefs_option {
1993        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
1994        #[repr(i32)]
1995        pub enum State {
1996            Unknown = 0,
1997            Enabled = 1,
1998            Disabled = 2,
1999        }
2000        impl State {
2001            /// String value of the enum field names used in the ProtoBuf definition.
2002            ///
2003            /// The values are not transformed in any way and thus are considered stable
2004            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2005            pub fn as_str_name(&self) -> &'static str {
2006                match self {
2007                    State::Unknown => "STATE_UNKNOWN",
2008                    State::Enabled => "STATE_ENABLED",
2009                    State::Disabled => "STATE_DISABLED",
2010                }
2011            }
2012        }
2013    }
2014    /// When symbolize_ksyms=true, determines whether the traced_probes daemon
2015    /// should keep the symbol map in memory (and reuse it for future tracing
2016    /// sessions) or clear it (saving memory) and re-create it on each tracing
2017    /// session (wasting cpu and wall time).
2018    /// The tradeoff is roughly:
2019    ///   KSYMS_RETAIN: pay a fixed ~1.2 MB cost after the first trace.
2020    ///   KSYMS_CLEANUP_ON_STOP: pay a ~300-500ms cost when starting each trace.
2021    /// Default behavior: KSYMS_CLEANUP_ON_STOP.
2022    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2023    #[repr(i32)]
2024    pub enum KsymsMemPolicy {
2025        KsymsUnspecified = 0,
2026        KsymsCleanupOnStop = 1,
2027        KsymsRetain = 2,
2028    }
2029    impl KsymsMemPolicy {
2030        /// String value of the enum field names used in the ProtoBuf definition.
2031        ///
2032        /// The values are not transformed in any way and thus are considered stable
2033        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2034        pub fn as_str_name(&self) -> &'static str {
2035            match self {
2036                KsymsMemPolicy::KsymsUnspecified => "KSYMS_UNSPECIFIED",
2037                KsymsMemPolicy::KsymsCleanupOnStop => "KSYMS_CLEANUP_ON_STOP",
2038                KsymsMemPolicy::KsymsRetain => "KSYMS_RETAIN",
2039            }
2040        }
2041    }
2042}
2043#[derive(Clone, PartialEq, ::prost::Message)]
2044pub struct FrozenFtraceConfig {
2045    /// The instance name which stores the previous boot ftrace data. Required.
2046    #[prost(string, optional, tag="1")]
2047    pub instance_name: ::core::option::Option<::prost::alloc::string::String>,
2048}
2049#[derive(Clone, PartialEq, ::prost::Message)]
2050pub struct GpuCounterConfig {
2051    /// Desired sampling interval for counters.
2052    #[prost(uint64, optional, tag="1")]
2053    pub counter_period_ns: ::core::option::Option<u64>,
2054    /// List of counters to be sampled. Counter IDs correspond to the ones
2055    /// described in GpuCounterSpec in the data source descriptor.
2056    #[prost(uint32, repeated, packed="false", tag="2")]
2057    pub counter_ids: ::prost::alloc::vec::Vec<u32>,
2058    /// Sample counters by instrumenting command buffers.
2059    #[prost(bool, optional, tag="3")]
2060    pub instrumented_sampling: ::core::option::Option<bool>,
2061    /// Fix gpu clock rate during trace session.
2062    #[prost(bool, optional, tag="4")]
2063    pub fix_gpu_clock: ::core::option::Option<bool>,
2064}
2065#[derive(Clone, PartialEq, ::prost::Message)]
2066pub struct VulkanMemoryConfig {
2067    /// Tracking driver memory usage events
2068    #[prost(bool, optional, tag="1")]
2069    pub track_driver_memory_usage: ::core::option::Option<bool>,
2070    /// Tracking device memory usage events
2071    #[prost(bool, optional, tag="2")]
2072    pub track_device_memory_usage: ::core::option::Option<bool>,
2073}
2074#[derive(Clone, PartialEq, ::prost::Message)]
2075pub struct GpuRenderStagesConfig {
2076    /// Enable to separate the color and depth/stencil load and store stages
2077    /// into a separate stages. If disabled, the depth/stencil load and store
2078    /// stages will be combined.  Disabled by default. This option has no effect if
2079    /// Low Overhead mode is enabled.
2080    #[prost(bool, optional, tag="1")]
2081    pub full_loadstore: ::core::option::Option<bool>,
2082    /// Use the low overhead mode for traces. In this mode render stages are
2083    /// combined into a single workload stage. This provides less granular data but
2084    /// induces minimal GPU overhead. Disabled by default.
2085    #[prost(bool, optional, tag="2")]
2086    pub low_overhead: ::core::option::Option<bool>,
2087    /// Trace metrics to capture for each render stage
2088    #[prost(string, repeated, tag="3")]
2089    pub trace_metrics: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2090}
2091/// WARNING: unmaintained and deprecated. Likely won't work at all on modern
2092/// systems.
2093#[derive(Clone, PartialEq, ::prost::Message)]
2094pub struct InodeFileConfig {
2095    /// How long to pause between batches.
2096    #[prost(uint32, optional, tag="1")]
2097    pub scan_interval_ms: ::core::option::Option<u32>,
2098    /// How long to wait before the first scan in order to accumulate inodes.
2099    #[prost(uint32, optional, tag="2")]
2100    pub scan_delay_ms: ::core::option::Option<u32>,
2101    /// How many inodes to scan in one batch.
2102    #[prost(uint32, optional, tag="3")]
2103    pub scan_batch_size: ::core::option::Option<u32>,
2104    /// Do not scan for inodes not found in the static map.
2105    #[prost(bool, optional, tag="4")]
2106    pub do_not_scan: ::core::option::Option<bool>,
2107    /// If non-empty, only scan inodes corresponding to block devices named in
2108    /// this list.
2109    #[prost(string, repeated, tag="5")]
2110    pub scan_mount_points: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2111    /// When encountering an inode belonging to a block device corresponding
2112    /// to one of the mount points in this map, scan its scan_roots instead.
2113    #[prost(message, repeated, tag="6")]
2114    pub mount_point_mapping: ::prost::alloc::vec::Vec<inode_file_config::MountPointMappingEntry>,
2115}
2116/// Nested message and enum types in `InodeFileConfig`.
2117pub mod inode_file_config {
2118    #[derive(Clone, PartialEq, ::prost::Message)]
2119    pub struct MountPointMappingEntry {
2120        #[prost(string, optional, tag="1")]
2121        pub mountpoint: ::core::option::Option<::prost::alloc::string::String>,
2122        #[prost(string, repeated, tag="2")]
2123        pub scan_roots: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
2124    }
2125}
2126#[derive(Clone, PartialEq, ::prost::Message)]
2127pub struct ConsoleConfig {
2128    #[prost(enumeration="console_config::Output", optional, tag="1")]
2129    pub output: ::core::option::Option<i32>,
2130    #[prost(bool, optional, tag="2")]
2131    pub enable_colors: ::core::option::Option<bool>,
2132}
2133/// Nested message and enum types in `ConsoleConfig`.
2134pub mod console_config {
2135    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2136    #[repr(i32)]
2137    pub enum Output {
2138        Unspecified = 0,
2139        Stdout = 1,
2140        Stderr = 2,
2141    }
2142    impl Output {
2143        /// String value of the enum field names used in the ProtoBuf definition.
2144        ///
2145        /// The values are not transformed in any way and thus are considered stable
2146        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2147        pub fn as_str_name(&self) -> &'static str {
2148            match self {
2149                Output::Unspecified => "OUTPUT_UNSPECIFIED",
2150                Output::Stdout => "OUTPUT_STDOUT",
2151                Output::Stderr => "OUTPUT_STDERR",
2152            }
2153        }
2154    }
2155}
2156/// Configuration for trace packet interception. Used for diverting trace data to
2157/// non-Perfetto sources (e.g., logging to the console, ETW) when using the
2158/// Perfetto SDK.
2159#[derive(Clone, PartialEq, ::prost::Message)]
2160pub struct InterceptorConfig {
2161    /// Matches the name given to RegisterInterceptor().
2162    #[prost(string, optional, tag="1")]
2163    pub name: ::core::option::Option<::prost::alloc::string::String>,
2164    #[prost(message, optional, tag="100")]
2165    pub console_config: ::core::option::Option<ConsoleConfig>,
2166}
2167#[derive(Clone, PartialEq, ::prost::Message)]
2168pub struct AndroidPowerConfig {
2169    #[prost(uint32, optional, tag="1")]
2170    pub battery_poll_ms: ::core::option::Option<u32>,
2171    #[prost(enumeration="android_power_config::BatteryCounters", repeated, packed="false", tag="2")]
2172    pub battery_counters: ::prost::alloc::vec::Vec<i32>,
2173    /// Where available enables per-power-rail measurements.
2174    #[prost(bool, optional, tag="3")]
2175    pub collect_power_rails: ::core::option::Option<bool>,
2176    /// Provides a breakdown of energy estimation for various subsystem (e.g. GPU).
2177    /// Available from Android S.
2178    #[prost(bool, optional, tag="4")]
2179    pub collect_energy_estimation_breakdown: ::core::option::Option<bool>,
2180    /// Provides a breakdown of time in state for various subsystems.
2181    /// Available from Android U.
2182    #[prost(bool, optional, tag="5")]
2183    pub collect_entity_state_residency: ::core::option::Option<bool>,
2184}
2185/// Nested message and enum types in `AndroidPowerConfig`.
2186pub mod android_power_config {
2187    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2188    #[repr(i32)]
2189    pub enum BatteryCounters {
2190        BatteryCounterUnspecified = 0,
2191        /// Coulomb counter.
2192        BatteryCounterCharge = 1,
2193        /// Charge (%).
2194        BatteryCounterCapacityPercent = 2,
2195        /// Instantaneous current.
2196        BatteryCounterCurrent = 3,
2197        /// Avg current.
2198        BatteryCounterCurrentAvg = 4,
2199        /// Instantaneous voltage.
2200        BatteryCounterVoltage = 5,
2201    }
2202    impl BatteryCounters {
2203        /// String value of the enum field names used in the ProtoBuf definition.
2204        ///
2205        /// The values are not transformed in any way and thus are considered stable
2206        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
2207        pub fn as_str_name(&self) -> &'static str {
2208            match self {
2209                BatteryCounters::BatteryCounterUnspecified => "BATTERY_COUNTER_UNSPECIFIED",
2210                BatteryCounters::BatteryCounterCharge => "BATTERY_COUNTER_CHARGE",
2211                BatteryCounters::BatteryCounterCapacityPercent => "BATTERY_COUNTER_CAPACITY_PERCENT",
2212                BatteryCounters::BatteryCounterCurrent => "BATTERY_COUNTER_CURRENT",
2213                BatteryCounters::BatteryCounterCurrentAvg => "BATTERY_COUNTER_CURRENT_AVG",
2214                BatteryCounters::BatteryCounterVoltage => "BATTERY_COUNTER_VOLTAGE",
2215            }
2216        }
2217    }
2218}
2219/// This enum is obtained by post-processing
2220/// AOSP/frameworks/proto_logging/stats/atoms.proto through
2221/// AOSP/external/perfetto/tools/update-statsd-descriptor, which extracts one
2222/// enum value for each proto field defined in the upstream atoms.proto.
2223#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
2224#[repr(i32)]
2225pub enum AtomId {
2226    AtomUnspecified = 0,
2227    AtomBleScanStateChanged = 2,
2228    AtomProcessStateChanged = 3,
2229    AtomBleScanResultReceived = 4,
2230    AtomSensorStateChanged = 5,
2231    AtomGpsScanStateChanged = 6,
2232    AtomSyncStateChanged = 7,
2233    AtomScheduledJobStateChanged = 8,
2234    AtomScreenBrightnessChanged = 9,
2235    AtomWakelockStateChanged = 10,
2236    AtomLongPartialWakelockStateChanged = 11,
2237    AtomMobileRadioPowerStateChanged = 12,
2238    AtomWifiRadioPowerStateChanged = 13,
2239    AtomActivityManagerSleepStateChanged = 14,
2240    AtomMemoryFactorStateChanged = 15,
2241    AtomExcessiveCpuUsageReported = 16,
2242    AtomCachedKillReported = 17,
2243    AtomProcessMemoryStatReported = 18,
2244    AtomLauncherEvent = 19,
2245    AtomBatterySaverModeStateChanged = 20,
2246    AtomDeviceIdleModeStateChanged = 21,
2247    AtomDeviceIdlingModeStateChanged = 22,
2248    AtomAudioStateChanged = 23,
2249    AtomMediaCodecStateChanged = 24,
2250    AtomCameraStateChanged = 25,
2251    AtomFlashlightStateChanged = 26,
2252    AtomUidProcessStateChanged = 27,
2253    AtomProcessLifeCycleStateChanged = 28,
2254    AtomScreenStateChanged = 29,
2255    AtomBatteryLevelChanged = 30,
2256    AtomChargingStateChanged = 31,
2257    AtomPluggedStateChanged = 32,
2258    AtomInteractiveStateChanged = 33,
2259    AtomTouchEventReported = 34,
2260    AtomWakeupAlarmOccurred = 35,
2261    AtomKernelWakeupReported = 36,
2262    AtomWifiLockStateChanged = 37,
2263    AtomWifiSignalStrengthChanged = 38,
2264    AtomWifiScanStateChanged = 39,
2265    AtomPhoneSignalStrengthChanged = 40,
2266    AtomSettingChanged = 41,
2267    AtomActivityForegroundStateChanged = 42,
2268    AtomIsolatedUidChanged = 43,
2269    AtomPacketWakeupOccurred = 44,
2270    AtomWallClockTimeShifted = 45,
2271    AtomAnomalyDetected = 46,
2272    AtomAppBreadcrumbReported = 47,
2273    AtomAppStartOccurred = 48,
2274    AtomAppStartCanceled = 49,
2275    AtomAppStartFullyDrawn = 50,
2276    AtomLmkKillOccurred = 51,
2277    AtomPictureInPictureStateChanged = 52,
2278    AtomWifiMulticastLockStateChanged = 53,
2279    AtomAppStartMemoryStateCaptured = 55,
2280    AtomShutdownSequenceReported = 56,
2281    AtomBootSequenceReported = 57,
2282    AtomOverlayStateChanged = 59,
2283    AtomForegroundServiceStateChanged = 60,
2284    AtomCallStateChanged = 61,
2285    AtomKeyguardStateChanged = 62,
2286    AtomKeyguardBouncerStateChanged = 63,
2287    AtomKeyguardBouncerPasswordEntered = 64,
2288    AtomAppDied = 65,
2289    AtomResourceConfigurationChanged = 66,
2290    AtomBluetoothEnabledStateChanged = 67,
2291    AtomBluetoothConnectionStateChanged = 68,
2292    AtomGpsSignalQualityChanged = 69,
2293    AtomUsbConnectorStateChanged = 70,
2294    AtomSpeakerImpedanceReported = 71,
2295    AtomHardwareFailed = 72,
2296    AtomPhysicalDropDetected = 73,
2297    AtomChargeCyclesReported = 74,
2298    AtomMobileConnectionStateChanged = 75,
2299    AtomMobileRadioTechnologyChanged = 76,
2300    AtomUsbDeviceAttached = 77,
2301    AtomAppCrashOccurred = 78,
2302    AtomAnrOccurred = 79,
2303    AtomWtfOccurred = 80,
2304    AtomLowMemReported = 81,
2305    AtomGenericAtom = 82,
2306    AtomVibratorStateChanged = 84,
2307    AtomDeferredJobStatsReported = 85,
2308    AtomThermalThrottling = 86,
2309    AtomBiometricAcquired = 87,
2310    AtomBiometricAuthenticated = 88,
2311    AtomBiometricErrorOccurred = 89,
2312    AtomUiEventReported = 90,
2313    AtomBatteryHealthSnapshot = 91,
2314    AtomSlowIo = 92,
2315    AtomBatteryCausedShutdown = 93,
2316    AtomPhoneServiceStateChanged = 94,
2317    AtomPhoneStateChanged = 95,
2318    AtomUserRestrictionChanged = 96,
2319    AtomSettingsUiChanged = 97,
2320    AtomConnectivityStateChanged = 98,
2321    AtomServiceStateChanged = 99,
2322    AtomServiceLaunchReported = 100,
2323    AtomFlagFlipUpdateOccurred = 101,
2324    AtomBinaryPushStateChanged = 102,
2325    AtomDevicePolicyEvent = 103,
2326    AtomDocsUiFileOpCanceled = 104,
2327    AtomDocsUiFileOpCopyMoveModeReported = 105,
2328    AtomDocsUiFileOpFailure = 106,
2329    AtomDocsUiProviderFileOp = 107,
2330    AtomDocsUiInvalidScopedAccessRequest = 108,
2331    AtomDocsUiLaunchReported = 109,
2332    AtomDocsUiRootVisited = 110,
2333    AtomDocsUiStartupMs = 111,
2334    AtomDocsUiUserActionReported = 112,
2335    AtomWifiEnabledStateChanged = 113,
2336    AtomWifiRunningStateChanged = 114,
2337    AtomAppCompacted = 115,
2338    AtomNetworkDnsEventReported = 116,
2339    AtomDocsUiPickerLaunchedFromReported = 117,
2340    AtomDocsUiPickResultReported = 118,
2341    AtomDocsUiSearchModeReported = 119,
2342    AtomDocsUiSearchTypeReported = 120,
2343    AtomDataStallEvent = 121,
2344    AtomRescuePartyResetReported = 122,
2345    AtomSignedConfigReported = 123,
2346    AtomGnssNiEventReported = 124,
2347    AtomBluetoothLinkLayerConnectionEvent = 125,
2348    AtomBluetoothAclConnectionStateChanged = 126,
2349    AtomBluetoothScoConnectionStateChanged = 127,
2350    AtomAppDowngraded = 128,
2351    AtomAppOptimizedAfterDowngraded = 129,
2352    AtomLowStorageStateChanged = 130,
2353    AtomGnssNfwNotificationReported = 131,
2354    AtomGnssConfigurationReported = 132,
2355    AtomUsbPortOverheatEventReported = 133,
2356    AtomNfcErrorOccurred = 134,
2357    AtomNfcStateChanged = 135,
2358    AtomNfcBeamOccurred = 136,
2359    AtomNfcCardemulationOccurred = 137,
2360    AtomNfcTagOccurred = 138,
2361    AtomNfcHceTransactionOccurred = 139,
2362    AtomSeStateChanged = 140,
2363    AtomSeOmapiReported = 141,
2364    AtomBroadcastDispatchLatencyReported = 142,
2365    AtomAttentionManagerServiceResultReported = 143,
2366    AtomAdbConnectionChanged = 144,
2367    AtomSpeechDspStatReported = 145,
2368    AtomUsbContaminantReported = 146,
2369    AtomWatchdogRollbackOccurred = 147,
2370    AtomBiometricSystemHealthIssueDetected = 148,
2371    AtomBubbleUiChanged = 149,
2372    AtomScheduledJobConstraintChanged = 150,
2373    AtomBluetoothActiveDeviceChanged = 151,
2374    AtomBluetoothA2dpPlaybackStateChanged = 152,
2375    AtomBluetoothA2dpCodecConfigChanged = 153,
2376    AtomBluetoothA2dpCodecCapabilityChanged = 154,
2377    AtomBluetoothA2dpAudioUnderrunReported = 155,
2378    AtomBluetoothA2dpAudioOverrunReported = 156,
2379    AtomBluetoothDeviceRssiReported = 157,
2380    AtomBluetoothDeviceFailedContactCounterReported = 158,
2381    AtomBluetoothDeviceTxPowerLevelReported = 159,
2382    AtomBluetoothHciTimeoutReported = 160,
2383    AtomBluetoothQualityReportReported = 161,
2384    AtomBluetoothDeviceInfoReported = 162,
2385    AtomBluetoothRemoteVersionInfoReported = 163,
2386    AtomBluetoothSdpAttributeReported = 164,
2387    AtomBluetoothBondStateChanged = 165,
2388    AtomBluetoothClassicPairingEventReported = 166,
2389    AtomBluetoothSmpPairingEventReported = 167,
2390    AtomScreenTimeoutExtensionReported = 168,
2391    AtomProcessStartTime = 169,
2392    AtomPermissionGrantRequestResultReported = 170,
2393    AtomBluetoothSocketConnectionStateChanged = 171,
2394    AtomDeviceIdentifierAccessDenied = 172,
2395    AtomBubbleDeveloperErrorReported = 173,
2396    AtomAssistGestureStageReported = 174,
2397    AtomAssistGestureFeedbackReported = 175,
2398    AtomAssistGestureProgressReported = 176,
2399    AtomTouchGestureClassified = 177,
2400    AtomHiddenApiUsed = 178,
2401    AtomStyleUiChanged = 179,
2402    AtomPrivacyIndicatorsInteracted = 180,
2403    AtomAppInstallOnExternalStorageReported = 181,
2404    AtomNetworkStackReported = 182,
2405    AtomAppMovedStorageReported = 183,
2406    AtomBiometricEnrolled = 184,
2407    AtomSystemServerWatchdogOccurred = 185,
2408    AtomTombStoneOccurred = 186,
2409    AtomBluetoothClassOfDeviceReported = 187,
2410    AtomIntelligenceEventReported = 188,
2411    AtomThermalThrottlingSeverityStateChanged = 189,
2412    AtomRoleRequestResultReported = 190,
2413    AtomMediametricsAudiopolicyReported = 191,
2414    AtomMediametricsAudiorecordReported = 192,
2415    AtomMediametricsAudiothreadReported = 193,
2416    AtomMediametricsAudiotrackReported = 194,
2417    AtomMediametricsCodecReported = 195,
2418    AtomMediametricsDrmWidevineReported = 196,
2419    AtomMediametricsExtractorReported = 197,
2420    AtomMediametricsMediadrmReported = 198,
2421    AtomMediametricsNuplayerReported = 199,
2422    AtomMediametricsRecorderReported = 200,
2423    AtomMediametricsDrmmanagerReported = 201,
2424    AtomCarPowerStateChanged = 203,
2425    AtomGarageModeInfo = 204,
2426    AtomTestAtomReported = 205,
2427    AtomContentCaptureCallerMismatchReported = 206,
2428    AtomContentCaptureServiceEvents = 207,
2429    AtomContentCaptureSessionEvents = 208,
2430    AtomContentCaptureFlushed = 209,
2431    AtomLocationManagerApiUsageReported = 210,
2432    AtomReviewPermissionsFragmentResultReported = 211,
2433    AtomRuntimePermissionsUpgradeResult = 212,
2434    AtomGrantPermissionsActivityButtonActions = 213,
2435    AtomLocationAccessCheckNotificationAction = 214,
2436    AtomAppPermissionFragmentActionReported = 215,
2437    AtomAppPermissionFragmentViewed = 216,
2438    AtomAppPermissionsFragmentViewed = 217,
2439    AtomPermissionAppsFragmentViewed = 218,
2440    AtomTextSelectionEvent = 219,
2441    AtomTextLinkifyEvent = 220,
2442    AtomConversationActionsEvent = 221,
2443    AtomLanguageDetectionEvent = 222,
2444    AtomExclusionRectStateChanged = 223,
2445    AtomBackGestureReportedReported = 224,
2446    AtomUpdateEngineUpdateAttemptReported = 225,
2447    AtomUpdateEngineSuccessfulUpdateReported = 226,
2448    AtomCameraActionEvent = 227,
2449    AtomAppCompatibilityChangeReported = 228,
2450    AtomPerfettoUploaded = 229,
2451    AtomVmsClientConnectionStateChanged = 230,
2452    AtomMediaProviderScanOccurred = 233,
2453    AtomMediaContentDeleted = 234,
2454    AtomMediaProviderPermissionRequested = 235,
2455    AtomMediaProviderSchemaChanged = 236,
2456    AtomMediaProviderIdleMaintenanceFinished = 237,
2457    AtomRebootEscrowRecoveryReported = 238,
2458    AtomBootTimeEventDurationReported = 239,
2459    AtomBootTimeEventElapsedTimeReported = 240,
2460    AtomBootTimeEventUtcTimeReported = 241,
2461    AtomBootTimeEventErrorCodeReported = 242,
2462    AtomUserspaceRebootReported = 243,
2463    AtomNotificationReported = 244,
2464    AtomNotificationPanelReported = 245,
2465    AtomNotificationChannelModified = 246,
2466    AtomIntegrityCheckResultReported = 247,
2467    AtomIntegrityRulesPushed = 248,
2468    AtomCbMessageReported = 249,
2469    AtomCbMessageError = 250,
2470    AtomWifiHealthStatReported = 251,
2471    AtomWifiFailureStatReported = 252,
2472    AtomWifiConnectionResultReported = 253,
2473    AtomAppFreezeChanged = 254,
2474    AtomSnapshotMergeReported = 255,
2475    AtomForegroundServiceAppOpSessionEnded = 256,
2476    AtomDisplayJankReported = 257,
2477    AtomAppStandbyBucketChanged = 258,
2478    AtomSharesheetStarted = 259,
2479    AtomRankingSelected = 260,
2480    AtomTvsettingsUiInteracted = 261,
2481    AtomLauncherSnapshot = 262,
2482    AtomPackageInstallerV2Reported = 263,
2483    AtomUserLifecycleJourneyReported = 264,
2484    AtomUserLifecycleEventOccurred = 265,
2485    AtomAccessibilityShortcutReported = 266,
2486    AtomAccessibilityServiceReported = 267,
2487    AtomDocsUiDragAndDropReported = 268,
2488    AtomAppUsageEventOccurred = 269,
2489    AtomAutoRevokeNotificationClicked = 270,
2490    AtomAutoRevokeFragmentAppViewed = 271,
2491    AtomAutoRevokedAppInteraction = 272,
2492    AtomAppPermissionGroupsFragmentAutoRevokeAction = 273,
2493    AtomEvsUsageStatsReported = 274,
2494    AtomAudioPowerUsageDataReported = 275,
2495    AtomTvTunerStateChanged = 276,
2496    AtomMediaoutputOpSwitchReported = 277,
2497    AtomCbMessageFiltered = 278,
2498    AtomTvTunerDvrStatus = 279,
2499    AtomTvCasSessionOpenStatus = 280,
2500    AtomAssistantInvocationReported = 281,
2501    AtomDisplayWakeReported = 282,
2502    AtomCarUserHalModifyUserRequestReported = 283,
2503    AtomCarUserHalModifyUserResponseReported = 284,
2504    AtomCarUserHalPostSwitchResponseReported = 285,
2505    AtomCarUserHalInitialUserInfoRequestReported = 286,
2506    AtomCarUserHalInitialUserInfoResponseReported = 287,
2507    AtomCarUserHalUserAssociationRequestReported = 288,
2508    AtomCarUserHalSetUserAssociationResponseReported = 289,
2509    AtomNetworkIpProvisioningReported = 290,
2510    AtomNetworkDhcpRenewReported = 291,
2511    AtomNetworkValidationReported = 292,
2512    AtomNetworkStackQuirkReported = 293,
2513    AtomMediametricsAudiorecorddeviceusageReported = 294,
2514    AtomMediametricsAudiothreaddeviceusageReported = 295,
2515    AtomMediametricsAudiotrackdeviceusageReported = 296,
2516    AtomMediametricsAudiodeviceconnectionReported = 297,
2517    AtomBlobCommitted = 298,
2518    AtomBlobLeased = 299,
2519    AtomBlobOpened = 300,
2520    AtomContactsProviderStatusReported = 301,
2521    AtomKeystoreKeyEventReported = 302,
2522    AtomNetworkTetheringReported = 303,
2523    AtomImeTouchReported = 304,
2524    AtomUiInteractionFrameInfoReported = 305,
2525    AtomUiActionLatencyReported = 306,
2526    AtomWifiDisconnectReported = 307,
2527    AtomWifiConnectionStateChanged = 308,
2528    AtomHdmiCecActiveSourceChanged = 309,
2529    AtomHdmiCecMessageReported = 310,
2530    AtomAirplaneMode = 311,
2531    AtomModemRestart = 312,
2532    AtomCarrierIdMismatchReported = 313,
2533    AtomCarrierIdTableUpdated = 314,
2534    AtomDataStallRecoveryReported = 315,
2535    AtomMediametricsMediaparserReported = 316,
2536    AtomTlsHandshakeReported = 317,
2537    AtomTextClassifierApiUsageReported = 318,
2538    AtomCarWatchdogKillStatsReported = 319,
2539    AtomMediametricsPlaybackReported = 320,
2540    AtomMediaNetworkInfoChanged = 321,
2541    AtomMediaPlaybackStateChanged = 322,
2542    AtomMediaPlaybackErrorReported = 323,
2543    AtomMediaPlaybackTrackChanged = 324,
2544    AtomWifiScanReported = 325,
2545    AtomWifiPnoScanReported = 326,
2546    AtomTifTuneChanged = 327,
2547    AtomAutoRotateReported = 328,
2548    AtomPerfettoTrigger = 329,
2549    AtomTranscodingData = 330,
2550    AtomImsServiceEntitlementUpdated = 331,
2551    AtomDeviceRotated = 333,
2552    AtomSimSpecificSettingsRestored = 334,
2553    AtomTextClassifierDownloadReported = 335,
2554    AtomPinStorageEvent = 336,
2555    AtomFaceDownReported = 337,
2556    AtomBluetoothHalCrashReasonReported = 338,
2557    AtomRebootEscrowPreparationReported = 339,
2558    AtomRebootEscrowLskfCaptureReported = 340,
2559    AtomRebootEscrowRebootReported = 341,
2560    AtomBinderLatencyReported = 342,
2561    AtomMediametricsAaudiostreamReported = 343,
2562    AtomMediaTranscodingSessionEnded = 344,
2563    AtomMagnificationUsageReported = 345,
2564    AtomMagnificationModeWithImeOnReported = 346,
2565    AtomAppSearchCallStatsReported = 347,
2566    AtomAppSearchPutDocumentStatsReported = 348,
2567    AtomDeviceControlChanged = 349,
2568    AtomDeviceStateChanged = 350,
2569    AtomInputdeviceRegistered = 351,
2570    AtomSmartspaceCardReported = 352,
2571    AtomAuthPromptAuthenticateInvoked = 353,
2572    AtomAuthManagerCanAuthenticateInvoked = 354,
2573    AtomAuthEnrollActionInvoked = 355,
2574    AtomAuthDeprecatedApiUsed = 356,
2575    AtomUnattendedRebootOccurred = 357,
2576    AtomLongRebootBlockingReported = 358,
2577    AtomLocationTimeZoneProviderStateChanged = 359,
2578    AtomFdtrackEventOccurred = 364,
2579    AtomTimeoutAutoExtendedReported = 365,
2580    AtomAlarmBatchDelivered = 367,
2581    AtomAlarmScheduled = 368,
2582    AtomCarWatchdogIoOveruseStatsReported = 369,
2583    AtomUserLevelHibernationStateChanged = 370,
2584    AtomAppSearchInitializeStatsReported = 371,
2585    AtomAppSearchQueryStatsReported = 372,
2586    AtomAppProcessDied = 373,
2587    AtomNetworkIpReachabilityMonitorReported = 374,
2588    AtomSlowInputEventReported = 375,
2589    AtomAnrOccurredProcessingStarted = 376,
2590    AtomAppSearchRemoveStatsReported = 377,
2591    AtomMediaCodecReported = 378,
2592    AtomPermissionUsageFragmentInteraction = 379,
2593    AtomPermissionDetailsInteraction = 380,
2594    AtomPrivacySensorToggleInteraction = 381,
2595    AtomPrivacyToggleDialogInteraction = 382,
2596    AtomAppSearchOptimizeStatsReported = 383,
2597    AtomNonA11yToolServiceWarningReport = 384,
2598    AtomAppCompatStateChanged = 386,
2599    AtomSizeCompatRestartButtonEventReported = 387,
2600    AtomSplitscreenUiChanged = 388,
2601    AtomNetworkDnsHandshakeReported = 389,
2602    AtomBluetoothCodePathCounter = 390,
2603    AtomBluetoothLeBatchScanReportDelay = 392,
2604    AtomAccessibilityFloatingMenuUiChanged = 393,
2605    AtomNeuralnetworksCompilationCompleted = 394,
2606    AtomNeuralnetworksExecutionCompleted = 395,
2607    AtomNeuralnetworksCompilationFailed = 396,
2608    AtomNeuralnetworksExecutionFailed = 397,
2609    AtomContextHubBooted = 398,
2610    AtomContextHubRestarted = 399,
2611    AtomContextHubLoadedNanoappSnapshotReported = 400,
2612    AtomChreCodeDownloadTransacted = 401,
2613    AtomUwbSessionInited = 402,
2614    AtomUwbSessionClosed = 403,
2615    AtomUwbFirstRangingReceived = 404,
2616    AtomUwbRangingMeasurementReceived = 405,
2617    AtomTextClassifierDownloadWorkScheduled = 406,
2618    AtomTextClassifierDownloadWorkCompleted = 407,
2619    AtomClipboardCleared = 408,
2620    AtomVmCreationRequested = 409,
2621    AtomNearbyDeviceScanStateChanged = 410,
2622    AtomApplicationLocalesChanged = 412,
2623    AtomMediametricsAudiotrackstatusReported = 413,
2624    AtomFoldStateDurationReported = 414,
2625    AtomLocationTimeZoneProviderControllerStateChanged = 415,
2626    AtomDisplayHbmStateChanged = 416,
2627    AtomDisplayHbmBrightnessChanged = 417,
2628    AtomPersistentUriPermissionsFlushed = 418,
2629    AtomEarlyBootCompOsArtifactsCheckReported = 419,
2630    AtomVbmetaDigestReported = 420,
2631    AtomApexInfoGathered = 421,
2632    AtomPvmInfoGathered = 422,
2633    AtomWearSettingsUiInteracted = 423,
2634    AtomTracingServiceReportEvent = 424,
2635    AtomMediametricsAudiorecordstatusReported = 425,
2636    AtomLauncherLatency = 426,
2637    AtomDropboxEntryDropped = 427,
2638    AtomWifiP2pConnectionReported = 428,
2639    AtomGameStateChanged = 429,
2640    AtomHotwordDetectorCreateRequested = 430,
2641    AtomHotwordDetectionServiceInitResultReported = 431,
2642    AtomHotwordDetectionServiceRestarted = 432,
2643    AtomHotwordDetectorKeyphraseTriggered = 433,
2644    AtomHotwordDetectorEvents = 434,
2645    AtomBootCompletedBroadcastCompletionLatencyReported = 437,
2646    AtomContactsIndexerUpdateStatsReported = 440,
2647    AtomAppBackgroundRestrictionsInfo = 441,
2648    AtomMmsSmsProviderGetThreadIdFailed = 442,
2649    AtomMmsSmsDatabaseHelperOnUpgradeFailed = 443,
2650    AtomPermissionReminderNotificationInteracted = 444,
2651    AtomRecentPermissionDecisionsInteracted = 445,
2652    AtomGnssPsdsDownloadReported = 446,
2653    AtomLeAudioConnectionSessionReported = 447,
2654    AtomLeAudioBroadcastSessionReported = 448,
2655    AtomDreamUiEventReported = 449,
2656    AtomTaskManagerEventReported = 450,
2657    AtomCdmAssociationAction = 451,
2658    AtomMagnificationTripleTapAndHoldActivatedSessionReported = 452,
2659    AtomMagnificationFollowTypingFocusActivatedSessionReported = 453,
2660    AtomAccessibilityTextReadingOptionsChanged = 454,
2661    AtomWifiSetupFailureCrashReported = 455,
2662    AtomUwbDeviceErrorReported = 456,
2663    AtomIsolatedCompilationScheduled = 457,
2664    AtomIsolatedCompilationEnded = 458,
2665    AtomOnsOpportunisticEsimProvisioningComplete = 459,
2666    AtomSystemServerPreWatchdogOccurred = 460,
2667    AtomTelephonyAnomalyDetected = 461,
2668    AtomLetterboxPositionChanged = 462,
2669    AtomRemoteKeyProvisioningAttempt = 463,
2670    AtomRemoteKeyProvisioningNetworkInfo = 464,
2671    AtomRemoteKeyProvisioningTiming = 465,
2672    AtomMediaoutputOpInteractionReport = 466,
2673    AtomSyncExemptionOccurred = 468,
2674    AtomAutofillPresentationEventReported = 469,
2675    AtomDockStateChanged = 470,
2676    AtomSafetySourceStateCollected = 471,
2677    AtomSafetyCenterSystemEventReported = 472,
2678    AtomSafetyCenterInteractionReported = 473,
2679    AtomSettingsProviderSettingChanged = 474,
2680    AtomBroadcastDeliveryEventReported = 475,
2681    AtomServiceRequestEventReported = 476,
2682    AtomProviderAcquisitionEventReported = 477,
2683    AtomBluetoothDeviceNameReported = 478,
2684    AtomCbConfigUpdated = 479,
2685    AtomCbModuleErrorReported = 480,
2686    AtomCbServiceFeatureChanged = 481,
2687    AtomCbReceiverFeatureChanged = 482,
2688    AtomPrivacySignalNotificationInteraction = 484,
2689    AtomPrivacySignalIssueCardInteraction = 485,
2690    AtomPrivacySignalsJobFailure = 486,
2691    AtomVibrationReported = 487,
2692    AtomUwbRangingStart = 489,
2693    AtomAppCompactedV2 = 491,
2694    AtomDisplayBrightnessChanged = 494,
2695    AtomActivityActionBlocked = 495,
2696    AtomNetworkDnsServerSupportReported = 504,
2697    AtomVmBooted = 505,
2698    AtomVmExited = 506,
2699    AtomAmbientBrightnessStatsReported = 507,
2700    AtomMediametricsSpatializercapabilitiesReported = 508,
2701    AtomMediametricsSpatializerdeviceenabledReported = 509,
2702    AtomMediametricsHeadtrackerdeviceenabledReported = 510,
2703    AtomMediametricsHeadtrackerdevicesupportedReported = 511,
2704    AtomHearingAidInfoReported = 513,
2705    AtomDeviceWideJobConstraintChanged = 514,
2706    AtomAmbientModeChanged = 515,
2707    AtomAnrLatencyReported = 516,
2708    AtomResourceApiInfo = 517,
2709    AtomSystemDefaultNetworkChanged = 518,
2710    AtomIwlanSetupDataCallResultReported = 519,
2711    AtomIwlanPdnDisconnectedReasonReported = 520,
2712    AtomAirplaneModeSessionReported = 521,
2713    AtomVmCpuStatusReported = 522,
2714    AtomVmMemStatusReported = 523,
2715    AtomPackageInstallationSessionReported = 524,
2716    AtomDefaultNetworkRematchInfo = 525,
2717    AtomNetworkSelectionPerformance = 526,
2718    AtomNetworkNsdReported = 527,
2719    AtomBluetoothDisconnectionReasonReported = 529,
2720    AtomBluetoothLocalVersionsReported = 530,
2721    AtomBluetoothRemoteSupportedFeaturesReported = 531,
2722    AtomBluetoothLocalSupportedFeaturesReported = 532,
2723    AtomBluetoothGattAppInfo = 533,
2724    AtomBrightnessConfigurationUpdated = 534,
2725    AtomWearMediaOutputSwitcherLaunched = 538,
2726    AtomWearMediaOutputSwitcherFinished = 539,
2727    AtomWearMediaOutputSwitcherConnectionReported = 540,
2728    AtomWearMediaOutputSwitcherDeviceScanTriggered = 541,
2729    AtomWearMediaOutputSwitcherFirstDeviceScanLatency = 542,
2730    AtomWearMediaOutputSwitcherConnectDeviceLatency = 543,
2731    AtomPackageManagerSnapshotReported = 544,
2732    AtomPackageManagerAppsFilterCacheBuildReported = 545,
2733    AtomPackageManagerAppsFilterCacheUpdateReported = 546,
2734    AtomLauncherImpressionEvent = 547,
2735    AtomWearMediaOutputSwitcherAllDevicesScanLatency = 549,
2736    AtomWsWatchFaceEdited = 551,
2737    AtomWsWatchFaceFavoriteActionReported = 552,
2738    AtomWsWatchFaceSetActionReported = 553,
2739    AtomPackageUninstallationReported = 554,
2740    AtomGameModeChanged = 555,
2741    AtomGameModeConfigurationChanged = 556,
2742    AtomBedtimeModeStateChanged = 557,
2743    AtomNetworkSliceSessionEnded = 558,
2744    AtomNetworkSliceDailyDataUsageReported = 559,
2745    AtomNfcTagTypeOccurred = 560,
2746    AtomNfcAidConflictOccurred = 561,
2747    AtomNfcReaderConflictOccurred = 562,
2748    AtomWsTileListChanged = 563,
2749    AtomGetTypeAccessedWithoutPermission = 564,
2750    AtomMobileBundledAppInfoGathered = 566,
2751    AtomWsWatchFaceComplicationSetChanged = 567,
2752    AtomMediaDrmCreated = 568,
2753    AtomMediaDrmErrored = 569,
2754    AtomMediaDrmSessionOpened = 570,
2755    AtomMediaDrmSessionClosed = 571,
2756    AtomUserSelectedResolution = 572,
2757    AtomUnsafeIntentEventReported = 573,
2758    AtomPerformanceHintSessionReported = 574,
2759    AtomMediametricsMidiDeviceCloseReported = 576,
2760    AtomBiometricTouchReported = 577,
2761    AtomHotwordAudioEgressEventReported = 578,
2762    AtomLocationEnabledStateChanged = 580,
2763    AtomImeRequestFinished = 581,
2764    AtomUsbComplianceWarningsReported = 582,
2765    AtomAppSupportedLocalesChanged = 583,
2766    AtomMediaProviderVolumeRecoveryReported = 586,
2767    AtomBiometricPropertiesCollected = 587,
2768    AtomKernelWakeupAttributed = 588,
2769    AtomScreenStateChangedV2 = 589,
2770    AtomWsBackupActionReported = 590,
2771    AtomWsRestoreActionReported = 591,
2772    AtomDeviceLogAccessEventReported = 592,
2773    AtomMediaSessionUpdated = 594,
2774    AtomWearOobeStateChanged = 595,
2775    AtomWsNotificationUpdated = 596,
2776    AtomNetworkValidationFailureStatsDailyReported = 601,
2777    AtomWsComplicationTapped = 602,
2778    AtomWsNotificationBlocking = 780,
2779    AtomWsNotificationBridgemodeUpdated = 822,
2780    AtomWsNotificationDismissalActioned = 823,
2781    AtomWsNotificationActioned = 824,
2782    AtomWsNotificationLatency = 880,
2783    AtomWifiBytesTransfer = 10000,
2784    AtomWifiBytesTransferByFgBg = 10001,
2785    AtomMobileBytesTransfer = 10002,
2786    AtomMobileBytesTransferByFgBg = 10003,
2787    AtomBluetoothBytesTransfer = 10006,
2788    AtomKernelWakelock = 10004,
2789    AtomSubsystemSleepState = 10005,
2790    AtomCpuTimePerUid = 10009,
2791    AtomCpuTimePerUidFreq = 10010,
2792    AtomWifiActivityInfo = 10011,
2793    AtomModemActivityInfo = 10012,
2794    AtomBluetoothActivityInfo = 10007,
2795    AtomProcessMemoryState = 10013,
2796    AtomSystemElapsedRealtime = 10014,
2797    AtomSystemUptime = 10015,
2798    AtomCpuActiveTime = 10016,
2799    AtomCpuClusterTime = 10017,
2800    AtomDiskSpace = 10018,
2801    AtomRemainingBatteryCapacity = 10019,
2802    AtomFullBatteryCapacity = 10020,
2803    AtomTemperature = 10021,
2804    AtomBinderCalls = 10022,
2805    AtomBinderCallsExceptions = 10023,
2806    AtomLooperStats = 10024,
2807    AtomDiskStats = 10025,
2808    AtomDirectoryUsage = 10026,
2809    AtomAppSize = 10027,
2810    AtomCategorySize = 10028,
2811    AtomProcStats = 10029,
2812    AtomBatteryVoltage = 10030,
2813    AtomNumFingerprintsEnrolled = 10031,
2814    AtomDiskIo = 10032,
2815    AtomPowerProfile = 10033,
2816    AtomProcStatsPkgProc = 10034,
2817    AtomProcessCpuTime = 10035,
2818    AtomCpuTimePerThreadFreq = 10037,
2819    AtomOnDevicePowerMeasurement = 10038,
2820    AtomDeviceCalculatedPowerUse = 10039,
2821    AtomProcessMemoryHighWaterMark = 10042,
2822    AtomBatteryLevel = 10043,
2823    AtomBuildInformation = 10044,
2824    AtomBatteryCycleCount = 10045,
2825    AtomDebugElapsedClock = 10046,
2826    AtomDebugFailingElapsedClock = 10047,
2827    AtomNumFacesEnrolled = 10048,
2828    AtomRoleHolder = 10049,
2829    AtomDangerousPermissionState = 10050,
2830    AtomTrainInfo = 10051,
2831    AtomTimeZoneDataInfo = 10052,
2832    AtomExternalStorageInfo = 10053,
2833    AtomGpuStatsGlobalInfo = 10054,
2834    AtomGpuStatsAppInfo = 10055,
2835    AtomSystemIonHeapSize = 10056,
2836    AtomAppsOnExternalStorageInfo = 10057,
2837    AtomFaceSettings = 10058,
2838    AtomCoolingDevice = 10059,
2839    AtomAppOps = 10060,
2840    AtomProcessSystemIonHeapSize = 10061,
2841    AtomSurfaceflingerStatsGlobalInfo = 10062,
2842    AtomSurfaceflingerStatsLayerInfo = 10063,
2843    AtomProcessMemorySnapshot = 10064,
2844    AtomVmsClientStats = 10065,
2845    AtomNotificationRemoteViews = 10066,
2846    AtomDangerousPermissionStateSampled = 10067,
2847    AtomGraphicsStats = 10068,
2848    AtomRuntimeAppOpAccess = 10069,
2849    AtomIonHeapSize = 10070,
2850    AtomPackageNotificationPreferences = 10071,
2851    AtomPackageNotificationChannelPreferences = 10072,
2852    AtomPackageNotificationChannelGroupPreferences = 10073,
2853    AtomGnssStats = 10074,
2854    AtomAttributedAppOps = 10075,
2855    AtomVoiceCallSession = 10076,
2856    AtomVoiceCallRatUsage = 10077,
2857    AtomSimSlotState = 10078,
2858    AtomSupportedRadioAccessFamily = 10079,
2859    AtomSettingSnapshot = 10080,
2860    AtomBlobInfo = 10081,
2861    AtomDataUsageBytesTransfer = 10082,
2862    AtomBytesTransferByTagAndMetered = 10083,
2863    AtomDndModeRule = 10084,
2864    AtomGeneralExternalStorageAccessStats = 10085,
2865    AtomIncomingSms = 10086,
2866    AtomOutgoingSms = 10087,
2867    AtomCarrierIdTableVersion = 10088,
2868    AtomDataCallSession = 10089,
2869    AtomCellularServiceState = 10090,
2870    AtomCellularDataServiceSwitch = 10091,
2871    AtomSystemMemory = 10092,
2872    AtomImsRegistrationTermination = 10093,
2873    AtomImsRegistrationStats = 10094,
2874    AtomCpuTimePerClusterFreq = 10095,
2875    AtomCpuCyclesPerUidCluster = 10096,
2876    AtomDeviceRotatedData = 10097,
2877    AtomCpuCyclesPerThreadGroupCluster = 10098,
2878    AtomMediaDrmActivityInfo = 10099,
2879    AtomOemManagedBytesTransfer = 10100,
2880    AtomGnssPowerStats = 10101,
2881    AtomTimeZoneDetectorState = 10102,
2882    AtomKeystore2StorageStats = 10103,
2883    AtomRkpPoolStats = 10104,
2884    AtomProcessDmabufMemory = 10105,
2885    AtomPendingAlarmInfo = 10106,
2886    AtomUserLevelHibernatedApps = 10107,
2887    AtomLauncherLayoutSnapshot = 10108,
2888    AtomGlobalHibernatedApps = 10109,
2889    AtomInputEventLatencySketch = 10110,
2890    AtomBatteryUsageStatsBeforeReset = 10111,
2891    AtomBatteryUsageStatsSinceReset = 10112,
2892    AtomBatteryUsageStatsSinceResetUsingPowerProfileModel = 10113,
2893    AtomInstalledIncrementalPackage = 10114,
2894    AtomTelephonyNetworkRequests = 10115,
2895    AtomAppSearchStorageInfo = 10116,
2896    AtomVmstat = 10117,
2897    AtomKeystore2KeyCreationWithGeneralInfo = 10118,
2898    AtomKeystore2KeyCreationWithAuthInfo = 10119,
2899    AtomKeystore2KeyCreationWithPurposeAndModesInfo = 10120,
2900    AtomKeystore2AtomWithOverflow = 10121,
2901    AtomKeystore2KeyOperationWithPurposeAndModesInfo = 10122,
2902    AtomKeystore2KeyOperationWithGeneralInfo = 10123,
2903    AtomRkpErrorStats = 10124,
2904    AtomKeystore2CrashStats = 10125,
2905    AtomVendorApexInfo = 10126,
2906    AtomAccessibilityShortcutStats = 10127,
2907    AtomAccessibilityFloatingMenuStats = 10128,
2908    AtomDataUsageBytesTransferV2 = 10129,
2909    AtomMediaCapabilities = 10130,
2910    AtomCarWatchdogSystemIoUsageSummary = 10131,
2911    AtomCarWatchdogUidIoUsageSummary = 10132,
2912    AtomImsRegistrationFeatureTagStats = 10133,
2913    AtomRcsClientProvisioningStats = 10134,
2914    AtomRcsAcsProvisioningStats = 10135,
2915    AtomSipDelegateStats = 10136,
2916    AtomSipTransportFeatureTagStats = 10137,
2917    AtomSipMessageResponse = 10138,
2918    AtomSipTransportSession = 10139,
2919    AtomImsDedicatedBearerListenerEvent = 10140,
2920    AtomImsDedicatedBearerEvent = 10141,
2921    AtomImsRegistrationServiceDescStats = 10142,
2922    AtomUceEventStats = 10143,
2923    AtomPresenceNotifyEvent = 10144,
2924    AtomGbaEvent = 10145,
2925    AtomPerSimStatus = 10146,
2926    AtomGpuWorkPerUid = 10147,
2927    AtomPersistentUriPermissionsAmountPerPackage = 10148,
2928    AtomSignedPartitionInfo = 10149,
2929    AtomPinnedFileSizesPerPackage = 10150,
2930    AtomPendingIntentsPerPackage = 10151,
2931    AtomUserInfo = 10152,
2932    AtomTelephonyNetworkRequestsV2 = 10153,
2933    AtomDeviceTelephonyProperties = 10154,
2934    AtomRemoteKeyProvisioningErrorCounts = 10155,
2935    AtomSafetyState = 10156,
2936    AtomIncomingMms = 10157,
2937    AtomOutgoingMms = 10158,
2938    AtomMultiUserInfo = 10160,
2939    AtomNetworkBpfMapInfo = 10161,
2940    AtomOutgoingShortCodeSms = 10162,
2941    AtomConnectivityStateSample = 10163,
2942    AtomNetworkSelectionRematchReasonsInfo = 10164,
2943    AtomGameModeInfo = 10165,
2944    AtomGameModeConfiguration = 10166,
2945    AtomGameModeListener = 10167,
2946    AtomNetworkSliceRequestCount = 10168,
2947    AtomWsTileSnapshot = 10169,
2948    AtomWsActiveWatchFaceComplicationSetSnapshot = 10170,
2949    AtomProcessState = 10171,
2950    AtomProcessAssociation = 10172,
2951    AtomAdpfSystemComponentInfo = 10173,
2952    AtomNotificationMemoryUse = 10174,
2953    AtomHdrCapabilities = 10175,
2954    AtomWsFavouriteWatchFaceListSnapshot = 10176,
2955    AtomAccessibilityCheckResultReported = 910,
2956    AtomAdaptiveAuthUnlockAfterLockReported = 820,
2957    AtomThermalStatusCalled = 772,
2958    AtomThermalHeadroomCalled = 773,
2959    AtomThermalHeadroomThresholdsCalled = 774,
2960    AtomAdpfHintSessionTidCleanup = 839,
2961    AtomThermalHeadroomThresholds = 10201,
2962    AtomAdpfSessionSnapshot = 10218,
2963    AtomJsscriptengineLatencyReported = 483,
2964    AtomAdServicesApiCalled = 435,
2965    AtomAdServicesMesurementReportsUploaded = 436,
2966    AtomMobileDataDownloadFileGroupStatusReported = 490,
2967    AtomMobileDataDownloadDownloadResultReported = 502,
2968    AtomAdServicesSettingsUsageReported = 493,
2969    AtomBackgroundFetchProcessReported = 496,
2970    AtomUpdateCustomAudienceProcessReported = 497,
2971    AtomRunAdBiddingProcessReported = 498,
2972    AtomRunAdScoringProcessReported = 499,
2973    AtomRunAdSelectionProcessReported = 500,
2974    AtomRunAdBiddingPerCaProcessReported = 501,
2975    AtomMobileDataDownloadFileGroupStorageStatsReported = 503,
2976    AtomAdServicesMeasurementRegistrations = 512,
2977    AtomAdServicesGetTopicsReported = 535,
2978    AtomAdServicesEpochComputationGetTopTopicsReported = 536,
2979    AtomAdServicesEpochComputationClassifierReported = 537,
2980    AtomAdServicesBackCompatGetTopicsReported = 598,
2981    AtomAdServicesBackCompatEpochComputationClassifierReported = 599,
2982    AtomAdServicesMeasurementDebugKeys = 640,
2983    AtomAdServicesErrorReported = 662,
2984    AtomAdServicesBackgroundJobsExecutionReported = 663,
2985    AtomAdServicesMeasurementDelayedSourceRegistration = 673,
2986    AtomAdServicesMeasurementAttribution = 674,
2987    AtomAdServicesMeasurementJobs = 675,
2988    AtomAdServicesMeasurementWipeout = 676,
2989    AtomAdServicesMeasurementAdIdMatchForDebugKeys = 695,
2990    AtomAdServicesEnrollmentDataStored = 697,
2991    AtomAdServicesEnrollmentFileDownloaded = 698,
2992    AtomAdServicesEnrollmentMatched = 699,
2993    AtomAdServicesConsentMigrated = 702,
2994    AtomAdServicesEnrollmentFailed = 714,
2995    AtomAdServicesMeasurementClickVerification = 756,
2996    AtomAdServicesEncryptionKeyFetched = 765,
2997    AtomAdServicesEncryptionKeyDbTransactionEnded = 766,
2998    AtomDestinationRegisteredBeacons = 767,
2999    AtomReportInteractionApiCalled = 768,
3000    AtomInteractionReportingTableCleared = 769,
3001    AtomAppManifestConfigHelperCalled = 788,
3002    AtomAdFilteringProcessJoinCaReported = 793,
3003    AtomAdFilteringProcessAdSelectionReported = 794,
3004    AtomAdCounterHistogramUpdaterReported = 795,
3005    AtomSignatureVerification = 807,
3006    AtomKAnonImmediateSignJoinStatusReported = 808,
3007    AtomKAnonBackgroundJobStatusReported = 809,
3008    AtomKAnonInitializeStatusReported = 810,
3009    AtomKAnonSignStatusReported = 811,
3010    AtomKAnonJoinStatusReported = 812,
3011    AtomKAnonKeyAttestationStatusReported = 813,
3012    AtomGetAdSelectionDataApiCalled = 814,
3013    AtomGetAdSelectionDataBuyerInputGenerated = 815,
3014    AtomBackgroundJobSchedulingReported = 834,
3015    AtomTopicsEncryptionEpochComputationReported = 840,
3016    AtomTopicsEncryptionGetTopicsReported = 841,
3017    AtomAdservicesShellCommandCalled = 842,
3018    AtomUpdateSignalsApiCalled = 843,
3019    AtomEncodingJobRun = 844,
3020    AtomEncodingJsFetch = 845,
3021    AtomEncodingJsExecution = 846,
3022    AtomPersistAdSelectionResultCalled = 847,
3023    AtomServerAuctionKeyFetchCalled = 848,
3024    AtomServerAuctionBackgroundKeyFetchEnabled = 849,
3025    AtomAdServicesMeasurementProcessOdpRegistration = 864,
3026    AtomAdServicesMeasurementNotifyRegistrationToOdp = 865,
3027    AtomSelectAdsFromOutcomesApiCalled = 876,
3028    AtomReportImpressionApiCalled = 877,
3029    AtomAdServicesEnrollmentTransactionStats = 885,
3030    AtomAdServicesCobaltLoggerEventReported = 902,
3031    AtomAdServicesCobaltPeriodicJobEventReported = 903,
3032    AtomUpdateSignalsProcessReported = 905,
3033    AtomTopicsScheduleEpochJobSettingReported = 930,
3034    AtomAiWallpapersButtonPressed = 706,
3035    AtomAiWallpapersTemplateSelected = 707,
3036    AtomAiWallpapersTermSelected = 708,
3037    AtomAiWallpapersWallpaperSet = 709,
3038    AtomAiWallpapersSessionSummary = 710,
3039    AtomApexInstallationRequested = 732,
3040    AtomApexInstallationStaged = 733,
3041    AtomApexInstallationEnded = 734,
3042    AtomAppSearchSetSchemaStatsReported = 385,
3043    AtomAppSearchSchemaMigrationStatsReported = 579,
3044    AtomAppSearchUsageSearchIntentStatsReported = 825,
3045    AtomAppSearchUsageSearchIntentRawQueryStatsReported = 826,
3046    AtomAppSearchAppsIndexerStatsReported = 909,
3047    AtomArtDatumReported = 332,
3048    AtomArtDeviceDatumReported = 550,
3049    AtomArtDatumDeltaReported = 565,
3050    AtomArtDex2oatReported = 929,
3051    AtomArtDeviceStatus = 10205,
3052    AtomBackgroundDexoptJobEnded = 467,
3053    AtomPrerebootDexoptJobEnded = 883,
3054    AtomOdrefreshReported = 366,
3055    AtomOdsignReported = 548,
3056    AtomAutofillUiEventReported = 603,
3057    AtomAutofillFillRequestReported = 604,
3058    AtomAutofillFillResponseReported = 605,
3059    AtomAutofillSaveEventReported = 606,
3060    AtomAutofillSessionCommitted = 607,
3061    AtomAutofillFieldClassificationEventReported = 659,
3062    AtomCarRecentsEventReported = 770,
3063    AtomCarCalmModeEventReported = 797,
3064    AtomCarWakeupFromSuspendReported = 852,
3065    AtomPluginInitialized = 655,
3066    AtomBluetoothHashedDeviceNameReported = 613,
3067    AtomBluetoothL2capCocClientConnection = 614,
3068    AtomBluetoothL2capCocServerConnection = 615,
3069    AtomBluetoothLeSessionConnected = 656,
3070    AtomRestrictedBluetoothDeviceNameReported = 666,
3071    AtomBluetoothProfileConnectionAttempted = 696,
3072    AtomBluetoothContentProfileErrorReported = 781,
3073    AtomBluetoothRfcommConnectionAttempted = 782,
3074    AtomRemoteDeviceInformationWithMetricId = 862,
3075    AtomLeAppScanStateChanged = 870,
3076    AtomLeRadioScanStopped = 871,
3077    AtomLeScanResultReceived = 872,
3078    AtomLeScanAbused = 873,
3079    AtomLeAdvStateChanged = 874,
3080    AtomLeAdvErrorReported = 875,
3081    AtomA2dpSessionReported = 904,
3082    AtomBluetoothCrossLayerEventReported = 916,
3083    AtomBroadcastAudioSessionReported = 927,
3084    AtomBroadcastAudioSyncReported = 928,
3085    AtomBluetoothRfcommConnectionReportedAtClose = 982,
3086    AtomBluetoothLeConnection = 988,
3087    AtomBroadcastSent = 922,
3088    AtomCameraFeatureCombinationQueryEvent = 900,
3089    AtomCertificateTransparencyLogListStateChanged = 934,
3090    AtomCertificateTransparencyLogListUpdateFailed = 972,
3091    AtomDailyKeepaliveInfoReported = 650,
3092    AtomNetworkRequestStateChanged = 779,
3093    AtomTetheringActiveSessionsReported = 925,
3094    AtomNetworkStatsRecorderFileOperated = 783,
3095    AtomCoreNetworkingTerribleErrorOccurred = 979,
3096    AtomApfSessionInfoReported = 777,
3097    AtomIpClientRaInfoReported = 778,
3098    AtomVpnConnectionStateChanged = 850,
3099    AtomVpnConnectionReported = 851,
3100    AtomCpuPolicy = 10199,
3101    AtomCredentialManagerApiCalled = 585,
3102    AtomCredentialManagerInitPhaseReported = 651,
3103    AtomCredentialManagerCandidatePhaseReported = 652,
3104    AtomCredentialManagerFinalPhaseReported = 653,
3105    AtomCredentialManagerTotalReported = 667,
3106    AtomCredentialManagerFinalnouidReported = 668,
3107    AtomCredentialManagerGetReported = 669,
3108    AtomCredentialManagerAuthClickReported = 670,
3109    AtomCredentialManagerApiv2Called = 671,
3110    AtomCronetEngineCreated = 703,
3111    AtomCronetTrafficReported = 704,
3112    AtomCronetEngineBuilderInitialized = 762,
3113    AtomCronetHttpFlagsInitialized = 763,
3114    AtomCronetInitialized = 764,
3115    AtomDesktopModeUiChanged = 818,
3116    AtomDesktopModeSessionTaskUpdate = 819,
3117    AtomDesktopModeTaskSizeUpdated = 935,
3118    AtomDeviceLockCheckInRequestReported = 726,
3119    AtomDeviceLockProvisioningCompleteReported = 727,
3120    AtomDeviceLockKioskAppRequestReported = 728,
3121    AtomDeviceLockCheckInRetryReported = 789,
3122    AtomDeviceLockProvisionFailureReported = 790,
3123    AtomDeviceLockLockUnlockDeviceFailureReported = 791,
3124    AtomDevicePolicyManagementMode = 10216,
3125    AtomDevicePolicyState = 10217,
3126    AtomDisplayModeDirectorVoteChanged = 792,
3127    AtomExternalDisplayStateChanged = 806,
3128    AtomDndStateChanged = 657,
3129    AtomDreamSettingChanged = 705,
3130    AtomDreamSettingSnapshot = 10192,
3131    AtomExpressEventReported = 528,
3132    AtomExpressHistogramSampleReported = 593,
3133    AtomExpressUidEventReported = 644,
3134    AtomExpressUidHistogramSampleReported = 658,
3135    AtomFederatedComputeApiCalled = 712,
3136    AtomFederatedComputeTrainingEventReported = 771,
3137    AtomExampleIteratorNextLatencyReported = 838,
3138    AtomFullScreenIntentLaunched = 631,
3139    AtomBalAllowed = 632,
3140    AtomInTaskActivityStarted = 685,
3141    AtomDeviceOrientationChanged = 906,
3142    AtomCachedAppsHighWatermark = 10189,
3143    AtomStylusPredictionMetricsReported = 718,
3144    AtomUserRiskEventReported = 725,
3145    AtomMediaProjectionStateChanged = 729,
3146    AtomMediaProjectionTargetChanged = 730,
3147    AtomExcessiveBinderProxyCountReported = 853,
3148    AtomProxyBytesTransferByFgBg = 10200,
3149    AtomMobileBytesTransferByProcState = 10204,
3150    AtomBiometricFrrNotification = 817,
3151    AtomSensitiveContentMediaProjectionSession = 830,
3152    AtomSensitiveNotificationAppProtectionSession = 831,
3153    AtomSensitiveNotificationAppProtectionApplied = 832,
3154    AtomSensitiveNotificationRedaction = 833,
3155    AtomSensitiveContentAppProtection = 835,
3156    AtomAppRestrictionStateChanged = 866,
3157    AtomBatteryUsageStatsPerUid = 10209,
3158    AtomPostgcMemorySnapshot = 924,
3159    AtomPowerSaveTempAllowlistChanged = 926,
3160    AtomAppOpAccessTracked = 931,
3161    AtomContentOrFileUriEventReported = 933,
3162    AtomApplicationGrammaticalInflectionChanged = 584,
3163    AtomSystemGrammaticalInflectionChanged = 816,
3164    AtomBatteryHealth = 10220,
3165    AtomHdmiEarcStatusReported = 701,
3166    AtomHdmiSoundbarModeStatusReported = 724,
3167    AtomHealthConnectApiCalled = 616,
3168    AtomHealthConnectUsageStats = 617,
3169    AtomHealthConnectStorageStats = 618,
3170    AtomHealthConnectApiInvoked = 643,
3171    AtomExerciseRouteApiCalled = 654,
3172    AtomHealthConnectExportInvoked = 907,
3173    AtomHealthConnectImportInvoked = 918,
3174    AtomHealthConnectExportImportStatsReported = 919,
3175    AtomHealthConnectUiImpression = 623,
3176    AtomHealthConnectUiInteraction = 624,
3177    AtomHealthConnectAppOpenedReported = 625,
3178    AtomHotwordEgressSizeAtomReported = 761,
3179    AtomIkeSessionTerminated = 678,
3180    AtomIkeLivenessCheckSessionValidated = 760,
3181    AtomNegotiatedSecurityAssociation = 821,
3182    AtomKeyboardConfigured = 682,
3183    AtomKeyboardSystemsEventReported = 683,
3184    AtomInputdeviceUsageReported = 686,
3185    AtomInputEventLatencyReported = 932,
3186    AtomTouchpadUsage = 10191,
3187    AtomKernelOomKillOccurred = 754,
3188    AtomEmergencyStateChanged = 633,
3189    AtomChreSignificantMotionStateChanged = 868,
3190    AtomPopulationDensityProviderLoadingReported = 1002,
3191    AtomDensityBasedCoarseLocationsUsageReported = 1003,
3192    AtomDensityBasedCoarseLocationsProviderQueryReported = 1004,
3193    AtomMediaCodecReclaimRequestCompleted = 600,
3194    AtomMediaCodecStarted = 641,
3195    AtomMediaCodecStopped = 642,
3196    AtomMediaCodecRendered = 684,
3197    AtomMediaEditingEndedReported = 798,
3198    AtomMteState = 10181,
3199    AtomMicroxrDeviceBootCompleteReported = 901,
3200    AtomNfcObserveModeStateChanged = 855,
3201    AtomNfcFieldChanged = 856,
3202    AtomNfcPollingLoopNotificationReported = 857,
3203    AtomNfcProprietaryCapabilitiesReported = 858,
3204    AtomOndevicepersonalizationApiCalled = 711,
3205    AtomComponentStateChangedReported = 863,
3206    AtomPdfLoadReported = 859,
3207    AtomPdfApiUsageReported = 860,
3208    AtomPdfSearchReported = 861,
3209    AtomPressureStallInformation = 10229,
3210    AtomPermissionRationaleDialogViewed = 645,
3211    AtomPermissionRationaleDialogActionReported = 646,
3212    AtomAppDataSharingUpdatesNotificationInteraction = 647,
3213    AtomAppDataSharingUpdatesFragmentViewed = 648,
3214    AtomAppDataSharingUpdatesFragmentActionReported = 649,
3215    AtomEnhancedConfirmationDialogResultReported = 827,
3216    AtomEnhancedConfirmationRestrictionCleared = 828,
3217    AtomPhotopickerSessionInfoReported = 886,
3218    AtomPhotopickerApiInfoReported = 887,
3219    AtomPhotopickerUiEventLogged = 888,
3220    AtomPhotopickerMediaItemStatusReported = 889,
3221    AtomPhotopickerPreviewInfoLogged = 890,
3222    AtomPhotopickerMenuInteractionLogged = 891,
3223    AtomPhotopickerBannerInteractionLogged = 892,
3224    AtomPhotopickerMediaLibraryInfoLogged = 893,
3225    AtomPhotopickerPageInfoLogged = 894,
3226    AtomPhotopickerMediaGridSyncInfoReported = 895,
3227    AtomPhotopickerAlbumSyncInfoReported = 896,
3228    AtomPhotopickerSearchInfoReported = 897,
3229    AtomSearchDataExtractionDetailsReported = 898,
3230    AtomEmbeddedPhotopickerInfoReported = 899,
3231    AtomAtom9999 = 9999,
3232    AtomAtom99999 = 99999,
3233    AtomScreenOffReported = 776,
3234    AtomScreenTimeoutOverrideReported = 836,
3235    AtomScreenInteractiveSessionReported = 837,
3236    AtomScreenDimReported = 867,
3237    AtomMediaProviderDatabaseRollbackReported = 784,
3238    AtomBackupSetupStatusReported = 785,
3239    AtomRangingSessionConfigured = 993,
3240    AtomRangingSessionStarted = 994,
3241    AtomRangingSessionClosed = 995,
3242    AtomRangingTechnologyStarted = 996,
3243    AtomRangingTechnologyStopped = 997,
3244    AtomRkpdPoolStats = 664,
3245    AtomRkpdClientOperation = 665,
3246    AtomSandboxApiCalled = 488,
3247    AtomSandboxActivityEventOccurred = 735,
3248    AtomSdkSandboxRestrictedAccessInSession = 796,
3249    AtomSandboxSdkStorage = 10159,
3250    AtomSelinuxAuditLog = 799,
3251    AtomSettingsSpaReported = 622,
3252    AtomTestExtensionAtomReported = 660,
3253    AtomTestRestrictedAtomReported = 672,
3254    AtomStatsSocketLossReported = 752,
3255    AtomLockscreenShortcutSelected = 611,
3256    AtomLockscreenShortcutTriggered = 612,
3257    AtomLauncherImpressionEventV2 = 716,
3258    AtomDisplaySwitchLatencyTracked = 753,
3259    AtomNotificationListenerService = 829,
3260    AtomNavHandleTouchPoints = 869,
3261    AtomCommunalHubWidgetEventReported = 908,
3262    AtomCommunalHubSnapshot = 10226,
3263    AtomEmergencyNumberDialed = 637,
3264    AtomCallStats = 10221,
3265    AtomCallAudioRouteStats = 10222,
3266    AtomTelecomApiStats = 10223,
3267    AtomTelecomErrorStats = 10224,
3268    AtomCellularRadioPowerStateChanged = 713,
3269    AtomEmergencyNumbersInfo = 10180,
3270    AtomDataNetworkValidation = 10207,
3271    AtomDataRatStateChanged = 854,
3272    AtomConnectedChannelChanged = 882,
3273    AtomIwlanUnderlyingNetworkValidationResultReported = 923,
3274    AtomQualifiedRatListChanged = 634,
3275    AtomQnsImsCallDropStats = 635,
3276    AtomQnsFallbackRestrictionChanged = 636,
3277    AtomQnsRatPreferenceMismatchInfo = 10177,
3278    AtomQnsHandoverTimeMillis = 10178,
3279    AtomQnsHandoverPingpong = 10179,
3280    AtomSatelliteController = 10182,
3281    AtomSatelliteSession = 10183,
3282    AtomSatelliteIncomingDatagram = 10184,
3283    AtomSatelliteOutgoingDatagram = 10185,
3284    AtomSatelliteProvision = 10186,
3285    AtomSatelliteSosMessageRecommender = 10187,
3286    AtomCarrierRoamingSatelliteSession = 10211,
3287    AtomCarrierRoamingSatelliteControllerStats = 10212,
3288    AtomControllerStatsPerPackage = 10213,
3289    AtomSatelliteEntitlement = 10214,
3290    AtomSatelliteConfigUpdater = 10215,
3291    AtomSatelliteAccessController = 10219,
3292    AtomCellularIdentifierDisclosed = 800,
3293    AtomThreadnetworkTelemetryDataReported = 738,
3294    AtomThreadnetworkTopoEntryRepeated = 739,
3295    AtomThreadnetworkDeviceInfoReported = 740,
3296    AtomBootIntegrityInfoReported = 775,
3297    AtomTvLowPowerStandbyPolicy = 679,
3298    AtomExternalTvInputEvent = 717,
3299    AtomTestUprobestatsAtomReported = 915,
3300    AtomUwbActivityInfo = 10188,
3301    AtomMediatorUpdated = 721,
3302    AtomSysproxyBluetoothBytesTransfer = 10196,
3303    AtomSysproxyConnectionUpdated = 786,
3304    AtomWearCompanionConnectionState = 921,
3305    AtomMediaActionReported = 608,
3306    AtomMediaControlsLaunched = 609,
3307    AtomMediaSessionStateChanged = 677,
3308    AtomWearMediaOutputSwitcherDeviceScanApiLatency = 757,
3309    AtomWearMediaOutputSwitcherSassDeviceUnavailable = 758,
3310    AtomWearMediaOutputSwitcherFastpairApiTimeout = 759,
3311    AtomWearModeStateChanged = 715,
3312    AtomRendererInitialized = 736,
3313    AtomSchemaVersionReceived = 737,
3314    AtomLayoutInspected = 741,
3315    AtomLayoutExpressionInspected = 742,
3316    AtomLayoutAnimationsInspected = 743,
3317    AtomMaterialComponentsInspected = 744,
3318    AtomTileRequested = 745,
3319    AtomStateResponseReceived = 746,
3320    AtomTileResponseReceived = 747,
3321    AtomInflationFinished = 748,
3322    AtomInflationFailed = 749,
3323    AtomIgnoredInflationFailuresReported = 750,
3324    AtomDrawableRendered = 751,
3325    AtomWearTimeSyncRequested = 911,
3326    AtomWearTimeUpdateStarted = 912,
3327    AtomWearTimeSyncAttemptCompleted = 913,
3328    AtomWearTimeChanged = 914,
3329    AtomWearAdaptiveSuspendStatsReported = 619,
3330    AtomWearPowerAnomalyServiceOperationalStatsReported = 620,
3331    AtomWearPowerAnomalyServiceEventStatsReported = 621,
3332    AtomWsWearTimeSession = 610,
3333    AtomWsIncomingCallActionReported = 626,
3334    AtomWsCallDisconnectionReported = 627,
3335    AtomWsCallDurationReported = 628,
3336    AtomWsCallUserExperienceLatencyReported = 629,
3337    AtomWsCallInteractionReported = 630,
3338    AtomWsOnBodyStateChanged = 787,
3339    AtomWsWatchFaceRestrictedComplicationsImpacted = 802,
3340    AtomWsWatchFaceDefaultRestrictedComplicationsRemoved = 803,
3341    AtomWsComplicationsImpactedNotificationEventReported = 804,
3342    AtomWsRemoteEventUsageReported = 920,
3343    AtomWsBugreportRequested = 936,
3344    AtomWsBugreportTriggered = 937,
3345    AtomWsBugreportFinished = 938,
3346    AtomWsBugreportResultReceived = 939,
3347    AtomWsStandaloneModeSnapshot = 10197,
3348    AtomWsFavoriteWatchFaceSnapshot = 10206,
3349    AtomWsPhotosWatchFaceFeatureSnapshot = 10225,
3350    AtomWsWatchFaceCustomizationSnapshot = 10227,
3351    AtomWearPowerMenuOpened = 731,
3352    AtomWearAssistantOpened = 755,
3353    AtomFirstOverlayStateChanged = 917,
3354    AtomWifiAwareNdpReported = 638,
3355    AtomWifiAwareAttachReported = 639,
3356    AtomWifiSelfRecoveryTriggered = 661,
3357    AtomSoftApStarted = 680,
3358    AtomSoftApStopped = 681,
3359    AtomWifiLockReleased = 687,
3360    AtomWifiLockDeactivated = 688,
3361    AtomWifiConfigSaved = 689,
3362    AtomWifiAwareResourceUsingChanged = 690,
3363    AtomWifiAwareHalApiCalled = 691,
3364    AtomWifiLocalOnlyRequestReceived = 692,
3365    AtomWifiLocalOnlyRequestScanTriggered = 693,
3366    AtomWifiThreadTaskExecuted = 694,
3367    AtomWifiStateChanged = 700,
3368    AtomPnoScanStarted = 719,
3369    AtomPnoScanStopped = 720,
3370    AtomWifiIsUnusableReported = 722,
3371    AtomWifiApCapabilitiesReported = 723,
3372    AtomSoftApStateChanged = 805,
3373    AtomScorerPredictionResultReported = 884,
3374    AtomWifiAwareCapabilities = 10190,
3375    AtomWifiModuleInfo = 10193,
3376    AtomWifiSettingInfo = 10194,
3377    AtomWifiComplexSettingInfo = 10195,
3378    AtomWifiConfiguredNetworkInfo = 10198,
3379}
3380impl AtomId {
3381    /// String value of the enum field names used in the ProtoBuf definition.
3382    ///
3383    /// The values are not transformed in any way and thus are considered stable
3384    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
3385    pub fn as_str_name(&self) -> &'static str {
3386        match self {
3387            AtomId::AtomUnspecified => "ATOM_UNSPECIFIED",
3388            AtomId::AtomBleScanStateChanged => "ATOM_BLE_SCAN_STATE_CHANGED",
3389            AtomId::AtomProcessStateChanged => "ATOM_PROCESS_STATE_CHANGED",
3390            AtomId::AtomBleScanResultReceived => "ATOM_BLE_SCAN_RESULT_RECEIVED",
3391            AtomId::AtomSensorStateChanged => "ATOM_SENSOR_STATE_CHANGED",
3392            AtomId::AtomGpsScanStateChanged => "ATOM_GPS_SCAN_STATE_CHANGED",
3393            AtomId::AtomSyncStateChanged => "ATOM_SYNC_STATE_CHANGED",
3394            AtomId::AtomScheduledJobStateChanged => "ATOM_SCHEDULED_JOB_STATE_CHANGED",
3395            AtomId::AtomScreenBrightnessChanged => "ATOM_SCREEN_BRIGHTNESS_CHANGED",
3396            AtomId::AtomWakelockStateChanged => "ATOM_WAKELOCK_STATE_CHANGED",
3397            AtomId::AtomLongPartialWakelockStateChanged => "ATOM_LONG_PARTIAL_WAKELOCK_STATE_CHANGED",
3398            AtomId::AtomMobileRadioPowerStateChanged => "ATOM_MOBILE_RADIO_POWER_STATE_CHANGED",
3399            AtomId::AtomWifiRadioPowerStateChanged => "ATOM_WIFI_RADIO_POWER_STATE_CHANGED",
3400            AtomId::AtomActivityManagerSleepStateChanged => "ATOM_ACTIVITY_MANAGER_SLEEP_STATE_CHANGED",
3401            AtomId::AtomMemoryFactorStateChanged => "ATOM_MEMORY_FACTOR_STATE_CHANGED",
3402            AtomId::AtomExcessiveCpuUsageReported => "ATOM_EXCESSIVE_CPU_USAGE_REPORTED",
3403            AtomId::AtomCachedKillReported => "ATOM_CACHED_KILL_REPORTED",
3404            AtomId::AtomProcessMemoryStatReported => "ATOM_PROCESS_MEMORY_STAT_REPORTED",
3405            AtomId::AtomLauncherEvent => "ATOM_LAUNCHER_EVENT",
3406            AtomId::AtomBatterySaverModeStateChanged => "ATOM_BATTERY_SAVER_MODE_STATE_CHANGED",
3407            AtomId::AtomDeviceIdleModeStateChanged => "ATOM_DEVICE_IDLE_MODE_STATE_CHANGED",
3408            AtomId::AtomDeviceIdlingModeStateChanged => "ATOM_DEVICE_IDLING_MODE_STATE_CHANGED",
3409            AtomId::AtomAudioStateChanged => "ATOM_AUDIO_STATE_CHANGED",
3410            AtomId::AtomMediaCodecStateChanged => "ATOM_MEDIA_CODEC_STATE_CHANGED",
3411            AtomId::AtomCameraStateChanged => "ATOM_CAMERA_STATE_CHANGED",
3412            AtomId::AtomFlashlightStateChanged => "ATOM_FLASHLIGHT_STATE_CHANGED",
3413            AtomId::AtomUidProcessStateChanged => "ATOM_UID_PROCESS_STATE_CHANGED",
3414            AtomId::AtomProcessLifeCycleStateChanged => "ATOM_PROCESS_LIFE_CYCLE_STATE_CHANGED",
3415            AtomId::AtomScreenStateChanged => "ATOM_SCREEN_STATE_CHANGED",
3416            AtomId::AtomBatteryLevelChanged => "ATOM_BATTERY_LEVEL_CHANGED",
3417            AtomId::AtomChargingStateChanged => "ATOM_CHARGING_STATE_CHANGED",
3418            AtomId::AtomPluggedStateChanged => "ATOM_PLUGGED_STATE_CHANGED",
3419            AtomId::AtomInteractiveStateChanged => "ATOM_INTERACTIVE_STATE_CHANGED",
3420            AtomId::AtomTouchEventReported => "ATOM_TOUCH_EVENT_REPORTED",
3421            AtomId::AtomWakeupAlarmOccurred => "ATOM_WAKEUP_ALARM_OCCURRED",
3422            AtomId::AtomKernelWakeupReported => "ATOM_KERNEL_WAKEUP_REPORTED",
3423            AtomId::AtomWifiLockStateChanged => "ATOM_WIFI_LOCK_STATE_CHANGED",
3424            AtomId::AtomWifiSignalStrengthChanged => "ATOM_WIFI_SIGNAL_STRENGTH_CHANGED",
3425            AtomId::AtomWifiScanStateChanged => "ATOM_WIFI_SCAN_STATE_CHANGED",
3426            AtomId::AtomPhoneSignalStrengthChanged => "ATOM_PHONE_SIGNAL_STRENGTH_CHANGED",
3427            AtomId::AtomSettingChanged => "ATOM_SETTING_CHANGED",
3428            AtomId::AtomActivityForegroundStateChanged => "ATOM_ACTIVITY_FOREGROUND_STATE_CHANGED",
3429            AtomId::AtomIsolatedUidChanged => "ATOM_ISOLATED_UID_CHANGED",
3430            AtomId::AtomPacketWakeupOccurred => "ATOM_PACKET_WAKEUP_OCCURRED",
3431            AtomId::AtomWallClockTimeShifted => "ATOM_WALL_CLOCK_TIME_SHIFTED",
3432            AtomId::AtomAnomalyDetected => "ATOM_ANOMALY_DETECTED",
3433            AtomId::AtomAppBreadcrumbReported => "ATOM_APP_BREADCRUMB_REPORTED",
3434            AtomId::AtomAppStartOccurred => "ATOM_APP_START_OCCURRED",
3435            AtomId::AtomAppStartCanceled => "ATOM_APP_START_CANCELED",
3436            AtomId::AtomAppStartFullyDrawn => "ATOM_APP_START_FULLY_DRAWN",
3437            AtomId::AtomLmkKillOccurred => "ATOM_LMK_KILL_OCCURRED",
3438            AtomId::AtomPictureInPictureStateChanged => "ATOM_PICTURE_IN_PICTURE_STATE_CHANGED",
3439            AtomId::AtomWifiMulticastLockStateChanged => "ATOM_WIFI_MULTICAST_LOCK_STATE_CHANGED",
3440            AtomId::AtomAppStartMemoryStateCaptured => "ATOM_APP_START_MEMORY_STATE_CAPTURED",
3441            AtomId::AtomShutdownSequenceReported => "ATOM_SHUTDOWN_SEQUENCE_REPORTED",
3442            AtomId::AtomBootSequenceReported => "ATOM_BOOT_SEQUENCE_REPORTED",
3443            AtomId::AtomOverlayStateChanged => "ATOM_OVERLAY_STATE_CHANGED",
3444            AtomId::AtomForegroundServiceStateChanged => "ATOM_FOREGROUND_SERVICE_STATE_CHANGED",
3445            AtomId::AtomCallStateChanged => "ATOM_CALL_STATE_CHANGED",
3446            AtomId::AtomKeyguardStateChanged => "ATOM_KEYGUARD_STATE_CHANGED",
3447            AtomId::AtomKeyguardBouncerStateChanged => "ATOM_KEYGUARD_BOUNCER_STATE_CHANGED",
3448            AtomId::AtomKeyguardBouncerPasswordEntered => "ATOM_KEYGUARD_BOUNCER_PASSWORD_ENTERED",
3449            AtomId::AtomAppDied => "ATOM_APP_DIED",
3450            AtomId::AtomResourceConfigurationChanged => "ATOM_RESOURCE_CONFIGURATION_CHANGED",
3451            AtomId::AtomBluetoothEnabledStateChanged => "ATOM_BLUETOOTH_ENABLED_STATE_CHANGED",
3452            AtomId::AtomBluetoothConnectionStateChanged => "ATOM_BLUETOOTH_CONNECTION_STATE_CHANGED",
3453            AtomId::AtomGpsSignalQualityChanged => "ATOM_GPS_SIGNAL_QUALITY_CHANGED",
3454            AtomId::AtomUsbConnectorStateChanged => "ATOM_USB_CONNECTOR_STATE_CHANGED",
3455            AtomId::AtomSpeakerImpedanceReported => "ATOM_SPEAKER_IMPEDANCE_REPORTED",
3456            AtomId::AtomHardwareFailed => "ATOM_HARDWARE_FAILED",
3457            AtomId::AtomPhysicalDropDetected => "ATOM_PHYSICAL_DROP_DETECTED",
3458            AtomId::AtomChargeCyclesReported => "ATOM_CHARGE_CYCLES_REPORTED",
3459            AtomId::AtomMobileConnectionStateChanged => "ATOM_MOBILE_CONNECTION_STATE_CHANGED",
3460            AtomId::AtomMobileRadioTechnologyChanged => "ATOM_MOBILE_RADIO_TECHNOLOGY_CHANGED",
3461            AtomId::AtomUsbDeviceAttached => "ATOM_USB_DEVICE_ATTACHED",
3462            AtomId::AtomAppCrashOccurred => "ATOM_APP_CRASH_OCCURRED",
3463            AtomId::AtomAnrOccurred => "ATOM_ANR_OCCURRED",
3464            AtomId::AtomWtfOccurred => "ATOM_WTF_OCCURRED",
3465            AtomId::AtomLowMemReported => "ATOM_LOW_MEM_REPORTED",
3466            AtomId::AtomGenericAtom => "ATOM_GENERIC_ATOM",
3467            AtomId::AtomVibratorStateChanged => "ATOM_VIBRATOR_STATE_CHANGED",
3468            AtomId::AtomDeferredJobStatsReported => "ATOM_DEFERRED_JOB_STATS_REPORTED",
3469            AtomId::AtomThermalThrottling => "ATOM_THERMAL_THROTTLING",
3470            AtomId::AtomBiometricAcquired => "ATOM_BIOMETRIC_ACQUIRED",
3471            AtomId::AtomBiometricAuthenticated => "ATOM_BIOMETRIC_AUTHENTICATED",
3472            AtomId::AtomBiometricErrorOccurred => "ATOM_BIOMETRIC_ERROR_OCCURRED",
3473            AtomId::AtomUiEventReported => "ATOM_UI_EVENT_REPORTED",
3474            AtomId::AtomBatteryHealthSnapshot => "ATOM_BATTERY_HEALTH_SNAPSHOT",
3475            AtomId::AtomSlowIo => "ATOM_SLOW_IO",
3476            AtomId::AtomBatteryCausedShutdown => "ATOM_BATTERY_CAUSED_SHUTDOWN",
3477            AtomId::AtomPhoneServiceStateChanged => "ATOM_PHONE_SERVICE_STATE_CHANGED",
3478            AtomId::AtomPhoneStateChanged => "ATOM_PHONE_STATE_CHANGED",
3479            AtomId::AtomUserRestrictionChanged => "ATOM_USER_RESTRICTION_CHANGED",
3480            AtomId::AtomSettingsUiChanged => "ATOM_SETTINGS_UI_CHANGED",
3481            AtomId::AtomConnectivityStateChanged => "ATOM_CONNECTIVITY_STATE_CHANGED",
3482            AtomId::AtomServiceStateChanged => "ATOM_SERVICE_STATE_CHANGED",
3483            AtomId::AtomServiceLaunchReported => "ATOM_SERVICE_LAUNCH_REPORTED",
3484            AtomId::AtomFlagFlipUpdateOccurred => "ATOM_FLAG_FLIP_UPDATE_OCCURRED",
3485            AtomId::AtomBinaryPushStateChanged => "ATOM_BINARY_PUSH_STATE_CHANGED",
3486            AtomId::AtomDevicePolicyEvent => "ATOM_DEVICE_POLICY_EVENT",
3487            AtomId::AtomDocsUiFileOpCanceled => "ATOM_DOCS_UI_FILE_OP_CANCELED",
3488            AtomId::AtomDocsUiFileOpCopyMoveModeReported => "ATOM_DOCS_UI_FILE_OP_COPY_MOVE_MODE_REPORTED",
3489            AtomId::AtomDocsUiFileOpFailure => "ATOM_DOCS_UI_FILE_OP_FAILURE",
3490            AtomId::AtomDocsUiProviderFileOp => "ATOM_DOCS_UI_PROVIDER_FILE_OP",
3491            AtomId::AtomDocsUiInvalidScopedAccessRequest => "ATOM_DOCS_UI_INVALID_SCOPED_ACCESS_REQUEST",
3492            AtomId::AtomDocsUiLaunchReported => "ATOM_DOCS_UI_LAUNCH_REPORTED",
3493            AtomId::AtomDocsUiRootVisited => "ATOM_DOCS_UI_ROOT_VISITED",
3494            AtomId::AtomDocsUiStartupMs => "ATOM_DOCS_UI_STARTUP_MS",
3495            AtomId::AtomDocsUiUserActionReported => "ATOM_DOCS_UI_USER_ACTION_REPORTED",
3496            AtomId::AtomWifiEnabledStateChanged => "ATOM_WIFI_ENABLED_STATE_CHANGED",
3497            AtomId::AtomWifiRunningStateChanged => "ATOM_WIFI_RUNNING_STATE_CHANGED",
3498            AtomId::AtomAppCompacted => "ATOM_APP_COMPACTED",
3499            AtomId::AtomNetworkDnsEventReported => "ATOM_NETWORK_DNS_EVENT_REPORTED",
3500            AtomId::AtomDocsUiPickerLaunchedFromReported => "ATOM_DOCS_UI_PICKER_LAUNCHED_FROM_REPORTED",
3501            AtomId::AtomDocsUiPickResultReported => "ATOM_DOCS_UI_PICK_RESULT_REPORTED",
3502            AtomId::AtomDocsUiSearchModeReported => "ATOM_DOCS_UI_SEARCH_MODE_REPORTED",
3503            AtomId::AtomDocsUiSearchTypeReported => "ATOM_DOCS_UI_SEARCH_TYPE_REPORTED",
3504            AtomId::AtomDataStallEvent => "ATOM_DATA_STALL_EVENT",
3505            AtomId::AtomRescuePartyResetReported => "ATOM_RESCUE_PARTY_RESET_REPORTED",
3506            AtomId::AtomSignedConfigReported => "ATOM_SIGNED_CONFIG_REPORTED",
3507            AtomId::AtomGnssNiEventReported => "ATOM_GNSS_NI_EVENT_REPORTED",
3508            AtomId::AtomBluetoothLinkLayerConnectionEvent => "ATOM_BLUETOOTH_LINK_LAYER_CONNECTION_EVENT",
3509            AtomId::AtomBluetoothAclConnectionStateChanged => "ATOM_BLUETOOTH_ACL_CONNECTION_STATE_CHANGED",
3510            AtomId::AtomBluetoothScoConnectionStateChanged => "ATOM_BLUETOOTH_SCO_CONNECTION_STATE_CHANGED",
3511            AtomId::AtomAppDowngraded => "ATOM_APP_DOWNGRADED",
3512            AtomId::AtomAppOptimizedAfterDowngraded => "ATOM_APP_OPTIMIZED_AFTER_DOWNGRADED",
3513            AtomId::AtomLowStorageStateChanged => "ATOM_LOW_STORAGE_STATE_CHANGED",
3514            AtomId::AtomGnssNfwNotificationReported => "ATOM_GNSS_NFW_NOTIFICATION_REPORTED",
3515            AtomId::AtomGnssConfigurationReported => "ATOM_GNSS_CONFIGURATION_REPORTED",
3516            AtomId::AtomUsbPortOverheatEventReported => "ATOM_USB_PORT_OVERHEAT_EVENT_REPORTED",
3517            AtomId::AtomNfcErrorOccurred => "ATOM_NFC_ERROR_OCCURRED",
3518            AtomId::AtomNfcStateChanged => "ATOM_NFC_STATE_CHANGED",
3519            AtomId::AtomNfcBeamOccurred => "ATOM_NFC_BEAM_OCCURRED",
3520            AtomId::AtomNfcCardemulationOccurred => "ATOM_NFC_CARDEMULATION_OCCURRED",
3521            AtomId::AtomNfcTagOccurred => "ATOM_NFC_TAG_OCCURRED",
3522            AtomId::AtomNfcHceTransactionOccurred => "ATOM_NFC_HCE_TRANSACTION_OCCURRED",
3523            AtomId::AtomSeStateChanged => "ATOM_SE_STATE_CHANGED",
3524            AtomId::AtomSeOmapiReported => "ATOM_SE_OMAPI_REPORTED",
3525            AtomId::AtomBroadcastDispatchLatencyReported => "ATOM_BROADCAST_DISPATCH_LATENCY_REPORTED",
3526            AtomId::AtomAttentionManagerServiceResultReported => "ATOM_ATTENTION_MANAGER_SERVICE_RESULT_REPORTED",
3527            AtomId::AtomAdbConnectionChanged => "ATOM_ADB_CONNECTION_CHANGED",
3528            AtomId::AtomSpeechDspStatReported => "ATOM_SPEECH_DSP_STAT_REPORTED",
3529            AtomId::AtomUsbContaminantReported => "ATOM_USB_CONTAMINANT_REPORTED",
3530            AtomId::AtomWatchdogRollbackOccurred => "ATOM_WATCHDOG_ROLLBACK_OCCURRED",
3531            AtomId::AtomBiometricSystemHealthIssueDetected => "ATOM_BIOMETRIC_SYSTEM_HEALTH_ISSUE_DETECTED",
3532            AtomId::AtomBubbleUiChanged => "ATOM_BUBBLE_UI_CHANGED",
3533            AtomId::AtomScheduledJobConstraintChanged => "ATOM_SCHEDULED_JOB_CONSTRAINT_CHANGED",
3534            AtomId::AtomBluetoothActiveDeviceChanged => "ATOM_BLUETOOTH_ACTIVE_DEVICE_CHANGED",
3535            AtomId::AtomBluetoothA2dpPlaybackStateChanged => "ATOM_BLUETOOTH_A2DP_PLAYBACK_STATE_CHANGED",
3536            AtomId::AtomBluetoothA2dpCodecConfigChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CONFIG_CHANGED",
3537            AtomId::AtomBluetoothA2dpCodecCapabilityChanged => "ATOM_BLUETOOTH_A2DP_CODEC_CAPABILITY_CHANGED",
3538            AtomId::AtomBluetoothA2dpAudioUnderrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_UNDERRUN_REPORTED",
3539            AtomId::AtomBluetoothA2dpAudioOverrunReported => "ATOM_BLUETOOTH_A2DP_AUDIO_OVERRUN_REPORTED",
3540            AtomId::AtomBluetoothDeviceRssiReported => "ATOM_BLUETOOTH_DEVICE_RSSI_REPORTED",
3541            AtomId::AtomBluetoothDeviceFailedContactCounterReported => "ATOM_BLUETOOTH_DEVICE_FAILED_CONTACT_COUNTER_REPORTED",
3542            AtomId::AtomBluetoothDeviceTxPowerLevelReported => "ATOM_BLUETOOTH_DEVICE_TX_POWER_LEVEL_REPORTED",
3543            AtomId::AtomBluetoothHciTimeoutReported => "ATOM_BLUETOOTH_HCI_TIMEOUT_REPORTED",
3544            AtomId::AtomBluetoothQualityReportReported => "ATOM_BLUETOOTH_QUALITY_REPORT_REPORTED",
3545            AtomId::AtomBluetoothDeviceInfoReported => "ATOM_BLUETOOTH_DEVICE_INFO_REPORTED",
3546            AtomId::AtomBluetoothRemoteVersionInfoReported => "ATOM_BLUETOOTH_REMOTE_VERSION_INFO_REPORTED",
3547            AtomId::AtomBluetoothSdpAttributeReported => "ATOM_BLUETOOTH_SDP_ATTRIBUTE_REPORTED",
3548            AtomId::AtomBluetoothBondStateChanged => "ATOM_BLUETOOTH_BOND_STATE_CHANGED",
3549            AtomId::AtomBluetoothClassicPairingEventReported => "ATOM_BLUETOOTH_CLASSIC_PAIRING_EVENT_REPORTED",
3550            AtomId::AtomBluetoothSmpPairingEventReported => "ATOM_BLUETOOTH_SMP_PAIRING_EVENT_REPORTED",
3551            AtomId::AtomScreenTimeoutExtensionReported => "ATOM_SCREEN_TIMEOUT_EXTENSION_REPORTED",
3552            AtomId::AtomProcessStartTime => "ATOM_PROCESS_START_TIME",
3553            AtomId::AtomPermissionGrantRequestResultReported => "ATOM_PERMISSION_GRANT_REQUEST_RESULT_REPORTED",
3554            AtomId::AtomBluetoothSocketConnectionStateChanged => "ATOM_BLUETOOTH_SOCKET_CONNECTION_STATE_CHANGED",
3555            AtomId::AtomDeviceIdentifierAccessDenied => "ATOM_DEVICE_IDENTIFIER_ACCESS_DENIED",
3556            AtomId::AtomBubbleDeveloperErrorReported => "ATOM_BUBBLE_DEVELOPER_ERROR_REPORTED",
3557            AtomId::AtomAssistGestureStageReported => "ATOM_ASSIST_GESTURE_STAGE_REPORTED",
3558            AtomId::AtomAssistGestureFeedbackReported => "ATOM_ASSIST_GESTURE_FEEDBACK_REPORTED",
3559            AtomId::AtomAssistGestureProgressReported => "ATOM_ASSIST_GESTURE_PROGRESS_REPORTED",
3560            AtomId::AtomTouchGestureClassified => "ATOM_TOUCH_GESTURE_CLASSIFIED",
3561            AtomId::AtomHiddenApiUsed => "ATOM_HIDDEN_API_USED",
3562            AtomId::AtomStyleUiChanged => "ATOM_STYLE_UI_CHANGED",
3563            AtomId::AtomPrivacyIndicatorsInteracted => "ATOM_PRIVACY_INDICATORS_INTERACTED",
3564            AtomId::AtomAppInstallOnExternalStorageReported => "ATOM_APP_INSTALL_ON_EXTERNAL_STORAGE_REPORTED",
3565            AtomId::AtomNetworkStackReported => "ATOM_NETWORK_STACK_REPORTED",
3566            AtomId::AtomAppMovedStorageReported => "ATOM_APP_MOVED_STORAGE_REPORTED",
3567            AtomId::AtomBiometricEnrolled => "ATOM_BIOMETRIC_ENROLLED",
3568            AtomId::AtomSystemServerWatchdogOccurred => "ATOM_SYSTEM_SERVER_WATCHDOG_OCCURRED",
3569            AtomId::AtomTombStoneOccurred => "ATOM_TOMB_STONE_OCCURRED",
3570            AtomId::AtomBluetoothClassOfDeviceReported => "ATOM_BLUETOOTH_CLASS_OF_DEVICE_REPORTED",
3571            AtomId::AtomIntelligenceEventReported => "ATOM_INTELLIGENCE_EVENT_REPORTED",
3572            AtomId::AtomThermalThrottlingSeverityStateChanged => "ATOM_THERMAL_THROTTLING_SEVERITY_STATE_CHANGED",
3573            AtomId::AtomRoleRequestResultReported => "ATOM_ROLE_REQUEST_RESULT_REPORTED",
3574            AtomId::AtomMediametricsAudiopolicyReported => "ATOM_MEDIAMETRICS_AUDIOPOLICY_REPORTED",
3575            AtomId::AtomMediametricsAudiorecordReported => "ATOM_MEDIAMETRICS_AUDIORECORD_REPORTED",
3576            AtomId::AtomMediametricsAudiothreadReported => "ATOM_MEDIAMETRICS_AUDIOTHREAD_REPORTED",
3577            AtomId::AtomMediametricsAudiotrackReported => "ATOM_MEDIAMETRICS_AUDIOTRACK_REPORTED",
3578            AtomId::AtomMediametricsCodecReported => "ATOM_MEDIAMETRICS_CODEC_REPORTED",
3579            AtomId::AtomMediametricsDrmWidevineReported => "ATOM_MEDIAMETRICS_DRM_WIDEVINE_REPORTED",
3580            AtomId::AtomMediametricsExtractorReported => "ATOM_MEDIAMETRICS_EXTRACTOR_REPORTED",
3581            AtomId::AtomMediametricsMediadrmReported => "ATOM_MEDIAMETRICS_MEDIADRM_REPORTED",
3582            AtomId::AtomMediametricsNuplayerReported => "ATOM_MEDIAMETRICS_NUPLAYER_REPORTED",
3583            AtomId::AtomMediametricsRecorderReported => "ATOM_MEDIAMETRICS_RECORDER_REPORTED",
3584            AtomId::AtomMediametricsDrmmanagerReported => "ATOM_MEDIAMETRICS_DRMMANAGER_REPORTED",
3585            AtomId::AtomCarPowerStateChanged => "ATOM_CAR_POWER_STATE_CHANGED",
3586            AtomId::AtomGarageModeInfo => "ATOM_GARAGE_MODE_INFO",
3587            AtomId::AtomTestAtomReported => "ATOM_TEST_ATOM_REPORTED",
3588            AtomId::AtomContentCaptureCallerMismatchReported => "ATOM_CONTENT_CAPTURE_CALLER_MISMATCH_REPORTED",
3589            AtomId::AtomContentCaptureServiceEvents => "ATOM_CONTENT_CAPTURE_SERVICE_EVENTS",
3590            AtomId::AtomContentCaptureSessionEvents => "ATOM_CONTENT_CAPTURE_SESSION_EVENTS",
3591            AtomId::AtomContentCaptureFlushed => "ATOM_CONTENT_CAPTURE_FLUSHED",
3592            AtomId::AtomLocationManagerApiUsageReported => "ATOM_LOCATION_MANAGER_API_USAGE_REPORTED",
3593            AtomId::AtomReviewPermissionsFragmentResultReported => "ATOM_REVIEW_PERMISSIONS_FRAGMENT_RESULT_REPORTED",
3594            AtomId::AtomRuntimePermissionsUpgradeResult => "ATOM_RUNTIME_PERMISSIONS_UPGRADE_RESULT",
3595            AtomId::AtomGrantPermissionsActivityButtonActions => "ATOM_GRANT_PERMISSIONS_ACTIVITY_BUTTON_ACTIONS",
3596            AtomId::AtomLocationAccessCheckNotificationAction => "ATOM_LOCATION_ACCESS_CHECK_NOTIFICATION_ACTION",
3597            AtomId::AtomAppPermissionFragmentActionReported => "ATOM_APP_PERMISSION_FRAGMENT_ACTION_REPORTED",
3598            AtomId::AtomAppPermissionFragmentViewed => "ATOM_APP_PERMISSION_FRAGMENT_VIEWED",
3599            AtomId::AtomAppPermissionsFragmentViewed => "ATOM_APP_PERMISSIONS_FRAGMENT_VIEWED",
3600            AtomId::AtomPermissionAppsFragmentViewed => "ATOM_PERMISSION_APPS_FRAGMENT_VIEWED",
3601            AtomId::AtomTextSelectionEvent => "ATOM_TEXT_SELECTION_EVENT",
3602            AtomId::AtomTextLinkifyEvent => "ATOM_TEXT_LINKIFY_EVENT",
3603            AtomId::AtomConversationActionsEvent => "ATOM_CONVERSATION_ACTIONS_EVENT",
3604            AtomId::AtomLanguageDetectionEvent => "ATOM_LANGUAGE_DETECTION_EVENT",
3605            AtomId::AtomExclusionRectStateChanged => "ATOM_EXCLUSION_RECT_STATE_CHANGED",
3606            AtomId::AtomBackGestureReportedReported => "ATOM_BACK_GESTURE_REPORTED_REPORTED",
3607            AtomId::AtomUpdateEngineUpdateAttemptReported => "ATOM_UPDATE_ENGINE_UPDATE_ATTEMPT_REPORTED",
3608            AtomId::AtomUpdateEngineSuccessfulUpdateReported => "ATOM_UPDATE_ENGINE_SUCCESSFUL_UPDATE_REPORTED",
3609            AtomId::AtomCameraActionEvent => "ATOM_CAMERA_ACTION_EVENT",
3610            AtomId::AtomAppCompatibilityChangeReported => "ATOM_APP_COMPATIBILITY_CHANGE_REPORTED",
3611            AtomId::AtomPerfettoUploaded => "ATOM_PERFETTO_UPLOADED",
3612            AtomId::AtomVmsClientConnectionStateChanged => "ATOM_VMS_CLIENT_CONNECTION_STATE_CHANGED",
3613            AtomId::AtomMediaProviderScanOccurred => "ATOM_MEDIA_PROVIDER_SCAN_OCCURRED",
3614            AtomId::AtomMediaContentDeleted => "ATOM_MEDIA_CONTENT_DELETED",
3615            AtomId::AtomMediaProviderPermissionRequested => "ATOM_MEDIA_PROVIDER_PERMISSION_REQUESTED",
3616            AtomId::AtomMediaProviderSchemaChanged => "ATOM_MEDIA_PROVIDER_SCHEMA_CHANGED",
3617            AtomId::AtomMediaProviderIdleMaintenanceFinished => "ATOM_MEDIA_PROVIDER_IDLE_MAINTENANCE_FINISHED",
3618            AtomId::AtomRebootEscrowRecoveryReported => "ATOM_REBOOT_ESCROW_RECOVERY_REPORTED",
3619            AtomId::AtomBootTimeEventDurationReported => "ATOM_BOOT_TIME_EVENT_DURATION_REPORTED",
3620            AtomId::AtomBootTimeEventElapsedTimeReported => "ATOM_BOOT_TIME_EVENT_ELAPSED_TIME_REPORTED",
3621            AtomId::AtomBootTimeEventUtcTimeReported => "ATOM_BOOT_TIME_EVENT_UTC_TIME_REPORTED",
3622            AtomId::AtomBootTimeEventErrorCodeReported => "ATOM_BOOT_TIME_EVENT_ERROR_CODE_REPORTED",
3623            AtomId::AtomUserspaceRebootReported => "ATOM_USERSPACE_REBOOT_REPORTED",
3624            AtomId::AtomNotificationReported => "ATOM_NOTIFICATION_REPORTED",
3625            AtomId::AtomNotificationPanelReported => "ATOM_NOTIFICATION_PANEL_REPORTED",
3626            AtomId::AtomNotificationChannelModified => "ATOM_NOTIFICATION_CHANNEL_MODIFIED",
3627            AtomId::AtomIntegrityCheckResultReported => "ATOM_INTEGRITY_CHECK_RESULT_REPORTED",
3628            AtomId::AtomIntegrityRulesPushed => "ATOM_INTEGRITY_RULES_PUSHED",
3629            AtomId::AtomCbMessageReported => "ATOM_CB_MESSAGE_REPORTED",
3630            AtomId::AtomCbMessageError => "ATOM_CB_MESSAGE_ERROR",
3631            AtomId::AtomWifiHealthStatReported => "ATOM_WIFI_HEALTH_STAT_REPORTED",
3632            AtomId::AtomWifiFailureStatReported => "ATOM_WIFI_FAILURE_STAT_REPORTED",
3633            AtomId::AtomWifiConnectionResultReported => "ATOM_WIFI_CONNECTION_RESULT_REPORTED",
3634            AtomId::AtomAppFreezeChanged => "ATOM_APP_FREEZE_CHANGED",
3635            AtomId::AtomSnapshotMergeReported => "ATOM_SNAPSHOT_MERGE_REPORTED",
3636            AtomId::AtomForegroundServiceAppOpSessionEnded => "ATOM_FOREGROUND_SERVICE_APP_OP_SESSION_ENDED",
3637            AtomId::AtomDisplayJankReported => "ATOM_DISPLAY_JANK_REPORTED",
3638            AtomId::AtomAppStandbyBucketChanged => "ATOM_APP_STANDBY_BUCKET_CHANGED",
3639            AtomId::AtomSharesheetStarted => "ATOM_SHARESHEET_STARTED",
3640            AtomId::AtomRankingSelected => "ATOM_RANKING_SELECTED",
3641            AtomId::AtomTvsettingsUiInteracted => "ATOM_TVSETTINGS_UI_INTERACTED",
3642            AtomId::AtomLauncherSnapshot => "ATOM_LAUNCHER_SNAPSHOT",
3643            AtomId::AtomPackageInstallerV2Reported => "ATOM_PACKAGE_INSTALLER_V2_REPORTED",
3644            AtomId::AtomUserLifecycleJourneyReported => "ATOM_USER_LIFECYCLE_JOURNEY_REPORTED",
3645            AtomId::AtomUserLifecycleEventOccurred => "ATOM_USER_LIFECYCLE_EVENT_OCCURRED",
3646            AtomId::AtomAccessibilityShortcutReported => "ATOM_ACCESSIBILITY_SHORTCUT_REPORTED",
3647            AtomId::AtomAccessibilityServiceReported => "ATOM_ACCESSIBILITY_SERVICE_REPORTED",
3648            AtomId::AtomDocsUiDragAndDropReported => "ATOM_DOCS_UI_DRAG_AND_DROP_REPORTED",
3649            AtomId::AtomAppUsageEventOccurred => "ATOM_APP_USAGE_EVENT_OCCURRED",
3650            AtomId::AtomAutoRevokeNotificationClicked => "ATOM_AUTO_REVOKE_NOTIFICATION_CLICKED",
3651            AtomId::AtomAutoRevokeFragmentAppViewed => "ATOM_AUTO_REVOKE_FRAGMENT_APP_VIEWED",
3652            AtomId::AtomAutoRevokedAppInteraction => "ATOM_AUTO_REVOKED_APP_INTERACTION",
3653            AtomId::AtomAppPermissionGroupsFragmentAutoRevokeAction => "ATOM_APP_PERMISSION_GROUPS_FRAGMENT_AUTO_REVOKE_ACTION",
3654            AtomId::AtomEvsUsageStatsReported => "ATOM_EVS_USAGE_STATS_REPORTED",
3655            AtomId::AtomAudioPowerUsageDataReported => "ATOM_AUDIO_POWER_USAGE_DATA_REPORTED",
3656            AtomId::AtomTvTunerStateChanged => "ATOM_TV_TUNER_STATE_CHANGED",
3657            AtomId::AtomMediaoutputOpSwitchReported => "ATOM_MEDIAOUTPUT_OP_SWITCH_REPORTED",
3658            AtomId::AtomCbMessageFiltered => "ATOM_CB_MESSAGE_FILTERED",
3659            AtomId::AtomTvTunerDvrStatus => "ATOM_TV_TUNER_DVR_STATUS",
3660            AtomId::AtomTvCasSessionOpenStatus => "ATOM_TV_CAS_SESSION_OPEN_STATUS",
3661            AtomId::AtomAssistantInvocationReported => "ATOM_ASSISTANT_INVOCATION_REPORTED",
3662            AtomId::AtomDisplayWakeReported => "ATOM_DISPLAY_WAKE_REPORTED",
3663            AtomId::AtomCarUserHalModifyUserRequestReported => "ATOM_CAR_USER_HAL_MODIFY_USER_REQUEST_REPORTED",
3664            AtomId::AtomCarUserHalModifyUserResponseReported => "ATOM_CAR_USER_HAL_MODIFY_USER_RESPONSE_REPORTED",
3665            AtomId::AtomCarUserHalPostSwitchResponseReported => "ATOM_CAR_USER_HAL_POST_SWITCH_RESPONSE_REPORTED",
3666            AtomId::AtomCarUserHalInitialUserInfoRequestReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_REQUEST_REPORTED",
3667            AtomId::AtomCarUserHalInitialUserInfoResponseReported => "ATOM_CAR_USER_HAL_INITIAL_USER_INFO_RESPONSE_REPORTED",
3668            AtomId::AtomCarUserHalUserAssociationRequestReported => "ATOM_CAR_USER_HAL_USER_ASSOCIATION_REQUEST_REPORTED",
3669            AtomId::AtomCarUserHalSetUserAssociationResponseReported => "ATOM_CAR_USER_HAL_SET_USER_ASSOCIATION_RESPONSE_REPORTED",
3670            AtomId::AtomNetworkIpProvisioningReported => "ATOM_NETWORK_IP_PROVISIONING_REPORTED",
3671            AtomId::AtomNetworkDhcpRenewReported => "ATOM_NETWORK_DHCP_RENEW_REPORTED",
3672            AtomId::AtomNetworkValidationReported => "ATOM_NETWORK_VALIDATION_REPORTED",
3673            AtomId::AtomNetworkStackQuirkReported => "ATOM_NETWORK_STACK_QUIRK_REPORTED",
3674            AtomId::AtomMediametricsAudiorecorddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIORECORDDEVICEUSAGE_REPORTED",
3675            AtomId::AtomMediametricsAudiothreaddeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTHREADDEVICEUSAGE_REPORTED",
3676            AtomId::AtomMediametricsAudiotrackdeviceusageReported => "ATOM_MEDIAMETRICS_AUDIOTRACKDEVICEUSAGE_REPORTED",
3677            AtomId::AtomMediametricsAudiodeviceconnectionReported => "ATOM_MEDIAMETRICS_AUDIODEVICECONNECTION_REPORTED",
3678            AtomId::AtomBlobCommitted => "ATOM_BLOB_COMMITTED",
3679            AtomId::AtomBlobLeased => "ATOM_BLOB_LEASED",
3680            AtomId::AtomBlobOpened => "ATOM_BLOB_OPENED",
3681            AtomId::AtomContactsProviderStatusReported => "ATOM_CONTACTS_PROVIDER_STATUS_REPORTED",
3682            AtomId::AtomKeystoreKeyEventReported => "ATOM_KEYSTORE_KEY_EVENT_REPORTED",
3683            AtomId::AtomNetworkTetheringReported => "ATOM_NETWORK_TETHERING_REPORTED",
3684            AtomId::AtomImeTouchReported => "ATOM_IME_TOUCH_REPORTED",
3685            AtomId::AtomUiInteractionFrameInfoReported => "ATOM_UI_INTERACTION_FRAME_INFO_REPORTED",
3686            AtomId::AtomUiActionLatencyReported => "ATOM_UI_ACTION_LATENCY_REPORTED",
3687            AtomId::AtomWifiDisconnectReported => "ATOM_WIFI_DISCONNECT_REPORTED",
3688            AtomId::AtomWifiConnectionStateChanged => "ATOM_WIFI_CONNECTION_STATE_CHANGED",
3689            AtomId::AtomHdmiCecActiveSourceChanged => "ATOM_HDMI_CEC_ACTIVE_SOURCE_CHANGED",
3690            AtomId::AtomHdmiCecMessageReported => "ATOM_HDMI_CEC_MESSAGE_REPORTED",
3691            AtomId::AtomAirplaneMode => "ATOM_AIRPLANE_MODE",
3692            AtomId::AtomModemRestart => "ATOM_MODEM_RESTART",
3693            AtomId::AtomCarrierIdMismatchReported => "ATOM_CARRIER_ID_MISMATCH_REPORTED",
3694            AtomId::AtomCarrierIdTableUpdated => "ATOM_CARRIER_ID_TABLE_UPDATED",
3695            AtomId::AtomDataStallRecoveryReported => "ATOM_DATA_STALL_RECOVERY_REPORTED",
3696            AtomId::AtomMediametricsMediaparserReported => "ATOM_MEDIAMETRICS_MEDIAPARSER_REPORTED",
3697            AtomId::AtomTlsHandshakeReported => "ATOM_TLS_HANDSHAKE_REPORTED",
3698            AtomId::AtomTextClassifierApiUsageReported => "ATOM_TEXT_CLASSIFIER_API_USAGE_REPORTED",
3699            AtomId::AtomCarWatchdogKillStatsReported => "ATOM_CAR_WATCHDOG_KILL_STATS_REPORTED",
3700            AtomId::AtomMediametricsPlaybackReported => "ATOM_MEDIAMETRICS_PLAYBACK_REPORTED",
3701            AtomId::AtomMediaNetworkInfoChanged => "ATOM_MEDIA_NETWORK_INFO_CHANGED",
3702            AtomId::AtomMediaPlaybackStateChanged => "ATOM_MEDIA_PLAYBACK_STATE_CHANGED",
3703            AtomId::AtomMediaPlaybackErrorReported => "ATOM_MEDIA_PLAYBACK_ERROR_REPORTED",
3704            AtomId::AtomMediaPlaybackTrackChanged => "ATOM_MEDIA_PLAYBACK_TRACK_CHANGED",
3705            AtomId::AtomWifiScanReported => "ATOM_WIFI_SCAN_REPORTED",
3706            AtomId::AtomWifiPnoScanReported => "ATOM_WIFI_PNO_SCAN_REPORTED",
3707            AtomId::AtomTifTuneChanged => "ATOM_TIF_TUNE_CHANGED",
3708            AtomId::AtomAutoRotateReported => "ATOM_AUTO_ROTATE_REPORTED",
3709            AtomId::AtomPerfettoTrigger => "ATOM_PERFETTO_TRIGGER",
3710            AtomId::AtomTranscodingData => "ATOM_TRANSCODING_DATA",
3711            AtomId::AtomImsServiceEntitlementUpdated => "ATOM_IMS_SERVICE_ENTITLEMENT_UPDATED",
3712            AtomId::AtomDeviceRotated => "ATOM_DEVICE_ROTATED",
3713            AtomId::AtomSimSpecificSettingsRestored => "ATOM_SIM_SPECIFIC_SETTINGS_RESTORED",
3714            AtomId::AtomTextClassifierDownloadReported => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_REPORTED",
3715            AtomId::AtomPinStorageEvent => "ATOM_PIN_STORAGE_EVENT",
3716            AtomId::AtomFaceDownReported => "ATOM_FACE_DOWN_REPORTED",
3717            AtomId::AtomBluetoothHalCrashReasonReported => "ATOM_BLUETOOTH_HAL_CRASH_REASON_REPORTED",
3718            AtomId::AtomRebootEscrowPreparationReported => "ATOM_REBOOT_ESCROW_PREPARATION_REPORTED",
3719            AtomId::AtomRebootEscrowLskfCaptureReported => "ATOM_REBOOT_ESCROW_LSKF_CAPTURE_REPORTED",
3720            AtomId::AtomRebootEscrowRebootReported => "ATOM_REBOOT_ESCROW_REBOOT_REPORTED",
3721            AtomId::AtomBinderLatencyReported => "ATOM_BINDER_LATENCY_REPORTED",
3722            AtomId::AtomMediametricsAaudiostreamReported => "ATOM_MEDIAMETRICS_AAUDIOSTREAM_REPORTED",
3723            AtomId::AtomMediaTranscodingSessionEnded => "ATOM_MEDIA_TRANSCODING_SESSION_ENDED",
3724            AtomId::AtomMagnificationUsageReported => "ATOM_MAGNIFICATION_USAGE_REPORTED",
3725            AtomId::AtomMagnificationModeWithImeOnReported => "ATOM_MAGNIFICATION_MODE_WITH_IME_ON_REPORTED",
3726            AtomId::AtomAppSearchCallStatsReported => "ATOM_APP_SEARCH_CALL_STATS_REPORTED",
3727            AtomId::AtomAppSearchPutDocumentStatsReported => "ATOM_APP_SEARCH_PUT_DOCUMENT_STATS_REPORTED",
3728            AtomId::AtomDeviceControlChanged => "ATOM_DEVICE_CONTROL_CHANGED",
3729            AtomId::AtomDeviceStateChanged => "ATOM_DEVICE_STATE_CHANGED",
3730            AtomId::AtomInputdeviceRegistered => "ATOM_INPUTDEVICE_REGISTERED",
3731            AtomId::AtomSmartspaceCardReported => "ATOM_SMARTSPACE_CARD_REPORTED",
3732            AtomId::AtomAuthPromptAuthenticateInvoked => "ATOM_AUTH_PROMPT_AUTHENTICATE_INVOKED",
3733            AtomId::AtomAuthManagerCanAuthenticateInvoked => "ATOM_AUTH_MANAGER_CAN_AUTHENTICATE_INVOKED",
3734            AtomId::AtomAuthEnrollActionInvoked => "ATOM_AUTH_ENROLL_ACTION_INVOKED",
3735            AtomId::AtomAuthDeprecatedApiUsed => "ATOM_AUTH_DEPRECATED_API_USED",
3736            AtomId::AtomUnattendedRebootOccurred => "ATOM_UNATTENDED_REBOOT_OCCURRED",
3737            AtomId::AtomLongRebootBlockingReported => "ATOM_LONG_REBOOT_BLOCKING_REPORTED",
3738            AtomId::AtomLocationTimeZoneProviderStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_STATE_CHANGED",
3739            AtomId::AtomFdtrackEventOccurred => "ATOM_FDTRACK_EVENT_OCCURRED",
3740            AtomId::AtomTimeoutAutoExtendedReported => "ATOM_TIMEOUT_AUTO_EXTENDED_REPORTED",
3741            AtomId::AtomAlarmBatchDelivered => "ATOM_ALARM_BATCH_DELIVERED",
3742            AtomId::AtomAlarmScheduled => "ATOM_ALARM_SCHEDULED",
3743            AtomId::AtomCarWatchdogIoOveruseStatsReported => "ATOM_CAR_WATCHDOG_IO_OVERUSE_STATS_REPORTED",
3744            AtomId::AtomUserLevelHibernationStateChanged => "ATOM_USER_LEVEL_HIBERNATION_STATE_CHANGED",
3745            AtomId::AtomAppSearchInitializeStatsReported => "ATOM_APP_SEARCH_INITIALIZE_STATS_REPORTED",
3746            AtomId::AtomAppSearchQueryStatsReported => "ATOM_APP_SEARCH_QUERY_STATS_REPORTED",
3747            AtomId::AtomAppProcessDied => "ATOM_APP_PROCESS_DIED",
3748            AtomId::AtomNetworkIpReachabilityMonitorReported => "ATOM_NETWORK_IP_REACHABILITY_MONITOR_REPORTED",
3749            AtomId::AtomSlowInputEventReported => "ATOM_SLOW_INPUT_EVENT_REPORTED",
3750            AtomId::AtomAnrOccurredProcessingStarted => "ATOM_ANR_OCCURRED_PROCESSING_STARTED",
3751            AtomId::AtomAppSearchRemoveStatsReported => "ATOM_APP_SEARCH_REMOVE_STATS_REPORTED",
3752            AtomId::AtomMediaCodecReported => "ATOM_MEDIA_CODEC_REPORTED",
3753            AtomId::AtomPermissionUsageFragmentInteraction => "ATOM_PERMISSION_USAGE_FRAGMENT_INTERACTION",
3754            AtomId::AtomPermissionDetailsInteraction => "ATOM_PERMISSION_DETAILS_INTERACTION",
3755            AtomId::AtomPrivacySensorToggleInteraction => "ATOM_PRIVACY_SENSOR_TOGGLE_INTERACTION",
3756            AtomId::AtomPrivacyToggleDialogInteraction => "ATOM_PRIVACY_TOGGLE_DIALOG_INTERACTION",
3757            AtomId::AtomAppSearchOptimizeStatsReported => "ATOM_APP_SEARCH_OPTIMIZE_STATS_REPORTED",
3758            AtomId::AtomNonA11yToolServiceWarningReport => "ATOM_NON_A11Y_TOOL_SERVICE_WARNING_REPORT",
3759            AtomId::AtomAppCompatStateChanged => "ATOM_APP_COMPAT_STATE_CHANGED",
3760            AtomId::AtomSizeCompatRestartButtonEventReported => "ATOM_SIZE_COMPAT_RESTART_BUTTON_EVENT_REPORTED",
3761            AtomId::AtomSplitscreenUiChanged => "ATOM_SPLITSCREEN_UI_CHANGED",
3762            AtomId::AtomNetworkDnsHandshakeReported => "ATOM_NETWORK_DNS_HANDSHAKE_REPORTED",
3763            AtomId::AtomBluetoothCodePathCounter => "ATOM_BLUETOOTH_CODE_PATH_COUNTER",
3764            AtomId::AtomBluetoothLeBatchScanReportDelay => "ATOM_BLUETOOTH_LE_BATCH_SCAN_REPORT_DELAY",
3765            AtomId::AtomAccessibilityFloatingMenuUiChanged => "ATOM_ACCESSIBILITY_FLOATING_MENU_UI_CHANGED",
3766            AtomId::AtomNeuralnetworksCompilationCompleted => "ATOM_NEURALNETWORKS_COMPILATION_COMPLETED",
3767            AtomId::AtomNeuralnetworksExecutionCompleted => "ATOM_NEURALNETWORKS_EXECUTION_COMPLETED",
3768            AtomId::AtomNeuralnetworksCompilationFailed => "ATOM_NEURALNETWORKS_COMPILATION_FAILED",
3769            AtomId::AtomNeuralnetworksExecutionFailed => "ATOM_NEURALNETWORKS_EXECUTION_FAILED",
3770            AtomId::AtomContextHubBooted => "ATOM_CONTEXT_HUB_BOOTED",
3771            AtomId::AtomContextHubRestarted => "ATOM_CONTEXT_HUB_RESTARTED",
3772            AtomId::AtomContextHubLoadedNanoappSnapshotReported => "ATOM_CONTEXT_HUB_LOADED_NANOAPP_SNAPSHOT_REPORTED",
3773            AtomId::AtomChreCodeDownloadTransacted => "ATOM_CHRE_CODE_DOWNLOAD_TRANSACTED",
3774            AtomId::AtomUwbSessionInited => "ATOM_UWB_SESSION_INITED",
3775            AtomId::AtomUwbSessionClosed => "ATOM_UWB_SESSION_CLOSED",
3776            AtomId::AtomUwbFirstRangingReceived => "ATOM_UWB_FIRST_RANGING_RECEIVED",
3777            AtomId::AtomUwbRangingMeasurementReceived => "ATOM_UWB_RANGING_MEASUREMENT_RECEIVED",
3778            AtomId::AtomTextClassifierDownloadWorkScheduled => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_SCHEDULED",
3779            AtomId::AtomTextClassifierDownloadWorkCompleted => "ATOM_TEXT_CLASSIFIER_DOWNLOAD_WORK_COMPLETED",
3780            AtomId::AtomClipboardCleared => "ATOM_CLIPBOARD_CLEARED",
3781            AtomId::AtomVmCreationRequested => "ATOM_VM_CREATION_REQUESTED",
3782            AtomId::AtomNearbyDeviceScanStateChanged => "ATOM_NEARBY_DEVICE_SCAN_STATE_CHANGED",
3783            AtomId::AtomApplicationLocalesChanged => "ATOM_APPLICATION_LOCALES_CHANGED",
3784            AtomId::AtomMediametricsAudiotrackstatusReported => "ATOM_MEDIAMETRICS_AUDIOTRACKSTATUS_REPORTED",
3785            AtomId::AtomFoldStateDurationReported => "ATOM_FOLD_STATE_DURATION_REPORTED",
3786            AtomId::AtomLocationTimeZoneProviderControllerStateChanged => "ATOM_LOCATION_TIME_ZONE_PROVIDER_CONTROLLER_STATE_CHANGED",
3787            AtomId::AtomDisplayHbmStateChanged => "ATOM_DISPLAY_HBM_STATE_CHANGED",
3788            AtomId::AtomDisplayHbmBrightnessChanged => "ATOM_DISPLAY_HBM_BRIGHTNESS_CHANGED",
3789            AtomId::AtomPersistentUriPermissionsFlushed => "ATOM_PERSISTENT_URI_PERMISSIONS_FLUSHED",
3790            AtomId::AtomEarlyBootCompOsArtifactsCheckReported => "ATOM_EARLY_BOOT_COMP_OS_ARTIFACTS_CHECK_REPORTED",
3791            AtomId::AtomVbmetaDigestReported => "ATOM_VBMETA_DIGEST_REPORTED",
3792            AtomId::AtomApexInfoGathered => "ATOM_APEX_INFO_GATHERED",
3793            AtomId::AtomPvmInfoGathered => "ATOM_PVM_INFO_GATHERED",
3794            AtomId::AtomWearSettingsUiInteracted => "ATOM_WEAR_SETTINGS_UI_INTERACTED",
3795            AtomId::AtomTracingServiceReportEvent => "ATOM_TRACING_SERVICE_REPORT_EVENT",
3796            AtomId::AtomMediametricsAudiorecordstatusReported => "ATOM_MEDIAMETRICS_AUDIORECORDSTATUS_REPORTED",
3797            AtomId::AtomLauncherLatency => "ATOM_LAUNCHER_LATENCY",
3798            AtomId::AtomDropboxEntryDropped => "ATOM_DROPBOX_ENTRY_DROPPED",
3799            AtomId::AtomWifiP2pConnectionReported => "ATOM_WIFI_P2P_CONNECTION_REPORTED",
3800            AtomId::AtomGameStateChanged => "ATOM_GAME_STATE_CHANGED",
3801            AtomId::AtomHotwordDetectorCreateRequested => "ATOM_HOTWORD_DETECTOR_CREATE_REQUESTED",
3802            AtomId::AtomHotwordDetectionServiceInitResultReported => "ATOM_HOTWORD_DETECTION_SERVICE_INIT_RESULT_REPORTED",
3803            AtomId::AtomHotwordDetectionServiceRestarted => "ATOM_HOTWORD_DETECTION_SERVICE_RESTARTED",
3804            AtomId::AtomHotwordDetectorKeyphraseTriggered => "ATOM_HOTWORD_DETECTOR_KEYPHRASE_TRIGGERED",
3805            AtomId::AtomHotwordDetectorEvents => "ATOM_HOTWORD_DETECTOR_EVENTS",
3806            AtomId::AtomBootCompletedBroadcastCompletionLatencyReported => "ATOM_BOOT_COMPLETED_BROADCAST_COMPLETION_LATENCY_REPORTED",
3807            AtomId::AtomContactsIndexerUpdateStatsReported => "ATOM_CONTACTS_INDEXER_UPDATE_STATS_REPORTED",
3808            AtomId::AtomAppBackgroundRestrictionsInfo => "ATOM_APP_BACKGROUND_RESTRICTIONS_INFO",
3809            AtomId::AtomMmsSmsProviderGetThreadIdFailed => "ATOM_MMS_SMS_PROVIDER_GET_THREAD_ID_FAILED",
3810            AtomId::AtomMmsSmsDatabaseHelperOnUpgradeFailed => "ATOM_MMS_SMS_DATABASE_HELPER_ON_UPGRADE_FAILED",
3811            AtomId::AtomPermissionReminderNotificationInteracted => "ATOM_PERMISSION_REMINDER_NOTIFICATION_INTERACTED",
3812            AtomId::AtomRecentPermissionDecisionsInteracted => "ATOM_RECENT_PERMISSION_DECISIONS_INTERACTED",
3813            AtomId::AtomGnssPsdsDownloadReported => "ATOM_GNSS_PSDS_DOWNLOAD_REPORTED",
3814            AtomId::AtomLeAudioConnectionSessionReported => "ATOM_LE_AUDIO_CONNECTION_SESSION_REPORTED",
3815            AtomId::AtomLeAudioBroadcastSessionReported => "ATOM_LE_AUDIO_BROADCAST_SESSION_REPORTED",
3816            AtomId::AtomDreamUiEventReported => "ATOM_DREAM_UI_EVENT_REPORTED",
3817            AtomId::AtomTaskManagerEventReported => "ATOM_TASK_MANAGER_EVENT_REPORTED",
3818            AtomId::AtomCdmAssociationAction => "ATOM_CDM_ASSOCIATION_ACTION",
3819            AtomId::AtomMagnificationTripleTapAndHoldActivatedSessionReported => "ATOM_MAGNIFICATION_TRIPLE_TAP_AND_HOLD_ACTIVATED_SESSION_REPORTED",
3820            AtomId::AtomMagnificationFollowTypingFocusActivatedSessionReported => "ATOM_MAGNIFICATION_FOLLOW_TYPING_FOCUS_ACTIVATED_SESSION_REPORTED",
3821            AtomId::AtomAccessibilityTextReadingOptionsChanged => "ATOM_ACCESSIBILITY_TEXT_READING_OPTIONS_CHANGED",
3822            AtomId::AtomWifiSetupFailureCrashReported => "ATOM_WIFI_SETUP_FAILURE_CRASH_REPORTED",
3823            AtomId::AtomUwbDeviceErrorReported => "ATOM_UWB_DEVICE_ERROR_REPORTED",
3824            AtomId::AtomIsolatedCompilationScheduled => "ATOM_ISOLATED_COMPILATION_SCHEDULED",
3825            AtomId::AtomIsolatedCompilationEnded => "ATOM_ISOLATED_COMPILATION_ENDED",
3826            AtomId::AtomOnsOpportunisticEsimProvisioningComplete => "ATOM_ONS_OPPORTUNISTIC_ESIM_PROVISIONING_COMPLETE",
3827            AtomId::AtomSystemServerPreWatchdogOccurred => "ATOM_SYSTEM_SERVER_PRE_WATCHDOG_OCCURRED",
3828            AtomId::AtomTelephonyAnomalyDetected => "ATOM_TELEPHONY_ANOMALY_DETECTED",
3829            AtomId::AtomLetterboxPositionChanged => "ATOM_LETTERBOX_POSITION_CHANGED",
3830            AtomId::AtomRemoteKeyProvisioningAttempt => "ATOM_REMOTE_KEY_PROVISIONING_ATTEMPT",
3831            AtomId::AtomRemoteKeyProvisioningNetworkInfo => "ATOM_REMOTE_KEY_PROVISIONING_NETWORK_INFO",
3832            AtomId::AtomRemoteKeyProvisioningTiming => "ATOM_REMOTE_KEY_PROVISIONING_TIMING",
3833            AtomId::AtomMediaoutputOpInteractionReport => "ATOM_MEDIAOUTPUT_OP_INTERACTION_REPORT",
3834            AtomId::AtomSyncExemptionOccurred => "ATOM_SYNC_EXEMPTION_OCCURRED",
3835            AtomId::AtomAutofillPresentationEventReported => "ATOM_AUTOFILL_PRESENTATION_EVENT_REPORTED",
3836            AtomId::AtomDockStateChanged => "ATOM_DOCK_STATE_CHANGED",
3837            AtomId::AtomSafetySourceStateCollected => "ATOM_SAFETY_SOURCE_STATE_COLLECTED",
3838            AtomId::AtomSafetyCenterSystemEventReported => "ATOM_SAFETY_CENTER_SYSTEM_EVENT_REPORTED",
3839            AtomId::AtomSafetyCenterInteractionReported => "ATOM_SAFETY_CENTER_INTERACTION_REPORTED",
3840            AtomId::AtomSettingsProviderSettingChanged => "ATOM_SETTINGS_PROVIDER_SETTING_CHANGED",
3841            AtomId::AtomBroadcastDeliveryEventReported => "ATOM_BROADCAST_DELIVERY_EVENT_REPORTED",
3842            AtomId::AtomServiceRequestEventReported => "ATOM_SERVICE_REQUEST_EVENT_REPORTED",
3843            AtomId::AtomProviderAcquisitionEventReported => "ATOM_PROVIDER_ACQUISITION_EVENT_REPORTED",
3844            AtomId::AtomBluetoothDeviceNameReported => "ATOM_BLUETOOTH_DEVICE_NAME_REPORTED",
3845            AtomId::AtomCbConfigUpdated => "ATOM_CB_CONFIG_UPDATED",
3846            AtomId::AtomCbModuleErrorReported => "ATOM_CB_MODULE_ERROR_REPORTED",
3847            AtomId::AtomCbServiceFeatureChanged => "ATOM_CB_SERVICE_FEATURE_CHANGED",
3848            AtomId::AtomCbReceiverFeatureChanged => "ATOM_CB_RECEIVER_FEATURE_CHANGED",
3849            AtomId::AtomPrivacySignalNotificationInteraction => "ATOM_PRIVACY_SIGNAL_NOTIFICATION_INTERACTION",
3850            AtomId::AtomPrivacySignalIssueCardInteraction => "ATOM_PRIVACY_SIGNAL_ISSUE_CARD_INTERACTION",
3851            AtomId::AtomPrivacySignalsJobFailure => "ATOM_PRIVACY_SIGNALS_JOB_FAILURE",
3852            AtomId::AtomVibrationReported => "ATOM_VIBRATION_REPORTED",
3853            AtomId::AtomUwbRangingStart => "ATOM_UWB_RANGING_START",
3854            AtomId::AtomAppCompactedV2 => "ATOM_APP_COMPACTED_V2",
3855            AtomId::AtomDisplayBrightnessChanged => "ATOM_DISPLAY_BRIGHTNESS_CHANGED",
3856            AtomId::AtomActivityActionBlocked => "ATOM_ACTIVITY_ACTION_BLOCKED",
3857            AtomId::AtomNetworkDnsServerSupportReported => "ATOM_NETWORK_DNS_SERVER_SUPPORT_REPORTED",
3858            AtomId::AtomVmBooted => "ATOM_VM_BOOTED",
3859            AtomId::AtomVmExited => "ATOM_VM_EXITED",
3860            AtomId::AtomAmbientBrightnessStatsReported => "ATOM_AMBIENT_BRIGHTNESS_STATS_REPORTED",
3861            AtomId::AtomMediametricsSpatializercapabilitiesReported => "ATOM_MEDIAMETRICS_SPATIALIZERCAPABILITIES_REPORTED",
3862            AtomId::AtomMediametricsSpatializerdeviceenabledReported => "ATOM_MEDIAMETRICS_SPATIALIZERDEVICEENABLED_REPORTED",
3863            AtomId::AtomMediametricsHeadtrackerdeviceenabledReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICEENABLED_REPORTED",
3864            AtomId::AtomMediametricsHeadtrackerdevicesupportedReported => "ATOM_MEDIAMETRICS_HEADTRACKERDEVICESUPPORTED_REPORTED",
3865            AtomId::AtomHearingAidInfoReported => "ATOM_HEARING_AID_INFO_REPORTED",
3866            AtomId::AtomDeviceWideJobConstraintChanged => "ATOM_DEVICE_WIDE_JOB_CONSTRAINT_CHANGED",
3867            AtomId::AtomAmbientModeChanged => "ATOM_AMBIENT_MODE_CHANGED",
3868            AtomId::AtomAnrLatencyReported => "ATOM_ANR_LATENCY_REPORTED",
3869            AtomId::AtomResourceApiInfo => "ATOM_RESOURCE_API_INFO",
3870            AtomId::AtomSystemDefaultNetworkChanged => "ATOM_SYSTEM_DEFAULT_NETWORK_CHANGED",
3871            AtomId::AtomIwlanSetupDataCallResultReported => "ATOM_IWLAN_SETUP_DATA_CALL_RESULT_REPORTED",
3872            AtomId::AtomIwlanPdnDisconnectedReasonReported => "ATOM_IWLAN_PDN_DISCONNECTED_REASON_REPORTED",
3873            AtomId::AtomAirplaneModeSessionReported => "ATOM_AIRPLANE_MODE_SESSION_REPORTED",
3874            AtomId::AtomVmCpuStatusReported => "ATOM_VM_CPU_STATUS_REPORTED",
3875            AtomId::AtomVmMemStatusReported => "ATOM_VM_MEM_STATUS_REPORTED",
3876            AtomId::AtomPackageInstallationSessionReported => "ATOM_PACKAGE_INSTALLATION_SESSION_REPORTED",
3877            AtomId::AtomDefaultNetworkRematchInfo => "ATOM_DEFAULT_NETWORK_REMATCH_INFO",
3878            AtomId::AtomNetworkSelectionPerformance => "ATOM_NETWORK_SELECTION_PERFORMANCE",
3879            AtomId::AtomNetworkNsdReported => "ATOM_NETWORK_NSD_REPORTED",
3880            AtomId::AtomBluetoothDisconnectionReasonReported => "ATOM_BLUETOOTH_DISCONNECTION_REASON_REPORTED",
3881            AtomId::AtomBluetoothLocalVersionsReported => "ATOM_BLUETOOTH_LOCAL_VERSIONS_REPORTED",
3882            AtomId::AtomBluetoothRemoteSupportedFeaturesReported => "ATOM_BLUETOOTH_REMOTE_SUPPORTED_FEATURES_REPORTED",
3883            AtomId::AtomBluetoothLocalSupportedFeaturesReported => "ATOM_BLUETOOTH_LOCAL_SUPPORTED_FEATURES_REPORTED",
3884            AtomId::AtomBluetoothGattAppInfo => "ATOM_BLUETOOTH_GATT_APP_INFO",
3885            AtomId::AtomBrightnessConfigurationUpdated => "ATOM_BRIGHTNESS_CONFIGURATION_UPDATED",
3886            AtomId::AtomWearMediaOutputSwitcherLaunched => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_LAUNCHED",
3887            AtomId::AtomWearMediaOutputSwitcherFinished => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FINISHED",
3888            AtomId::AtomWearMediaOutputSwitcherConnectionReported => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECTION_REPORTED",
3889            AtomId::AtomWearMediaOutputSwitcherDeviceScanTriggered => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_TRIGGERED",
3890            AtomId::AtomWearMediaOutputSwitcherFirstDeviceScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FIRST_DEVICE_SCAN_LATENCY",
3891            AtomId::AtomWearMediaOutputSwitcherConnectDeviceLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_CONNECT_DEVICE_LATENCY",
3892            AtomId::AtomPackageManagerSnapshotReported => "ATOM_PACKAGE_MANAGER_SNAPSHOT_REPORTED",
3893            AtomId::AtomPackageManagerAppsFilterCacheBuildReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_BUILD_REPORTED",
3894            AtomId::AtomPackageManagerAppsFilterCacheUpdateReported => "ATOM_PACKAGE_MANAGER_APPS_FILTER_CACHE_UPDATE_REPORTED",
3895            AtomId::AtomLauncherImpressionEvent => "ATOM_LAUNCHER_IMPRESSION_EVENT",
3896            AtomId::AtomWearMediaOutputSwitcherAllDevicesScanLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_ALL_DEVICES_SCAN_LATENCY",
3897            AtomId::AtomWsWatchFaceEdited => "ATOM_WS_WATCH_FACE_EDITED",
3898            AtomId::AtomWsWatchFaceFavoriteActionReported => "ATOM_WS_WATCH_FACE_FAVORITE_ACTION_REPORTED",
3899            AtomId::AtomWsWatchFaceSetActionReported => "ATOM_WS_WATCH_FACE_SET_ACTION_REPORTED",
3900            AtomId::AtomPackageUninstallationReported => "ATOM_PACKAGE_UNINSTALLATION_REPORTED",
3901            AtomId::AtomGameModeChanged => "ATOM_GAME_MODE_CHANGED",
3902            AtomId::AtomGameModeConfigurationChanged => "ATOM_GAME_MODE_CONFIGURATION_CHANGED",
3903            AtomId::AtomBedtimeModeStateChanged => "ATOM_BEDTIME_MODE_STATE_CHANGED",
3904            AtomId::AtomNetworkSliceSessionEnded => "ATOM_NETWORK_SLICE_SESSION_ENDED",
3905            AtomId::AtomNetworkSliceDailyDataUsageReported => "ATOM_NETWORK_SLICE_DAILY_DATA_USAGE_REPORTED",
3906            AtomId::AtomNfcTagTypeOccurred => "ATOM_NFC_TAG_TYPE_OCCURRED",
3907            AtomId::AtomNfcAidConflictOccurred => "ATOM_NFC_AID_CONFLICT_OCCURRED",
3908            AtomId::AtomNfcReaderConflictOccurred => "ATOM_NFC_READER_CONFLICT_OCCURRED",
3909            AtomId::AtomWsTileListChanged => "ATOM_WS_TILE_LIST_CHANGED",
3910            AtomId::AtomGetTypeAccessedWithoutPermission => "ATOM_GET_TYPE_ACCESSED_WITHOUT_PERMISSION",
3911            AtomId::AtomMobileBundledAppInfoGathered => "ATOM_MOBILE_BUNDLED_APP_INFO_GATHERED",
3912            AtomId::AtomWsWatchFaceComplicationSetChanged => "ATOM_WS_WATCH_FACE_COMPLICATION_SET_CHANGED",
3913            AtomId::AtomMediaDrmCreated => "ATOM_MEDIA_DRM_CREATED",
3914            AtomId::AtomMediaDrmErrored => "ATOM_MEDIA_DRM_ERRORED",
3915            AtomId::AtomMediaDrmSessionOpened => "ATOM_MEDIA_DRM_SESSION_OPENED",
3916            AtomId::AtomMediaDrmSessionClosed => "ATOM_MEDIA_DRM_SESSION_CLOSED",
3917            AtomId::AtomUserSelectedResolution => "ATOM_USER_SELECTED_RESOLUTION",
3918            AtomId::AtomUnsafeIntentEventReported => "ATOM_UNSAFE_INTENT_EVENT_REPORTED",
3919            AtomId::AtomPerformanceHintSessionReported => "ATOM_PERFORMANCE_HINT_SESSION_REPORTED",
3920            AtomId::AtomMediametricsMidiDeviceCloseReported => "ATOM_MEDIAMETRICS_MIDI_DEVICE_CLOSE_REPORTED",
3921            AtomId::AtomBiometricTouchReported => "ATOM_BIOMETRIC_TOUCH_REPORTED",
3922            AtomId::AtomHotwordAudioEgressEventReported => "ATOM_HOTWORD_AUDIO_EGRESS_EVENT_REPORTED",
3923            AtomId::AtomLocationEnabledStateChanged => "ATOM_LOCATION_ENABLED_STATE_CHANGED",
3924            AtomId::AtomImeRequestFinished => "ATOM_IME_REQUEST_FINISHED",
3925            AtomId::AtomUsbComplianceWarningsReported => "ATOM_USB_COMPLIANCE_WARNINGS_REPORTED",
3926            AtomId::AtomAppSupportedLocalesChanged => "ATOM_APP_SUPPORTED_LOCALES_CHANGED",
3927            AtomId::AtomMediaProviderVolumeRecoveryReported => "ATOM_MEDIA_PROVIDER_VOLUME_RECOVERY_REPORTED",
3928            AtomId::AtomBiometricPropertiesCollected => "ATOM_BIOMETRIC_PROPERTIES_COLLECTED",
3929            AtomId::AtomKernelWakeupAttributed => "ATOM_KERNEL_WAKEUP_ATTRIBUTED",
3930            AtomId::AtomScreenStateChangedV2 => "ATOM_SCREEN_STATE_CHANGED_V2",
3931            AtomId::AtomWsBackupActionReported => "ATOM_WS_BACKUP_ACTION_REPORTED",
3932            AtomId::AtomWsRestoreActionReported => "ATOM_WS_RESTORE_ACTION_REPORTED",
3933            AtomId::AtomDeviceLogAccessEventReported => "ATOM_DEVICE_LOG_ACCESS_EVENT_REPORTED",
3934            AtomId::AtomMediaSessionUpdated => "ATOM_MEDIA_SESSION_UPDATED",
3935            AtomId::AtomWearOobeStateChanged => "ATOM_WEAR_OOBE_STATE_CHANGED",
3936            AtomId::AtomWsNotificationUpdated => "ATOM_WS_NOTIFICATION_UPDATED",
3937            AtomId::AtomNetworkValidationFailureStatsDailyReported => "ATOM_NETWORK_VALIDATION_FAILURE_STATS_DAILY_REPORTED",
3938            AtomId::AtomWsComplicationTapped => "ATOM_WS_COMPLICATION_TAPPED",
3939            AtomId::AtomWsNotificationBlocking => "ATOM_WS_NOTIFICATION_BLOCKING",
3940            AtomId::AtomWsNotificationBridgemodeUpdated => "ATOM_WS_NOTIFICATION_BRIDGEMODE_UPDATED",
3941            AtomId::AtomWsNotificationDismissalActioned => "ATOM_WS_NOTIFICATION_DISMISSAL_ACTIONED",
3942            AtomId::AtomWsNotificationActioned => "ATOM_WS_NOTIFICATION_ACTIONED",
3943            AtomId::AtomWsNotificationLatency => "ATOM_WS_NOTIFICATION_LATENCY",
3944            AtomId::AtomWifiBytesTransfer => "ATOM_WIFI_BYTES_TRANSFER",
3945            AtomId::AtomWifiBytesTransferByFgBg => "ATOM_WIFI_BYTES_TRANSFER_BY_FG_BG",
3946            AtomId::AtomMobileBytesTransfer => "ATOM_MOBILE_BYTES_TRANSFER",
3947            AtomId::AtomMobileBytesTransferByFgBg => "ATOM_MOBILE_BYTES_TRANSFER_BY_FG_BG",
3948            AtomId::AtomBluetoothBytesTransfer => "ATOM_BLUETOOTH_BYTES_TRANSFER",
3949            AtomId::AtomKernelWakelock => "ATOM_KERNEL_WAKELOCK",
3950            AtomId::AtomSubsystemSleepState => "ATOM_SUBSYSTEM_SLEEP_STATE",
3951            AtomId::AtomCpuTimePerUid => "ATOM_CPU_TIME_PER_UID",
3952            AtomId::AtomCpuTimePerUidFreq => "ATOM_CPU_TIME_PER_UID_FREQ",
3953            AtomId::AtomWifiActivityInfo => "ATOM_WIFI_ACTIVITY_INFO",
3954            AtomId::AtomModemActivityInfo => "ATOM_MODEM_ACTIVITY_INFO",
3955            AtomId::AtomBluetoothActivityInfo => "ATOM_BLUETOOTH_ACTIVITY_INFO",
3956            AtomId::AtomProcessMemoryState => "ATOM_PROCESS_MEMORY_STATE",
3957            AtomId::AtomSystemElapsedRealtime => "ATOM_SYSTEM_ELAPSED_REALTIME",
3958            AtomId::AtomSystemUptime => "ATOM_SYSTEM_UPTIME",
3959            AtomId::AtomCpuActiveTime => "ATOM_CPU_ACTIVE_TIME",
3960            AtomId::AtomCpuClusterTime => "ATOM_CPU_CLUSTER_TIME",
3961            AtomId::AtomDiskSpace => "ATOM_DISK_SPACE",
3962            AtomId::AtomRemainingBatteryCapacity => "ATOM_REMAINING_BATTERY_CAPACITY",
3963            AtomId::AtomFullBatteryCapacity => "ATOM_FULL_BATTERY_CAPACITY",
3964            AtomId::AtomTemperature => "ATOM_TEMPERATURE",
3965            AtomId::AtomBinderCalls => "ATOM_BINDER_CALLS",
3966            AtomId::AtomBinderCallsExceptions => "ATOM_BINDER_CALLS_EXCEPTIONS",
3967            AtomId::AtomLooperStats => "ATOM_LOOPER_STATS",
3968            AtomId::AtomDiskStats => "ATOM_DISK_STATS",
3969            AtomId::AtomDirectoryUsage => "ATOM_DIRECTORY_USAGE",
3970            AtomId::AtomAppSize => "ATOM_APP_SIZE",
3971            AtomId::AtomCategorySize => "ATOM_CATEGORY_SIZE",
3972            AtomId::AtomProcStats => "ATOM_PROC_STATS",
3973            AtomId::AtomBatteryVoltage => "ATOM_BATTERY_VOLTAGE",
3974            AtomId::AtomNumFingerprintsEnrolled => "ATOM_NUM_FINGERPRINTS_ENROLLED",
3975            AtomId::AtomDiskIo => "ATOM_DISK_IO",
3976            AtomId::AtomPowerProfile => "ATOM_POWER_PROFILE",
3977            AtomId::AtomProcStatsPkgProc => "ATOM_PROC_STATS_PKG_PROC",
3978            AtomId::AtomProcessCpuTime => "ATOM_PROCESS_CPU_TIME",
3979            AtomId::AtomCpuTimePerThreadFreq => "ATOM_CPU_TIME_PER_THREAD_FREQ",
3980            AtomId::AtomOnDevicePowerMeasurement => "ATOM_ON_DEVICE_POWER_MEASUREMENT",
3981            AtomId::AtomDeviceCalculatedPowerUse => "ATOM_DEVICE_CALCULATED_POWER_USE",
3982            AtomId::AtomProcessMemoryHighWaterMark => "ATOM_PROCESS_MEMORY_HIGH_WATER_MARK",
3983            AtomId::AtomBatteryLevel => "ATOM_BATTERY_LEVEL",
3984            AtomId::AtomBuildInformation => "ATOM_BUILD_INFORMATION",
3985            AtomId::AtomBatteryCycleCount => "ATOM_BATTERY_CYCLE_COUNT",
3986            AtomId::AtomDebugElapsedClock => "ATOM_DEBUG_ELAPSED_CLOCK",
3987            AtomId::AtomDebugFailingElapsedClock => "ATOM_DEBUG_FAILING_ELAPSED_CLOCK",
3988            AtomId::AtomNumFacesEnrolled => "ATOM_NUM_FACES_ENROLLED",
3989            AtomId::AtomRoleHolder => "ATOM_ROLE_HOLDER",
3990            AtomId::AtomDangerousPermissionState => "ATOM_DANGEROUS_PERMISSION_STATE",
3991            AtomId::AtomTrainInfo => "ATOM_TRAIN_INFO",
3992            AtomId::AtomTimeZoneDataInfo => "ATOM_TIME_ZONE_DATA_INFO",
3993            AtomId::AtomExternalStorageInfo => "ATOM_EXTERNAL_STORAGE_INFO",
3994            AtomId::AtomGpuStatsGlobalInfo => "ATOM_GPU_STATS_GLOBAL_INFO",
3995            AtomId::AtomGpuStatsAppInfo => "ATOM_GPU_STATS_APP_INFO",
3996            AtomId::AtomSystemIonHeapSize => "ATOM_SYSTEM_ION_HEAP_SIZE",
3997            AtomId::AtomAppsOnExternalStorageInfo => "ATOM_APPS_ON_EXTERNAL_STORAGE_INFO",
3998            AtomId::AtomFaceSettings => "ATOM_FACE_SETTINGS",
3999            AtomId::AtomCoolingDevice => "ATOM_COOLING_DEVICE",
4000            AtomId::AtomAppOps => "ATOM_APP_OPS",
4001            AtomId::AtomProcessSystemIonHeapSize => "ATOM_PROCESS_SYSTEM_ION_HEAP_SIZE",
4002            AtomId::AtomSurfaceflingerStatsGlobalInfo => "ATOM_SURFACEFLINGER_STATS_GLOBAL_INFO",
4003            AtomId::AtomSurfaceflingerStatsLayerInfo => "ATOM_SURFACEFLINGER_STATS_LAYER_INFO",
4004            AtomId::AtomProcessMemorySnapshot => "ATOM_PROCESS_MEMORY_SNAPSHOT",
4005            AtomId::AtomVmsClientStats => "ATOM_VMS_CLIENT_STATS",
4006            AtomId::AtomNotificationRemoteViews => "ATOM_NOTIFICATION_REMOTE_VIEWS",
4007            AtomId::AtomDangerousPermissionStateSampled => "ATOM_DANGEROUS_PERMISSION_STATE_SAMPLED",
4008            AtomId::AtomGraphicsStats => "ATOM_GRAPHICS_STATS",
4009            AtomId::AtomRuntimeAppOpAccess => "ATOM_RUNTIME_APP_OP_ACCESS",
4010            AtomId::AtomIonHeapSize => "ATOM_ION_HEAP_SIZE",
4011            AtomId::AtomPackageNotificationPreferences => "ATOM_PACKAGE_NOTIFICATION_PREFERENCES",
4012            AtomId::AtomPackageNotificationChannelPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_PREFERENCES",
4013            AtomId::AtomPackageNotificationChannelGroupPreferences => "ATOM_PACKAGE_NOTIFICATION_CHANNEL_GROUP_PREFERENCES",
4014            AtomId::AtomGnssStats => "ATOM_GNSS_STATS",
4015            AtomId::AtomAttributedAppOps => "ATOM_ATTRIBUTED_APP_OPS",
4016            AtomId::AtomVoiceCallSession => "ATOM_VOICE_CALL_SESSION",
4017            AtomId::AtomVoiceCallRatUsage => "ATOM_VOICE_CALL_RAT_USAGE",
4018            AtomId::AtomSimSlotState => "ATOM_SIM_SLOT_STATE",
4019            AtomId::AtomSupportedRadioAccessFamily => "ATOM_SUPPORTED_RADIO_ACCESS_FAMILY",
4020            AtomId::AtomSettingSnapshot => "ATOM_SETTING_SNAPSHOT",
4021            AtomId::AtomBlobInfo => "ATOM_BLOB_INFO",
4022            AtomId::AtomDataUsageBytesTransfer => "ATOM_DATA_USAGE_BYTES_TRANSFER",
4023            AtomId::AtomBytesTransferByTagAndMetered => "ATOM_BYTES_TRANSFER_BY_TAG_AND_METERED",
4024            AtomId::AtomDndModeRule => "ATOM_DND_MODE_RULE",
4025            AtomId::AtomGeneralExternalStorageAccessStats => "ATOM_GENERAL_EXTERNAL_STORAGE_ACCESS_STATS",
4026            AtomId::AtomIncomingSms => "ATOM_INCOMING_SMS",
4027            AtomId::AtomOutgoingSms => "ATOM_OUTGOING_SMS",
4028            AtomId::AtomCarrierIdTableVersion => "ATOM_CARRIER_ID_TABLE_VERSION",
4029            AtomId::AtomDataCallSession => "ATOM_DATA_CALL_SESSION",
4030            AtomId::AtomCellularServiceState => "ATOM_CELLULAR_SERVICE_STATE",
4031            AtomId::AtomCellularDataServiceSwitch => "ATOM_CELLULAR_DATA_SERVICE_SWITCH",
4032            AtomId::AtomSystemMemory => "ATOM_SYSTEM_MEMORY",
4033            AtomId::AtomImsRegistrationTermination => "ATOM_IMS_REGISTRATION_TERMINATION",
4034            AtomId::AtomImsRegistrationStats => "ATOM_IMS_REGISTRATION_STATS",
4035            AtomId::AtomCpuTimePerClusterFreq => "ATOM_CPU_TIME_PER_CLUSTER_FREQ",
4036            AtomId::AtomCpuCyclesPerUidCluster => "ATOM_CPU_CYCLES_PER_UID_CLUSTER",
4037            AtomId::AtomDeviceRotatedData => "ATOM_DEVICE_ROTATED_DATA",
4038            AtomId::AtomCpuCyclesPerThreadGroupCluster => "ATOM_CPU_CYCLES_PER_THREAD_GROUP_CLUSTER",
4039            AtomId::AtomMediaDrmActivityInfo => "ATOM_MEDIA_DRM_ACTIVITY_INFO",
4040            AtomId::AtomOemManagedBytesTransfer => "ATOM_OEM_MANAGED_BYTES_TRANSFER",
4041            AtomId::AtomGnssPowerStats => "ATOM_GNSS_POWER_STATS",
4042            AtomId::AtomTimeZoneDetectorState => "ATOM_TIME_ZONE_DETECTOR_STATE",
4043            AtomId::AtomKeystore2StorageStats => "ATOM_KEYSTORE2_STORAGE_STATS",
4044            AtomId::AtomRkpPoolStats => "ATOM_RKP_POOL_STATS",
4045            AtomId::AtomProcessDmabufMemory => "ATOM_PROCESS_DMABUF_MEMORY",
4046            AtomId::AtomPendingAlarmInfo => "ATOM_PENDING_ALARM_INFO",
4047            AtomId::AtomUserLevelHibernatedApps => "ATOM_USER_LEVEL_HIBERNATED_APPS",
4048            AtomId::AtomLauncherLayoutSnapshot => "ATOM_LAUNCHER_LAYOUT_SNAPSHOT",
4049            AtomId::AtomGlobalHibernatedApps => "ATOM_GLOBAL_HIBERNATED_APPS",
4050            AtomId::AtomInputEventLatencySketch => "ATOM_INPUT_EVENT_LATENCY_SKETCH",
4051            AtomId::AtomBatteryUsageStatsBeforeReset => "ATOM_BATTERY_USAGE_STATS_BEFORE_RESET",
4052            AtomId::AtomBatteryUsageStatsSinceReset => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET",
4053            AtomId::AtomBatteryUsageStatsSinceResetUsingPowerProfileModel => "ATOM_BATTERY_USAGE_STATS_SINCE_RESET_USING_POWER_PROFILE_MODEL",
4054            AtomId::AtomInstalledIncrementalPackage => "ATOM_INSTALLED_INCREMENTAL_PACKAGE",
4055            AtomId::AtomTelephonyNetworkRequests => "ATOM_TELEPHONY_NETWORK_REQUESTS",
4056            AtomId::AtomAppSearchStorageInfo => "ATOM_APP_SEARCH_STORAGE_INFO",
4057            AtomId::AtomVmstat => "ATOM_VMSTAT",
4058            AtomId::AtomKeystore2KeyCreationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_GENERAL_INFO",
4059            AtomId::AtomKeystore2KeyCreationWithAuthInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_AUTH_INFO",
4060            AtomId::AtomKeystore2KeyCreationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_CREATION_WITH_PURPOSE_AND_MODES_INFO",
4061            AtomId::AtomKeystore2AtomWithOverflow => "ATOM_KEYSTORE2_ATOM_WITH_OVERFLOW",
4062            AtomId::AtomKeystore2KeyOperationWithPurposeAndModesInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_PURPOSE_AND_MODES_INFO",
4063            AtomId::AtomKeystore2KeyOperationWithGeneralInfo => "ATOM_KEYSTORE2_KEY_OPERATION_WITH_GENERAL_INFO",
4064            AtomId::AtomRkpErrorStats => "ATOM_RKP_ERROR_STATS",
4065            AtomId::AtomKeystore2CrashStats => "ATOM_KEYSTORE2_CRASH_STATS",
4066            AtomId::AtomVendorApexInfo => "ATOM_VENDOR_APEX_INFO",
4067            AtomId::AtomAccessibilityShortcutStats => "ATOM_ACCESSIBILITY_SHORTCUT_STATS",
4068            AtomId::AtomAccessibilityFloatingMenuStats => "ATOM_ACCESSIBILITY_FLOATING_MENU_STATS",
4069            AtomId::AtomDataUsageBytesTransferV2 => "ATOM_DATA_USAGE_BYTES_TRANSFER_V2",
4070            AtomId::AtomMediaCapabilities => "ATOM_MEDIA_CAPABILITIES",
4071            AtomId::AtomCarWatchdogSystemIoUsageSummary => "ATOM_CAR_WATCHDOG_SYSTEM_IO_USAGE_SUMMARY",
4072            AtomId::AtomCarWatchdogUidIoUsageSummary => "ATOM_CAR_WATCHDOG_UID_IO_USAGE_SUMMARY",
4073            AtomId::AtomImsRegistrationFeatureTagStats => "ATOM_IMS_REGISTRATION_FEATURE_TAG_STATS",
4074            AtomId::AtomRcsClientProvisioningStats => "ATOM_RCS_CLIENT_PROVISIONING_STATS",
4075            AtomId::AtomRcsAcsProvisioningStats => "ATOM_RCS_ACS_PROVISIONING_STATS",
4076            AtomId::AtomSipDelegateStats => "ATOM_SIP_DELEGATE_STATS",
4077            AtomId::AtomSipTransportFeatureTagStats => "ATOM_SIP_TRANSPORT_FEATURE_TAG_STATS",
4078            AtomId::AtomSipMessageResponse => "ATOM_SIP_MESSAGE_RESPONSE",
4079            AtomId::AtomSipTransportSession => "ATOM_SIP_TRANSPORT_SESSION",
4080            AtomId::AtomImsDedicatedBearerListenerEvent => "ATOM_IMS_DEDICATED_BEARER_LISTENER_EVENT",
4081            AtomId::AtomImsDedicatedBearerEvent => "ATOM_IMS_DEDICATED_BEARER_EVENT",
4082            AtomId::AtomImsRegistrationServiceDescStats => "ATOM_IMS_REGISTRATION_SERVICE_DESC_STATS",
4083            AtomId::AtomUceEventStats => "ATOM_UCE_EVENT_STATS",
4084            AtomId::AtomPresenceNotifyEvent => "ATOM_PRESENCE_NOTIFY_EVENT",
4085            AtomId::AtomGbaEvent => "ATOM_GBA_EVENT",
4086            AtomId::AtomPerSimStatus => "ATOM_PER_SIM_STATUS",
4087            AtomId::AtomGpuWorkPerUid => "ATOM_GPU_WORK_PER_UID",
4088            AtomId::AtomPersistentUriPermissionsAmountPerPackage => "ATOM_PERSISTENT_URI_PERMISSIONS_AMOUNT_PER_PACKAGE",
4089            AtomId::AtomSignedPartitionInfo => "ATOM_SIGNED_PARTITION_INFO",
4090            AtomId::AtomPinnedFileSizesPerPackage => "ATOM_PINNED_FILE_SIZES_PER_PACKAGE",
4091            AtomId::AtomPendingIntentsPerPackage => "ATOM_PENDING_INTENTS_PER_PACKAGE",
4092            AtomId::AtomUserInfo => "ATOM_USER_INFO",
4093            AtomId::AtomTelephonyNetworkRequestsV2 => "ATOM_TELEPHONY_NETWORK_REQUESTS_V2",
4094            AtomId::AtomDeviceTelephonyProperties => "ATOM_DEVICE_TELEPHONY_PROPERTIES",
4095            AtomId::AtomRemoteKeyProvisioningErrorCounts => "ATOM_REMOTE_KEY_PROVISIONING_ERROR_COUNTS",
4096            AtomId::AtomSafetyState => "ATOM_SAFETY_STATE",
4097            AtomId::AtomIncomingMms => "ATOM_INCOMING_MMS",
4098            AtomId::AtomOutgoingMms => "ATOM_OUTGOING_MMS",
4099            AtomId::AtomMultiUserInfo => "ATOM_MULTI_USER_INFO",
4100            AtomId::AtomNetworkBpfMapInfo => "ATOM_NETWORK_BPF_MAP_INFO",
4101            AtomId::AtomOutgoingShortCodeSms => "ATOM_OUTGOING_SHORT_CODE_SMS",
4102            AtomId::AtomConnectivityStateSample => "ATOM_CONNECTIVITY_STATE_SAMPLE",
4103            AtomId::AtomNetworkSelectionRematchReasonsInfo => "ATOM_NETWORK_SELECTION_REMATCH_REASONS_INFO",
4104            AtomId::AtomGameModeInfo => "ATOM_GAME_MODE_INFO",
4105            AtomId::AtomGameModeConfiguration => "ATOM_GAME_MODE_CONFIGURATION",
4106            AtomId::AtomGameModeListener => "ATOM_GAME_MODE_LISTENER",
4107            AtomId::AtomNetworkSliceRequestCount => "ATOM_NETWORK_SLICE_REQUEST_COUNT",
4108            AtomId::AtomWsTileSnapshot => "ATOM_WS_TILE_SNAPSHOT",
4109            AtomId::AtomWsActiveWatchFaceComplicationSetSnapshot => "ATOM_WS_ACTIVE_WATCH_FACE_COMPLICATION_SET_SNAPSHOT",
4110            AtomId::AtomProcessState => "ATOM_PROCESS_STATE",
4111            AtomId::AtomProcessAssociation => "ATOM_PROCESS_ASSOCIATION",
4112            AtomId::AtomAdpfSystemComponentInfo => "ATOM_ADPF_SYSTEM_COMPONENT_INFO",
4113            AtomId::AtomNotificationMemoryUse => "ATOM_NOTIFICATION_MEMORY_USE",
4114            AtomId::AtomHdrCapabilities => "ATOM_HDR_CAPABILITIES",
4115            AtomId::AtomWsFavouriteWatchFaceListSnapshot => "ATOM_WS_FAVOURITE_WATCH_FACE_LIST_SNAPSHOT",
4116            AtomId::AtomAccessibilityCheckResultReported => "ATOM_ACCESSIBILITY_CHECK_RESULT_REPORTED",
4117            AtomId::AtomAdaptiveAuthUnlockAfterLockReported => "ATOM_ADAPTIVE_AUTH_UNLOCK_AFTER_LOCK_REPORTED",
4118            AtomId::AtomThermalStatusCalled => "ATOM_THERMAL_STATUS_CALLED",
4119            AtomId::AtomThermalHeadroomCalled => "ATOM_THERMAL_HEADROOM_CALLED",
4120            AtomId::AtomThermalHeadroomThresholdsCalled => "ATOM_THERMAL_HEADROOM_THRESHOLDS_CALLED",
4121            AtomId::AtomAdpfHintSessionTidCleanup => "ATOM_ADPF_HINT_SESSION_TID_CLEANUP",
4122            AtomId::AtomThermalHeadroomThresholds => "ATOM_THERMAL_HEADROOM_THRESHOLDS",
4123            AtomId::AtomAdpfSessionSnapshot => "ATOM_ADPF_SESSION_SNAPSHOT",
4124            AtomId::AtomJsscriptengineLatencyReported => "ATOM_JSSCRIPTENGINE_LATENCY_REPORTED",
4125            AtomId::AtomAdServicesApiCalled => "ATOM_AD_SERVICES_API_CALLED",
4126            AtomId::AtomAdServicesMesurementReportsUploaded => "ATOM_AD_SERVICES_MESUREMENT_REPORTS_UPLOADED",
4127            AtomId::AtomMobileDataDownloadFileGroupStatusReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STATUS_REPORTED",
4128            AtomId::AtomMobileDataDownloadDownloadResultReported => "ATOM_MOBILE_DATA_DOWNLOAD_DOWNLOAD_RESULT_REPORTED",
4129            AtomId::AtomAdServicesSettingsUsageReported => "ATOM_AD_SERVICES_SETTINGS_USAGE_REPORTED",
4130            AtomId::AtomBackgroundFetchProcessReported => "ATOM_BACKGROUND_FETCH_PROCESS_REPORTED",
4131            AtomId::AtomUpdateCustomAudienceProcessReported => "ATOM_UPDATE_CUSTOM_AUDIENCE_PROCESS_REPORTED",
4132            AtomId::AtomRunAdBiddingProcessReported => "ATOM_RUN_AD_BIDDING_PROCESS_REPORTED",
4133            AtomId::AtomRunAdScoringProcessReported => "ATOM_RUN_AD_SCORING_PROCESS_REPORTED",
4134            AtomId::AtomRunAdSelectionProcessReported => "ATOM_RUN_AD_SELECTION_PROCESS_REPORTED",
4135            AtomId::AtomRunAdBiddingPerCaProcessReported => "ATOM_RUN_AD_BIDDING_PER_CA_PROCESS_REPORTED",
4136            AtomId::AtomMobileDataDownloadFileGroupStorageStatsReported => "ATOM_MOBILE_DATA_DOWNLOAD_FILE_GROUP_STORAGE_STATS_REPORTED",
4137            AtomId::AtomAdServicesMeasurementRegistrations => "ATOM_AD_SERVICES_MEASUREMENT_REGISTRATIONS",
4138            AtomId::AtomAdServicesGetTopicsReported => "ATOM_AD_SERVICES_GET_TOPICS_REPORTED",
4139            AtomId::AtomAdServicesEpochComputationGetTopTopicsReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_GET_TOP_TOPICS_REPORTED",
4140            AtomId::AtomAdServicesEpochComputationClassifierReported => "ATOM_AD_SERVICES_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4141            AtomId::AtomAdServicesBackCompatGetTopicsReported => "ATOM_AD_SERVICES_BACK_COMPAT_GET_TOPICS_REPORTED",
4142            AtomId::AtomAdServicesBackCompatEpochComputationClassifierReported => "ATOM_AD_SERVICES_BACK_COMPAT_EPOCH_COMPUTATION_CLASSIFIER_REPORTED",
4143            AtomId::AtomAdServicesMeasurementDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_DEBUG_KEYS",
4144            AtomId::AtomAdServicesErrorReported => "ATOM_AD_SERVICES_ERROR_REPORTED",
4145            AtomId::AtomAdServicesBackgroundJobsExecutionReported => "ATOM_AD_SERVICES_BACKGROUND_JOBS_EXECUTION_REPORTED",
4146            AtomId::AtomAdServicesMeasurementDelayedSourceRegistration => "ATOM_AD_SERVICES_MEASUREMENT_DELAYED_SOURCE_REGISTRATION",
4147            AtomId::AtomAdServicesMeasurementAttribution => "ATOM_AD_SERVICES_MEASUREMENT_ATTRIBUTION",
4148            AtomId::AtomAdServicesMeasurementJobs => "ATOM_AD_SERVICES_MEASUREMENT_JOBS",
4149            AtomId::AtomAdServicesMeasurementWipeout => "ATOM_AD_SERVICES_MEASUREMENT_WIPEOUT",
4150            AtomId::AtomAdServicesMeasurementAdIdMatchForDebugKeys => "ATOM_AD_SERVICES_MEASUREMENT_AD_ID_MATCH_FOR_DEBUG_KEYS",
4151            AtomId::AtomAdServicesEnrollmentDataStored => "ATOM_AD_SERVICES_ENROLLMENT_DATA_STORED",
4152            AtomId::AtomAdServicesEnrollmentFileDownloaded => "ATOM_AD_SERVICES_ENROLLMENT_FILE_DOWNLOADED",
4153            AtomId::AtomAdServicesEnrollmentMatched => "ATOM_AD_SERVICES_ENROLLMENT_MATCHED",
4154            AtomId::AtomAdServicesConsentMigrated => "ATOM_AD_SERVICES_CONSENT_MIGRATED",
4155            AtomId::AtomAdServicesEnrollmentFailed => "ATOM_AD_SERVICES_ENROLLMENT_FAILED",
4156            AtomId::AtomAdServicesMeasurementClickVerification => "ATOM_AD_SERVICES_MEASUREMENT_CLICK_VERIFICATION",
4157            AtomId::AtomAdServicesEncryptionKeyFetched => "ATOM_AD_SERVICES_ENCRYPTION_KEY_FETCHED",
4158            AtomId::AtomAdServicesEncryptionKeyDbTransactionEnded => "ATOM_AD_SERVICES_ENCRYPTION_KEY_DB_TRANSACTION_ENDED",
4159            AtomId::AtomDestinationRegisteredBeacons => "ATOM_DESTINATION_REGISTERED_BEACONS",
4160            AtomId::AtomReportInteractionApiCalled => "ATOM_REPORT_INTERACTION_API_CALLED",
4161            AtomId::AtomInteractionReportingTableCleared => "ATOM_INTERACTION_REPORTING_TABLE_CLEARED",
4162            AtomId::AtomAppManifestConfigHelperCalled => "ATOM_APP_MANIFEST_CONFIG_HELPER_CALLED",
4163            AtomId::AtomAdFilteringProcessJoinCaReported => "ATOM_AD_FILTERING_PROCESS_JOIN_CA_REPORTED",
4164            AtomId::AtomAdFilteringProcessAdSelectionReported => "ATOM_AD_FILTERING_PROCESS_AD_SELECTION_REPORTED",
4165            AtomId::AtomAdCounterHistogramUpdaterReported => "ATOM_AD_COUNTER_HISTOGRAM_UPDATER_REPORTED",
4166            AtomId::AtomSignatureVerification => "ATOM_SIGNATURE_VERIFICATION",
4167            AtomId::AtomKAnonImmediateSignJoinStatusReported => "ATOM_K_ANON_IMMEDIATE_SIGN_JOIN_STATUS_REPORTED",
4168            AtomId::AtomKAnonBackgroundJobStatusReported => "ATOM_K_ANON_BACKGROUND_JOB_STATUS_REPORTED",
4169            AtomId::AtomKAnonInitializeStatusReported => "ATOM_K_ANON_INITIALIZE_STATUS_REPORTED",
4170            AtomId::AtomKAnonSignStatusReported => "ATOM_K_ANON_SIGN_STATUS_REPORTED",
4171            AtomId::AtomKAnonJoinStatusReported => "ATOM_K_ANON_JOIN_STATUS_REPORTED",
4172            AtomId::AtomKAnonKeyAttestationStatusReported => "ATOM_K_ANON_KEY_ATTESTATION_STATUS_REPORTED",
4173            AtomId::AtomGetAdSelectionDataApiCalled => "ATOM_GET_AD_SELECTION_DATA_API_CALLED",
4174            AtomId::AtomGetAdSelectionDataBuyerInputGenerated => "ATOM_GET_AD_SELECTION_DATA_BUYER_INPUT_GENERATED",
4175            AtomId::AtomBackgroundJobSchedulingReported => "ATOM_BACKGROUND_JOB_SCHEDULING_REPORTED",
4176            AtomId::AtomTopicsEncryptionEpochComputationReported => "ATOM_TOPICS_ENCRYPTION_EPOCH_COMPUTATION_REPORTED",
4177            AtomId::AtomTopicsEncryptionGetTopicsReported => "ATOM_TOPICS_ENCRYPTION_GET_TOPICS_REPORTED",
4178            AtomId::AtomAdservicesShellCommandCalled => "ATOM_ADSERVICES_SHELL_COMMAND_CALLED",
4179            AtomId::AtomUpdateSignalsApiCalled => "ATOM_UPDATE_SIGNALS_API_CALLED",
4180            AtomId::AtomEncodingJobRun => "ATOM_ENCODING_JOB_RUN",
4181            AtomId::AtomEncodingJsFetch => "ATOM_ENCODING_JS_FETCH",
4182            AtomId::AtomEncodingJsExecution => "ATOM_ENCODING_JS_EXECUTION",
4183            AtomId::AtomPersistAdSelectionResultCalled => "ATOM_PERSIST_AD_SELECTION_RESULT_CALLED",
4184            AtomId::AtomServerAuctionKeyFetchCalled => "ATOM_SERVER_AUCTION_KEY_FETCH_CALLED",
4185            AtomId::AtomServerAuctionBackgroundKeyFetchEnabled => "ATOM_SERVER_AUCTION_BACKGROUND_KEY_FETCH_ENABLED",
4186            AtomId::AtomAdServicesMeasurementProcessOdpRegistration => "ATOM_AD_SERVICES_MEASUREMENT_PROCESS_ODP_REGISTRATION",
4187            AtomId::AtomAdServicesMeasurementNotifyRegistrationToOdp => "ATOM_AD_SERVICES_MEASUREMENT_NOTIFY_REGISTRATION_TO_ODP",
4188            AtomId::AtomSelectAdsFromOutcomesApiCalled => "ATOM_SELECT_ADS_FROM_OUTCOMES_API_CALLED",
4189            AtomId::AtomReportImpressionApiCalled => "ATOM_REPORT_IMPRESSION_API_CALLED",
4190            AtomId::AtomAdServicesEnrollmentTransactionStats => "ATOM_AD_SERVICES_ENROLLMENT_TRANSACTION_STATS",
4191            AtomId::AtomAdServicesCobaltLoggerEventReported => "ATOM_AD_SERVICES_COBALT_LOGGER_EVENT_REPORTED",
4192            AtomId::AtomAdServicesCobaltPeriodicJobEventReported => "ATOM_AD_SERVICES_COBALT_PERIODIC_JOB_EVENT_REPORTED",
4193            AtomId::AtomUpdateSignalsProcessReported => "ATOM_UPDATE_SIGNALS_PROCESS_REPORTED",
4194            AtomId::AtomTopicsScheduleEpochJobSettingReported => "ATOM_TOPICS_SCHEDULE_EPOCH_JOB_SETTING_REPORTED",
4195            AtomId::AtomAiWallpapersButtonPressed => "ATOM_AI_WALLPAPERS_BUTTON_PRESSED",
4196            AtomId::AtomAiWallpapersTemplateSelected => "ATOM_AI_WALLPAPERS_TEMPLATE_SELECTED",
4197            AtomId::AtomAiWallpapersTermSelected => "ATOM_AI_WALLPAPERS_TERM_SELECTED",
4198            AtomId::AtomAiWallpapersWallpaperSet => "ATOM_AI_WALLPAPERS_WALLPAPER_SET",
4199            AtomId::AtomAiWallpapersSessionSummary => "ATOM_AI_WALLPAPERS_SESSION_SUMMARY",
4200            AtomId::AtomApexInstallationRequested => "ATOM_APEX_INSTALLATION_REQUESTED",
4201            AtomId::AtomApexInstallationStaged => "ATOM_APEX_INSTALLATION_STAGED",
4202            AtomId::AtomApexInstallationEnded => "ATOM_APEX_INSTALLATION_ENDED",
4203            AtomId::AtomAppSearchSetSchemaStatsReported => "ATOM_APP_SEARCH_SET_SCHEMA_STATS_REPORTED",
4204            AtomId::AtomAppSearchSchemaMigrationStatsReported => "ATOM_APP_SEARCH_SCHEMA_MIGRATION_STATS_REPORTED",
4205            AtomId::AtomAppSearchUsageSearchIntentStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_STATS_REPORTED",
4206            AtomId::AtomAppSearchUsageSearchIntentRawQueryStatsReported => "ATOM_APP_SEARCH_USAGE_SEARCH_INTENT_RAW_QUERY_STATS_REPORTED",
4207            AtomId::AtomAppSearchAppsIndexerStatsReported => "ATOM_APP_SEARCH_APPS_INDEXER_STATS_REPORTED",
4208            AtomId::AtomArtDatumReported => "ATOM_ART_DATUM_REPORTED",
4209            AtomId::AtomArtDeviceDatumReported => "ATOM_ART_DEVICE_DATUM_REPORTED",
4210            AtomId::AtomArtDatumDeltaReported => "ATOM_ART_DATUM_DELTA_REPORTED",
4211            AtomId::AtomArtDex2oatReported => "ATOM_ART_DEX2OAT_REPORTED",
4212            AtomId::AtomArtDeviceStatus => "ATOM_ART_DEVICE_STATUS",
4213            AtomId::AtomBackgroundDexoptJobEnded => "ATOM_BACKGROUND_DEXOPT_JOB_ENDED",
4214            AtomId::AtomPrerebootDexoptJobEnded => "ATOM_PREREBOOT_DEXOPT_JOB_ENDED",
4215            AtomId::AtomOdrefreshReported => "ATOM_ODREFRESH_REPORTED",
4216            AtomId::AtomOdsignReported => "ATOM_ODSIGN_REPORTED",
4217            AtomId::AtomAutofillUiEventReported => "ATOM_AUTOFILL_UI_EVENT_REPORTED",
4218            AtomId::AtomAutofillFillRequestReported => "ATOM_AUTOFILL_FILL_REQUEST_REPORTED",
4219            AtomId::AtomAutofillFillResponseReported => "ATOM_AUTOFILL_FILL_RESPONSE_REPORTED",
4220            AtomId::AtomAutofillSaveEventReported => "ATOM_AUTOFILL_SAVE_EVENT_REPORTED",
4221            AtomId::AtomAutofillSessionCommitted => "ATOM_AUTOFILL_SESSION_COMMITTED",
4222            AtomId::AtomAutofillFieldClassificationEventReported => "ATOM_AUTOFILL_FIELD_CLASSIFICATION_EVENT_REPORTED",
4223            AtomId::AtomCarRecentsEventReported => "ATOM_CAR_RECENTS_EVENT_REPORTED",
4224            AtomId::AtomCarCalmModeEventReported => "ATOM_CAR_CALM_MODE_EVENT_REPORTED",
4225            AtomId::AtomCarWakeupFromSuspendReported => "ATOM_CAR_WAKEUP_FROM_SUSPEND_REPORTED",
4226            AtomId::AtomPluginInitialized => "ATOM_PLUGIN_INITIALIZED",
4227            AtomId::AtomBluetoothHashedDeviceNameReported => "ATOM_BLUETOOTH_HASHED_DEVICE_NAME_REPORTED",
4228            AtomId::AtomBluetoothL2capCocClientConnection => "ATOM_BLUETOOTH_L2CAP_COC_CLIENT_CONNECTION",
4229            AtomId::AtomBluetoothL2capCocServerConnection => "ATOM_BLUETOOTH_L2CAP_COC_SERVER_CONNECTION",
4230            AtomId::AtomBluetoothLeSessionConnected => "ATOM_BLUETOOTH_LE_SESSION_CONNECTED",
4231            AtomId::AtomRestrictedBluetoothDeviceNameReported => "ATOM_RESTRICTED_BLUETOOTH_DEVICE_NAME_REPORTED",
4232            AtomId::AtomBluetoothProfileConnectionAttempted => "ATOM_BLUETOOTH_PROFILE_CONNECTION_ATTEMPTED",
4233            AtomId::AtomBluetoothContentProfileErrorReported => "ATOM_BLUETOOTH_CONTENT_PROFILE_ERROR_REPORTED",
4234            AtomId::AtomBluetoothRfcommConnectionAttempted => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_ATTEMPTED",
4235            AtomId::AtomRemoteDeviceInformationWithMetricId => "ATOM_REMOTE_DEVICE_INFORMATION_WITH_METRIC_ID",
4236            AtomId::AtomLeAppScanStateChanged => "ATOM_LE_APP_SCAN_STATE_CHANGED",
4237            AtomId::AtomLeRadioScanStopped => "ATOM_LE_RADIO_SCAN_STOPPED",
4238            AtomId::AtomLeScanResultReceived => "ATOM_LE_SCAN_RESULT_RECEIVED",
4239            AtomId::AtomLeScanAbused => "ATOM_LE_SCAN_ABUSED",
4240            AtomId::AtomLeAdvStateChanged => "ATOM_LE_ADV_STATE_CHANGED",
4241            AtomId::AtomLeAdvErrorReported => "ATOM_LE_ADV_ERROR_REPORTED",
4242            AtomId::AtomA2dpSessionReported => "ATOM_A2DP_SESSION_REPORTED",
4243            AtomId::AtomBluetoothCrossLayerEventReported => "ATOM_BLUETOOTH_CROSS_LAYER_EVENT_REPORTED",
4244            AtomId::AtomBroadcastAudioSessionReported => "ATOM_BROADCAST_AUDIO_SESSION_REPORTED",
4245            AtomId::AtomBroadcastAudioSyncReported => "ATOM_BROADCAST_AUDIO_SYNC_REPORTED",
4246            AtomId::AtomBluetoothRfcommConnectionReportedAtClose => "ATOM_BLUETOOTH_RFCOMM_CONNECTION_REPORTED_AT_CLOSE",
4247            AtomId::AtomBluetoothLeConnection => "ATOM_BLUETOOTH_LE_CONNECTION",
4248            AtomId::AtomBroadcastSent => "ATOM_BROADCAST_SENT",
4249            AtomId::AtomCameraFeatureCombinationQueryEvent => "ATOM_CAMERA_FEATURE_COMBINATION_QUERY_EVENT",
4250            AtomId::AtomCertificateTransparencyLogListStateChanged => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_STATE_CHANGED",
4251            AtomId::AtomCertificateTransparencyLogListUpdateFailed => "ATOM_CERTIFICATE_TRANSPARENCY_LOG_LIST_UPDATE_FAILED",
4252            AtomId::AtomDailyKeepaliveInfoReported => "ATOM_DAILY_KEEPALIVE_INFO_REPORTED",
4253            AtomId::AtomNetworkRequestStateChanged => "ATOM_NETWORK_REQUEST_STATE_CHANGED",
4254            AtomId::AtomTetheringActiveSessionsReported => "ATOM_TETHERING_ACTIVE_SESSIONS_REPORTED",
4255            AtomId::AtomNetworkStatsRecorderFileOperated => "ATOM_NETWORK_STATS_RECORDER_FILE_OPERATED",
4256            AtomId::AtomCoreNetworkingTerribleErrorOccurred => "ATOM_CORE_NETWORKING_TERRIBLE_ERROR_OCCURRED",
4257            AtomId::AtomApfSessionInfoReported => "ATOM_APF_SESSION_INFO_REPORTED",
4258            AtomId::AtomIpClientRaInfoReported => "ATOM_IP_CLIENT_RA_INFO_REPORTED",
4259            AtomId::AtomVpnConnectionStateChanged => "ATOM_VPN_CONNECTION_STATE_CHANGED",
4260            AtomId::AtomVpnConnectionReported => "ATOM_VPN_CONNECTION_REPORTED",
4261            AtomId::AtomCpuPolicy => "ATOM_CPU_POLICY",
4262            AtomId::AtomCredentialManagerApiCalled => "ATOM_CREDENTIAL_MANAGER_API_CALLED",
4263            AtomId::AtomCredentialManagerInitPhaseReported => "ATOM_CREDENTIAL_MANAGER_INIT_PHASE_REPORTED",
4264            AtomId::AtomCredentialManagerCandidatePhaseReported => "ATOM_CREDENTIAL_MANAGER_CANDIDATE_PHASE_REPORTED",
4265            AtomId::AtomCredentialManagerFinalPhaseReported => "ATOM_CREDENTIAL_MANAGER_FINAL_PHASE_REPORTED",
4266            AtomId::AtomCredentialManagerTotalReported => "ATOM_CREDENTIAL_MANAGER_TOTAL_REPORTED",
4267            AtomId::AtomCredentialManagerFinalnouidReported => "ATOM_CREDENTIAL_MANAGER_FINALNOUID_REPORTED",
4268            AtomId::AtomCredentialManagerGetReported => "ATOM_CREDENTIAL_MANAGER_GET_REPORTED",
4269            AtomId::AtomCredentialManagerAuthClickReported => "ATOM_CREDENTIAL_MANAGER_AUTH_CLICK_REPORTED",
4270            AtomId::AtomCredentialManagerApiv2Called => "ATOM_CREDENTIAL_MANAGER_APIV2_CALLED",
4271            AtomId::AtomCronetEngineCreated => "ATOM_CRONET_ENGINE_CREATED",
4272            AtomId::AtomCronetTrafficReported => "ATOM_CRONET_TRAFFIC_REPORTED",
4273            AtomId::AtomCronetEngineBuilderInitialized => "ATOM_CRONET_ENGINE_BUILDER_INITIALIZED",
4274            AtomId::AtomCronetHttpFlagsInitialized => "ATOM_CRONET_HTTP_FLAGS_INITIALIZED",
4275            AtomId::AtomCronetInitialized => "ATOM_CRONET_INITIALIZED",
4276            AtomId::AtomDesktopModeUiChanged => "ATOM_DESKTOP_MODE_UI_CHANGED",
4277            AtomId::AtomDesktopModeSessionTaskUpdate => "ATOM_DESKTOP_MODE_SESSION_TASK_UPDATE",
4278            AtomId::AtomDesktopModeTaskSizeUpdated => "ATOM_DESKTOP_MODE_TASK_SIZE_UPDATED",
4279            AtomId::AtomDeviceLockCheckInRequestReported => "ATOM_DEVICE_LOCK_CHECK_IN_REQUEST_REPORTED",
4280            AtomId::AtomDeviceLockProvisioningCompleteReported => "ATOM_DEVICE_LOCK_PROVISIONING_COMPLETE_REPORTED",
4281            AtomId::AtomDeviceLockKioskAppRequestReported => "ATOM_DEVICE_LOCK_KIOSK_APP_REQUEST_REPORTED",
4282            AtomId::AtomDeviceLockCheckInRetryReported => "ATOM_DEVICE_LOCK_CHECK_IN_RETRY_REPORTED",
4283            AtomId::AtomDeviceLockProvisionFailureReported => "ATOM_DEVICE_LOCK_PROVISION_FAILURE_REPORTED",
4284            AtomId::AtomDeviceLockLockUnlockDeviceFailureReported => "ATOM_DEVICE_LOCK_LOCK_UNLOCK_DEVICE_FAILURE_REPORTED",
4285            AtomId::AtomDevicePolicyManagementMode => "ATOM_DEVICE_POLICY_MANAGEMENT_MODE",
4286            AtomId::AtomDevicePolicyState => "ATOM_DEVICE_POLICY_STATE",
4287            AtomId::AtomDisplayModeDirectorVoteChanged => "ATOM_DISPLAY_MODE_DIRECTOR_VOTE_CHANGED",
4288            AtomId::AtomExternalDisplayStateChanged => "ATOM_EXTERNAL_DISPLAY_STATE_CHANGED",
4289            AtomId::AtomDndStateChanged => "ATOM_DND_STATE_CHANGED",
4290            AtomId::AtomDreamSettingChanged => "ATOM_DREAM_SETTING_CHANGED",
4291            AtomId::AtomDreamSettingSnapshot => "ATOM_DREAM_SETTING_SNAPSHOT",
4292            AtomId::AtomExpressEventReported => "ATOM_EXPRESS_EVENT_REPORTED",
4293            AtomId::AtomExpressHistogramSampleReported => "ATOM_EXPRESS_HISTOGRAM_SAMPLE_REPORTED",
4294            AtomId::AtomExpressUidEventReported => "ATOM_EXPRESS_UID_EVENT_REPORTED",
4295            AtomId::AtomExpressUidHistogramSampleReported => "ATOM_EXPRESS_UID_HISTOGRAM_SAMPLE_REPORTED",
4296            AtomId::AtomFederatedComputeApiCalled => "ATOM_FEDERATED_COMPUTE_API_CALLED",
4297            AtomId::AtomFederatedComputeTrainingEventReported => "ATOM_FEDERATED_COMPUTE_TRAINING_EVENT_REPORTED",
4298            AtomId::AtomExampleIteratorNextLatencyReported => "ATOM_EXAMPLE_ITERATOR_NEXT_LATENCY_REPORTED",
4299            AtomId::AtomFullScreenIntentLaunched => "ATOM_FULL_SCREEN_INTENT_LAUNCHED",
4300            AtomId::AtomBalAllowed => "ATOM_BAL_ALLOWED",
4301            AtomId::AtomInTaskActivityStarted => "ATOM_IN_TASK_ACTIVITY_STARTED",
4302            AtomId::AtomDeviceOrientationChanged => "ATOM_DEVICE_ORIENTATION_CHANGED",
4303            AtomId::AtomCachedAppsHighWatermark => "ATOM_CACHED_APPS_HIGH_WATERMARK",
4304            AtomId::AtomStylusPredictionMetricsReported => "ATOM_STYLUS_PREDICTION_METRICS_REPORTED",
4305            AtomId::AtomUserRiskEventReported => "ATOM_USER_RISK_EVENT_REPORTED",
4306            AtomId::AtomMediaProjectionStateChanged => "ATOM_MEDIA_PROJECTION_STATE_CHANGED",
4307            AtomId::AtomMediaProjectionTargetChanged => "ATOM_MEDIA_PROJECTION_TARGET_CHANGED",
4308            AtomId::AtomExcessiveBinderProxyCountReported => "ATOM_EXCESSIVE_BINDER_PROXY_COUNT_REPORTED",
4309            AtomId::AtomProxyBytesTransferByFgBg => "ATOM_PROXY_BYTES_TRANSFER_BY_FG_BG",
4310            AtomId::AtomMobileBytesTransferByProcState => "ATOM_MOBILE_BYTES_TRANSFER_BY_PROC_STATE",
4311            AtomId::AtomBiometricFrrNotification => "ATOM_BIOMETRIC_FRR_NOTIFICATION",
4312            AtomId::AtomSensitiveContentMediaProjectionSession => "ATOM_SENSITIVE_CONTENT_MEDIA_PROJECTION_SESSION",
4313            AtomId::AtomSensitiveNotificationAppProtectionSession => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_SESSION",
4314            AtomId::AtomSensitiveNotificationAppProtectionApplied => "ATOM_SENSITIVE_NOTIFICATION_APP_PROTECTION_APPLIED",
4315            AtomId::AtomSensitiveNotificationRedaction => "ATOM_SENSITIVE_NOTIFICATION_REDACTION",
4316            AtomId::AtomSensitiveContentAppProtection => "ATOM_SENSITIVE_CONTENT_APP_PROTECTION",
4317            AtomId::AtomAppRestrictionStateChanged => "ATOM_APP_RESTRICTION_STATE_CHANGED",
4318            AtomId::AtomBatteryUsageStatsPerUid => "ATOM_BATTERY_USAGE_STATS_PER_UID",
4319            AtomId::AtomPostgcMemorySnapshot => "ATOM_POSTGC_MEMORY_SNAPSHOT",
4320            AtomId::AtomPowerSaveTempAllowlistChanged => "ATOM_POWER_SAVE_TEMP_ALLOWLIST_CHANGED",
4321            AtomId::AtomAppOpAccessTracked => "ATOM_APP_OP_ACCESS_TRACKED",
4322            AtomId::AtomContentOrFileUriEventReported => "ATOM_CONTENT_OR_FILE_URI_EVENT_REPORTED",
4323            AtomId::AtomApplicationGrammaticalInflectionChanged => "ATOM_APPLICATION_GRAMMATICAL_INFLECTION_CHANGED",
4324            AtomId::AtomSystemGrammaticalInflectionChanged => "ATOM_SYSTEM_GRAMMATICAL_INFLECTION_CHANGED",
4325            AtomId::AtomBatteryHealth => "ATOM_BATTERY_HEALTH",
4326            AtomId::AtomHdmiEarcStatusReported => "ATOM_HDMI_EARC_STATUS_REPORTED",
4327            AtomId::AtomHdmiSoundbarModeStatusReported => "ATOM_HDMI_SOUNDBAR_MODE_STATUS_REPORTED",
4328            AtomId::AtomHealthConnectApiCalled => "ATOM_HEALTH_CONNECT_API_CALLED",
4329            AtomId::AtomHealthConnectUsageStats => "ATOM_HEALTH_CONNECT_USAGE_STATS",
4330            AtomId::AtomHealthConnectStorageStats => "ATOM_HEALTH_CONNECT_STORAGE_STATS",
4331            AtomId::AtomHealthConnectApiInvoked => "ATOM_HEALTH_CONNECT_API_INVOKED",
4332            AtomId::AtomExerciseRouteApiCalled => "ATOM_EXERCISE_ROUTE_API_CALLED",
4333            AtomId::AtomHealthConnectExportInvoked => "ATOM_HEALTH_CONNECT_EXPORT_INVOKED",
4334            AtomId::AtomHealthConnectImportInvoked => "ATOM_HEALTH_CONNECT_IMPORT_INVOKED",
4335            AtomId::AtomHealthConnectExportImportStatsReported => "ATOM_HEALTH_CONNECT_EXPORT_IMPORT_STATS_REPORTED",
4336            AtomId::AtomHealthConnectUiImpression => "ATOM_HEALTH_CONNECT_UI_IMPRESSION",
4337            AtomId::AtomHealthConnectUiInteraction => "ATOM_HEALTH_CONNECT_UI_INTERACTION",
4338            AtomId::AtomHealthConnectAppOpenedReported => "ATOM_HEALTH_CONNECT_APP_OPENED_REPORTED",
4339            AtomId::AtomHotwordEgressSizeAtomReported => "ATOM_HOTWORD_EGRESS_SIZE_ATOM_REPORTED",
4340            AtomId::AtomIkeSessionTerminated => "ATOM_IKE_SESSION_TERMINATED",
4341            AtomId::AtomIkeLivenessCheckSessionValidated => "ATOM_IKE_LIVENESS_CHECK_SESSION_VALIDATED",
4342            AtomId::AtomNegotiatedSecurityAssociation => "ATOM_NEGOTIATED_SECURITY_ASSOCIATION",
4343            AtomId::AtomKeyboardConfigured => "ATOM_KEYBOARD_CONFIGURED",
4344            AtomId::AtomKeyboardSystemsEventReported => "ATOM_KEYBOARD_SYSTEMS_EVENT_REPORTED",
4345            AtomId::AtomInputdeviceUsageReported => "ATOM_INPUTDEVICE_USAGE_REPORTED",
4346            AtomId::AtomInputEventLatencyReported => "ATOM_INPUT_EVENT_LATENCY_REPORTED",
4347            AtomId::AtomTouchpadUsage => "ATOM_TOUCHPAD_USAGE",
4348            AtomId::AtomKernelOomKillOccurred => "ATOM_KERNEL_OOM_KILL_OCCURRED",
4349            AtomId::AtomEmergencyStateChanged => "ATOM_EMERGENCY_STATE_CHANGED",
4350            AtomId::AtomChreSignificantMotionStateChanged => "ATOM_CHRE_SIGNIFICANT_MOTION_STATE_CHANGED",
4351            AtomId::AtomPopulationDensityProviderLoadingReported => "ATOM_POPULATION_DENSITY_PROVIDER_LOADING_REPORTED",
4352            AtomId::AtomDensityBasedCoarseLocationsUsageReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_USAGE_REPORTED",
4353            AtomId::AtomDensityBasedCoarseLocationsProviderQueryReported => "ATOM_DENSITY_BASED_COARSE_LOCATIONS_PROVIDER_QUERY_REPORTED",
4354            AtomId::AtomMediaCodecReclaimRequestCompleted => "ATOM_MEDIA_CODEC_RECLAIM_REQUEST_COMPLETED",
4355            AtomId::AtomMediaCodecStarted => "ATOM_MEDIA_CODEC_STARTED",
4356            AtomId::AtomMediaCodecStopped => "ATOM_MEDIA_CODEC_STOPPED",
4357            AtomId::AtomMediaCodecRendered => "ATOM_MEDIA_CODEC_RENDERED",
4358            AtomId::AtomMediaEditingEndedReported => "ATOM_MEDIA_EDITING_ENDED_REPORTED",
4359            AtomId::AtomMteState => "ATOM_MTE_STATE",
4360            AtomId::AtomMicroxrDeviceBootCompleteReported => "ATOM_MICROXR_DEVICE_BOOT_COMPLETE_REPORTED",
4361            AtomId::AtomNfcObserveModeStateChanged => "ATOM_NFC_OBSERVE_MODE_STATE_CHANGED",
4362            AtomId::AtomNfcFieldChanged => "ATOM_NFC_FIELD_CHANGED",
4363            AtomId::AtomNfcPollingLoopNotificationReported => "ATOM_NFC_POLLING_LOOP_NOTIFICATION_REPORTED",
4364            AtomId::AtomNfcProprietaryCapabilitiesReported => "ATOM_NFC_PROPRIETARY_CAPABILITIES_REPORTED",
4365            AtomId::AtomOndevicepersonalizationApiCalled => "ATOM_ONDEVICEPERSONALIZATION_API_CALLED",
4366            AtomId::AtomComponentStateChangedReported => "ATOM_COMPONENT_STATE_CHANGED_REPORTED",
4367            AtomId::AtomPdfLoadReported => "ATOM_PDF_LOAD_REPORTED",
4368            AtomId::AtomPdfApiUsageReported => "ATOM_PDF_API_USAGE_REPORTED",
4369            AtomId::AtomPdfSearchReported => "ATOM_PDF_SEARCH_REPORTED",
4370            AtomId::AtomPressureStallInformation => "ATOM_PRESSURE_STALL_INFORMATION",
4371            AtomId::AtomPermissionRationaleDialogViewed => "ATOM_PERMISSION_RATIONALE_DIALOG_VIEWED",
4372            AtomId::AtomPermissionRationaleDialogActionReported => "ATOM_PERMISSION_RATIONALE_DIALOG_ACTION_REPORTED",
4373            AtomId::AtomAppDataSharingUpdatesNotificationInteraction => "ATOM_APP_DATA_SHARING_UPDATES_NOTIFICATION_INTERACTION",
4374            AtomId::AtomAppDataSharingUpdatesFragmentViewed => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_VIEWED",
4375            AtomId::AtomAppDataSharingUpdatesFragmentActionReported => "ATOM_APP_DATA_SHARING_UPDATES_FRAGMENT_ACTION_REPORTED",
4376            AtomId::AtomEnhancedConfirmationDialogResultReported => "ATOM_ENHANCED_CONFIRMATION_DIALOG_RESULT_REPORTED",
4377            AtomId::AtomEnhancedConfirmationRestrictionCleared => "ATOM_ENHANCED_CONFIRMATION_RESTRICTION_CLEARED",
4378            AtomId::AtomPhotopickerSessionInfoReported => "ATOM_PHOTOPICKER_SESSION_INFO_REPORTED",
4379            AtomId::AtomPhotopickerApiInfoReported => "ATOM_PHOTOPICKER_API_INFO_REPORTED",
4380            AtomId::AtomPhotopickerUiEventLogged => "ATOM_PHOTOPICKER_UI_EVENT_LOGGED",
4381            AtomId::AtomPhotopickerMediaItemStatusReported => "ATOM_PHOTOPICKER_MEDIA_ITEM_STATUS_REPORTED",
4382            AtomId::AtomPhotopickerPreviewInfoLogged => "ATOM_PHOTOPICKER_PREVIEW_INFO_LOGGED",
4383            AtomId::AtomPhotopickerMenuInteractionLogged => "ATOM_PHOTOPICKER_MENU_INTERACTION_LOGGED",
4384            AtomId::AtomPhotopickerBannerInteractionLogged => "ATOM_PHOTOPICKER_BANNER_INTERACTION_LOGGED",
4385            AtomId::AtomPhotopickerMediaLibraryInfoLogged => "ATOM_PHOTOPICKER_MEDIA_LIBRARY_INFO_LOGGED",
4386            AtomId::AtomPhotopickerPageInfoLogged => "ATOM_PHOTOPICKER_PAGE_INFO_LOGGED",
4387            AtomId::AtomPhotopickerMediaGridSyncInfoReported => "ATOM_PHOTOPICKER_MEDIA_GRID_SYNC_INFO_REPORTED",
4388            AtomId::AtomPhotopickerAlbumSyncInfoReported => "ATOM_PHOTOPICKER_ALBUM_SYNC_INFO_REPORTED",
4389            AtomId::AtomPhotopickerSearchInfoReported => "ATOM_PHOTOPICKER_SEARCH_INFO_REPORTED",
4390            AtomId::AtomSearchDataExtractionDetailsReported => "ATOM_SEARCH_DATA_EXTRACTION_DETAILS_REPORTED",
4391            AtomId::AtomEmbeddedPhotopickerInfoReported => "ATOM_EMBEDDED_PHOTOPICKER_INFO_REPORTED",
4392            AtomId::AtomAtom9999 => "ATOM_ATOM_9999",
4393            AtomId::AtomAtom99999 => "ATOM_ATOM_99999",
4394            AtomId::AtomScreenOffReported => "ATOM_SCREEN_OFF_REPORTED",
4395            AtomId::AtomScreenTimeoutOverrideReported => "ATOM_SCREEN_TIMEOUT_OVERRIDE_REPORTED",
4396            AtomId::AtomScreenInteractiveSessionReported => "ATOM_SCREEN_INTERACTIVE_SESSION_REPORTED",
4397            AtomId::AtomScreenDimReported => "ATOM_SCREEN_DIM_REPORTED",
4398            AtomId::AtomMediaProviderDatabaseRollbackReported => "ATOM_MEDIA_PROVIDER_DATABASE_ROLLBACK_REPORTED",
4399            AtomId::AtomBackupSetupStatusReported => "ATOM_BACKUP_SETUP_STATUS_REPORTED",
4400            AtomId::AtomRangingSessionConfigured => "ATOM_RANGING_SESSION_CONFIGURED",
4401            AtomId::AtomRangingSessionStarted => "ATOM_RANGING_SESSION_STARTED",
4402            AtomId::AtomRangingSessionClosed => "ATOM_RANGING_SESSION_CLOSED",
4403            AtomId::AtomRangingTechnologyStarted => "ATOM_RANGING_TECHNOLOGY_STARTED",
4404            AtomId::AtomRangingTechnologyStopped => "ATOM_RANGING_TECHNOLOGY_STOPPED",
4405            AtomId::AtomRkpdPoolStats => "ATOM_RKPD_POOL_STATS",
4406            AtomId::AtomRkpdClientOperation => "ATOM_RKPD_CLIENT_OPERATION",
4407            AtomId::AtomSandboxApiCalled => "ATOM_SANDBOX_API_CALLED",
4408            AtomId::AtomSandboxActivityEventOccurred => "ATOM_SANDBOX_ACTIVITY_EVENT_OCCURRED",
4409            AtomId::AtomSdkSandboxRestrictedAccessInSession => "ATOM_SDK_SANDBOX_RESTRICTED_ACCESS_IN_SESSION",
4410            AtomId::AtomSandboxSdkStorage => "ATOM_SANDBOX_SDK_STORAGE",
4411            AtomId::AtomSelinuxAuditLog => "ATOM_SELINUX_AUDIT_LOG",
4412            AtomId::AtomSettingsSpaReported => "ATOM_SETTINGS_SPA_REPORTED",
4413            AtomId::AtomTestExtensionAtomReported => "ATOM_TEST_EXTENSION_ATOM_REPORTED",
4414            AtomId::AtomTestRestrictedAtomReported => "ATOM_TEST_RESTRICTED_ATOM_REPORTED",
4415            AtomId::AtomStatsSocketLossReported => "ATOM_STATS_SOCKET_LOSS_REPORTED",
4416            AtomId::AtomLockscreenShortcutSelected => "ATOM_LOCKSCREEN_SHORTCUT_SELECTED",
4417            AtomId::AtomLockscreenShortcutTriggered => "ATOM_LOCKSCREEN_SHORTCUT_TRIGGERED",
4418            AtomId::AtomLauncherImpressionEventV2 => "ATOM_LAUNCHER_IMPRESSION_EVENT_V2",
4419            AtomId::AtomDisplaySwitchLatencyTracked => "ATOM_DISPLAY_SWITCH_LATENCY_TRACKED",
4420            AtomId::AtomNotificationListenerService => "ATOM_NOTIFICATION_LISTENER_SERVICE",
4421            AtomId::AtomNavHandleTouchPoints => "ATOM_NAV_HANDLE_TOUCH_POINTS",
4422            AtomId::AtomCommunalHubWidgetEventReported => "ATOM_COMMUNAL_HUB_WIDGET_EVENT_REPORTED",
4423            AtomId::AtomCommunalHubSnapshot => "ATOM_COMMUNAL_HUB_SNAPSHOT",
4424            AtomId::AtomEmergencyNumberDialed => "ATOM_EMERGENCY_NUMBER_DIALED",
4425            AtomId::AtomCallStats => "ATOM_CALL_STATS",
4426            AtomId::AtomCallAudioRouteStats => "ATOM_CALL_AUDIO_ROUTE_STATS",
4427            AtomId::AtomTelecomApiStats => "ATOM_TELECOM_API_STATS",
4428            AtomId::AtomTelecomErrorStats => "ATOM_TELECOM_ERROR_STATS",
4429            AtomId::AtomCellularRadioPowerStateChanged => "ATOM_CELLULAR_RADIO_POWER_STATE_CHANGED",
4430            AtomId::AtomEmergencyNumbersInfo => "ATOM_EMERGENCY_NUMBERS_INFO",
4431            AtomId::AtomDataNetworkValidation => "ATOM_DATA_NETWORK_VALIDATION",
4432            AtomId::AtomDataRatStateChanged => "ATOM_DATA_RAT_STATE_CHANGED",
4433            AtomId::AtomConnectedChannelChanged => "ATOM_CONNECTED_CHANNEL_CHANGED",
4434            AtomId::AtomIwlanUnderlyingNetworkValidationResultReported => "ATOM_IWLAN_UNDERLYING_NETWORK_VALIDATION_RESULT_REPORTED",
4435            AtomId::AtomQualifiedRatListChanged => "ATOM_QUALIFIED_RAT_LIST_CHANGED",
4436            AtomId::AtomQnsImsCallDropStats => "ATOM_QNS_IMS_CALL_DROP_STATS",
4437            AtomId::AtomQnsFallbackRestrictionChanged => "ATOM_QNS_FALLBACK_RESTRICTION_CHANGED",
4438            AtomId::AtomQnsRatPreferenceMismatchInfo => "ATOM_QNS_RAT_PREFERENCE_MISMATCH_INFO",
4439            AtomId::AtomQnsHandoverTimeMillis => "ATOM_QNS_HANDOVER_TIME_MILLIS",
4440            AtomId::AtomQnsHandoverPingpong => "ATOM_QNS_HANDOVER_PINGPONG",
4441            AtomId::AtomSatelliteController => "ATOM_SATELLITE_CONTROLLER",
4442            AtomId::AtomSatelliteSession => "ATOM_SATELLITE_SESSION",
4443            AtomId::AtomSatelliteIncomingDatagram => "ATOM_SATELLITE_INCOMING_DATAGRAM",
4444            AtomId::AtomSatelliteOutgoingDatagram => "ATOM_SATELLITE_OUTGOING_DATAGRAM",
4445            AtomId::AtomSatelliteProvision => "ATOM_SATELLITE_PROVISION",
4446            AtomId::AtomSatelliteSosMessageRecommender => "ATOM_SATELLITE_SOS_MESSAGE_RECOMMENDER",
4447            AtomId::AtomCarrierRoamingSatelliteSession => "ATOM_CARRIER_ROAMING_SATELLITE_SESSION",
4448            AtomId::AtomCarrierRoamingSatelliteControllerStats => "ATOM_CARRIER_ROAMING_SATELLITE_CONTROLLER_STATS",
4449            AtomId::AtomControllerStatsPerPackage => "ATOM_CONTROLLER_STATS_PER_PACKAGE",
4450            AtomId::AtomSatelliteEntitlement => "ATOM_SATELLITE_ENTITLEMENT",
4451            AtomId::AtomSatelliteConfigUpdater => "ATOM_SATELLITE_CONFIG_UPDATER",
4452            AtomId::AtomSatelliteAccessController => "ATOM_SATELLITE_ACCESS_CONTROLLER",
4453            AtomId::AtomCellularIdentifierDisclosed => "ATOM_CELLULAR_IDENTIFIER_DISCLOSED",
4454            AtomId::AtomThreadnetworkTelemetryDataReported => "ATOM_THREADNETWORK_TELEMETRY_DATA_REPORTED",
4455            AtomId::AtomThreadnetworkTopoEntryRepeated => "ATOM_THREADNETWORK_TOPO_ENTRY_REPEATED",
4456            AtomId::AtomThreadnetworkDeviceInfoReported => "ATOM_THREADNETWORK_DEVICE_INFO_REPORTED",
4457            AtomId::AtomBootIntegrityInfoReported => "ATOM_BOOT_INTEGRITY_INFO_REPORTED",
4458            AtomId::AtomTvLowPowerStandbyPolicy => "ATOM_TV_LOW_POWER_STANDBY_POLICY",
4459            AtomId::AtomExternalTvInputEvent => "ATOM_EXTERNAL_TV_INPUT_EVENT",
4460            AtomId::AtomTestUprobestatsAtomReported => "ATOM_TEST_UPROBESTATS_ATOM_REPORTED",
4461            AtomId::AtomUwbActivityInfo => "ATOM_UWB_ACTIVITY_INFO",
4462            AtomId::AtomMediatorUpdated => "ATOM_MEDIATOR_UPDATED",
4463            AtomId::AtomSysproxyBluetoothBytesTransfer => "ATOM_SYSPROXY_BLUETOOTH_BYTES_TRANSFER",
4464            AtomId::AtomSysproxyConnectionUpdated => "ATOM_SYSPROXY_CONNECTION_UPDATED",
4465            AtomId::AtomWearCompanionConnectionState => "ATOM_WEAR_COMPANION_CONNECTION_STATE",
4466            AtomId::AtomMediaActionReported => "ATOM_MEDIA_ACTION_REPORTED",
4467            AtomId::AtomMediaControlsLaunched => "ATOM_MEDIA_CONTROLS_LAUNCHED",
4468            AtomId::AtomMediaSessionStateChanged => "ATOM_MEDIA_SESSION_STATE_CHANGED",
4469            AtomId::AtomWearMediaOutputSwitcherDeviceScanApiLatency => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_DEVICE_SCAN_API_LATENCY",
4470            AtomId::AtomWearMediaOutputSwitcherSassDeviceUnavailable => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_SASS_DEVICE_UNAVAILABLE",
4471            AtomId::AtomWearMediaOutputSwitcherFastpairApiTimeout => "ATOM_WEAR_MEDIA_OUTPUT_SWITCHER_FASTPAIR_API_TIMEOUT",
4472            AtomId::AtomWearModeStateChanged => "ATOM_WEAR_MODE_STATE_CHANGED",
4473            AtomId::AtomRendererInitialized => "ATOM_RENDERER_INITIALIZED",
4474            AtomId::AtomSchemaVersionReceived => "ATOM_SCHEMA_VERSION_RECEIVED",
4475            AtomId::AtomLayoutInspected => "ATOM_LAYOUT_INSPECTED",
4476            AtomId::AtomLayoutExpressionInspected => "ATOM_LAYOUT_EXPRESSION_INSPECTED",
4477            AtomId::AtomLayoutAnimationsInspected => "ATOM_LAYOUT_ANIMATIONS_INSPECTED",
4478            AtomId::AtomMaterialComponentsInspected => "ATOM_MATERIAL_COMPONENTS_INSPECTED",
4479            AtomId::AtomTileRequested => "ATOM_TILE_REQUESTED",
4480            AtomId::AtomStateResponseReceived => "ATOM_STATE_RESPONSE_RECEIVED",
4481            AtomId::AtomTileResponseReceived => "ATOM_TILE_RESPONSE_RECEIVED",
4482            AtomId::AtomInflationFinished => "ATOM_INFLATION_FINISHED",
4483            AtomId::AtomInflationFailed => "ATOM_INFLATION_FAILED",
4484            AtomId::AtomIgnoredInflationFailuresReported => "ATOM_IGNORED_INFLATION_FAILURES_REPORTED",
4485            AtomId::AtomDrawableRendered => "ATOM_DRAWABLE_RENDERED",
4486            AtomId::AtomWearTimeSyncRequested => "ATOM_WEAR_TIME_SYNC_REQUESTED",
4487            AtomId::AtomWearTimeUpdateStarted => "ATOM_WEAR_TIME_UPDATE_STARTED",
4488            AtomId::AtomWearTimeSyncAttemptCompleted => "ATOM_WEAR_TIME_SYNC_ATTEMPT_COMPLETED",
4489            AtomId::AtomWearTimeChanged => "ATOM_WEAR_TIME_CHANGED",
4490            AtomId::AtomWearAdaptiveSuspendStatsReported => "ATOM_WEAR_ADAPTIVE_SUSPEND_STATS_REPORTED",
4491            AtomId::AtomWearPowerAnomalyServiceOperationalStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_OPERATIONAL_STATS_REPORTED",
4492            AtomId::AtomWearPowerAnomalyServiceEventStatsReported => "ATOM_WEAR_POWER_ANOMALY_SERVICE_EVENT_STATS_REPORTED",
4493            AtomId::AtomWsWearTimeSession => "ATOM_WS_WEAR_TIME_SESSION",
4494            AtomId::AtomWsIncomingCallActionReported => "ATOM_WS_INCOMING_CALL_ACTION_REPORTED",
4495            AtomId::AtomWsCallDisconnectionReported => "ATOM_WS_CALL_DISCONNECTION_REPORTED",
4496            AtomId::AtomWsCallDurationReported => "ATOM_WS_CALL_DURATION_REPORTED",
4497            AtomId::AtomWsCallUserExperienceLatencyReported => "ATOM_WS_CALL_USER_EXPERIENCE_LATENCY_REPORTED",
4498            AtomId::AtomWsCallInteractionReported => "ATOM_WS_CALL_INTERACTION_REPORTED",
4499            AtomId::AtomWsOnBodyStateChanged => "ATOM_WS_ON_BODY_STATE_CHANGED",
4500            AtomId::AtomWsWatchFaceRestrictedComplicationsImpacted => "ATOM_WS_WATCH_FACE_RESTRICTED_COMPLICATIONS_IMPACTED",
4501            AtomId::AtomWsWatchFaceDefaultRestrictedComplicationsRemoved => "ATOM_WS_WATCH_FACE_DEFAULT_RESTRICTED_COMPLICATIONS_REMOVED",
4502            AtomId::AtomWsComplicationsImpactedNotificationEventReported => "ATOM_WS_COMPLICATIONS_IMPACTED_NOTIFICATION_EVENT_REPORTED",
4503            AtomId::AtomWsRemoteEventUsageReported => "ATOM_WS_REMOTE_EVENT_USAGE_REPORTED",
4504            AtomId::AtomWsBugreportRequested => "ATOM_WS_BUGREPORT_REQUESTED",
4505            AtomId::AtomWsBugreportTriggered => "ATOM_WS_BUGREPORT_TRIGGERED",
4506            AtomId::AtomWsBugreportFinished => "ATOM_WS_BUGREPORT_FINISHED",
4507            AtomId::AtomWsBugreportResultReceived => "ATOM_WS_BUGREPORT_RESULT_RECEIVED",
4508            AtomId::AtomWsStandaloneModeSnapshot => "ATOM_WS_STANDALONE_MODE_SNAPSHOT",
4509            AtomId::AtomWsFavoriteWatchFaceSnapshot => "ATOM_WS_FAVORITE_WATCH_FACE_SNAPSHOT",
4510            AtomId::AtomWsPhotosWatchFaceFeatureSnapshot => "ATOM_WS_PHOTOS_WATCH_FACE_FEATURE_SNAPSHOT",
4511            AtomId::AtomWsWatchFaceCustomizationSnapshot => "ATOM_WS_WATCH_FACE_CUSTOMIZATION_SNAPSHOT",
4512            AtomId::AtomWearPowerMenuOpened => "ATOM_WEAR_POWER_MENU_OPENED",
4513            AtomId::AtomWearAssistantOpened => "ATOM_WEAR_ASSISTANT_OPENED",
4514            AtomId::AtomFirstOverlayStateChanged => "ATOM_FIRST_OVERLAY_STATE_CHANGED",
4515            AtomId::AtomWifiAwareNdpReported => "ATOM_WIFI_AWARE_NDP_REPORTED",
4516            AtomId::AtomWifiAwareAttachReported => "ATOM_WIFI_AWARE_ATTACH_REPORTED",
4517            AtomId::AtomWifiSelfRecoveryTriggered => "ATOM_WIFI_SELF_RECOVERY_TRIGGERED",
4518            AtomId::AtomSoftApStarted => "ATOM_SOFT_AP_STARTED",
4519            AtomId::AtomSoftApStopped => "ATOM_SOFT_AP_STOPPED",
4520            AtomId::AtomWifiLockReleased => "ATOM_WIFI_LOCK_RELEASED",
4521            AtomId::AtomWifiLockDeactivated => "ATOM_WIFI_LOCK_DEACTIVATED",
4522            AtomId::AtomWifiConfigSaved => "ATOM_WIFI_CONFIG_SAVED",
4523            AtomId::AtomWifiAwareResourceUsingChanged => "ATOM_WIFI_AWARE_RESOURCE_USING_CHANGED",
4524            AtomId::AtomWifiAwareHalApiCalled => "ATOM_WIFI_AWARE_HAL_API_CALLED",
4525            AtomId::AtomWifiLocalOnlyRequestReceived => "ATOM_WIFI_LOCAL_ONLY_REQUEST_RECEIVED",
4526            AtomId::AtomWifiLocalOnlyRequestScanTriggered => "ATOM_WIFI_LOCAL_ONLY_REQUEST_SCAN_TRIGGERED",
4527            AtomId::AtomWifiThreadTaskExecuted => "ATOM_WIFI_THREAD_TASK_EXECUTED",
4528            AtomId::AtomWifiStateChanged => "ATOM_WIFI_STATE_CHANGED",
4529            AtomId::AtomPnoScanStarted => "ATOM_PNO_SCAN_STARTED",
4530            AtomId::AtomPnoScanStopped => "ATOM_PNO_SCAN_STOPPED",
4531            AtomId::AtomWifiIsUnusableReported => "ATOM_WIFI_IS_UNUSABLE_REPORTED",
4532            AtomId::AtomWifiApCapabilitiesReported => "ATOM_WIFI_AP_CAPABILITIES_REPORTED",
4533            AtomId::AtomSoftApStateChanged => "ATOM_SOFT_AP_STATE_CHANGED",
4534            AtomId::AtomScorerPredictionResultReported => "ATOM_SCORER_PREDICTION_RESULT_REPORTED",
4535            AtomId::AtomWifiAwareCapabilities => "ATOM_WIFI_AWARE_CAPABILITIES",
4536            AtomId::AtomWifiModuleInfo => "ATOM_WIFI_MODULE_INFO",
4537            AtomId::AtomWifiSettingInfo => "ATOM_WIFI_SETTING_INFO",
4538            AtomId::AtomWifiComplexSettingInfo => "ATOM_WIFI_COMPLEX_SETTING_INFO",
4539            AtomId::AtomWifiConfiguredNetworkInfo => "ATOM_WIFI_CONFIGURED_NETWORK_INFO",
4540        }
4541    }
4542}
4543/// This file is named 'statsd_tracing_config.proto' rather than
4544/// 'statsd_config.proto' (which would be more consistent with the other
4545/// config protos) so it doesn't show up and confuse folks looking for
4546/// the existing statsd_config.proto for configuring statsd itself.
4547/// Same for the config proto itself.
4548#[derive(Clone, PartialEq, ::prost::Message)]
4549pub struct StatsdTracingConfig {
4550    /// This is for the common case of the atom id being known in the enum AtomId.
4551    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
4552    pub push_atom_id: ::prost::alloc::vec::Vec<i32>,
4553    /// Escape hatch for Atom IDs that are not yet in the AtomId enum
4554    /// (e.g. non-upstream atoms that don't exist in AOSP).
4555    #[prost(int32, repeated, packed="false", tag="2")]
4556    pub raw_push_atom_id: ::prost::alloc::vec::Vec<i32>,
4557    #[prost(message, repeated, tag="3")]
4558    pub pull_config: ::prost::alloc::vec::Vec<StatsdPullAtomConfig>,
4559}
4560#[derive(Clone, PartialEq, ::prost::Message)]
4561pub struct StatsdPullAtomConfig {
4562    #[prost(enumeration="AtomId", repeated, packed="false", tag="1")]
4563    pub pull_atom_id: ::prost::alloc::vec::Vec<i32>,
4564    #[prost(int32, repeated, packed="false", tag="2")]
4565    pub raw_pull_atom_id: ::prost::alloc::vec::Vec<i32>,
4566    #[prost(int32, optional, tag="3")]
4567    pub pull_frequency_ms: ::core::option::Option<i32>,
4568    #[prost(string, repeated, tag="4")]
4569    pub packages: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4570}
4571/// Configuration that allows to boost the priority of the 'traced' or
4572/// 'traced_probs' processes, by changing the scheduler configuration.
4573/// Only supported on Linux and Android the boosted process must have
4574/// 'CAP_SYS_NICE' capability.
4575#[derive(Clone, PartialEq, ::prost::Message)]
4576pub struct PriorityBoostConfig {
4577    #[prost(enumeration="priority_boost_config::BoostPolicy", optional, tag="1")]
4578    pub policy: ::core::option::Option<i32>,
4579    #[prost(uint32, optional, tag="2")]
4580    pub priority: ::core::option::Option<u32>,
4581}
4582/// Nested message and enum types in `PriorityBoostConfig`.
4583pub mod priority_boost_config {
4584    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
4585    #[repr(i32)]
4586    pub enum BoostPolicy {
4587        PolicyUnspecified = 0,
4588        /// The default policy (e.g., CFS on Linux). Priority range: [0; 20]
4589        /// priority is interpreted as -(nice), i.e., 1 is slightly higher prio
4590        /// than default 0, 20 is the highest priority.
4591        /// Note: this is the opposite semantic of the cmdline nice, and is done for
4592        /// consistency with POLICY_SCHED_FIFO, so higher number == higher prio.
4593        PolicySchedOther = 1,
4594        /// The Real-time policy, Priority range: [1; 99]
4595        PolicySchedFifo = 2,
4596    }
4597    impl BoostPolicy {
4598        /// String value of the enum field names used in the ProtoBuf definition.
4599        ///
4600        /// The values are not transformed in any way and thus are considered stable
4601        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
4602        pub fn as_str_name(&self) -> &'static str {
4603            match self {
4604                BoostPolicy::PolicyUnspecified => "POLICY_UNSPECIFIED",
4605                BoostPolicy::PolicySchedOther => "POLICY_SCHED_OTHER",
4606                BoostPolicy::PolicySchedFifo => "POLICY_SCHED_FIFO",
4607            }
4608        }
4609    }
4610}
4611/// Config for polling process-related information from /proc/pid/status and
4612/// related files on Linux.
4613///
4614/// Data source name: "linux.process_stats".
4615#[derive(Clone, PartialEq, ::prost::Message)]
4616pub struct ProcessStatsConfig {
4617    #[prost(enumeration="process_stats_config::Quirks", repeated, packed="false", tag="1")]
4618    pub quirks: ::prost::alloc::vec::Vec<i32>,
4619    /// If enabled all processes will be scanned and dumped when the trace starts.
4620    #[prost(bool, optional, tag="2")]
4621    pub scan_all_processes_on_start: ::core::option::Option<bool>,
4622    /// If enabled thread names are also recoded (this is redundant if sched_switch
4623    /// is enabled).
4624    #[prost(bool, optional, tag="3")]
4625    pub record_thread_names: ::core::option::Option<bool>,
4626    /// If > 0 samples counters (see process_stats.proto) from
4627    /// /proc/pid/status and oom_score_adj every X ms.
4628    /// This is required to be > 100ms to avoid excessive CPU usage.
4629    #[prost(uint32, optional, tag="4")]
4630    pub proc_stats_poll_ms: ::core::option::Option<u32>,
4631    // id 5 never used
4632
4633    /// Explicit caching period during which the polling won't re-emit identical
4634    /// counter values. This is required to be either = 0 or a multiple of
4635    /// |proc_stats_poll_ms| (default: |proc_stats_poll_ms|). Non-multiples will be
4636    /// rounded down to the nearest multiple.
4637    #[prost(uint32, optional, tag="6")]
4638    pub proc_stats_cache_ttl_ms: ::core::option::Option<u32>,
4639    /// If true and |proc_stats_poll_ms| is set, sample memory stats from
4640    /// /proc/pid/smaps_rollup.
4641    ///
4642    /// Android: does NOT work with the system daemons by default, as it requires
4643    /// running the recording process (traced_probes or tracebox) as root. It is
4644    /// possible to avoid the root requirement, but the exact steps depend on the
4645    /// Linux distibution. The proc file requires passing a PTRACE_MODE_READ
4646    /// check, and might be further covered by the procfs "hidepid" mount option.
4647    #[prost(bool, optional, tag="10")]
4648    pub scan_smaps_rollup: ::core::option::Option<bool>,
4649    /// If true: process descriptions will include process age (starttime in
4650    /// /proc/pid/stat).
4651    /// Introduced in: perfetto v44.
4652    #[prost(bool, optional, tag="11")]
4653    pub record_process_age: ::core::option::Option<bool>,
4654    /// If true and |proc_stats_poll_ms| is set, process stats will include time
4655    /// spent running in user/kernel mode (utime/stime in /proc/pid/stat).
4656    /// Introduced in: perfetto v44.
4657    #[prost(bool, optional, tag="12")]
4658    pub record_process_runtime: ::core::option::Option<bool>,
4659    /// If true obtain per-process dmabuf resident set size from
4660    /// /proc/pid/dmabuf_rss.
4661    /// This feature is not in upstream linux, and is available only on some
4662    /// Android kernels.
4663    #[prost(bool, optional, tag="13")]
4664    pub record_process_dmabuf_rss: ::core::option::Option<bool>,
4665    /// WARNING: unmaintained and deprecated. If true this will resolve file
4666    /// descriptors for each process so these can be mapped to their actual device
4667    /// or file. Requires raw_syscalls/sys_{enter,exit} ftrace events to be enabled
4668    /// or new fds opened after initially scanning a process will not be
4669    /// recognized.
4670    #[prost(bool, optional, tag="9")]
4671    pub resolve_process_fds: ::core::option::Option<bool>,
4672}
4673/// Nested message and enum types in `ProcessStatsConfig`.
4674pub mod process_stats_config {
4675    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
4676    #[repr(i32)]
4677    pub enum Quirks {
4678        Unspecified = 0,
4679        /// This has been deprecated and ignored as per 2018-05-01. Full scan at
4680        /// startup is now disabled by default and can be re-enabled using the
4681        /// |scan_all_processes_on_start| arg.
4682        DisableInitialDump = 1,
4683        /// If set, disables the special interaction with "linux.ftrace" data source,
4684        /// where the process stats rescrapes any thread id seen in the ftrace
4685        /// stream.
4686        DisableOnDemand = 2,
4687    }
4688    impl Quirks {
4689        /// String value of the enum field names used in the ProtoBuf definition.
4690        ///
4691        /// The values are not transformed in any way and thus are considered stable
4692        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
4693        pub fn as_str_name(&self) -> &'static str {
4694            match self {
4695                Quirks::Unspecified => "QUIRKS_UNSPECIFIED",
4696                Quirks::DisableInitialDump => "DISABLE_INITIAL_DUMP",
4697                Quirks::DisableOnDemand => "DISABLE_ON_DEMAND",
4698            }
4699        }
4700    }
4701}
4702/// Configuration for go/heapprofd.
4703/// Next id: 28
4704#[derive(Clone, PartialEq, ::prost::Message)]
4705pub struct HeapprofdConfig {
4706    /// Sampling rate for all heaps not specified via heap_sampling_intervals.
4707    ///
4708    /// These are:
4709    /// * All heaps if heap_sampling_intervals is empty.
4710    /// * Those profiled due to all_heaps and not named in heaps if
4711    ///    heap_sampling_intervals is not empty.
4712    /// * The implicit libc.malloc heap if heaps is empty.
4713    ///
4714    /// Set to 1 for perfect accuracy.
4715    /// Otherwise, sample every sample_interval_bytes on average.
4716    ///
4717    /// See
4718    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#sampling-interval>
4719    /// for more details.
4720    ///
4721    /// BUGS
4722    /// Before Android 12, setting this to 0 would crash the target process.
4723    ///
4724    /// N.B. This must be explicitly set to a non-zero value for all heaps (with
4725    /// this field or with heap_sampling_intervals), otherwise the producer will
4726    /// not start.
4727    #[prost(uint64, optional, tag="1")]
4728    pub sampling_interval_bytes: ::core::option::Option<u64>,
4729    /// If less than the given numbers of bytes are left free in the shared
4730    /// memory buffer, increase sampling interval by a factor of two.
4731    /// Adaptive sampling is disabled when set to 0.
4732    #[prost(uint64, optional, tag="24")]
4733    pub adaptive_sampling_shmem_threshold: ::core::option::Option<u64>,
4734    /// Stop doubling the sampling_interval once the sampling interval has reached
4735    /// this value.
4736    #[prost(uint64, optional, tag="25")]
4737    pub adaptive_sampling_max_sampling_interval_bytes: ::core::option::Option<u64>,
4738    /// E.g. surfaceflinger, com.android.phone
4739    /// This input is normalized in the following way: if it contains slashes,
4740    /// everything up to the last slash is discarded. If it contains "@",
4741    /// everything after the first @ is discared.
4742    /// E.g. /system/bin/surfaceflinger@1.0 normalizes to surfaceflinger.
4743    /// This transformation is also applied to the processes' command lines when
4744    /// matching.
4745    #[prost(string, repeated, tag="2")]
4746    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4747    /// For watermark based triggering or local debugging.
4748    #[prost(uint64, repeated, packed="false", tag="4")]
4749    pub pid: ::prost::alloc::vec::Vec<u64>,
4750    /// Only profile target if it was installed by one of the packages given.
4751    /// Special values are:
4752    /// * @system: installed on the system partition
4753    /// * @product: installed on the product partition
4754    /// * @null: sideloaded
4755    /// Supported on Android 12+.
4756    #[prost(string, repeated, tag="26")]
4757    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4758    /// Which heaps to sample, e.g. "libc.malloc". If left empty, only samples
4759    /// "malloc".
4760    ///
4761    /// Introduced in Android 12.
4762    #[prost(string, repeated, tag="20")]
4763    pub heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4764    /// Which heaps not to sample, e.g. "libc.malloc". This is useful when used in
4765    /// combination with all_heaps;
4766    ///
4767    /// Introduced in Android 12.
4768    #[prost(string, repeated, tag="27")]
4769    pub exclude_heaps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4770    #[prost(bool, optional, tag="23")]
4771    pub stream_allocations: ::core::option::Option<bool>,
4772    /// If given, needs to be the same length as heaps and gives the sampling
4773    /// interval for the respective entry in heaps.
4774    ///
4775    /// Otherwise, sampling_interval_bytes is used.
4776    ///
4777    /// It is recommended to set sampling_interval_bytes to a reasonable default
4778    /// value when using this, as a value of 0 for sampling_interval_bytes will
4779    /// crash the target process before Android 12.
4780    ///
4781    /// Introduced in Android 12.
4782    ///
4783    /// All values must be non-zero or the producer will not start.
4784    #[prost(uint64, repeated, packed="false", tag="22")]
4785    pub heap_sampling_intervals: ::prost::alloc::vec::Vec<u64>,
4786    /// Sample all heaps registered by target process. Introduced in Android 12.
4787    #[prost(bool, optional, tag="21")]
4788    pub all_heaps: ::core::option::Option<bool>,
4789    /// Profile all processes eligible for profiling on the system.
4790    /// See
4791    /// <https://perfetto.dev/docs/data-sources/native-heap-profiler#heapprofd-targets>
4792    /// for which processes are eligible.
4793    ///
4794    /// On unmodified userdebug builds, this will lead to system crashes. Zygote
4795    /// will crash when trying to launch a new process as it will have an
4796    /// unexpected open socket to heapprofd.
4797    ///
4798    /// heapprofd will likely be overloaded by the amount of data for low
4799    /// sampling intervals.
4800    #[prost(bool, optional, tag="5")]
4801    pub all: ::core::option::Option<bool>,
4802    /// Do not profile processes whose anon RSS + swap < given value.
4803    /// Introduced in Android 11.
4804    #[prost(uint32, optional, tag="15")]
4805    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
4806    /// Stop profile if heapprofd memory usage goes beyond the given value.
4807    /// Introduced in Android 11.
4808    #[prost(uint32, optional, tag="16")]
4809    pub max_heapprofd_memory_kb: ::core::option::Option<u32>,
4810    /// Stop profile if heapprofd CPU time since start of this data-source
4811    /// goes beyond given value.
4812    /// Introduced in Android 11.
4813    #[prost(uint64, optional, tag="17")]
4814    pub max_heapprofd_cpu_secs: ::core::option::Option<u64>,
4815    /// Do not emit function names for mappings starting with this prefix.
4816    /// E.g. /system to not emit symbols for any system libraries.
4817    #[prost(string, repeated, tag="7")]
4818    pub skip_symbol_prefix: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4819    /// Dump at a predefined interval.
4820    #[prost(message, optional, tag="6")]
4821    pub continuous_dump_config: ::core::option::Option<heapprofd_config::ContinuousDumpConfig>,
4822    /// Size of the shared memory buffer between the profiled processes and
4823    /// heapprofd. Defaults to 8 MiB. If larger than 500 MiB, truncated to 500
4824    /// MiB.
4825    ///
4826    /// Needs to be:
4827    /// * at least 8192,
4828    /// * a power of two,
4829    /// * a multiple of 4096.
4830    #[prost(uint64, optional, tag="8")]
4831    pub shmem_size_bytes: ::core::option::Option<u64>,
4832    /// When the shmem buffer is full, block the client instead of ending the
4833    /// trace. Use with caution as this will significantly slow down the target
4834    /// process.
4835    #[prost(bool, optional, tag="9")]
4836    pub block_client: ::core::option::Option<bool>,
4837    /// If set, stop the trace session after blocking the client for this
4838    /// timeout. Needs to be larger than 100 us, otherwise no retries are done.
4839    /// Introduced in Android 11.
4840    #[prost(uint32, optional, tag="14")]
4841    pub block_client_timeout_us: ::core::option::Option<u32>,
4842    /// Do not profile processes from startup, only match already running
4843    /// processes.
4844    ///
4845    /// Can not be set at the same time as no_running.
4846    /// Introduced in Android 11.
4847    #[prost(bool, optional, tag="10")]
4848    pub no_startup: ::core::option::Option<bool>,
4849    /// Do not profile running processes. Only match processes on startup.
4850    ///
4851    /// Can not be set at the same time as no_startup.
4852    /// Introduced in Android 11.
4853    #[prost(bool, optional, tag="11")]
4854    pub no_running: ::core::option::Option<bool>,
4855    /// Cause heapprofd to emit a single dump at the end, showing the memory usage
4856    /// at the point in time when the sampled heap usage of the process was at its
4857    /// maximum. This causes ProfilePacket.HeapSample.self_max to be set, and
4858    /// self_allocated and self_freed to not be set.
4859    /// Introduced in Android 11.
4860    #[prost(bool, optional, tag="13")]
4861    pub dump_at_max: ::core::option::Option<bool>,
4862    // FEATURE FLAGS. THERE BE DRAGONS.
4863
4864    /// Escape hatch if the session is being torn down because of a forked child
4865    /// that shares memory space, but is not correctly identified as a vforked
4866    /// child.
4867    /// Introduced in Android 11.
4868    #[prost(bool, optional, tag="18")]
4869    pub disable_fork_teardown: ::core::option::Option<bool>,
4870    /// We try to automatically detect when a target applicatation vforks but then
4871    /// does a memory allocation (or free). This auto-detection can be disabled
4872    /// with this.
4873    /// Introduced in Android 11.
4874    #[prost(bool, optional, tag="19")]
4875    pub disable_vfork_detection: ::core::option::Option<bool>,
4876}
4877/// Nested message and enum types in `HeapprofdConfig`.
4878pub mod heapprofd_config {
4879    #[derive(Clone, PartialEq, ::prost::Message)]
4880    pub struct ContinuousDumpConfig {
4881        /// ms to wait before first dump.
4882        #[prost(uint32, optional, tag="5")]
4883        pub dump_phase_ms: ::core::option::Option<u32>,
4884        /// ms to wait between following dumps.
4885        #[prost(uint32, optional, tag="6")]
4886        pub dump_interval_ms: ::core::option::Option<u32>,
4887    }
4888}
4889/// Configuration for managed app heap graph snapshots.
4890#[derive(Clone, PartialEq, ::prost::Message)]
4891pub struct JavaHprofConfig {
4892    /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
4893    /// comm string). The semantics of this field were changed since its original
4894    /// introduction.
4895    ///
4896    /// On Android T+ (13+), this field can specify a single wildcard (*), and
4897    /// the profiler will attempt to match it in two possible ways:
4898    /// * if the pattern starts with a '/', then it is matched against the first
4899    ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
4900    ///    "/bin/echo".
4901    /// * otherwise the pattern is matched against the part of argv0
4902    ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
4903    ///    For example "echo" would match "/bin/echo".
4904    ///
4905    /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
4906    /// normalized prior to an exact string comparison. Normalization is as
4907    /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
4908    /// the string contains forward slashes, trim everything up to and including
4909    /// the last one.
4910    ///
4911    /// Implementation note: in either case, at most 511 characters of cmdline
4912    /// are considered.
4913    #[prost(string, repeated, tag="1")]
4914    pub process_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4915    /// For watermark based triggering or local debugging.
4916    #[prost(uint64, repeated, packed="false", tag="2")]
4917    pub pid: ::prost::alloc::vec::Vec<u64>,
4918    /// Only profile target if it was installed by one of the packages given.
4919    /// Special values are:
4920    /// * @system: installed on the system partition
4921    /// * @product: installed on the product partition
4922    /// * @null: sideloaded
4923    /// Supported on Android 12+.
4924    #[prost(string, repeated, tag="7")]
4925    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4926    /// Dump at a predefined interval.
4927    #[prost(message, optional, tag="3")]
4928    pub continuous_dump_config: ::core::option::Option<java_hprof_config::ContinuousDumpConfig>,
4929    /// Do not profile processes whose anon RSS + swap < given value.
4930    #[prost(uint32, optional, tag="4")]
4931    pub min_anonymous_memory_kb: ::core::option::Option<u32>,
4932    /// Include the process' /proc/self/smaps.
4933    /// This only shows maps that:
4934    /// * start with /system
4935    /// * start with /vendor
4936    /// * start with /data/app
4937    /// * contain "extracted in memory from Y", where Y matches any of the above
4938    #[prost(bool, optional, tag="5")]
4939    pub dump_smaps: ::core::option::Option<bool>,
4940    /// Exclude objects of the following types from the profile. This can be
4941    /// useful if lots of uninteresting objects, e.g. "sun.misc.Cleaner".
4942    #[prost(string, repeated, tag="6")]
4943    pub ignored_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
4944}
4945/// Nested message and enum types in `JavaHprofConfig`.
4946pub mod java_hprof_config {
4947    /// If dump_interval_ms != 0, the following configuration is used.
4948    #[derive(Clone, PartialEq, ::prost::Message)]
4949    pub struct ContinuousDumpConfig {
4950        /// ms to wait before first continuous dump.
4951        /// A dump is always created at the beginning of the trace.
4952        #[prost(uint32, optional, tag="1")]
4953        pub dump_phase_ms: ::core::option::Option<u32>,
4954        /// ms to wait between following dumps.
4955        #[prost(uint32, optional, tag="2")]
4956        pub dump_interval_ms: ::core::option::Option<u32>,
4957        /// If true, scans all the processes to find `process_cmdline` and filter by
4958        /// `min_anonymous_memory_kb` only at data source start. Default on Android
4959        /// S-.
4960        ///
4961        /// If false, rescans all the processes to find on every dump. Default on
4962        /// Android T+.
4963        #[prost(bool, optional, tag="3")]
4964        pub scan_pids_only_on_start: ::core::option::Option<bool>,
4965    }
4966}
4967#[derive(Clone, PartialEq, ::prost::Message)]
4968pub struct PerfEvents {
4969}
4970/// Nested message and enum types in `PerfEvents`.
4971pub mod perf_events {
4972    /// The primary event to count. If recording multiple events, this
4973    /// counter is the "group leader".
4974    /// Commented from the perspective of its use in |PerfEventConfig|.
4975    /// Next id: 13
4976    #[derive(Clone, PartialEq, ::prost::Message)]
4977    pub struct Timebase {
4978        /// Optional modifiers for the event. Modelled after the perftool's
4979        /// <https://man7.org/linux/man-pages/man1/perf-list.1.html#EVENT_MODIFIERS>
4980        /// Currently supported: count scoping such as :u, :k, :uk, ...
4981        /// Modifiers can differ between the timebase and followers.
4982        #[prost(enumeration="EventModifier", repeated, packed="false", tag="12")]
4983        pub modifiers: ::prost::alloc::vec::Vec<i32>,
4984        /// If set, samples will be timestamped with the given clock.
4985        /// If unset, the clock is chosen by the implementation.
4986        /// For software events, prefer PERF_CLOCK_BOOTTIME. However it cannot be
4987        /// used for hardware events (due to interrupt safety), for which the
4988        /// recommendation is to use one of the monotonic clocks.
4989        #[prost(enumeration="PerfClock", optional, tag="11")]
4990        pub timestamp_clock: ::core::option::Option<i32>,
4991        /// Optional arbitrary name for the event, to identify it in the parsed
4992        /// trace. Does *not* affect the profiling itself. If unset, the trace
4993        /// parser will choose a suitable name.
4994        #[prost(string, optional, tag="10")]
4995        pub name: ::core::option::Option<::prost::alloc::string::String>,
4996        /// How often to snapshot the counter, along with any follower events and
4997        /// any additional sampled data such as callstacks.
4998        ///
4999        /// This choice also controls how the readings are taken:
5000        /// * With |frequency| or |period|, samples are taken by the kernel
5001        ///    into a ring buffer. Analogous to `perf record`.
5002        /// * With |poll_period_ms|, the userspace periodically snapshots
5003        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5004        /// Prefer the sampling options unless you're recording PMUs whose
5005        /// perf drivers only support the reading mode.
5006        ///
5007        /// If unset, an implementation-defined sampling default is used.
5008        #[prost(oneof="timebase::Interval", tags="2, 1, 6")]
5009        pub interval: ::core::option::Option<timebase::Interval>,
5010        /// Counting event to use as the timebase.
5011        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5012        /// which is what you usually want.
5013        #[prost(oneof="timebase::Event", tags="4, 3, 5")]
5014        pub event: ::core::option::Option<timebase::Event>,
5015    }
5016    /// Nested message and enum types in `Timebase`.
5017    pub mod timebase {
5018        /// How often to snapshot the counter, along with any follower events and
5019        /// any additional sampled data such as callstacks.
5020        ///
5021        /// This choice also controls how the readings are taken:
5022        /// * With |frequency| or |period|, samples are taken by the kernel
5023        ///    into a ring buffer. Analogous to `perf record`.
5024        /// * With |poll_period_ms|, the userspace periodically snapshots
5025        ///    the counters using the read syscall. Analogous to `perf stat -I`.
5026        /// Prefer the sampling options unless you're recording PMUs whose
5027        /// perf drivers only support the reading mode.
5028        ///
5029        /// If unset, an implementation-defined sampling default is used.
5030        #[derive(Clone, PartialEq, ::prost::Oneof)]
5031        pub enum Interval {
5032            /// Per-cpu sampling frequency in Hz, as requested from the kernel. Not the
5033            /// same as 1/period.
5034            /// Details: the actual sampling will still be based on a period, but the
5035            /// kernel will dynamically adjust it based on the observed event rate, to
5036            /// approximate this frequency. Works best with steady-rate events like
5037            /// timers.
5038            /// Not guaranteed to be honored as the kernel can throttle the sampling
5039            /// rate if it's too high.
5040            #[prost(uint64, tag="2")]
5041            Frequency(u64),
5042            /// Per-cpu sampling will occur every |period| counts of |event|.
5043            /// Prefer |frequency| by default, as it's easier to oversample with a
5044            /// fixed period.
5045            /// Not guaranteed to be honored as the kernel can throttle the sampling
5046            /// rate if it's too high.
5047            #[prost(uint64, tag="1")]
5048            Period(u64),
5049            /// Per-cpu values are read by the userspace every interval. If using this
5050            /// mode, only follower events are supported. Options such as
5051            /// |PerfEventConfig.CallstackSampling| are incompatible.
5052            /// The period can't be guaranteed to be exact since the readings are taken
5053            /// by userspace.
5054            #[prost(uint32, tag="6")]
5055            PollPeriodMs(u32),
5056        }
5057        /// Counting event to use as the timebase.
5058        /// If unset, implies the CPU timer (SW_CPU_CLOCK) as the event,
5059        /// which is what you usually want.
5060        #[derive(Clone, PartialEq, ::prost::Oneof)]
5061        pub enum Event {
5062            #[prost(enumeration="super::Counter", tag="4")]
5063            Counter(i32),
5064            #[prost(message, tag="3")]
5065            Tracepoint(super::Tracepoint),
5066            #[prost(message, tag="5")]
5067            RawEvent(super::RawEvent),
5068        }
5069    }
5070    #[derive(Clone, PartialEq, ::prost::Message)]
5071    pub struct Tracepoint {
5072        /// Group and name for the tracepoint, acceptable forms:
5073        /// * "sched/sched_switch"
5074        /// * "sched:sched_switch"
5075        #[prost(string, optional, tag="1")]
5076        pub name: ::core::option::Option<::prost::alloc::string::String>,
5077        /// Optional field-level filter for the tracepoint. Only events matching this
5078        /// filter will be counted (and therefore contribute to the sampling period).
5079        /// Example: "prev_pid >= 42 && next_pid == 0".
5080        /// For full syntax, see kernel documentation on "Event filtering":
5081        /// <https://www.kernel.org/doc/Documentation/trace/events.txt>
5082        #[prost(string, optional, tag="2")]
5083        pub filter: ::core::option::Option<::prost::alloc::string::String>,
5084    }
5085    /// Syscall-level description of the event, propagated to the perf_event_attr
5086    /// struct. Primarily for local use-cases, since the event availability and
5087    /// encoding is hardware-specific.
5088    #[derive(Clone, PartialEq, ::prost::Message)]
5089    pub struct RawEvent {
5090        #[prost(uint32, optional, tag="1")]
5091        pub r#type: ::core::option::Option<u32>,
5092        #[prost(uint64, optional, tag="2")]
5093        pub config: ::core::option::Option<u64>,
5094        #[prost(uint64, optional, tag="3")]
5095        pub config1: ::core::option::Option<u64>,
5096        #[prost(uint64, optional, tag="4")]
5097        pub config2: ::core::option::Option<u64>,
5098    }
5099    /// Builtin counter names from the uapi header. Commented with their perf tool
5100    /// aliases.
5101    /// TODO(rsavitski): consider generating enums for cache events (should be
5102    /// finite), and generally make this list as extensive as possible. Excluding
5103    /// things like dynamic PMUs since those don't fit into a static enum.
5104    /// Next id: 21
5105    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5106    #[repr(i32)]
5107    pub enum Counter {
5108        UnknownCounter = 0,
5109        /// cpu-clock
5110        SwCpuClock = 1,
5111        /// page-faults, faults
5112        SwPageFaults = 2,
5113        /// task-clock
5114        SwTaskClock = 3,
5115        /// context-switches, cs
5116        SwContextSwitches = 4,
5117        /// cpu-migrations, migrations
5118        SwCpuMigrations = 5,
5119        /// minor-faults
5120        SwPageFaultsMin = 6,
5121        /// major-faults
5122        SwPageFaultsMaj = 7,
5123        /// alignment-faults
5124        SwAlignmentFaults = 8,
5125        /// emulation-faults
5126        SwEmulationFaults = 9,
5127        /// dummy
5128        SwDummy = 20,
5129        /// cpu-cycles, cycles
5130        HwCpuCycles = 10,
5131        /// instructions
5132        HwInstructions = 11,
5133        /// cache-references
5134        HwCacheReferences = 12,
5135        /// cache-misses
5136        HwCacheMisses = 13,
5137        /// branch-instructions, branches
5138        HwBranchInstructions = 14,
5139        /// branch-misses
5140        HwBranchMisses = 15,
5141        /// bus-cycles
5142        HwBusCycles = 16,
5143        /// stalled-cycles-frontend, idle-cycles-frontend
5144        HwStalledCyclesFrontend = 17,
5145        /// stalled-cycles-backend, idle-cycles-backend
5146        HwStalledCyclesBackend = 18,
5147        /// ref-cycles
5148        HwRefCpuCycles = 19,
5149    }
5150    impl Counter {
5151        /// String value of the enum field names used in the ProtoBuf definition.
5152        ///
5153        /// The values are not transformed in any way and thus are considered stable
5154        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5155        pub fn as_str_name(&self) -> &'static str {
5156            match self {
5157                Counter::UnknownCounter => "UNKNOWN_COUNTER",
5158                Counter::SwCpuClock => "SW_CPU_CLOCK",
5159                Counter::SwPageFaults => "SW_PAGE_FAULTS",
5160                Counter::SwTaskClock => "SW_TASK_CLOCK",
5161                Counter::SwContextSwitches => "SW_CONTEXT_SWITCHES",
5162                Counter::SwCpuMigrations => "SW_CPU_MIGRATIONS",
5163                Counter::SwPageFaultsMin => "SW_PAGE_FAULTS_MIN",
5164                Counter::SwPageFaultsMaj => "SW_PAGE_FAULTS_MAJ",
5165                Counter::SwAlignmentFaults => "SW_ALIGNMENT_FAULTS",
5166                Counter::SwEmulationFaults => "SW_EMULATION_FAULTS",
5167                Counter::SwDummy => "SW_DUMMY",
5168                Counter::HwCpuCycles => "HW_CPU_CYCLES",
5169                Counter::HwInstructions => "HW_INSTRUCTIONS",
5170                Counter::HwCacheReferences => "HW_CACHE_REFERENCES",
5171                Counter::HwCacheMisses => "HW_CACHE_MISSES",
5172                Counter::HwBranchInstructions => "HW_BRANCH_INSTRUCTIONS",
5173                Counter::HwBranchMisses => "HW_BRANCH_MISSES",
5174                Counter::HwBusCycles => "HW_BUS_CYCLES",
5175                Counter::HwStalledCyclesFrontend => "HW_STALLED_CYCLES_FRONTEND",
5176                Counter::HwStalledCyclesBackend => "HW_STALLED_CYCLES_BACKEND",
5177                Counter::HwRefCpuCycles => "HW_REF_CPU_CYCLES",
5178            }
5179        }
5180    }
5181    /// Subset of clocks that is supported by perf timestamping.
5182    /// CLOCK_TAI is excluded since it's not expected to be used in practice, but
5183    /// would require additions to the trace clock synchronisation logic.
5184    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5185    #[repr(i32)]
5186    pub enum PerfClock {
5187        UnknownPerfClock = 0,
5188        Realtime = 1,
5189        Monotonic = 2,
5190        MonotonicRaw = 3,
5191        Boottime = 4,
5192    }
5193    impl PerfClock {
5194        /// String value of the enum field names used in the ProtoBuf definition.
5195        ///
5196        /// The values are not transformed in any way and thus are considered stable
5197        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5198        pub fn as_str_name(&self) -> &'static str {
5199            match self {
5200                PerfClock::UnknownPerfClock => "UNKNOWN_PERF_CLOCK",
5201                PerfClock::Realtime => "PERF_CLOCK_REALTIME",
5202                PerfClock::Monotonic => "PERF_CLOCK_MONOTONIC",
5203                PerfClock::MonotonicRaw => "PERF_CLOCK_MONOTONIC_RAW",
5204                PerfClock::Boottime => "PERF_CLOCK_BOOTTIME",
5205            }
5206        }
5207    }
5208    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5209    #[repr(i32)]
5210    pub enum EventModifier {
5211        UnknownEventModifier = 0,
5212        /// count only while in userspace
5213        CountUserspace = 1,
5214        /// count only while in kernel
5215        CountKernel = 2,
5216        /// count only while in hypervisor
5217        CountHypervisor = 3,
5218    }
5219    impl EventModifier {
5220        /// String value of the enum field names used in the ProtoBuf definition.
5221        ///
5222        /// The values are not transformed in any way and thus are considered stable
5223        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5224        pub fn as_str_name(&self) -> &'static str {
5225            match self {
5226                EventModifier::UnknownEventModifier => "UNKNOWN_EVENT_MODIFIER",
5227                EventModifier::CountUserspace => "EVENT_MODIFIER_COUNT_USERSPACE",
5228                EventModifier::CountKernel => "EVENT_MODIFIER_COUNT_KERNEL",
5229                EventModifier::CountHypervisor => "EVENT_MODIFIER_COUNT_HYPERVISOR",
5230            }
5231        }
5232    }
5233}
5234/// Additional events associated with a leader.
5235/// See <https://man7.org/linux/man-pages/man1/perf-list.1.html#LEADER_SAMPLING>
5236#[derive(Clone, PartialEq, ::prost::Message)]
5237pub struct FollowerEvent {
5238    /// Modifiers can differ between the timebase and followers.
5239    #[prost(enumeration="perf_events::EventModifier", repeated, packed="false", tag="5")]
5240    pub modifiers: ::prost::alloc::vec::Vec<i32>,
5241    /// Optional arbitrary name for the event, to identify it in the parsed
5242    /// trace. Does *not* affect the profiling itself. If unset, the trace
5243    /// parser will choose a suitable name.
5244    #[prost(string, optional, tag="4")]
5245    pub name: ::core::option::Option<::prost::alloc::string::String>,
5246    #[prost(oneof="follower_event::Event", tags="1, 2, 3")]
5247    pub event: ::core::option::Option<follower_event::Event>,
5248}
5249/// Nested message and enum types in `FollowerEvent`.
5250pub mod follower_event {
5251    #[derive(Clone, PartialEq, ::prost::Oneof)]
5252    pub enum Event {
5253        #[prost(enumeration="super::perf_events::Counter", tag="1")]
5254        Counter(i32),
5255        #[prost(message, tag="2")]
5256        Tracepoint(super::perf_events::Tracepoint),
5257        #[prost(message, tag="3")]
5258        RawEvent(super::perf_events::RawEvent),
5259    }
5260}
5261/// Configuration for the traced_perf profiler.
5262///
5263/// Example config for basic cpu profiling:
5264///    perf_event_config {
5265///      timebase {
5266///        frequency: 80
5267///      }
5268///      callstack_sampling {
5269///        scope {
5270///          target_cmdline: "surfaceflinger"
5271///          target_cmdline: "system_server"
5272///        }
5273///        kernel_frames: true
5274///      }
5275///    }
5276///
5277/// Next id: 21
5278#[derive(Clone, PartialEq, ::prost::Message)]
5279pub struct PerfEventConfig {
5280    /// What event to sample on, and how often.
5281    /// Defined in common/perf_events.proto.
5282    #[prost(message, optional, tag="15")]
5283    pub timebase: ::core::option::Option<perf_events::Timebase>,
5284    /// Other events associated with the leader described in the timebase.
5285    #[prost(message, repeated, tag="19")]
5286    pub followers: ::prost::alloc::vec::Vec<FollowerEvent>,
5287    /// If set, the profiler will sample userspace processes' callstacks at the
5288    /// interval specified by the |timebase|.
5289    /// If unset, the profiler will record only the event counts.
5290    #[prost(message, optional, tag="16")]
5291    pub callstack_sampling: ::core::option::Option<perf_event_config::CallstackSampling>,
5292    /// List of cpu indices for counting. If empty, the default is all cpus.
5293    ///
5294    /// Note: this is not inside |callstack_sampling.scope| as it also applies to
5295    /// counter-only traces. A future change will likely reorganise the options,
5296    /// but this field will continue to be supported.
5297    ///
5298    /// Available since: perfetto v50.
5299    #[prost(uint32, repeated, packed="false", tag="20")]
5300    pub target_cpu: ::prost::alloc::vec::Vec<u32>,
5301    //
5302    // Kernel <-> userspace ring buffer options:
5303    //
5304
5305    /// How often the per-cpu ring buffers are read by the producer.
5306    /// If unset, an implementation-defined default is used.
5307    #[prost(uint32, optional, tag="8")]
5308    pub ring_buffer_read_period_ms: ::core::option::Option<u32>,
5309    /// Size (in 4k pages) of each per-cpu ring buffer that is filled by the
5310    /// kernel. If set, must be a power of two.
5311    /// If unset, an implementation-defined default is used.
5312    #[prost(uint32, optional, tag="3")]
5313    pub ring_buffer_pages: ::core::option::Option<u32>,
5314    //
5315    // Daemon's resource usage limits:
5316    //
5317
5318    /// Drop samples if the heap memory held by the samples in the unwinder queue
5319    /// is above the given limit. This counts the memory across all concurrent data
5320    /// sources (not just this one's), and there is no fairness guarantee - the
5321    /// whole quota might be used up by a concurrent source.
5322    #[prost(uint64, optional, tag="17")]
5323    pub max_enqueued_footprint_kb: ::core::option::Option<u64>,
5324    /// Stop the data source if traced_perf's combined {RssAnon + Swap} memory
5325    /// footprint exceeds this value.
5326    #[prost(uint32, optional, tag="13")]
5327    pub max_daemon_memory_kb: ::core::option::Option<u32>,
5328    //
5329    // Niche options:
5330    //
5331
5332    /// Timeout for the remote /proc/<pid>/{maps,mem} file descriptors for a
5333    /// sampled process. This is primarily for Android, where this lookup is
5334    /// asynchronous. As long as the producer is waiting, the associated samples
5335    /// will be kept enqueued (putting pressure on the capacity of the shared
5336    /// unwinding queue). Once a lookup for a process expires, all associated
5337    /// samples are discarded. However, if the lookup still succeeds after the
5338    /// timeout, future samples will be handled normally.
5339    /// If unset, an implementation-defined default is used.
5340    #[prost(uint32, optional, tag="9")]
5341    pub remote_descriptor_timeout_ms: ::core::option::Option<u32>,
5342    /// Optional period for clearing state cached by the userspace unwinder. This
5343    /// is a heavy operation that is only necessary for traces that target a wide
5344    /// set of processes, and require the memory footprint to be reset
5345    /// periodically. To effectively disable the cache clearing, set to a value
5346    /// greater than your trace duration.
5347    ///
5348    /// Relevant only if |callstack_sampling.user_frames| is set to UNWIND_DWARF.
5349    ///
5350    /// If zero or unset:
5351    /// * before perfetto v52: no cache clearing.
5352    /// * perfetto v52+: implementation chooses an infrequent default.
5353    #[prost(uint32, optional, tag="10")]
5354    pub unwind_state_clear_period_ms: ::core::option::Option<u32>,
5355    /// If set, only profile target if it was installed by a package with one of
5356    /// these names. Special values:
5357    /// * "@system": installed on the system partition
5358    /// * "@product": installed on the product partition
5359    /// * "@null": sideloaded
5360    /// Supported on Android 12+.
5361    #[prost(string, repeated, tag="18")]
5362    pub target_installed_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5363    //
5364    // Deprecated (superseded by options above):
5365    //
5366    // Do not set *any* of these fields in new configs.
5367    //
5368
5369    /// Note: legacy configs had to set |all_cpus| to true to pass parsing.
5370    /// We rely on this to detect such configs.
5371    #[prost(bool, optional, tag="1")]
5372    pub all_cpus: ::core::option::Option<bool>,
5373    #[prost(uint32, optional, tag="2")]
5374    pub sampling_frequency: ::core::option::Option<u32>,
5375    #[prost(bool, optional, tag="12")]
5376    pub kernel_frames: ::core::option::Option<bool>,
5377    #[prost(int32, repeated, packed="false", tag="4")]
5378    pub target_pid: ::prost::alloc::vec::Vec<i32>,
5379    #[prost(string, repeated, tag="5")]
5380    pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5381    #[prost(int32, repeated, packed="false", tag="6")]
5382    pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
5383    #[prost(string, repeated, tag="7")]
5384    pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5385    #[prost(uint32, optional, tag="11")]
5386    pub additional_cmdline_count: ::core::option::Option<u32>,
5387}
5388/// Nested message and enum types in `PerfEventConfig`.
5389pub mod perf_event_config {
5390    //
5391    // Sub-messages (nested for generated code namespacing).
5392    //
5393
5394    #[derive(Clone, PartialEq, ::prost::Message)]
5395    pub struct CallstackSampling {
5396        /// Defines a set of processes for which samples are retained/skipped. If
5397        /// unset, all samples are kept, but beware that it will be very heavy on the
5398        /// stack unwinder, which might start dropping samples due to overload.
5399        #[prost(message, optional, tag="1")]
5400        pub scope: ::core::option::Option<Scope>,
5401        /// If true, callstacks will include the kernel-space frames. Such frames can
5402        /// be identified by a magical "kernel" string as their mapping name.
5403        /// Requires traced_perf to be running as root, or kptr_restrict to have been
5404        /// manually unrestricted. On Android, the platform should do the right thing
5405        /// on debug builds.
5406        /// This does *not* disclose KASLR, as only the function names are emitted.
5407        #[prost(bool, optional, tag="2")]
5408        pub kernel_frames: ::core::option::Option<bool>,
5409        /// Whether to record and unwind userspace callstacks. If unset, defaults to
5410        /// including userspace (UNWIND_DWARF) both for backwards compatibility and
5411        /// as the most common default (this defaulting is only applicable if the
5412        /// outer CallstackSampling message is explicitly set).
5413        #[prost(enumeration="UnwindMode", optional, tag="3")]
5414        pub user_frames: ::core::option::Option<i32>,
5415    }
5416    #[derive(Clone, PartialEq, ::prost::Message)]
5417    pub struct Scope {
5418        /// Process ID (TGID) allowlist. If this list is not empty, only matching
5419        /// samples will be retained. If multiple allow/deny-lists are
5420        /// specified by the config, then all of them are evaluated for each sampled
5421        /// process.
5422        #[prost(int32, repeated, packed="false", tag="1")]
5423        pub target_pid: ::prost::alloc::vec::Vec<i32>,
5424        /// Command line allowlist, matched against the /proc/<pid>/cmdline (not the
5425        /// comm string). The semantics of this field were changed since its original
5426        /// introduction.
5427        ///
5428        /// On Android T+ (13+), this field can specify a single wildcard (*), and
5429        /// the profiler will attempt to match it in two possible ways:
5430        /// * if the pattern starts with a '/', then it is matched against the first
5431        ///    segment of the cmdline (i.e. argv0). For example "/bin/e*" would match
5432        ///    "/bin/echo".
5433        /// * otherwise the pattern is matched against the part of argv0
5434        ///    corresponding to the binary name (this is unrelated to /proc/pid/exe).
5435        ///    For example "echo" would match "/bin/echo".
5436        ///
5437        /// On Android S (12) and below, both this pattern and /proc/pid/cmdline get
5438        /// normalized prior to an exact string comparison. Normalization is as
5439        /// follows: (1) trim everything beyond the first null or "@" byte; (2) if
5440        /// the string contains forward slashes, trim everything up to and including
5441        /// the last one.
5442        ///
5443        /// Implementation note: in either case, at most 511 characters of cmdline
5444        /// are considered.
5445        #[prost(string, repeated, tag="2")]
5446        pub target_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5447        /// List of excluded pids.
5448        #[prost(int32, repeated, packed="false", tag="3")]
5449        pub exclude_pid: ::prost::alloc::vec::Vec<i32>,
5450        /// List of excluded cmdlines. See description of |target_cmdline| for how
5451        /// this is handled.
5452        #[prost(string, repeated, tag="4")]
5453        pub exclude_cmdline: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
5454        // Niche features for systemwide callstacks:
5455
5456        /// Number of additional command lines to sample. Only those which are
5457        /// neither explicitly included nor excluded will be considered. Processes
5458        /// are accepted on a first come, first served basis.
5459        #[prost(uint32, optional, tag="5")]
5460        pub additional_cmdline_count: ::core::option::Option<u32>,
5461        /// If set to N, all encountered processes will be put into one of the N
5462        /// possible bins, and only one randomly-chosen bin will be selected for
5463        /// unwinding. The binning is simply "pid % N", under the assumption that
5464        /// low-order bits of pids are roughly uniformly distributed. Other explicit
5465        /// inclusions/exclusions in this |Scope| message are still respected.
5466        ///
5467        /// The profiler will report the chosen shard in PerfSampleDefaults, and the
5468        /// values will be queryable in trace processor under the "stats" table as
5469        /// "perf_process_shard_count" and "perf_chosen_process_shard".
5470        ///
5471        /// NB: all data sources in a config that set |process_shard_count| must set
5472        /// it to the same value. The profiler will choose one bin for all those data
5473        /// sources.
5474        #[prost(uint32, optional, tag="6")]
5475        pub process_shard_count: ::core::option::Option<u32>,
5476    }
5477    /// Userspace unwinding mode. A possible future addition is kernel-unwound
5478    /// callchains for frame pointer based systems.
5479    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5480    #[repr(i32)]
5481    pub enum UnwindMode {
5482        UnwindUnknown = 0,
5483        /// Do not unwind userspace:
5484        UnwindSkip = 1,
5485        /// Use libunwindstack (default):
5486        UnwindDwarf = 2,
5487        /// Use userspace frame pointer unwinder:
5488        UnwindFramePointer = 3,
5489    }
5490    impl UnwindMode {
5491        /// String value of the enum field names used in the ProtoBuf definition.
5492        ///
5493        /// The values are not transformed in any way and thus are considered stable
5494        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5495        pub fn as_str_name(&self) -> &'static str {
5496            match self {
5497                UnwindMode::UnwindUnknown => "UNWIND_UNKNOWN",
5498                UnwindMode::UnwindSkip => "UNWIND_SKIP",
5499                UnwindMode::UnwindDwarf => "UNWIND_DWARF",
5500                UnwindMode::UnwindFramePointer => "UNWIND_FRAME_POINTER",
5501            }
5502        }
5503    }
5504}
5505// When editing entries here remember also to update "sys_stats_counters.h" with
5506// the corresponding string definitions for the actual /proc files parser.
5507
5508/// Counter definitions for Linux's /proc/meminfo.
5509#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5510#[repr(i32)]
5511pub enum MeminfoCounters {
5512    MeminfoUnspecified = 0,
5513    MeminfoMemTotal = 1,
5514    MeminfoMemFree = 2,
5515    MeminfoMemAvailable = 3,
5516    MeminfoBuffers = 4,
5517    MeminfoCached = 5,
5518    MeminfoSwapCached = 6,
5519    MeminfoActive = 7,
5520    MeminfoInactive = 8,
5521    MeminfoActiveAnon = 9,
5522    MeminfoInactiveAnon = 10,
5523    MeminfoActiveFile = 11,
5524    MeminfoInactiveFile = 12,
5525    MeminfoUnevictable = 13,
5526    MeminfoMlocked = 14,
5527    MeminfoSwapTotal = 15,
5528    MeminfoSwapFree = 16,
5529    MeminfoDirty = 17,
5530    MeminfoWriteback = 18,
5531    MeminfoAnonPages = 19,
5532    MeminfoMapped = 20,
5533    MeminfoShmem = 21,
5534    MeminfoSlab = 22,
5535    MeminfoSlabReclaimable = 23,
5536    MeminfoSlabUnreclaimable = 24,
5537    MeminfoKernelStack = 25,
5538    MeminfoPageTables = 26,
5539    MeminfoCommitLimit = 27,
5540    MeminfoCommitedAs = 28,
5541    MeminfoVmallocTotal = 29,
5542    MeminfoVmallocUsed = 30,
5543    MeminfoVmallocChunk = 31,
5544    MeminfoCmaTotal = 32,
5545    MeminfoCmaFree = 33,
5546    MeminfoGpu = 34,
5547    MeminfoZram = 35,
5548    MeminfoMisc = 36,
5549    MeminfoIonHeap = 37,
5550    MeminfoIonHeapPool = 38,
5551}
5552impl MeminfoCounters {
5553    /// String value of the enum field names used in the ProtoBuf definition.
5554    ///
5555    /// The values are not transformed in any way and thus are considered stable
5556    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5557    pub fn as_str_name(&self) -> &'static str {
5558        match self {
5559            MeminfoCounters::MeminfoUnspecified => "MEMINFO_UNSPECIFIED",
5560            MeminfoCounters::MeminfoMemTotal => "MEMINFO_MEM_TOTAL",
5561            MeminfoCounters::MeminfoMemFree => "MEMINFO_MEM_FREE",
5562            MeminfoCounters::MeminfoMemAvailable => "MEMINFO_MEM_AVAILABLE",
5563            MeminfoCounters::MeminfoBuffers => "MEMINFO_BUFFERS",
5564            MeminfoCounters::MeminfoCached => "MEMINFO_CACHED",
5565            MeminfoCounters::MeminfoSwapCached => "MEMINFO_SWAP_CACHED",
5566            MeminfoCounters::MeminfoActive => "MEMINFO_ACTIVE",
5567            MeminfoCounters::MeminfoInactive => "MEMINFO_INACTIVE",
5568            MeminfoCounters::MeminfoActiveAnon => "MEMINFO_ACTIVE_ANON",
5569            MeminfoCounters::MeminfoInactiveAnon => "MEMINFO_INACTIVE_ANON",
5570            MeminfoCounters::MeminfoActiveFile => "MEMINFO_ACTIVE_FILE",
5571            MeminfoCounters::MeminfoInactiveFile => "MEMINFO_INACTIVE_FILE",
5572            MeminfoCounters::MeminfoUnevictable => "MEMINFO_UNEVICTABLE",
5573            MeminfoCounters::MeminfoMlocked => "MEMINFO_MLOCKED",
5574            MeminfoCounters::MeminfoSwapTotal => "MEMINFO_SWAP_TOTAL",
5575            MeminfoCounters::MeminfoSwapFree => "MEMINFO_SWAP_FREE",
5576            MeminfoCounters::MeminfoDirty => "MEMINFO_DIRTY",
5577            MeminfoCounters::MeminfoWriteback => "MEMINFO_WRITEBACK",
5578            MeminfoCounters::MeminfoAnonPages => "MEMINFO_ANON_PAGES",
5579            MeminfoCounters::MeminfoMapped => "MEMINFO_MAPPED",
5580            MeminfoCounters::MeminfoShmem => "MEMINFO_SHMEM",
5581            MeminfoCounters::MeminfoSlab => "MEMINFO_SLAB",
5582            MeminfoCounters::MeminfoSlabReclaimable => "MEMINFO_SLAB_RECLAIMABLE",
5583            MeminfoCounters::MeminfoSlabUnreclaimable => "MEMINFO_SLAB_UNRECLAIMABLE",
5584            MeminfoCounters::MeminfoKernelStack => "MEMINFO_KERNEL_STACK",
5585            MeminfoCounters::MeminfoPageTables => "MEMINFO_PAGE_TABLES",
5586            MeminfoCounters::MeminfoCommitLimit => "MEMINFO_COMMIT_LIMIT",
5587            MeminfoCounters::MeminfoCommitedAs => "MEMINFO_COMMITED_AS",
5588            MeminfoCounters::MeminfoVmallocTotal => "MEMINFO_VMALLOC_TOTAL",
5589            MeminfoCounters::MeminfoVmallocUsed => "MEMINFO_VMALLOC_USED",
5590            MeminfoCounters::MeminfoVmallocChunk => "MEMINFO_VMALLOC_CHUNK",
5591            MeminfoCounters::MeminfoCmaTotal => "MEMINFO_CMA_TOTAL",
5592            MeminfoCounters::MeminfoCmaFree => "MEMINFO_CMA_FREE",
5593            MeminfoCounters::MeminfoGpu => "MEMINFO_GPU",
5594            MeminfoCounters::MeminfoZram => "MEMINFO_ZRAM",
5595            MeminfoCounters::MeminfoMisc => "MEMINFO_MISC",
5596            MeminfoCounters::MeminfoIonHeap => "MEMINFO_ION_HEAP",
5597            MeminfoCounters::MeminfoIonHeapPool => "MEMINFO_ION_HEAP_POOL",
5598        }
5599    }
5600}
5601/// Counter definitions for Linux's /proc/vmstat.
5602#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
5603#[repr(i32)]
5604pub enum VmstatCounters {
5605    VmstatUnspecified = 0,
5606    VmstatNrFreePages = 1,
5607    VmstatNrAllocBatch = 2,
5608    VmstatNrInactiveAnon = 3,
5609    VmstatNrActiveAnon = 4,
5610    VmstatNrInactiveFile = 5,
5611    VmstatNrActiveFile = 6,
5612    VmstatNrUnevictable = 7,
5613    VmstatNrMlock = 8,
5614    VmstatNrAnonPages = 9,
5615    VmstatNrMapped = 10,
5616    VmstatNrFilePages = 11,
5617    VmstatNrDirty = 12,
5618    VmstatNrWriteback = 13,
5619    VmstatNrSlabReclaimable = 14,
5620    VmstatNrSlabUnreclaimable = 15,
5621    VmstatNrPageTablePages = 16,
5622    VmstatNrKernelStack = 17,
5623    VmstatNrOverhead = 18,
5624    VmstatNrUnstable = 19,
5625    VmstatNrBounce = 20,
5626    VmstatNrVmscanWrite = 21,
5627    VmstatNrVmscanImmediateReclaim = 22,
5628    VmstatNrWritebackTemp = 23,
5629    VmstatNrIsolatedAnon = 24,
5630    VmstatNrIsolatedFile = 25,
5631    VmstatNrShmem = 26,
5632    VmstatNrDirtied = 27,
5633    VmstatNrWritten = 28,
5634    VmstatNrPagesScanned = 29,
5635    VmstatWorkingsetRefault = 30,
5636    VmstatWorkingsetActivate = 31,
5637    VmstatWorkingsetNodereclaim = 32,
5638    VmstatNrAnonTransparentHugepages = 33,
5639    VmstatNrFreeCma = 34,
5640    VmstatNrSwapcache = 35,
5641    VmstatNrDirtyThreshold = 36,
5642    VmstatNrDirtyBackgroundThreshold = 37,
5643    VmstatPgpgin = 38,
5644    VmstatPgpgout = 39,
5645    VmstatPgpgoutclean = 40,
5646    VmstatPswpin = 41,
5647    VmstatPswpout = 42,
5648    VmstatPgallocDma = 43,
5649    VmstatPgallocNormal = 44,
5650    VmstatPgallocMovable = 45,
5651    VmstatPgfree = 46,
5652    VmstatPgactivate = 47,
5653    VmstatPgdeactivate = 48,
5654    VmstatPgfault = 49,
5655    VmstatPgmajfault = 50,
5656    VmstatPgrefillDma = 51,
5657    VmstatPgrefillNormal = 52,
5658    VmstatPgrefillMovable = 53,
5659    VmstatPgstealKswapdDma = 54,
5660    VmstatPgstealKswapdNormal = 55,
5661    VmstatPgstealKswapdMovable = 56,
5662    VmstatPgstealDirectDma = 57,
5663    VmstatPgstealDirectNormal = 58,
5664    VmstatPgstealDirectMovable = 59,
5665    VmstatPgscanKswapdDma = 60,
5666    VmstatPgscanKswapdNormal = 61,
5667    VmstatPgscanKswapdMovable = 62,
5668    VmstatPgscanDirectDma = 63,
5669    VmstatPgscanDirectNormal = 64,
5670    VmstatPgscanDirectMovable = 65,
5671    VmstatPgscanDirectThrottle = 66,
5672    VmstatPginodesteal = 67,
5673    VmstatSlabsScanned = 68,
5674    VmstatKswapdInodesteal = 69,
5675    VmstatKswapdLowWmarkHitQuickly = 70,
5676    VmstatKswapdHighWmarkHitQuickly = 71,
5677    VmstatPageoutrun = 72,
5678    VmstatAllocstall = 73,
5679    VmstatPgrotated = 74,
5680    VmstatDropPagecache = 75,
5681    VmstatDropSlab = 76,
5682    VmstatPgmigrateSuccess = 77,
5683    VmstatPgmigrateFail = 78,
5684    VmstatCompactMigrateScanned = 79,
5685    VmstatCompactFreeScanned = 80,
5686    VmstatCompactIsolated = 81,
5687    VmstatCompactStall = 82,
5688    VmstatCompactFail = 83,
5689    VmstatCompactSuccess = 84,
5690    VmstatCompactDaemonWake = 85,
5691    VmstatUnevictablePgsCulled = 86,
5692    VmstatUnevictablePgsScanned = 87,
5693    VmstatUnevictablePgsRescued = 88,
5694    VmstatUnevictablePgsMlocked = 89,
5695    VmstatUnevictablePgsMunlocked = 90,
5696    VmstatUnevictablePgsCleared = 91,
5697    VmstatUnevictablePgsStranded = 92,
5698    VmstatNrZspages = 93,
5699    VmstatNrIonHeap = 94,
5700    VmstatNrGpuHeap = 95,
5701    VmstatAllocstallDma = 96,
5702    VmstatAllocstallMovable = 97,
5703    VmstatAllocstallNormal = 98,
5704    VmstatCompactDaemonFreeScanned = 99,
5705    VmstatCompactDaemonMigrateScanned = 100,
5706    VmstatNrFastrpc = 101,
5707    VmstatNrIndirectlyReclaimable = 102,
5708    VmstatNrIonHeapPool = 103,
5709    VmstatNrKernelMiscReclaimable = 104,
5710    VmstatNrShadowCallStackBytes = 105,
5711    VmstatNrShmemHugepages = 106,
5712    VmstatNrShmemPmdmapped = 107,
5713    VmstatNrUnreclaimablePages = 108,
5714    VmstatNrZoneActiveAnon = 109,
5715    VmstatNrZoneActiveFile = 110,
5716    VmstatNrZoneInactiveAnon = 111,
5717    VmstatNrZoneInactiveFile = 112,
5718    VmstatNrZoneUnevictable = 113,
5719    VmstatNrZoneWritePending = 114,
5720    VmstatOomKill = 115,
5721    VmstatPglazyfree = 116,
5722    VmstatPglazyfreed = 117,
5723    VmstatPgrefill = 118,
5724    VmstatPgscanDirect = 119,
5725    VmstatPgscanKswapd = 120,
5726    VmstatPgskipDma = 121,
5727    VmstatPgskipMovable = 122,
5728    VmstatPgskipNormal = 123,
5729    VmstatPgstealDirect = 124,
5730    VmstatPgstealKswapd = 125,
5731    VmstatSwapRa = 126,
5732    VmstatSwapRaHit = 127,
5733    VmstatWorkingsetRestore = 128,
5734    VmstatAllocstallDevice = 129,
5735    VmstatAllocstallDma32 = 130,
5736    VmstatBalloonDeflate = 131,
5737    VmstatBalloonInflate = 132,
5738    VmstatBalloonMigrate = 133,
5739    VmstatCmaAllocFail = 134,
5740    VmstatCmaAllocSuccess = 135,
5741    VmstatNrFileHugepages = 136,
5742    VmstatNrFilePmdmapped = 137,
5743    VmstatNrFollPinAcquired = 138,
5744    VmstatNrFollPinReleased = 139,
5745    VmstatNrSecPageTablePages = 140,
5746    VmstatNrShadowCallStack = 141,
5747    VmstatNrSwapcached = 142,
5748    VmstatNrThrottledWritten = 143,
5749    VmstatPgallocDevice = 144,
5750    VmstatPgallocDma32 = 145,
5751    VmstatPgdemoteDirect = 146,
5752    VmstatPgdemoteKswapd = 147,
5753    VmstatPgreuse = 148,
5754    VmstatPgscanAnon = 149,
5755    VmstatPgscanFile = 150,
5756    VmstatPgskipDevice = 151,
5757    VmstatPgskipDma32 = 152,
5758    VmstatPgstealAnon = 153,
5759    VmstatPgstealFile = 154,
5760    VmstatThpCollapseAlloc = 155,
5761    VmstatThpCollapseAllocFailed = 156,
5762    VmstatThpDeferredSplitPage = 157,
5763    VmstatThpFaultAlloc = 158,
5764    VmstatThpFaultFallback = 159,
5765    VmstatThpFaultFallbackCharge = 160,
5766    VmstatThpFileAlloc = 161,
5767    VmstatThpFileFallback = 162,
5768    VmstatThpFileFallbackCharge = 163,
5769    VmstatThpFileMapped = 164,
5770    VmstatThpMigrationFail = 165,
5771    VmstatThpMigrationSplit = 166,
5772    VmstatThpMigrationSuccess = 167,
5773    VmstatThpScanExceedNonePte = 168,
5774    VmstatThpScanExceedSharePte = 169,
5775    VmstatThpScanExceedSwapPte = 170,
5776    VmstatThpSplitPage = 171,
5777    VmstatThpSplitPageFailed = 172,
5778    VmstatThpSplitPmd = 173,
5779    VmstatThpSwpout = 174,
5780    VmstatThpSwpoutFallback = 175,
5781    VmstatThpZeroPageAlloc = 176,
5782    VmstatThpZeroPageAllocFailed = 177,
5783    VmstatVmaLockAbort = 178,
5784    VmstatVmaLockMiss = 179,
5785    VmstatVmaLockRetry = 180,
5786    VmstatVmaLockSuccess = 181,
5787    VmstatWorkingsetActivateAnon = 182,
5788    VmstatWorkingsetActivateFile = 183,
5789    VmstatWorkingsetNodes = 184,
5790    VmstatWorkingsetRefaultAnon = 185,
5791    VmstatWorkingsetRefaultFile = 186,
5792    VmstatWorkingsetRestoreAnon = 187,
5793    VmstatWorkingsetRestoreFile = 188,
5794}
5795impl VmstatCounters {
5796    /// String value of the enum field names used in the ProtoBuf definition.
5797    ///
5798    /// The values are not transformed in any way and thus are considered stable
5799    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
5800    pub fn as_str_name(&self) -> &'static str {
5801        match self {
5802            VmstatCounters::VmstatUnspecified => "VMSTAT_UNSPECIFIED",
5803            VmstatCounters::VmstatNrFreePages => "VMSTAT_NR_FREE_PAGES",
5804            VmstatCounters::VmstatNrAllocBatch => "VMSTAT_NR_ALLOC_BATCH",
5805            VmstatCounters::VmstatNrInactiveAnon => "VMSTAT_NR_INACTIVE_ANON",
5806            VmstatCounters::VmstatNrActiveAnon => "VMSTAT_NR_ACTIVE_ANON",
5807            VmstatCounters::VmstatNrInactiveFile => "VMSTAT_NR_INACTIVE_FILE",
5808            VmstatCounters::VmstatNrActiveFile => "VMSTAT_NR_ACTIVE_FILE",
5809            VmstatCounters::VmstatNrUnevictable => "VMSTAT_NR_UNEVICTABLE",
5810            VmstatCounters::VmstatNrMlock => "VMSTAT_NR_MLOCK",
5811            VmstatCounters::VmstatNrAnonPages => "VMSTAT_NR_ANON_PAGES",
5812            VmstatCounters::VmstatNrMapped => "VMSTAT_NR_MAPPED",
5813            VmstatCounters::VmstatNrFilePages => "VMSTAT_NR_FILE_PAGES",
5814            VmstatCounters::VmstatNrDirty => "VMSTAT_NR_DIRTY",
5815            VmstatCounters::VmstatNrWriteback => "VMSTAT_NR_WRITEBACK",
5816            VmstatCounters::VmstatNrSlabReclaimable => "VMSTAT_NR_SLAB_RECLAIMABLE",
5817            VmstatCounters::VmstatNrSlabUnreclaimable => "VMSTAT_NR_SLAB_UNRECLAIMABLE",
5818            VmstatCounters::VmstatNrPageTablePages => "VMSTAT_NR_PAGE_TABLE_PAGES",
5819            VmstatCounters::VmstatNrKernelStack => "VMSTAT_NR_KERNEL_STACK",
5820            VmstatCounters::VmstatNrOverhead => "VMSTAT_NR_OVERHEAD",
5821            VmstatCounters::VmstatNrUnstable => "VMSTAT_NR_UNSTABLE",
5822            VmstatCounters::VmstatNrBounce => "VMSTAT_NR_BOUNCE",
5823            VmstatCounters::VmstatNrVmscanWrite => "VMSTAT_NR_VMSCAN_WRITE",
5824            VmstatCounters::VmstatNrVmscanImmediateReclaim => "VMSTAT_NR_VMSCAN_IMMEDIATE_RECLAIM",
5825            VmstatCounters::VmstatNrWritebackTemp => "VMSTAT_NR_WRITEBACK_TEMP",
5826            VmstatCounters::VmstatNrIsolatedAnon => "VMSTAT_NR_ISOLATED_ANON",
5827            VmstatCounters::VmstatNrIsolatedFile => "VMSTAT_NR_ISOLATED_FILE",
5828            VmstatCounters::VmstatNrShmem => "VMSTAT_NR_SHMEM",
5829            VmstatCounters::VmstatNrDirtied => "VMSTAT_NR_DIRTIED",
5830            VmstatCounters::VmstatNrWritten => "VMSTAT_NR_WRITTEN",
5831            VmstatCounters::VmstatNrPagesScanned => "VMSTAT_NR_PAGES_SCANNED",
5832            VmstatCounters::VmstatWorkingsetRefault => "VMSTAT_WORKINGSET_REFAULT",
5833            VmstatCounters::VmstatWorkingsetActivate => "VMSTAT_WORKINGSET_ACTIVATE",
5834            VmstatCounters::VmstatWorkingsetNodereclaim => "VMSTAT_WORKINGSET_NODERECLAIM",
5835            VmstatCounters::VmstatNrAnonTransparentHugepages => "VMSTAT_NR_ANON_TRANSPARENT_HUGEPAGES",
5836            VmstatCounters::VmstatNrFreeCma => "VMSTAT_NR_FREE_CMA",
5837            VmstatCounters::VmstatNrSwapcache => "VMSTAT_NR_SWAPCACHE",
5838            VmstatCounters::VmstatNrDirtyThreshold => "VMSTAT_NR_DIRTY_THRESHOLD",
5839            VmstatCounters::VmstatNrDirtyBackgroundThreshold => "VMSTAT_NR_DIRTY_BACKGROUND_THRESHOLD",
5840            VmstatCounters::VmstatPgpgin => "VMSTAT_PGPGIN",
5841            VmstatCounters::VmstatPgpgout => "VMSTAT_PGPGOUT",
5842            VmstatCounters::VmstatPgpgoutclean => "VMSTAT_PGPGOUTCLEAN",
5843            VmstatCounters::VmstatPswpin => "VMSTAT_PSWPIN",
5844            VmstatCounters::VmstatPswpout => "VMSTAT_PSWPOUT",
5845            VmstatCounters::VmstatPgallocDma => "VMSTAT_PGALLOC_DMA",
5846            VmstatCounters::VmstatPgallocNormal => "VMSTAT_PGALLOC_NORMAL",
5847            VmstatCounters::VmstatPgallocMovable => "VMSTAT_PGALLOC_MOVABLE",
5848            VmstatCounters::VmstatPgfree => "VMSTAT_PGFREE",
5849            VmstatCounters::VmstatPgactivate => "VMSTAT_PGACTIVATE",
5850            VmstatCounters::VmstatPgdeactivate => "VMSTAT_PGDEACTIVATE",
5851            VmstatCounters::VmstatPgfault => "VMSTAT_PGFAULT",
5852            VmstatCounters::VmstatPgmajfault => "VMSTAT_PGMAJFAULT",
5853            VmstatCounters::VmstatPgrefillDma => "VMSTAT_PGREFILL_DMA",
5854            VmstatCounters::VmstatPgrefillNormal => "VMSTAT_PGREFILL_NORMAL",
5855            VmstatCounters::VmstatPgrefillMovable => "VMSTAT_PGREFILL_MOVABLE",
5856            VmstatCounters::VmstatPgstealKswapdDma => "VMSTAT_PGSTEAL_KSWAPD_DMA",
5857            VmstatCounters::VmstatPgstealKswapdNormal => "VMSTAT_PGSTEAL_KSWAPD_NORMAL",
5858            VmstatCounters::VmstatPgstealKswapdMovable => "VMSTAT_PGSTEAL_KSWAPD_MOVABLE",
5859            VmstatCounters::VmstatPgstealDirectDma => "VMSTAT_PGSTEAL_DIRECT_DMA",
5860            VmstatCounters::VmstatPgstealDirectNormal => "VMSTAT_PGSTEAL_DIRECT_NORMAL",
5861            VmstatCounters::VmstatPgstealDirectMovable => "VMSTAT_PGSTEAL_DIRECT_MOVABLE",
5862            VmstatCounters::VmstatPgscanKswapdDma => "VMSTAT_PGSCAN_KSWAPD_DMA",
5863            VmstatCounters::VmstatPgscanKswapdNormal => "VMSTAT_PGSCAN_KSWAPD_NORMAL",
5864            VmstatCounters::VmstatPgscanKswapdMovable => "VMSTAT_PGSCAN_KSWAPD_MOVABLE",
5865            VmstatCounters::VmstatPgscanDirectDma => "VMSTAT_PGSCAN_DIRECT_DMA",
5866            VmstatCounters::VmstatPgscanDirectNormal => "VMSTAT_PGSCAN_DIRECT_NORMAL",
5867            VmstatCounters::VmstatPgscanDirectMovable => "VMSTAT_PGSCAN_DIRECT_MOVABLE",
5868            VmstatCounters::VmstatPgscanDirectThrottle => "VMSTAT_PGSCAN_DIRECT_THROTTLE",
5869            VmstatCounters::VmstatPginodesteal => "VMSTAT_PGINODESTEAL",
5870            VmstatCounters::VmstatSlabsScanned => "VMSTAT_SLABS_SCANNED",
5871            VmstatCounters::VmstatKswapdInodesteal => "VMSTAT_KSWAPD_INODESTEAL",
5872            VmstatCounters::VmstatKswapdLowWmarkHitQuickly => "VMSTAT_KSWAPD_LOW_WMARK_HIT_QUICKLY",
5873            VmstatCounters::VmstatKswapdHighWmarkHitQuickly => "VMSTAT_KSWAPD_HIGH_WMARK_HIT_QUICKLY",
5874            VmstatCounters::VmstatPageoutrun => "VMSTAT_PAGEOUTRUN",
5875            VmstatCounters::VmstatAllocstall => "VMSTAT_ALLOCSTALL",
5876            VmstatCounters::VmstatPgrotated => "VMSTAT_PGROTATED",
5877            VmstatCounters::VmstatDropPagecache => "VMSTAT_DROP_PAGECACHE",
5878            VmstatCounters::VmstatDropSlab => "VMSTAT_DROP_SLAB",
5879            VmstatCounters::VmstatPgmigrateSuccess => "VMSTAT_PGMIGRATE_SUCCESS",
5880            VmstatCounters::VmstatPgmigrateFail => "VMSTAT_PGMIGRATE_FAIL",
5881            VmstatCounters::VmstatCompactMigrateScanned => "VMSTAT_COMPACT_MIGRATE_SCANNED",
5882            VmstatCounters::VmstatCompactFreeScanned => "VMSTAT_COMPACT_FREE_SCANNED",
5883            VmstatCounters::VmstatCompactIsolated => "VMSTAT_COMPACT_ISOLATED",
5884            VmstatCounters::VmstatCompactStall => "VMSTAT_COMPACT_STALL",
5885            VmstatCounters::VmstatCompactFail => "VMSTAT_COMPACT_FAIL",
5886            VmstatCounters::VmstatCompactSuccess => "VMSTAT_COMPACT_SUCCESS",
5887            VmstatCounters::VmstatCompactDaemonWake => "VMSTAT_COMPACT_DAEMON_WAKE",
5888            VmstatCounters::VmstatUnevictablePgsCulled => "VMSTAT_UNEVICTABLE_PGS_CULLED",
5889            VmstatCounters::VmstatUnevictablePgsScanned => "VMSTAT_UNEVICTABLE_PGS_SCANNED",
5890            VmstatCounters::VmstatUnevictablePgsRescued => "VMSTAT_UNEVICTABLE_PGS_RESCUED",
5891            VmstatCounters::VmstatUnevictablePgsMlocked => "VMSTAT_UNEVICTABLE_PGS_MLOCKED",
5892            VmstatCounters::VmstatUnevictablePgsMunlocked => "VMSTAT_UNEVICTABLE_PGS_MUNLOCKED",
5893            VmstatCounters::VmstatUnevictablePgsCleared => "VMSTAT_UNEVICTABLE_PGS_CLEARED",
5894            VmstatCounters::VmstatUnevictablePgsStranded => "VMSTAT_UNEVICTABLE_PGS_STRANDED",
5895            VmstatCounters::VmstatNrZspages => "VMSTAT_NR_ZSPAGES",
5896            VmstatCounters::VmstatNrIonHeap => "VMSTAT_NR_ION_HEAP",
5897            VmstatCounters::VmstatNrGpuHeap => "VMSTAT_NR_GPU_HEAP",
5898            VmstatCounters::VmstatAllocstallDma => "VMSTAT_ALLOCSTALL_DMA",
5899            VmstatCounters::VmstatAllocstallMovable => "VMSTAT_ALLOCSTALL_MOVABLE",
5900            VmstatCounters::VmstatAllocstallNormal => "VMSTAT_ALLOCSTALL_NORMAL",
5901            VmstatCounters::VmstatCompactDaemonFreeScanned => "VMSTAT_COMPACT_DAEMON_FREE_SCANNED",
5902            VmstatCounters::VmstatCompactDaemonMigrateScanned => "VMSTAT_COMPACT_DAEMON_MIGRATE_SCANNED",
5903            VmstatCounters::VmstatNrFastrpc => "VMSTAT_NR_FASTRPC",
5904            VmstatCounters::VmstatNrIndirectlyReclaimable => "VMSTAT_NR_INDIRECTLY_RECLAIMABLE",
5905            VmstatCounters::VmstatNrIonHeapPool => "VMSTAT_NR_ION_HEAP_POOL",
5906            VmstatCounters::VmstatNrKernelMiscReclaimable => "VMSTAT_NR_KERNEL_MISC_RECLAIMABLE",
5907            VmstatCounters::VmstatNrShadowCallStackBytes => "VMSTAT_NR_SHADOW_CALL_STACK_BYTES",
5908            VmstatCounters::VmstatNrShmemHugepages => "VMSTAT_NR_SHMEM_HUGEPAGES",
5909            VmstatCounters::VmstatNrShmemPmdmapped => "VMSTAT_NR_SHMEM_PMDMAPPED",
5910            VmstatCounters::VmstatNrUnreclaimablePages => "VMSTAT_NR_UNRECLAIMABLE_PAGES",
5911            VmstatCounters::VmstatNrZoneActiveAnon => "VMSTAT_NR_ZONE_ACTIVE_ANON",
5912            VmstatCounters::VmstatNrZoneActiveFile => "VMSTAT_NR_ZONE_ACTIVE_FILE",
5913            VmstatCounters::VmstatNrZoneInactiveAnon => "VMSTAT_NR_ZONE_INACTIVE_ANON",
5914            VmstatCounters::VmstatNrZoneInactiveFile => "VMSTAT_NR_ZONE_INACTIVE_FILE",
5915            VmstatCounters::VmstatNrZoneUnevictable => "VMSTAT_NR_ZONE_UNEVICTABLE",
5916            VmstatCounters::VmstatNrZoneWritePending => "VMSTAT_NR_ZONE_WRITE_PENDING",
5917            VmstatCounters::VmstatOomKill => "VMSTAT_OOM_KILL",
5918            VmstatCounters::VmstatPglazyfree => "VMSTAT_PGLAZYFREE",
5919            VmstatCounters::VmstatPglazyfreed => "VMSTAT_PGLAZYFREED",
5920            VmstatCounters::VmstatPgrefill => "VMSTAT_PGREFILL",
5921            VmstatCounters::VmstatPgscanDirect => "VMSTAT_PGSCAN_DIRECT",
5922            VmstatCounters::VmstatPgscanKswapd => "VMSTAT_PGSCAN_KSWAPD",
5923            VmstatCounters::VmstatPgskipDma => "VMSTAT_PGSKIP_DMA",
5924            VmstatCounters::VmstatPgskipMovable => "VMSTAT_PGSKIP_MOVABLE",
5925            VmstatCounters::VmstatPgskipNormal => "VMSTAT_PGSKIP_NORMAL",
5926            VmstatCounters::VmstatPgstealDirect => "VMSTAT_PGSTEAL_DIRECT",
5927            VmstatCounters::VmstatPgstealKswapd => "VMSTAT_PGSTEAL_KSWAPD",
5928            VmstatCounters::VmstatSwapRa => "VMSTAT_SWAP_RA",
5929            VmstatCounters::VmstatSwapRaHit => "VMSTAT_SWAP_RA_HIT",
5930            VmstatCounters::VmstatWorkingsetRestore => "VMSTAT_WORKINGSET_RESTORE",
5931            VmstatCounters::VmstatAllocstallDevice => "VMSTAT_ALLOCSTALL_DEVICE",
5932            VmstatCounters::VmstatAllocstallDma32 => "VMSTAT_ALLOCSTALL_DMA32",
5933            VmstatCounters::VmstatBalloonDeflate => "VMSTAT_BALLOON_DEFLATE",
5934            VmstatCounters::VmstatBalloonInflate => "VMSTAT_BALLOON_INFLATE",
5935            VmstatCounters::VmstatBalloonMigrate => "VMSTAT_BALLOON_MIGRATE",
5936            VmstatCounters::VmstatCmaAllocFail => "VMSTAT_CMA_ALLOC_FAIL",
5937            VmstatCounters::VmstatCmaAllocSuccess => "VMSTAT_CMA_ALLOC_SUCCESS",
5938            VmstatCounters::VmstatNrFileHugepages => "VMSTAT_NR_FILE_HUGEPAGES",
5939            VmstatCounters::VmstatNrFilePmdmapped => "VMSTAT_NR_FILE_PMDMAPPED",
5940            VmstatCounters::VmstatNrFollPinAcquired => "VMSTAT_NR_FOLL_PIN_ACQUIRED",
5941            VmstatCounters::VmstatNrFollPinReleased => "VMSTAT_NR_FOLL_PIN_RELEASED",
5942            VmstatCounters::VmstatNrSecPageTablePages => "VMSTAT_NR_SEC_PAGE_TABLE_PAGES",
5943            VmstatCounters::VmstatNrShadowCallStack => "VMSTAT_NR_SHADOW_CALL_STACK",
5944            VmstatCounters::VmstatNrSwapcached => "VMSTAT_NR_SWAPCACHED",
5945            VmstatCounters::VmstatNrThrottledWritten => "VMSTAT_NR_THROTTLED_WRITTEN",
5946            VmstatCounters::VmstatPgallocDevice => "VMSTAT_PGALLOC_DEVICE",
5947            VmstatCounters::VmstatPgallocDma32 => "VMSTAT_PGALLOC_DMA32",
5948            VmstatCounters::VmstatPgdemoteDirect => "VMSTAT_PGDEMOTE_DIRECT",
5949            VmstatCounters::VmstatPgdemoteKswapd => "VMSTAT_PGDEMOTE_KSWAPD",
5950            VmstatCounters::VmstatPgreuse => "VMSTAT_PGREUSE",
5951            VmstatCounters::VmstatPgscanAnon => "VMSTAT_PGSCAN_ANON",
5952            VmstatCounters::VmstatPgscanFile => "VMSTAT_PGSCAN_FILE",
5953            VmstatCounters::VmstatPgskipDevice => "VMSTAT_PGSKIP_DEVICE",
5954            VmstatCounters::VmstatPgskipDma32 => "VMSTAT_PGSKIP_DMA32",
5955            VmstatCounters::VmstatPgstealAnon => "VMSTAT_PGSTEAL_ANON",
5956            VmstatCounters::VmstatPgstealFile => "VMSTAT_PGSTEAL_FILE",
5957            VmstatCounters::VmstatThpCollapseAlloc => "VMSTAT_THP_COLLAPSE_ALLOC",
5958            VmstatCounters::VmstatThpCollapseAllocFailed => "VMSTAT_THP_COLLAPSE_ALLOC_FAILED",
5959            VmstatCounters::VmstatThpDeferredSplitPage => "VMSTAT_THP_DEFERRED_SPLIT_PAGE",
5960            VmstatCounters::VmstatThpFaultAlloc => "VMSTAT_THP_FAULT_ALLOC",
5961            VmstatCounters::VmstatThpFaultFallback => "VMSTAT_THP_FAULT_FALLBACK",
5962            VmstatCounters::VmstatThpFaultFallbackCharge => "VMSTAT_THP_FAULT_FALLBACK_CHARGE",
5963            VmstatCounters::VmstatThpFileAlloc => "VMSTAT_THP_FILE_ALLOC",
5964            VmstatCounters::VmstatThpFileFallback => "VMSTAT_THP_FILE_FALLBACK",
5965            VmstatCounters::VmstatThpFileFallbackCharge => "VMSTAT_THP_FILE_FALLBACK_CHARGE",
5966            VmstatCounters::VmstatThpFileMapped => "VMSTAT_THP_FILE_MAPPED",
5967            VmstatCounters::VmstatThpMigrationFail => "VMSTAT_THP_MIGRATION_FAIL",
5968            VmstatCounters::VmstatThpMigrationSplit => "VMSTAT_THP_MIGRATION_SPLIT",
5969            VmstatCounters::VmstatThpMigrationSuccess => "VMSTAT_THP_MIGRATION_SUCCESS",
5970            VmstatCounters::VmstatThpScanExceedNonePte => "VMSTAT_THP_SCAN_EXCEED_NONE_PTE",
5971            VmstatCounters::VmstatThpScanExceedSharePte => "VMSTAT_THP_SCAN_EXCEED_SHARE_PTE",
5972            VmstatCounters::VmstatThpScanExceedSwapPte => "VMSTAT_THP_SCAN_EXCEED_SWAP_PTE",
5973            VmstatCounters::VmstatThpSplitPage => "VMSTAT_THP_SPLIT_PAGE",
5974            VmstatCounters::VmstatThpSplitPageFailed => "VMSTAT_THP_SPLIT_PAGE_FAILED",
5975            VmstatCounters::VmstatThpSplitPmd => "VMSTAT_THP_SPLIT_PMD",
5976            VmstatCounters::VmstatThpSwpout => "VMSTAT_THP_SWPOUT",
5977            VmstatCounters::VmstatThpSwpoutFallback => "VMSTAT_THP_SWPOUT_FALLBACK",
5978            VmstatCounters::VmstatThpZeroPageAlloc => "VMSTAT_THP_ZERO_PAGE_ALLOC",
5979            VmstatCounters::VmstatThpZeroPageAllocFailed => "VMSTAT_THP_ZERO_PAGE_ALLOC_FAILED",
5980            VmstatCounters::VmstatVmaLockAbort => "VMSTAT_VMA_LOCK_ABORT",
5981            VmstatCounters::VmstatVmaLockMiss => "VMSTAT_VMA_LOCK_MISS",
5982            VmstatCounters::VmstatVmaLockRetry => "VMSTAT_VMA_LOCK_RETRY",
5983            VmstatCounters::VmstatVmaLockSuccess => "VMSTAT_VMA_LOCK_SUCCESS",
5984            VmstatCounters::VmstatWorkingsetActivateAnon => "VMSTAT_WORKINGSET_ACTIVATE_ANON",
5985            VmstatCounters::VmstatWorkingsetActivateFile => "VMSTAT_WORKINGSET_ACTIVATE_FILE",
5986            VmstatCounters::VmstatWorkingsetNodes => "VMSTAT_WORKINGSET_NODES",
5987            VmstatCounters::VmstatWorkingsetRefaultAnon => "VMSTAT_WORKINGSET_REFAULT_ANON",
5988            VmstatCounters::VmstatWorkingsetRefaultFile => "VMSTAT_WORKINGSET_REFAULT_FILE",
5989            VmstatCounters::VmstatWorkingsetRestoreAnon => "VMSTAT_WORKINGSET_RESTORE_ANON",
5990            VmstatCounters::VmstatWorkingsetRestoreFile => "VMSTAT_WORKINGSET_RESTORE_FILE",
5991        }
5992    }
5993}
5994/// This file defines the configuration for the Linux /proc poller data source,
5995/// which injects counters in the trace.
5996/// Counters that are needed in the trace must be explicitly listed in the
5997/// *_counters fields. This is to avoid spamming the trace with all counters
5998/// at all times.
5999/// The sampling rate is configurable. All polling rates (*_period_ms) need
6000/// to be integer multiples of each other.
6001/// OK:     [10ms, 10ms, 10ms],  [10ms, 20ms, 10ms],  [10ms, 20ms, 60ms]
6002/// Not OK: [10ms, 10ms, 11ms],  [10ms, 15ms, 20ms]
6003#[derive(Clone, PartialEq, ::prost::Message)]
6004pub struct SysStatsConfig {
6005    /// Polls /proc/meminfo every X ms, if non-zero.
6006    /// This is required to be > 10ms to avoid excessive CPU usage.
6007    /// Cost: 0.3 ms \[read\] + 0.07 ms [parse + trace injection]
6008    #[prost(uint32, optional, tag="1")]
6009    pub meminfo_period_ms: ::core::option::Option<u32>,
6010    /// If empty all known counters are reported. Otherwise, only the counters
6011    /// specified below are reported.
6012    #[prost(enumeration="MeminfoCounters", repeated, packed="false", tag="2")]
6013    pub meminfo_counters: ::prost::alloc::vec::Vec<i32>,
6014    /// Polls /proc/vmstat every X ms, if non-zero.
6015    /// This is required to be > 10ms to avoid excessive CPU usage.
6016    /// Cost: 0.2 ms \[read\] + 0.3 ms [parse + trace injection]
6017    #[prost(uint32, optional, tag="3")]
6018    pub vmstat_period_ms: ::core::option::Option<u32>,
6019    #[prost(enumeration="VmstatCounters", repeated, packed="false", tag="4")]
6020    pub vmstat_counters: ::prost::alloc::vec::Vec<i32>,
6021    /// Pols /proc/stat every X ms, if non-zero.
6022    /// This is required to be > 10ms to avoid excessive CPU usage.
6023    /// Cost: 4.1 ms \[read\] + 1.9 ms [parse + trace injection]
6024    #[prost(uint32, optional, tag="5")]
6025    pub stat_period_ms: ::core::option::Option<u32>,
6026    #[prost(enumeration="sys_stats_config::StatCounters", repeated, packed="false", tag="6")]
6027    pub stat_counters: ::prost::alloc::vec::Vec<i32>,
6028    /// Polls /sys/devfreq/*/curfreq every X ms, if non-zero.
6029    /// This is required to be > 10ms to avoid excessive CPU usage.
6030    /// This option can be used to record unchanging values.
6031    /// Updates from frequency changes can come from ftrace/set_clock_rate.
6032    #[prost(uint32, optional, tag="7")]
6033    pub devfreq_period_ms: ::core::option::Option<u32>,
6034    /// Polls /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq every X ms.
6035    /// This is required to be > 10ms to avoid excessive CPU usage.
6036    #[prost(uint32, optional, tag="8")]
6037    pub cpufreq_period_ms: ::core::option::Option<u32>,
6038    /// Polls /proc/buddyinfo every X ms, if non-zero.
6039    /// This is required to be > 10ms to avoid excessive CPU usage.
6040    #[prost(uint32, optional, tag="9")]
6041    pub buddyinfo_period_ms: ::core::option::Option<u32>,
6042    /// Polls /proc/diskstats every X ms, if non-zero.
6043    /// This is required to be > 10ms to avoid excessive CPU usage.
6044    #[prost(uint32, optional, tag="10")]
6045    pub diskstat_period_ms: ::core::option::Option<u32>,
6046    /// Polls /proc/pressure/* every X ms, if non-zero.
6047    /// This is required to be > 10ms to avoid excessive CPU usage.
6048    #[prost(uint32, optional, tag="11")]
6049    pub psi_period_ms: ::core::option::Option<u32>,
6050    /// Polls /sys/class/thermal/* every X ms, if non-zero.
6051    /// This is required to be > 10ms to avoid excessive CPU usage.
6052    #[prost(uint32, optional, tag="12")]
6053    pub thermal_period_ms: ::core::option::Option<u32>,
6054    /// Polls /sys/devices/system/cpu/cpu*/cpuidle/state* every X ms, if non-zero.
6055    /// This is required to be > 10ms to avoid excessive CPU usage.
6056    #[prost(uint32, optional, tag="13")]
6057    pub cpuidle_period_ms: ::core::option::Option<u32>,
6058    /// Polls device-specific GPU frequency info every X ms, if non-zero.
6059    /// This is required to be > 10ms to avoid excessive CPU usage.
6060    #[prost(uint32, optional, tag="14")]
6061    pub gpufreq_period_ms: ::core::option::Option<u32>,
6062}
6063/// Nested message and enum types in `SysStatsConfig`.
6064pub mod sys_stats_config {
6065    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6066    #[repr(i32)]
6067    pub enum StatCounters {
6068        StatUnspecified = 0,
6069        StatCpuTimes = 1,
6070        StatIrqCounts = 2,
6071        StatSoftirqCounts = 3,
6072        StatForkCount = 4,
6073    }
6074    impl StatCounters {
6075        /// String value of the enum field names used in the ProtoBuf definition.
6076        ///
6077        /// The values are not transformed in any way and thus are considered stable
6078        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6079        pub fn as_str_name(&self) -> &'static str {
6080            match self {
6081                StatCounters::StatUnspecified => "STAT_UNSPECIFIED",
6082                StatCounters::StatCpuTimes => "STAT_CPU_TIMES",
6083                StatCounters::StatIrqCounts => "STAT_IRQ_COUNTS",
6084                StatCounters::StatSoftirqCounts => "STAT_SOFTIRQ_COUNTS",
6085                StatCounters::StatForkCount => "STAT_FORK_COUNT",
6086            }
6087        }
6088    }
6089}
6090/// The configuration for a fake producer used in tests.
6091#[derive(Clone, PartialEq, ::prost::Message)]
6092pub struct TestConfig {
6093    /// The number of messages the fake producer should send.
6094    #[prost(uint32, optional, tag="1")]
6095    pub message_count: ::core::option::Option<u32>,
6096    /// The maximum number of messages which should be sent each second.
6097    /// The actual obserced speed may be lower if the producer is unable to
6098    /// work fast enough.
6099    /// If this is zero or unset, the producer will send as fast as possible.
6100    #[prost(uint32, optional, tag="2")]
6101    pub max_messages_per_second: ::core::option::Option<u32>,
6102    /// The seed value for a simple multiplicative congruential pseudo-random
6103    /// number sequence.
6104    #[prost(uint32, optional, tag="3")]
6105    pub seed: ::core::option::Option<u32>,
6106    /// The size of each message in bytes. Should be greater than or equal 5 to
6107    /// account for the number of bytes needed to encode the random number and a
6108    /// null byte for the string.
6109    #[prost(uint32, optional, tag="4")]
6110    pub message_size: ::core::option::Option<u32>,
6111    /// Whether the producer should send a event batch when the data source is
6112    /// is initially registered.
6113    #[prost(bool, optional, tag="5")]
6114    pub send_batch_on_register: ::core::option::Option<bool>,
6115    #[prost(message, optional, tag="6")]
6116    pub dummy_fields: ::core::option::Option<test_config::DummyFields>,
6117}
6118/// Nested message and enum types in `TestConfig`.
6119pub mod test_config {
6120    #[derive(Clone, PartialEq, ::prost::Message)]
6121    pub struct DummyFields {
6122        #[prost(uint32, optional, tag="1")]
6123        pub field_uint32: ::core::option::Option<u32>,
6124        #[prost(int32, optional, tag="2")]
6125        pub field_int32: ::core::option::Option<i32>,
6126        #[prost(uint64, optional, tag="3")]
6127        pub field_uint64: ::core::option::Option<u64>,
6128        #[prost(int64, optional, tag="4")]
6129        pub field_int64: ::core::option::Option<i64>,
6130        #[prost(fixed64, optional, tag="5")]
6131        pub field_fixed64: ::core::option::Option<u64>,
6132        #[prost(sfixed64, optional, tag="6")]
6133        pub field_sfixed64: ::core::option::Option<i64>,
6134        #[prost(fixed32, optional, tag="7")]
6135        pub field_fixed32: ::core::option::Option<u32>,
6136        #[prost(sfixed32, optional, tag="8")]
6137        pub field_sfixed32: ::core::option::Option<i32>,
6138        #[prost(double, optional, tag="9")]
6139        pub field_double: ::core::option::Option<f64>,
6140        #[prost(float, optional, tag="10")]
6141        pub field_float: ::core::option::Option<f32>,
6142        #[prost(sint64, optional, tag="11")]
6143        pub field_sint64: ::core::option::Option<i64>,
6144        #[prost(sint32, optional, tag="12")]
6145        pub field_sint32: ::core::option::Option<i32>,
6146        #[prost(string, optional, tag="13")]
6147        pub field_string: ::core::option::Option<::prost::alloc::string::String>,
6148        #[prost(bytes="vec", optional, tag="14")]
6149        pub field_bytes: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
6150    }
6151}
6152/// The following fields define the set of enabled trace categories. Each list
6153/// item is a glob.
6154///
6155/// To determine if category is enabled, it is checked against the filters in
6156/// the following order:
6157///
6158///    1. Exact matches in enabled categories.
6159///    2. Exact matches in enabled tags.
6160///    3. Exact matches in disabled categories.
6161///    4. Exact matches in disabled tags.
6162///    5. Pattern matches in enabled categories.
6163///    6. Pattern matches in enabled tags.
6164///    7. Pattern matches in disabled categories.
6165///    8. Pattern matches in disabled tags.
6166///
6167/// If none of the steps produced a match:
6168///   - In the C++ SDK (`perfetto::Category`), categories are enabled by
6169///   default.
6170///   - In the C SDK (`PerfettoTeCategory`), categories are disabled by default.
6171///
6172/// Examples:
6173///
6174///   - To enable all non-slow/debug categories:
6175///
6176///        enabled_categories: "*"
6177///
6178///   - To enable specific categories:
6179///
6180///        disabled_categories: "*"
6181///        enabled_categories: "my_category"
6182///        enabled_categories: "my_category2"
6183///
6184///   - To enable only categories with a specific tag:
6185///
6186///        disabled_tags: "*"
6187///        enabled_tags: "my_tag"
6188///
6189#[derive(Clone, PartialEq, ::prost::Message)]
6190pub struct TrackEventConfig {
6191    /// Default: []
6192    #[prost(string, repeated, tag="1")]
6193    pub disabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6194    /// Default: []
6195    #[prost(string, repeated, tag="2")]
6196    pub enabled_categories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6197    /// Default: ["slow", "debug"]
6198    #[prost(string, repeated, tag="3")]
6199    pub disabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6200    /// Default: []
6201    #[prost(string, repeated, tag="4")]
6202    pub enabled_tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6203    /// Default: false (i.e. enabled by default)
6204    #[prost(bool, optional, tag="5")]
6205    pub disable_incremental_timestamps: ::core::option::Option<bool>,
6206    /// Allows to specify a custom unit different than the default (ns).
6207    /// Also affects thread timestamps if enable_thread_time_sampling = true.
6208    /// A multiplier of 1000 means that a timestamp = 3 should be interpreted as
6209    /// 3000 ns = 3 us.
6210    /// Default: 1 (if unset, it should be read as 1).
6211    #[prost(uint64, optional, tag="6")]
6212    pub timestamp_unit_multiplier: ::core::option::Option<u64>,
6213    /// Default: false (i.e. debug_annotations is NOT filtered out by default)
6214    /// When true, any debug annotations provided as arguments to the
6215    /// TRACE_EVENT macros are not written into the trace. Typed arguments will
6216    /// still be emitted even if set to true.
6217    #[prost(bool, optional, tag="7")]
6218    pub filter_debug_annotations: ::core::option::Option<bool>,
6219    /// Default: false (i.e. disabled)
6220    /// When true, the SDK samples and emits the current thread time counter value
6221    /// for each event on the current thread's track. This value represents the
6222    /// total CPU time consumed by that thread since its creation.
6223    /// Learn more: "CLOCK_THREAD_CPUTIME_ID" flag at
6224    /// <https://man7.org/linux/man-pages/man3/clock_gettime.3.html>
6225    #[prost(bool, optional, tag="8")]
6226    pub enable_thread_time_sampling: ::core::option::Option<bool>,
6227    /// When enable_thread_time_sampling is true, and this is specified, thread
6228    /// time is sampled only if the elapsed wall time >
6229    /// `thread_time_subsampling_ns`. Otherwise, thread time is considered nil.
6230    /// Effectively, this means thread time will have a leeway of
6231    /// `thread_time_subsampling_ns` and won't be emitted for shorter events.
6232    #[prost(uint64, optional, tag="10")]
6233    pub thread_time_subsampling_ns: ::core::option::Option<u64>,
6234    /// Default: false (i.e. dynamic event names are NOT filtered out by default)
6235    /// When true, event_names wrapped in perfetto::DynamicString will be filtered
6236    /// out.
6237    #[prost(bool, optional, tag="9")]
6238    pub filter_dynamic_event_names: ::core::option::Option<bool>,
6239}
6240/// This data-source does a one-off recording of system information when
6241/// the trace starts.
6242/// Currently this includes:
6243/// - Values of
6244/// /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies This
6245/// datasource has no configuration options at present.
6246#[derive(Clone, PartialEq, ::prost::Message)]
6247pub struct SystemInfoConfig {
6248}
6249#[derive(Clone, PartialEq, ::prost::Message)]
6250pub struct ChromiumHistogramSamplesConfig {
6251    /// List of histograms to record. If no histogram is specified, all histograms
6252    /// are recorded.
6253    #[prost(message, repeated, tag="1")]
6254    pub histograms: ::prost::alloc::vec::Vec<chromium_histogram_samples_config::HistogramSample>,
6255    /// Default: false (i.e. histogram names are NOT filtered out by default)
6256    /// When true, histogram_name will be filtered out.
6257    #[prost(bool, optional, tag="2")]
6258    pub filter_histogram_names: ::core::option::Option<bool>,
6259}
6260/// Nested message and enum types in `ChromiumHistogramSamplesConfig`.
6261pub mod chromium_histogram_samples_config {
6262    /// Records when a value within the specified bounds [min_value, max_value] is
6263    /// emitted into a Chrome histogram.
6264    #[derive(Clone, PartialEq, ::prost::Message)]
6265    pub struct HistogramSample {
6266        #[prost(string, optional, tag="1")]
6267        pub histogram_name: ::core::option::Option<::prost::alloc::string::String>,
6268        #[prost(int64, optional, tag="2")]
6269        pub min_value: ::core::option::Option<i64>,
6270        #[prost(int64, optional, tag="3")]
6271        pub max_value: ::core::option::Option<i64>,
6272    }
6273}
6274/// The configuration that is passed to each data source when starting tracing.
6275/// Next id: 138
6276#[derive(Clone, PartialEq, ::prost::Message)]
6277pub struct DataSourceConfig {
6278    /// Data source unique name, e.g., "linux.ftrace". This must match
6279    /// the name passed by the data source when it registers (see
6280    /// RegisterDataSource()).
6281    #[prost(string, optional, tag="1")]
6282    pub name: ::core::option::Option<::prost::alloc::string::String>,
6283    /// The index of the logging buffer where TracePacket(s) will be stored.
6284    /// This field doesn't make a major difference for the Producer(s). The final
6285    /// logging buffers, in fact, are completely owned by the Service. We just ask
6286    /// the Producer to copy this number into the chunk headers it emits, so that
6287    /// the Service can quickly identify the buffer where to move the chunks into
6288    /// without expensive lookups on its fastpath.
6289    #[prost(uint32, optional, tag="2")]
6290    pub target_buffer: ::core::option::Option<u32>,
6291    /// Set by the service to indicate the duration of the trace.
6292    /// DO NOT SET in consumer as this will be overridden by the service.
6293    #[prost(uint32, optional, tag="3")]
6294    pub trace_duration_ms: ::core::option::Option<u32>,
6295    /// If true, |trace_duration_ms| should count also time in suspend. This
6296    /// is propagated from TraceConfig.prefer_suspend_clock_for_duration.
6297    #[prost(bool, optional, tag="122")]
6298    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
6299    /// Set by the service to indicate how long it waits after StopDataSource.
6300    /// DO NOT SET in consumer as this will be overridden by the service.
6301    #[prost(uint32, optional, tag="7")]
6302    pub stop_timeout_ms: ::core::option::Option<u32>,
6303    /// Set by the service to indicate whether this tracing session has extra
6304    /// guardrails.
6305    /// DO NOT SET in consumer as this will be overridden by the service.
6306    #[prost(bool, optional, tag="6")]
6307    pub enable_extra_guardrails: ::core::option::Option<bool>,
6308    /// Set by the service to indicate which user initiated this trace.
6309    /// DO NOT SET in consumer as this will be overridden by the service.
6310    #[prost(enumeration="data_source_config::SessionInitiator", optional, tag="8")]
6311    pub session_initiator: ::core::option::Option<i32>,
6312    /// Set by the service to indicate which tracing session the data source
6313    /// belongs to. The intended use case for this is checking if two data sources,
6314    /// one of which produces metadata for the other one, belong to the same trace
6315    /// session and hence should be linked together.
6316    /// This field was introduced in Aug 2018 after Android P.
6317    /// DO NOT SET in consumer as this will be overridden by the service.
6318    #[prost(uint64, optional, tag="4")]
6319    pub tracing_session_id: ::core::option::Option<u64>,
6320    /// How to behave when the producer runs out of space in the shared memory
6321    /// buffer. This is only honored by some data sources (in the SDK, the data
6322    /// sources registered with a configurable buffer exhausted policy).
6323    #[prost(enumeration="data_source_config::BufferExhaustedPolicy", optional, tag="9")]
6324    pub buffer_exhausted_policy: ::core::option::Option<i32>,
6325    #[prost(message, optional, tag="10")]
6326    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
6327    // Keep the lower IDs (up to 99) for fields that are *not* specific to
6328    // data-sources and needs to be processed by the traced daemon.
6329
6330    // All data source config fields must be marked as \[lazy=true\]. This prevents
6331    // the proto-to-cpp generator from recursing into those when generating the
6332    // cpp classes and polluting tracing/core with data-source-specific classes.
6333    // Instead they are treated as opaque strings containing raw proto bytes.
6334
6335    /// Data source name: linux.ftrace
6336    #[prost(message, optional, tag="100")]
6337    pub ftrace_config: ::core::option::Option<FtraceConfig>,
6338    /// Data source name: linux.inode_file_map
6339    #[prost(message, optional, tag="102")]
6340    pub inode_file_config: ::core::option::Option<InodeFileConfig>,
6341    /// Data source name: linux.process_stats
6342    #[prost(message, optional, tag="103")]
6343    pub process_stats_config: ::core::option::Option<ProcessStatsConfig>,
6344    /// Data source name: linux.sys_stats
6345    #[prost(message, optional, tag="104")]
6346    pub sys_stats_config: ::core::option::Option<SysStatsConfig>,
6347    /// Data source name: android.heapprofd
6348    /// Introduced in Android 10.
6349    #[prost(message, optional, tag="105")]
6350    pub heapprofd_config: ::core::option::Option<HeapprofdConfig>,
6351    /// Data source name: android.java_hprof
6352    /// Introduced in Android 11.
6353    #[prost(message, optional, tag="110")]
6354    pub java_hprof_config: ::core::option::Option<JavaHprofConfig>,
6355    /// Data source name: android.power
6356    #[prost(message, optional, tag="106")]
6357    pub android_power_config: ::core::option::Option<AndroidPowerConfig>,
6358    /// Data source name: android.log
6359    #[prost(message, optional, tag="107")]
6360    pub android_log_config: ::core::option::Option<AndroidLogConfig>,
6361    /// Data source name: gpu.counters
6362    #[prost(message, optional, tag="108")]
6363    pub gpu_counter_config: ::core::option::Option<GpuCounterConfig>,
6364    /// Data source name: android.game_interventions
6365    #[prost(message, optional, tag="116")]
6366    pub android_game_intervention_list_config: ::core::option::Option<AndroidGameInterventionListConfig>,
6367    /// Data source name: android.packages_list
6368    #[prost(message, optional, tag="109")]
6369    pub packages_list_config: ::core::option::Option<PackagesListConfig>,
6370    /// Data source name: linux.perf
6371    #[prost(message, optional, tag="111")]
6372    pub perf_event_config: ::core::option::Option<PerfEventConfig>,
6373    /// Data source name: vulkan.memory_tracker
6374    #[prost(message, optional, tag="112")]
6375    pub vulkan_memory_config: ::core::option::Option<VulkanMemoryConfig>,
6376    /// Data source name: track_event
6377    #[prost(message, optional, tag="113")]
6378    pub track_event_config: ::core::option::Option<TrackEventConfig>,
6379    /// Data source name: android.polled_state
6380    #[prost(message, optional, tag="114")]
6381    pub android_polled_state_config: ::core::option::Option<AndroidPolledStateConfig>,
6382    /// Data source name: android.system_property
6383    #[prost(message, optional, tag="118")]
6384    pub android_system_property_config: ::core::option::Option<AndroidSystemPropertyConfig>,
6385    /// Data source name: android.statsd
6386    #[prost(message, optional, tag="117")]
6387    pub statsd_tracing_config: ::core::option::Option<StatsdTracingConfig>,
6388    /// Data source name: linux.system_info
6389    #[prost(message, optional, tag="119")]
6390    pub system_info_config: ::core::option::Option<SystemInfoConfig>,
6391    /// Data source name: linux.frozen_ftrace
6392    #[prost(message, optional, tag="136")]
6393    pub frozen_ftrace_config: ::core::option::Option<FrozenFtraceConfig>,
6394    /// Chrome is special as it doesn't use the perfetto IPC layer. We want to
6395    /// avoid proto serialization and de-serialization there because that would
6396    /// just add extra hops on top of the Mojo ser/des. Instead we auto-generate a
6397    /// C++ class for it so it can pass around plain C++ objets.
6398    #[prost(message, optional, tag="101")]
6399    pub chrome_config: ::core::option::Option<ChromeConfig>,
6400    /// Data source name: code.v8.dev
6401    #[prost(message, optional, tag="127")]
6402    pub v8_config: ::core::option::Option<V8Config>,
6403    /// If an interceptor is specified here, packets for this data source will be
6404    /// rerouted to the interceptor instead of the main trace buffer. This can be
6405    /// used, for example, to write trace data into ETW or for logging trace points
6406    /// to the console.
6407    ///
6408    /// Note that interceptors are only supported by data sources registered
6409    /// through the Perfetto SDK API. Data sources that don't use that API (e.g.,
6410    /// traced_probes) may not support interception.
6411    #[prost(message, optional, tag="115")]
6412    pub interceptor_config: ::core::option::Option<InterceptorConfig>,
6413    /// Data source name: android.network_packets.
6414    /// Introduced in Android 14 (U).
6415    #[prost(message, optional, tag="120")]
6416    pub network_packet_trace_config: ::core::option::Option<NetworkPacketTraceConfig>,
6417    /// Data source name: android.surfaceflinger.layers
6418    #[prost(message, optional, tag="121")]
6419    pub surfaceflinger_layers_config: ::core::option::Option<SurfaceFlingerLayersConfig>,
6420    /// Data source name: android.surfaceflinger.transactions
6421    #[prost(message, optional, tag="123")]
6422    pub surfaceflinger_transactions_config: ::core::option::Option<SurfaceFlingerTransactionsConfig>,
6423    /// Data source name: android.sdk_sysprop_guard
6424    /// Introduced in Android 14 (U) QPR1.
6425    #[prost(message, optional, tag="124")]
6426    pub android_sdk_sysprop_guard_config: ::core::option::Option<AndroidSdkSyspropGuardConfig>,
6427    /// Data source name: windows.etw
6428    #[prost(message, optional, tag="125")]
6429    pub etw_config: ::core::option::Option<EtwConfig>,
6430    /// Data source name: android.protolog
6431    #[prost(message, optional, tag="126")]
6432    pub protolog_config: ::core::option::Option<ProtoLogConfig>,
6433    /// Data source name: android.input.inputevent
6434    #[prost(message, optional, tag="128")]
6435    pub android_input_event_config: ::core::option::Option<AndroidInputEventConfig>,
6436    /// Data source name: android.pixel.modem
6437    #[prost(message, optional, tag="129")]
6438    pub pixel_modem_config: ::core::option::Option<PixelModemConfig>,
6439    /// Data source name: android.windowmanager
6440    #[prost(message, optional, tag="130")]
6441    pub windowmanager_config: ::core::option::Option<WindowManagerConfig>,
6442    /// Data source name: org.chromium.system_metrics
6443    #[prost(message, optional, tag="131")]
6444    pub chromium_system_metrics: ::core::option::Option<ChromiumSystemMetricsConfig>,
6445    /// Data source name: android.kernel_wakelocks
6446    #[prost(message, optional, tag="132")]
6447    pub kernel_wakelocks_config: ::core::option::Option<KernelWakelocksConfig>,
6448    /// Data source name: gpu.renderstages
6449    #[prost(message, optional, tag="133")]
6450    pub gpu_renderstages_config: ::core::option::Option<GpuRenderStagesConfig>,
6451    /// Data source name: org.chromium.histogram_samples
6452    #[prost(message, optional, tag="134")]
6453    pub chromium_histogram_samples: ::core::option::Option<ChromiumHistogramSamplesConfig>,
6454    /// Data source name: android.app_wakelocks
6455    #[prost(message, optional, tag="135")]
6456    pub app_wakelocks_config: ::core::option::Option<AppWakelocksConfig>,
6457    /// Data source name: android.cpu_per_uid
6458    #[prost(message, optional, tag="137")]
6459    pub cpu_per_uid_config: ::core::option::Option<CpuPerUidConfig>,
6460    /// This is a fallback mechanism to send a free-form text config to the
6461    /// producer. In theory this should never be needed. All the code that
6462    /// is part of the platform (i.e. traced service) is supposed to *not* truncate
6463    /// the trace config proto and propagate unknown fields. However, if anything
6464    /// in the pipeline (client or backend) ends up breaking this forward compat
6465    /// plan, this field will become the escape hatch to allow future data sources
6466    /// to get some meaningful configuration.
6467    #[prost(string, optional, tag="1000")]
6468    pub legacy_config: ::core::option::Option<::prost::alloc::string::String>,
6469    /// This field is only used for testing.
6470    #[prost(message, optional, tag="1001")]
6471    pub for_testing: ::core::option::Option<TestConfig>,
6472}
6473/// Nested message and enum types in `DataSourceConfig`.
6474pub mod data_source_config {
6475    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6476    #[repr(i32)]
6477    pub enum SessionInitiator {
6478        Unspecified = 0,
6479        /// This trace was initiated from a trusted system app has DUMP and
6480        /// USAGE_STATS permission. This system app is expected to not expose the
6481        /// trace to the user of the device.
6482        /// This is determined by checking the UID initiating the trace.
6483        TrustedSystem = 1,
6484    }
6485    impl SessionInitiator {
6486        /// String value of the enum field names used in the ProtoBuf definition.
6487        ///
6488        /// The values are not transformed in any way and thus are considered stable
6489        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6490        pub fn as_str_name(&self) -> &'static str {
6491            match self {
6492                SessionInitiator::Unspecified => "SESSION_INITIATOR_UNSPECIFIED",
6493                SessionInitiator::TrustedSystem => "SESSION_INITIATOR_TRUSTED_SYSTEM",
6494            }
6495        }
6496    }
6497    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6498    #[repr(i32)]
6499    pub enum BufferExhaustedPolicy {
6500        /// The data source will use its default buffer exhausted policy, specified
6501        /// by the code when the data source is registered.
6502        BufferExhaustedUnspecified = 0,
6503        /// The data source will drop packets when there's no space in the shared
6504        /// memory buffer.
6505        BufferExhaustedDrop = 1,
6506        /// The data source will wait when there's no space in the shared memory
6507        /// buffer. If there's still not space, after a few seconds, the whole
6508        /// producer process will be aborted.
6509        BufferExhaustedStallThenAbort = 2,
6510        /// The data source will wait when there's no space in the shared memory
6511        /// buffer.  If there's still not space, after a few seconds, the data source
6512        /// will drop packets.
6513        BufferExhaustedStallThenDrop = 3,
6514    }
6515    impl BufferExhaustedPolicy {
6516        /// String value of the enum field names used in the ProtoBuf definition.
6517        ///
6518        /// The values are not transformed in any way and thus are considered stable
6519        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6520        pub fn as_str_name(&self) -> &'static str {
6521            match self {
6522                BufferExhaustedPolicy::BufferExhaustedUnspecified => "BUFFER_EXHAUSTED_UNSPECIFIED",
6523                BufferExhaustedPolicy::BufferExhaustedDrop => "BUFFER_EXHAUSTED_DROP",
6524                BufferExhaustedPolicy::BufferExhaustedStallThenAbort => "BUFFER_EXHAUSTED_STALL_THEN_ABORT",
6525                BufferExhaustedPolicy::BufferExhaustedStallThenDrop => "BUFFER_EXHAUSTED_STALL_THEN_DROP",
6526            }
6527        }
6528    }
6529}
6530/// The overall config that is used when starting a new tracing session through
6531/// ProducerPort::StartTracing().
6532/// It contains the general config for the logging buffer(s) and the configs for
6533/// all the data source being enabled.
6534///
6535/// Next id: 43.
6536#[derive(Clone, PartialEq, ::prost::Message)]
6537pub struct TraceConfig {
6538    #[prost(message, repeated, tag="1")]
6539    pub buffers: ::prost::alloc::vec::Vec<trace_config::BufferConfig>,
6540    #[prost(message, repeated, tag="2")]
6541    pub data_sources: ::prost::alloc::vec::Vec<trace_config::DataSource>,
6542    #[prost(message, optional, tag="20")]
6543    pub builtin_data_sources: ::core::option::Option<trace_config::BuiltinDataSource>,
6544    /// If specified, the trace will be stopped |duration_ms| after starting.
6545    /// This does *not* count the time the system is suspended, so we will run
6546    /// for duration_ms of system activity, not wall time.
6547    ///
6548    /// However in case of traces with triggers, see
6549    /// TriggerConfig.trigger_timeout_ms instead.
6550    #[prost(uint32, optional, tag="3")]
6551    pub duration_ms: ::core::option::Option<u32>,
6552    /// If true, tries to use CLOCK_BOOTTIME for duration_ms rather than
6553    /// CLOCK_MONOTONIC (which doesn't count time in suspend). Supported only on
6554    /// Linux/Android, no-op on other platforms. This is used when dealing with
6555    /// long (e.g. 24h) traces, where suspend can inflate them to weeks of
6556    /// wall-time, making them more likely to hit device reboots (and hence loss).
6557    /// This option also changes consistently the semantic of
6558    /// TriggerConfig.stop_delay_ms.
6559    #[prost(bool, optional, tag="36")]
6560    pub prefer_suspend_clock_for_duration: ::core::option::Option<bool>,
6561    /// This is set when --dropbox is passed to the Perfetto command line client
6562    /// and enables guardrails that limit resource usage for traces requested
6563    /// by statsd.
6564    #[prost(bool, optional, tag="4")]
6565    pub enable_extra_guardrails: ::core::option::Option<bool>,
6566    /// Reject producers that are not running under the same UID as the tracing
6567    /// service.
6568    #[prost(enumeration="trace_config::LockdownModeOperation", optional, tag="5")]
6569    pub lockdown_mode: ::core::option::Option<i32>,
6570    #[prost(message, repeated, tag="6")]
6571    pub producers: ::prost::alloc::vec::Vec<trace_config::ProducerConfig>,
6572    /// Statsd-specific metadata.
6573    #[prost(message, optional, tag="7")]
6574    pub statsd_metadata: ::core::option::Option<trace_config::StatsdMetadata>,
6575    /// When true && |output_path| is empty, the EnableTracing() request must
6576    /// provide a file descriptor. The service will then periodically read packets
6577    /// out of the trace buffer and store it into the passed file.
6578    /// If |output_path| is not empty no fd should be passed, the service
6579    /// will create a new file and write into that (see comment below).
6580    #[prost(bool, optional, tag="8")]
6581    pub write_into_file: ::core::option::Option<bool>,
6582    /// This must point to a non-existing file. If the file exists the service
6583    /// will NOT overwrite and will fail instead as a security precaution.
6584    /// On Android, when this is used with the system traced, the path must be
6585    /// within /data/misc/perfetto-traces/ or the trace will fail.
6586    /// This option has been introduced in Android R. Before R write_into_file
6587    /// can be used only with the "pass a file descriptor over IPC" mode.
6588    #[prost(string, optional, tag="29")]
6589    pub output_path: ::core::option::Option<::prost::alloc::string::String>,
6590    /// Optional. If non-zero tunes the write period. A min value of 100ms is
6591    /// enforced (i.e. smaller values are ignored).
6592    #[prost(uint32, optional, tag="9")]
6593    pub file_write_period_ms: ::core::option::Option<u32>,
6594    /// Optional. When non zero the periodic write stops once at most X bytes
6595    /// have been written into the file. Tracing is disabled when this limit is
6596    /// reached, even if |duration_ms| has not been reached yet.
6597    #[prost(uint64, optional, tag="10")]
6598    pub max_file_size_bytes: ::core::option::Option<u64>,
6599    #[prost(message, optional, tag="11")]
6600    pub guardrail_overrides: ::core::option::Option<trace_config::GuardrailOverrides>,
6601    /// When true, data sources are not started until an explicit call to
6602    /// StartTracing() on the consumer port. This is to support early
6603    /// initialization and fast trace triggering. This can be used only when the
6604    /// Consumer explicitly triggers the StartTracing() method.
6605    /// This should not be used in a remote trace config via statsd, doing so will
6606    /// result in a hung trace session.
6607    #[prost(bool, optional, tag="12")]
6608    pub deferred_start: ::core::option::Option<bool>,
6609    /// When set, it periodically issues a Flush() to all data source, forcing them
6610    /// to commit their data into the tracing service. This can be used for
6611    /// quasi-real-time streaming mode and to guarantee some partial ordering of
6612    /// events in the trace in windows of X ms.
6613    #[prost(uint32, optional, tag="13")]
6614    pub flush_period_ms: ::core::option::Option<u32>,
6615    /// Wait for this long for producers to acknowledge flush requests.
6616    /// Default 5s.
6617    #[prost(uint32, optional, tag="14")]
6618    pub flush_timeout_ms: ::core::option::Option<u32>,
6619    /// Wait for this long for producers to acknowledge stop requests.
6620    /// Default 5s.
6621    #[prost(uint32, optional, tag="23")]
6622    pub data_source_stop_timeout_ms: ::core::option::Option<u32>,
6623    /// Android-only. If set, sends an intent to the Traceur system app when the
6624    /// trace ends to notify it about the trace readiness.
6625    #[prost(bool, optional, tag="16")]
6626    pub notify_traceur: ::core::option::Option<bool>,
6627    /// This field was introduced in Android S.
6628    /// Android-only. If set to a value > 0, marks the trace session as a candidate
6629    /// for being attached to a bugreport. This field effectively acts as a z-index
6630    /// for bugreports. When Android's dumpstate runs perfetto
6631    /// --save-for-bugreport, traced will pick the tracing session with the highest
6632    /// score (score <= 0 is ignored) and:
6633    /// On Android S, T:  will steal its contents, save the trace into
6634    ///      a known path and stop prematurely.
6635    /// On Android U+: will create a read-only snapshot and save that into a known
6636    ///      path, without stoppin the original tracing session.
6637    /// When this field is set the tracing session becomes eligible to be cloned
6638    /// by other UIDs.
6639    #[prost(int32, optional, tag="30")]
6640    pub bugreport_score: ::core::option::Option<i32>,
6641    /// When set, defines name of the file that will be saved under
6642    /// /data/misc/perfetto-traces/bugreport/ when using --save-all-for-bugreport.
6643    /// If omitted, traces will be named systrace.pftrace, systrace_1.pftrace, etc,
6644    /// starting from the highest `bugreport_score`.
6645    /// Introduced in v42 / Android V.
6646    #[prost(string, optional, tag="38")]
6647    pub bugreport_filename: ::core::option::Option<::prost::alloc::string::String>,
6648    #[prost(message, optional, tag="17")]
6649    pub trigger_config: ::core::option::Option<trace_config::TriggerConfig>,
6650    /// When this is non-empty the perfetto command line tool will ignore the rest
6651    /// of this TraceConfig and instead connect to the perfetto service as a
6652    /// producer and send these triggers, potentially stopping or starting traces
6653    /// that were previous configured to use a TriggerConfig.
6654    #[prost(string, repeated, tag="18")]
6655    pub activate_triggers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6656    #[prost(message, optional, tag="21")]
6657    pub incremental_state_config: ::core::option::Option<trace_config::IncrementalStateConfig>,
6658    /// No longer needed as we unconditionally allow tracing on user builds.
6659    #[deprecated]
6660    #[prost(bool, optional, tag="19")]
6661    pub allow_user_build_tracing: ::core::option::Option<bool>,
6662    /// If set the tracing service will ensure there is at most one tracing session
6663    /// with this key.
6664    #[prost(string, optional, tag="22")]
6665    pub unique_session_name: ::core::option::Option<::prost::alloc::string::String>,
6666    #[prost(enumeration="trace_config::CompressionType", optional, tag="24")]
6667    pub compression_type: ::core::option::Option<i32>,
6668    #[prost(message, optional, tag="25")]
6669    pub incident_report_config: ::core::option::Option<trace_config::IncidentReportConfig>,
6670    /// Android-only. Not for general use. If specified, sets the logging to statsd
6671    /// of guardrails and checkpoints in the tracing service. perfetto_cmd sets
6672    /// this to enabled (if not explicitly set in the config) when specifying
6673    /// --upload.
6674    #[prost(enumeration="trace_config::StatsdLogging", optional, tag="31")]
6675    pub statsd_logging: ::core::option::Option<i32>,
6676    /// An identifier clients can use to tie this trace to other logging.
6677    /// DEPRECATED as per v32. See TracePacket.trace_uuid for the authoritative
6678    /// Trace UUID. If this field is set, the tracing service will respect the
6679    /// requested UUID (i.e. TracePacket.trace_uuid == this field) but only if
6680    /// gap-less snapshotting is not used.
6681    #[deprecated]
6682    #[prost(int64, optional, tag="27")]
6683    pub trace_uuid_msb: ::core::option::Option<i64>,
6684    #[deprecated]
6685    #[prost(int64, optional, tag="28")]
6686    pub trace_uuid_lsb: ::core::option::Option<i64>,
6687    #[prost(message, optional, tag="33")]
6688    pub trace_filter: ::core::option::Option<trace_config::TraceFilter>,
6689    #[prost(message, optional, tag="34")]
6690    pub android_report_config: ::core::option::Option<trace_config::AndroidReportConfig>,
6691    #[prost(message, optional, tag="35")]
6692    pub cmd_trace_start_delay: ::core::option::Option<trace_config::CmdTraceStartDelay>,
6693    #[prost(message, repeated, tag="39")]
6694    pub session_semaphores: ::prost::alloc::vec::Vec<trace_config::SessionSemaphore>,
6695    /// Priority boost to be applied to the traced process, when the session is
6696    /// running.
6697    #[prost(message, optional, tag="40")]
6698    pub priority_boost: ::core::option::Option<PriorityBoostConfig>,
6699    /// When set to a value > 0, this tracing session will be started in
6700    /// "exclusive mode". This has the following semantics:
6701    /// - It can only be set by shell or root users.
6702    /// - A new exclusive session will only be started if its priority is strictly
6703    ///    higher than any other active tracing session.
6704    /// - If a new exclusive session is started, all other existing tracing
6705    ///    sessions (exclusive or not) are aborted.
6706    /// - While an exclusive session is active, any new non-exclusive session (or
6707    ///    any exclusive session with a lower or equal priority) will be rejected.
6708    ///
6709    /// Introduced in: perfetto v52.
6710    /// Supported on: Android 25Q3+.
6711    #[prost(uint32, optional, tag="41")]
6712    pub exclusive_prio: ::core::option::Option<u32>,
6713    /// If true && |write_into_file|, do NOT flush buffers when periodically write
6714    /// them into file.
6715    ///
6716    /// By default, if |write_into_file| is set, each time we periodically write
6717    /// buffers into file, we first issue a Flush() to all data source, forcing
6718    /// them to commit their data into the tracing service. This helps us to always
6719    /// write latest data to the file.
6720    ///
6721    /// Before this flag was introduced, the default behavior was NOT to flush
6722    /// buffers when periodically write them into file. If true this flag
6723    /// returns the old default behavior.
6724    ///
6725    /// Introduced in: perfetto v53.
6726    /// Supported on: Android 25Q4+.
6727    #[prost(bool, optional, tag="42")]
6728    pub no_flush_before_write_into_file: ::core::option::Option<bool>,
6729}
6730/// Nested message and enum types in `TraceConfig`.
6731pub mod trace_config {
6732    #[derive(Clone, PartialEq, ::prost::Message)]
6733    pub struct BufferConfig {
6734        #[prost(uint32, optional, tag="1")]
6735        pub size_kb: ::core::option::Option<u32>,
6736        #[prost(enumeration="buffer_config::FillPolicy", optional, tag="4")]
6737        pub fill_policy: ::core::option::Option<i32>,
6738        /// When true the buffer is moved (rather than copied) onto the cloned
6739        /// session, and an empty buffer of the same size is allocated in the source
6740        /// tracing session. This feature will likely get deprecated in the future.
6741        /// It been introduced mainly to support the surfaceflinger snapshot dump
6742        /// for bugreports, where SF can dumps O(400MB) into the bugreport trace. In
6743        /// that case we don't want to retain another in-memory copy of the buffer.
6744        #[prost(bool, optional, tag="5")]
6745        pub transfer_on_clone: ::core::option::Option<bool>,
6746        /// Used in conjunction with transfer_on_clone. When true the buffer is
6747        /// cleared before issuing the Flush(reason=kTraceClone). This is to ensure
6748        /// that if the data source took too long to write the data in a previous
6749        /// clone-related flush, we don't end up with a mixture of leftovers from
6750        /// the previous write and new data.
6751        #[prost(bool, optional, tag="6")]
6752        pub clear_before_clone: ::core::option::Option<bool>,
6753    }
6754    /// Nested message and enum types in `BufferConfig`.
6755    pub mod buffer_config {
6756        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6757        #[repr(i32)]
6758        pub enum FillPolicy {
6759            Unspecified = 0,
6760            /// Default behavior. The buffer operates as a conventional ring buffer.
6761            /// If the writer is faster than the reader (or if the reader reads only
6762            /// after tracing is stopped) newly written packets will overwrite old
6763            /// packets.
6764            RingBuffer = 1,
6765            /// Behaves like RING_BUFFER as long as there is space in the buffer or
6766            /// the reader catches up with the writer. As soon as the writer hits
6767            /// an unread chunk, it stops accepting new data in the buffer.
6768            Discard = 2,
6769        }
6770        impl FillPolicy {
6771            /// String value of the enum field names used in the ProtoBuf definition.
6772            ///
6773            /// The values are not transformed in any way and thus are considered stable
6774            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
6775            pub fn as_str_name(&self) -> &'static str {
6776                match self {
6777                    FillPolicy::Unspecified => "UNSPECIFIED",
6778                    FillPolicy::RingBuffer => "RING_BUFFER",
6779                    FillPolicy::Discard => "DISCARD",
6780                }
6781            }
6782        }
6783    }
6784    #[derive(Clone, PartialEq, ::prost::Message)]
6785    pub struct DataSource {
6786        /// Filters and data-source specific config. It contains also the unique name
6787        /// of the data source, the one passed in the  DataSourceDescriptor when they
6788        /// register on the service.
6789        #[prost(message, optional, tag="1")]
6790        pub config: ::core::option::Option<super::DataSourceConfig>,
6791        /// Optional. If multiple producers (~processes) expose the same data source
6792        /// and either |producer_name_filter| or |producer_name_regex_filter| is set,
6793        /// the data source is enabled only for producers whose names match any of
6794        /// the filters.
6795        /// |producer_name_filter| has to be an exact match, while
6796        /// |producer_name_regex_filter| is a regular expression.
6797        /// This allows to enable a data source only for specific processes.
6798        /// The "repeated" fields have OR semantics: specifying a filter ["foo",
6799        /// "bar"] will enable data sources on both "foo" and "bar" (if they exist).
6800        #[prost(string, repeated, tag="2")]
6801        pub producer_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6802        #[prost(string, repeated, tag="3")]
6803        pub producer_name_regex_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6804        /// Filter by machine names. The name of a machine is determined by the
6805        /// PERFETTO_MACHINE_NAME env variable. In Android systems, if the env
6806        /// variable is not set then the
6807        /// persist.traced_relay.machine_name system property is used. If the
6808        /// sysprop isn't set or not in an Android system, then the machine name by
6809        /// default is set to the utsname sysname (e.g. Linux), which can be obtained
6810        /// via the 'uname -s' command. As a convenience, one can use "host" to refer
6811        /// to the host machine, which is the machine running traced.
6812        #[prost(string, repeated, tag="4")]
6813        pub machine_name_filter: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6814    }
6815    /// Config for disabling builtin data sources in the tracing service.
6816    #[derive(Clone, PartialEq, ::prost::Message)]
6817    pub struct BuiltinDataSource {
6818        /// Disable emitting clock timestamps into the trace.
6819        #[prost(bool, optional, tag="1")]
6820        pub disable_clock_snapshotting: ::core::option::Option<bool>,
6821        /// Disable echoing the original trace config in the trace.
6822        #[prost(bool, optional, tag="2")]
6823        pub disable_trace_config: ::core::option::Option<bool>,
6824        /// Disable emitting system info (build fingerprint, cpuinfo, etc).
6825        #[prost(bool, optional, tag="3")]
6826        pub disable_system_info: ::core::option::Option<bool>,
6827        /// Disable emitting events for data-source state changes (e.g. the marker
6828        /// for all data sources having ACKed the start of the trace).
6829        #[prost(bool, optional, tag="4")]
6830        pub disable_service_events: ::core::option::Option<bool>,
6831        /// The authoritative clock domain for the trace. Defaults to BOOTTIME. See
6832        /// also ClockSnapshot's primary_trace_clock. The configured value is written
6833        /// into the trace as part of the ClockSnapshots emitted by the service.
6834        /// Trace processor will attempt to translate packet/event timestamps from
6835        /// various data sources (and their chosen clock domains) to this domain
6836        /// during import. Added in Android R.
6837        #[prost(enumeration="super::BuiltinClock", optional, tag="5")]
6838        pub primary_trace_clock: ::core::option::Option<i32>,
6839        /// Time interval in between snapshotting of sync markers, clock snapshots,
6840        /// stats, and other periodic service-emitted events. Note that the service
6841        /// only keeps track of the first and the most recent snapshot until
6842        /// ReadBuffers() is called.
6843        #[prost(uint32, optional, tag="6")]
6844        pub snapshot_interval_ms: ::core::option::Option<u32>,
6845        /// Hints to the service that a suspend-aware (i.e. counting time in suspend)
6846        /// clock should be used for periodic snapshots of service-emitted events.
6847        /// This means, if a snapshot *should* have happened during suspend, it will
6848        /// happen immediately after the device resumes.
6849        ///
6850        /// Choosing a clock like this is done on best-effort basis; not all
6851        /// platforms (e.g. Windows) expose a clock which can be used for periodic
6852        /// tasks counting suspend. If such a clock is not available, the service
6853        /// falls back to the best-available alternative.
6854        ///
6855        /// Introduced in Android S.
6856        /// TODO(lalitm): deprecate this in T and make this the default if nothing
6857        /// crashes in S.
6858        #[prost(bool, optional, tag="7")]
6859        pub prefer_suspend_clock_for_snapshot: ::core::option::Option<bool>,
6860        /// Disables the reporting of per-trace-writer histograms in TraceStats.
6861        #[prost(bool, optional, tag="8")]
6862        pub disable_chunk_usage_histograms: ::core::option::Option<bool>,
6863    }
6864    #[derive(Clone, PartialEq, ::prost::Message)]
6865    pub struct ProducerConfig {
6866        /// Identifies the producer for which this config is for.
6867        #[prost(string, optional, tag="1")]
6868        pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
6869        /// Specifies the preferred size of the shared memory buffer. If the size is
6870        /// larger than the max size, the max will be used. If it is smaller than
6871        /// the page size or doesn't fit pages evenly into it, it will fall back to
6872        /// the size specified by the producer or finally the default shared memory
6873        /// size.
6874        #[prost(uint32, optional, tag="2")]
6875        pub shm_size_kb: ::core::option::Option<u32>,
6876        /// Specifies the preferred size of each page in the shared memory buffer.
6877        /// Must be an integer multiple of 4K.
6878        #[prost(uint32, optional, tag="3")]
6879        pub page_size_kb: ::core::option::Option<u32>,
6880    }
6881    /// Contains statsd-specific metadata about an alert associated with the trace.
6882    #[derive(Clone, PartialEq, ::prost::Message)]
6883    pub struct StatsdMetadata {
6884        /// The identifier of the alert which triggered this trace.
6885        #[prost(int64, optional, tag="1")]
6886        pub triggering_alert_id: ::core::option::Option<i64>,
6887        /// The uid which registered the triggering configuration with statsd.
6888        #[prost(int32, optional, tag="2")]
6889        pub triggering_config_uid: ::core::option::Option<i32>,
6890        /// The identifier of the config which triggered the alert.
6891        #[prost(int64, optional, tag="3")]
6892        pub triggering_config_id: ::core::option::Option<i64>,
6893        /// The identifier of the subscription which triggered this trace.
6894        #[prost(int64, optional, tag="4")]
6895        pub triggering_subscription_id: ::core::option::Option<i64>,
6896    }
6897    /// Contains flags which override the default values of the guardrails inside
6898    /// Perfetto.
6899    #[derive(Clone, PartialEq, ::prost::Message)]
6900    pub struct GuardrailOverrides {
6901        /// Override the default limit (in bytes) for uploading data to server within
6902        /// a 24 hour period.
6903        /// On R-, this override only affected userdebug builds. Since S, it also
6904        /// affects user builds.
6905        /// In 24Q3+ (V+), this override is a noop because upload guardrail logic
6906        /// was removed from Perfetto.
6907        #[deprecated]
6908        #[prost(uint64, optional, tag="1")]
6909        pub max_upload_per_day_bytes: ::core::option::Option<u64>,
6910        /// Overrides the guardrail for maximum trace buffer size.
6911        /// Available on U+
6912        #[prost(uint32, optional, tag="2")]
6913        pub max_tracing_buffer_size_kb: ::core::option::Option<u32>,
6914    }
6915    /// Triggers allow producers to start or stop the tracing session when an event
6916    /// occurs.
6917    ///
6918    /// For example if we are tracing probabilistically, most traces will be
6919    /// uninteresting. Triggers allow us to keep only the interesting ones such as
6920    /// those traces during which the device temperature reached a certain
6921    /// threshold. In this case the producer can activate a trigger to keep
6922    /// (STOP_TRACING) the trace, otherwise it can also begin a trace
6923    /// (START_TRACING) because it knows something is about to happen.
6924    #[derive(Clone, PartialEq, ::prost::Message)]
6925    pub struct TriggerConfig {
6926        #[prost(enumeration="trigger_config::TriggerMode", optional, tag="1")]
6927        pub trigger_mode: ::core::option::Option<i32>,
6928        /// This flag is really a workaround for b/274931668. This is needed only
6929        /// when deploying configs to different versions of the tracing service.
6930        /// When this is set to true this has the same effect of setting trigger_mode
6931        /// to CLONE_SNAPSHOT on newer versions of the service. This boolean has been
6932        /// introduced to allow to have configs that use CLONE_SNAPSHOT on newer
6933        /// versions of Android and fall back to STOP_TRACING on older versions where
6934        /// CLONE_SNAPSHOT did not exist.
6935        /// When using this flag, trigger_mode must be set to STOP_TRACING.
6936        #[prost(bool, optional, tag="5")]
6937        pub use_clone_snapshot_if_available: ::core::option::Option<bool>,
6938        /// A list of triggers which are related to this configuration. If ANY
6939        /// trigger is seen then an action will be performed based on |trigger_mode|.
6940        #[prost(message, repeated, tag="2")]
6941        pub triggers: ::prost::alloc::vec::Vec<trigger_config::Trigger>,
6942        /// Required and must be positive if a TriggerConfig is specified. This is
6943        /// how long this TraceConfig should wait for a trigger to arrive. After this
6944        /// period of time if no trigger is seen the TracingSession will be cleaned
6945        /// up.
6946        #[prost(uint32, optional, tag="3")]
6947        pub trigger_timeout_ms: ::core::option::Option<u32>,
6948    }
6949    /// Nested message and enum types in `TriggerConfig`.
6950    pub mod trigger_config {
6951        #[derive(Clone, PartialEq, ::prost::Message)]
6952        pub struct Trigger {
6953            /// The producer must specify this name to activate the trigger.
6954            #[prost(string, optional, tag="1")]
6955            pub name: ::core::option::Option<::prost::alloc::string::String>,
6956            /// An std::regex that will match the producer that can activate this
6957            /// trigger. This is optional. If unset any producers can activate this
6958            /// trigger.
6959            #[prost(string, optional, tag="2")]
6960            pub producer_name_regex: ::core::option::Option<::prost::alloc::string::String>,
6961            /// After a trigger is received either in START_TRACING or STOP_TRACING
6962            /// mode then the trace will end |stop_delay_ms| after triggering.
6963            /// In CLONE_SNAPSHOT mode, this is the delay between the trigger and the
6964            /// snapshot.
6965            /// If |prefer_suspend_clock_for_duration| is set, the duration will be
6966            /// based on wall-clock, counting also time in suspend.
6967            #[prost(uint32, optional, tag="3")]
6968            pub stop_delay_ms: ::core::option::Option<u32>,
6969            /// Limits the number of traces this trigger can start/stop in a rolling
6970            /// 24 hour window. If this field is unset or zero, no limit is applied and
6971            /// activiation of this trigger *always* starts/stops the trace.
6972            #[prost(uint32, optional, tag="4")]
6973            pub max_per_24_h: ::core::option::Option<u32>,
6974            /// A value between 0 and 1 which encodes the probability of skipping a
6975            /// trigger with this name. This is useful for reducing the probability
6976            /// of high-frequency triggers from dominating trace finaization. If this
6977            /// field is unset or zero, the trigger will *never* be skipped. If this
6978            /// field is greater than or equal to 1, this trigger will *always* be
6979            /// skipped i.e. it will be as if this trigger was never included in the
6980            /// first place.
6981            /// This probability check is applied *before* any other limits. For
6982            /// example, if |max_per_24_h| is also set, first we will check if the
6983            /// probability bar is met and only then will we check the |max_per_24_h|
6984            /// limit.
6985            #[prost(double, optional, tag="5")]
6986            pub skip_probability: ::core::option::Option<f64>,
6987        }
6988        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
6989        #[repr(i32)]
6990        pub enum TriggerMode {
6991            Unspecified = 0,
6992            /// When this mode is chosen, data sources are not started until one of the
6993            /// |triggers| are received. This supports early initialization and fast
6994            /// starting of the tracing system. On triggering, the session will then
6995            /// record for |stop_delay_ms|. However if no trigger is seen
6996            /// after |trigger_timeout_ms| the session will be stopped and no data will
6997            /// be returned.
6998            StartTracing = 1,
6999            /// When this mode is chosen, the session will be started via the normal
7000            /// EnableTracing() & StartTracing(). If no trigger is ever seen
7001            /// the session will be stopped after |trigger_timeout_ms| and no data will
7002            /// be returned. However if triggered the trace will stop after
7003            /// |stop_delay_ms| and any data in the buffer will be returned to the
7004            /// consumer.
7005            StopTracing = 2,
7006            /// When this mode is chosen, this causes a snapshot of the current tracing
7007            /// session to be created after |stop_delay_ms| while the current tracing
7008            /// session continues undisturbed (% an extra flush). This mode can be
7009            /// used only when the tracing session is handled by the "perfetto" cmdline
7010            /// client (which is true in 90% of cases). Part of the business logic
7011            /// necessary for this behavior, and ensuing file handling, lives in
7012            /// perfetto_cmd.cc . On other consumers, this causes only a notification
7013            /// of the trigger through a CloneTriggerHit ObservableEvent. The custom
7014            /// consumer is supposed to call CloneSession() itself after the event.
7015            /// Use use_clone_snapshot_if_available=true when targeting older versions
7016            /// of perfetto.
7017            CloneSnapshot = 4,
7018        }
7019        impl TriggerMode {
7020            /// String value of the enum field names used in the ProtoBuf definition.
7021            ///
7022            /// The values are not transformed in any way and thus are considered stable
7023            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7024            pub fn as_str_name(&self) -> &'static str {
7025                match self {
7026                    TriggerMode::Unspecified => "UNSPECIFIED",
7027                    TriggerMode::StartTracing => "START_TRACING",
7028                    TriggerMode::StopTracing => "STOP_TRACING",
7029                    TriggerMode::CloneSnapshot => "CLONE_SNAPSHOT",
7030                }
7031            }
7032        }
7033    }
7034    /// Configuration for trace contents that reference earlier trace data. For
7035    /// example, a data source might intern strings, and emit packets containing
7036    /// {interned id : string} pairs. Future packets from that data source can then
7037    /// use the interned ids instead of duplicating the raw string contents. The
7038    /// trace parser will then need to use that interning table to fully interpret
7039    /// the rest of the trace.
7040    #[derive(Clone, PartialEq, ::prost::Message)]
7041    pub struct IncrementalStateConfig {
7042        /// If nonzero, notify eligible data sources to clear their incremental state
7043        /// periodically, with the given period. The notification is sent only to
7044        /// data sources that have |handles_incremental_state_clear| set in their
7045        /// DataSourceDescriptor. The notification requests that the data source
7046        /// stops referring to past trace contents. This is particularly useful when
7047        /// tracing in ring buffer mode, where it is not exceptional to overwrite old
7048        /// trace data.
7049        ///
7050        /// Warning: this time-based global clearing is likely to be removed in the
7051        /// future, to be replaced with a smarter way of sending the notifications
7052        /// only when necessary.
7053        #[prost(uint32, optional, tag="1")]
7054        pub clear_period_ms: ::core::option::Option<u32>,
7055    }
7056    /// Android-only. Not for general use. If set, saves the trace into an
7057    /// incident. This field is read by perfetto_cmd, rather than the tracing
7058    /// service. This field must be set when passing the --upload flag to
7059    /// perfetto_cmd.
7060    ///
7061    /// In this message, either:
7062    ///   * all of |destination_package|, |destination_class| and |privacy_level|
7063    ///     must be set.
7064    ///   * |skip_incidentd| must be explicitly set to true.
7065    #[derive(Clone, PartialEq, ::prost::Message)]
7066    pub struct IncidentReportConfig {
7067        #[prost(string, optional, tag="1")]
7068        pub destination_package: ::core::option::Option<::prost::alloc::string::String>,
7069        #[prost(string, optional, tag="2")]
7070        pub destination_class: ::core::option::Option<::prost::alloc::string::String>,
7071        /// Level of filtering in the requested incident. See |Destination| in
7072        /// frameworks/base/core/proto/android/privacy.proto.
7073        #[prost(int32, optional, tag="3")]
7074        pub privacy_level: ::core::option::Option<i32>,
7075        /// If true, then skips saving the trace to incidentd.
7076        ///
7077        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7078        /// or when we explicitly don't want traces to go to incidentd even when they
7079        /// usually would (e.g. configs deployed using statsd but only used for
7080        /// inclusion in bugreports using |bugreport_score|).
7081        ///
7082        /// The motivation for having this flag, instead of just not setting
7083        /// |incident_report_config|, is prevent accidents where
7084        /// |incident_report_config| is omitted by mistake.
7085        #[prost(bool, optional, tag="5")]
7086        pub skip_incidentd: ::core::option::Option<bool>,
7087        /// If true, do not write the trace into dropbox (i.e. incident only).
7088        /// Otherwise, write to both dropbox and incident.
7089        /// TODO(lalitm): remove this field as we no longer use Dropbox.
7090        #[deprecated]
7091        #[prost(bool, optional, tag="4")]
7092        pub skip_dropbox: ::core::option::Option<bool>,
7093    }
7094    /// When set applies a post-filter to the trace contents using the filter
7095    /// provided. The filter is applied at ReadBuffers() time and works both in the
7096    /// case of IPC readback and write_into_file. This filter can be generated
7097    /// using `tools/proto_filter -s schema.proto -F filter_out.bytes` or
7098    /// `-T filter_out.escaped_string` (for .pbtx). See go/trace-filtering for
7099    /// design.
7100    ///
7101    /// Introduced in Android S, but it was broken (b/195065199). Reintroduced in
7102    /// Android T with a different field number. Updated in Android U with a new
7103    /// bytecode version which supports string filtering.
7104    ///
7105    /// =========================
7106    /// Filter bytecode.
7107    /// =========================
7108    #[derive(Clone, PartialEq, ::prost::Message)]
7109    pub struct TraceFilter {
7110        /// The bytecode as implemented in Android T.
7111        #[prost(bytes="vec", optional, tag="1")]
7112        pub bytecode: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7113        /// The bytecode as implemented in Android U. Adds support for string
7114        /// filtering.
7115        #[prost(bytes="vec", optional, tag="2")]
7116        pub bytecode_v2: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7117        #[prost(message, optional, tag="3")]
7118        pub string_filter_chain: ::core::option::Option<trace_filter::StringFilterChain>,
7119    }
7120    /// Nested message and enum types in `TraceFilter`.
7121    pub mod trace_filter {
7122        /// A rule specifies how strings should be filtered.
7123        #[derive(Clone, PartialEq, ::prost::Message)]
7124        pub struct StringFilterRule {
7125            /// The policy (i.e. algorithm) dictating how strings matching this rule
7126            /// should be handled.
7127            #[prost(enumeration="StringFilterPolicy", optional, tag="1")]
7128            pub policy: ::core::option::Option<i32>,
7129            /// The regex pattern used to match against each string.
7130            #[prost(string, optional, tag="2")]
7131            pub regex_pattern: ::core::option::Option<::prost::alloc::string::String>,
7132            /// The string which should appear after the tgid in atrace tracepoint
7133            /// strings.
7134            #[prost(string, optional, tag="3")]
7135            pub atrace_payload_starts_with: ::core::option::Option<::prost::alloc::string::String>,
7136        }
7137        /// A chain is a list of rules which string will be sequentially checked
7138        /// against.
7139        #[derive(Clone, PartialEq, ::prost::Message)]
7140        pub struct StringFilterChain {
7141            #[prost(message, repeated, tag="1")]
7142            pub rules: ::prost::alloc::vec::Vec<StringFilterRule>,
7143        }
7144        // =========================
7145        // String filtering
7146        // =========================
7147
7148        // The principles and terminology of string filtering is heavily inspired by
7149        // iptables. A "rule" decide how strings should be filtered. Each rule
7150        // contains a "policy" which indicates the algorithm to use for filtering.
7151        // A "chain" is a list of rules which will be sequentially checked against
7152        // each string.
7153        //
7154        // The first rule which applies to the string terminates filtering for that
7155        // string. If no rules apply, the string is left unchanged.
7156
7157        /// A policy specifies which algorithm should be used for filtering the
7158        /// string.
7159        #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7160        #[repr(i32)]
7161        pub enum StringFilterPolicy {
7162            SfpUnspecified = 0,
7163            /// Tries to match the string field against |regex_pattern|. If it
7164            /// matches, all matching groups are "redacted" (i.e. replaced with a
7165            /// constant string) and filtering is terminated (i.e. no further rules are
7166            /// checked). If it doesn't match, the string is left unchanged and the
7167            /// next rule in chain is considered.
7168            SfpMatchRedactGroups = 1,
7169            /// Like |SFP_MATCH_REDACT_GROUPS| but tries to do some pre-work before
7170            /// checking the regex. Specifically, it tries to parse the string field as
7171            /// an atrace tracepoint and checks if the post-tgid field starts with
7172            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7173            /// this check succeeds.
7174            SfpAtraceMatchRedactGroups = 2,
7175            /// Tries to match the string field against |regex_pattern|. If it
7176            /// matches, filtering is terminated (i.e. no further rules are checked).
7177            /// If it doesn't match, the string is left unchanged and the next rule in
7178            /// chain is considered.
7179            SfpMatchBreak = 3,
7180            /// Like |SFP_MATCH_BREAK| but tries to do some pre-work before checking
7181            /// the regex. Specifically, it tries to parse the string field as an
7182            /// atrace tracepoint and checks if the post-tgid field starts with
7183            /// |atrace_post_tgid_starts_with|. The regex matching is only performed if
7184            /// this check succeeds.
7185            SfpAtraceMatchBreak = 4,
7186            /// Tries to repeatedly search (i.e. find substrings of) the string field
7187            /// with |regex_pattern|. For each match, redacts any matching groups (i.e.
7188            /// replaced with a constant string). Once there are no further matches,
7189            /// filtering is terminated (i.e. no further rules are checked).
7190            ///
7191            /// Note that this is policy is a "search" policy not a "match" policy
7192            /// unlike the above policies:
7193            ///   * Match policies require matching the full string i.e. there is an
7194            ///     implicit leading `^` and trailing `$`.
7195            ///   * Search policies perform repeated partial matching of the string
7196            ///     e.g.
7197            ///       - String: `foo=aaa,bar=123,foo=bbb,baz=456`
7198            ///       - Pattern: `foo=(\d+)`
7199            ///       - Output: `foo=P6O,bar=123,foo=P6O,baz=456`
7200            ///     where P6O is the redaction string
7201            ///
7202            /// All of this is only performed after some pre-work where we try to parse
7203            /// the string field as an atrace tracepoint and check if the post-tgid
7204            /// field starts with |atrace_post_tgid_starts_with|.
7205            ///
7206            /// If there are no partial matches, the string is left unchanged and the
7207            /// next rule in chain is considered.
7208            SfpAtraceRepeatedSearchRedactGroups = 5,
7209        }
7210        impl StringFilterPolicy {
7211            /// String value of the enum field names used in the ProtoBuf definition.
7212            ///
7213            /// The values are not transformed in any way and thus are considered stable
7214            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7215            pub fn as_str_name(&self) -> &'static str {
7216                match self {
7217                    StringFilterPolicy::SfpUnspecified => "SFP_UNSPECIFIED",
7218                    StringFilterPolicy::SfpMatchRedactGroups => "SFP_MATCH_REDACT_GROUPS",
7219                    StringFilterPolicy::SfpAtraceMatchRedactGroups => "SFP_ATRACE_MATCH_REDACT_GROUPS",
7220                    StringFilterPolicy::SfpMatchBreak => "SFP_MATCH_BREAK",
7221                    StringFilterPolicy::SfpAtraceMatchBreak => "SFP_ATRACE_MATCH_BREAK",
7222                    StringFilterPolicy::SfpAtraceRepeatedSearchRedactGroups => "SFP_ATRACE_REPEATED_SEARCH_REDACT_GROUPS",
7223                }
7224            }
7225        }
7226    }
7227    /// Android-only. Not for general use. If set, reports the trace to the
7228    /// Android framework. This field is read by perfetto_cmd, rather than the
7229    /// tracing service. This field must be set when passing the --upload flag to
7230    /// perfetto_cmd.
7231    ///
7232    /// In this message, either:
7233    ///   * |reporter_service_package| and |reporter_service_class| must be set.
7234    ///   * |skip_reporting| must be explicitly set to true.
7235    #[derive(Clone, PartialEq, ::prost::Message)]
7236    pub struct AndroidReportConfig {
7237        #[prost(string, optional, tag="1")]
7238        pub reporter_service_package: ::core::option::Option<::prost::alloc::string::String>,
7239        #[prost(string, optional, tag="2")]
7240        pub reporter_service_class: ::core::option::Option<::prost::alloc::string::String>,
7241        /// If true, then skips reporting the trace to Android framework.
7242        ///
7243        /// This flag is useful in testing (e.g. Perfetto-statsd integration tests)
7244        /// or when we explicitly don't want to report traces to the framework even
7245        /// when they usually would (e.g. configs deployed using statsd but only
7246        /// used for inclusion in bugreports using |bugreport_score|).
7247        ///
7248        /// The motivation for having this flag, instead of just not setting
7249        /// |framework_report_config|, is prevent accidents where
7250        /// |framework_report_config| is omitted by mistake.
7251        #[prost(bool, optional, tag="3")]
7252        pub skip_report: ::core::option::Option<bool>,
7253        /// If true, will direct the Android framework to read the data in trace
7254        /// file and pass it to the reporter class over a pipe instead of passing
7255        /// the file descriptor directly.
7256        ///
7257        /// This flag is needed because the Android test framework does not
7258        /// currently support priv-app helper apps (in terms of SELinux) and we
7259        /// really don't want to add an allow rule for untrusted_app to receive
7260        /// trace fds.
7261        ///
7262        /// Because of this, we instead will direct the framework to create a new
7263        /// pipe and pass this to the reporter process instead. As the pipe is
7264        /// created by the framework, we won't have any problems with SELinux
7265        /// (system_server is already allowed to pass pipe fds, even
7266        /// to untrusted apps).
7267        ///
7268        /// As the name suggests this option *MUST* only be used for testing.
7269        /// Note that the framework will reject (and drop) files which are too
7270        /// large both for simplicity and to be minimize the amount of data we
7271        /// pass to a non-priv app (note that the framework will still check
7272        /// manifest permissions even though SELinux permissions are worked around).
7273        #[prost(bool, optional, tag="4")]
7274        pub use_pipe_in_framework_for_testing: ::core::option::Option<bool>,
7275    }
7276    /// If set, delays the start of tracing by a random duration. The duration is
7277    /// chosen from a uniform distribution between the specified minimum and
7278    /// maximum.
7279    /// Note: this delay is implemented by perfetto_cmd *not* by traced so will
7280    /// not work if you communicate with traced directly over the consumer API.
7281    /// Introduced in Android T.
7282    #[derive(Clone, PartialEq, ::prost::Message)]
7283    pub struct CmdTraceStartDelay {
7284        #[prost(uint32, optional, tag="1")]
7285        pub min_delay_ms: ::core::option::Option<u32>,
7286        #[prost(uint32, optional, tag="2")]
7287        pub max_delay_ms: ::core::option::Option<u32>,
7288    }
7289    /// When non-empty, ensures that for a each semaphore named `name at most
7290    /// `max_other_session_count`` *other* sessions (whose value is taken of the
7291    /// minimum of all values specified by this config or any already-running
7292    /// session) can be be running.
7293    ///
7294    /// If a semaphore "acquisition" fails, EnableTracing will return an error
7295    /// and the tracing session will not be started (or elgible to start in
7296    /// the case of deferred sessions).
7297    ///
7298    /// This is easiest to explain with an example. Suppose the tracing service has
7299    /// the following active tracing sessions:
7300    ///    S1 = [{name=foo, max_other_session_count=2},
7301    ///          {name=bar, max_other_session_count=0}]
7302    ///    S2 = [{name=foo, max_other_session_count=1},
7303    ///          {name=baz, max_other_session_count=1}]
7304    ///
7305    /// Then, for a new session, the following would be the expected behaviour of
7306    /// EnableSession given the state of `session_semaphores`.
7307    ///    Q: session_semaphores = []
7308    ///    A: Allowed because it does not specify any semaphores. Will be allowed
7309    ///       no matter the state of any other tracing session.
7310    ///    Q: session_semaphores = [{name=baz, max_other_session_count=1}]
7311    ///    A: Allowed because both S2 and this config specify
7312    ///       max_other_session_count=1 for baz.
7313    ///    Q: session_semaphores = [{name=foo, max_other_session_count=3}]
7314    ///    A: Denied because S2 specified max_other_session_count=1 for foo and S1
7315    ///       takes that slot.
7316    ///    Q: session_semaphores = [{name=bar, max_other_session_count=0}]
7317    ///    A: Denied because S1 takes the the slot specified by both S1 and
7318    ///       this config.
7319    ///
7320    /// Introduced in 24Q3 (Android V).
7321    #[derive(Clone, PartialEq, ::prost::Message)]
7322    pub struct SessionSemaphore {
7323        /// The name of the semaphore. Acts as a unique identifier across all
7324        /// tracing sessions (including the one being started).
7325        #[prost(string, optional, tag="1")]
7326        pub name: ::core::option::Option<::prost::alloc::string::String>,
7327        /// The maximum number of *other* sesssions which specify the same semaphore
7328        /// which can be active. The minimum of this value across all tracing
7329        /// sessions and the value specified by the config is used when deciding
7330        /// whether the tracing session can be started.
7331        #[prost(uint64, optional, tag="2")]
7332        pub max_other_session_count: ::core::option::Option<u64>,
7333    }
7334    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7335    #[repr(i32)]
7336    pub enum LockdownModeOperation {
7337        LockdownUnchanged = 0,
7338        LockdownClear = 1,
7339        LockdownSet = 2,
7340    }
7341    impl LockdownModeOperation {
7342        /// String value of the enum field names used in the ProtoBuf definition.
7343        ///
7344        /// The values are not transformed in any way and thus are considered stable
7345        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7346        pub fn as_str_name(&self) -> &'static str {
7347            match self {
7348                LockdownModeOperation::LockdownUnchanged => "LOCKDOWN_UNCHANGED",
7349                LockdownModeOperation::LockdownClear => "LOCKDOWN_CLEAR",
7350                LockdownModeOperation::LockdownSet => "LOCKDOWN_SET",
7351            }
7352        }
7353    }
7354    /// Compress trace with the given method. Best effort.
7355    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7356    #[repr(i32)]
7357    pub enum CompressionType {
7358        Unspecified = 0,
7359        Deflate = 1,
7360    }
7361    impl CompressionType {
7362        /// String value of the enum field names used in the ProtoBuf definition.
7363        ///
7364        /// The values are not transformed in any way and thus are considered stable
7365        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7366        pub fn as_str_name(&self) -> &'static str {
7367            match self {
7368                CompressionType::Unspecified => "COMPRESSION_TYPE_UNSPECIFIED",
7369                CompressionType::Deflate => "COMPRESSION_TYPE_DEFLATE",
7370            }
7371        }
7372    }
7373    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7374    #[repr(i32)]
7375    pub enum StatsdLogging {
7376        Unspecified = 0,
7377        Enabled = 1,
7378        Disabled = 2,
7379    }
7380    impl StatsdLogging {
7381        /// String value of the enum field names used in the ProtoBuf definition.
7382        ///
7383        /// The values are not transformed in any way and thus are considered stable
7384        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7385        pub fn as_str_name(&self) -> &'static str {
7386            match self {
7387                StatsdLogging::Unspecified => "STATSD_LOGGING_UNSPECIFIED",
7388                StatsdLogging::Enabled => "STATSD_LOGGING_ENABLED",
7389                StatsdLogging::Disabled => "STATSD_LOGGING_DISABLED",
7390            }
7391        }
7392    }
7393}
7394/// Arguments for rpc EnableTracing().
7395#[derive(Clone, PartialEq, ::prost::Message)]
7396pub struct EnableTracingRequest {
7397    #[prost(message, optional, tag="1")]
7398    pub trace_config: ::core::option::Option<TraceConfig>,
7399    /// Introduced in Android Q. This is used for re-attaching to the end-of-trace
7400    /// EnableTracingResponse notification after a Detach+Attach request.
7401    /// When this flag is set the |trace_config| is ignored and no method is called
7402    /// on the tracing service.
7403    #[prost(bool, optional, tag="2")]
7404    pub attach_notification_only: ::core::option::Option<bool>,
7405}
7406#[derive(Clone, PartialEq, ::prost::Message)]
7407pub struct EnableTracingResponse {
7408    /// If present and non-empty tracing was disabled because of an error.
7409    /// Introduced in Android S.
7410    #[prost(string, optional, tag="3")]
7411    pub error: ::core::option::Option<::prost::alloc::string::String>,
7412    #[prost(oneof="enable_tracing_response::State", tags="1")]
7413    pub state: ::core::option::Option<enable_tracing_response::State>,
7414}
7415/// Nested message and enum types in `EnableTracingResponse`.
7416pub mod enable_tracing_response {
7417    #[derive(Clone, PartialEq, ::prost::Oneof)]
7418    pub enum State {
7419        #[prost(bool, tag="1")]
7420        Disabled(bool),
7421    }
7422}
7423/// Arguments for rpc StartTracing().
7424#[derive(Clone, PartialEq, ::prost::Message)]
7425pub struct StartTracingRequest {
7426}
7427#[derive(Clone, PartialEq, ::prost::Message)]
7428pub struct StartTracingResponse {
7429}
7430/// Arguments for rpc ChangeTraceConfig().
7431#[derive(Clone, PartialEq, ::prost::Message)]
7432pub struct ChangeTraceConfigRequest {
7433    #[prost(message, optional, tag="1")]
7434    pub trace_config: ::core::option::Option<TraceConfig>,
7435}
7436#[derive(Clone, PartialEq, ::prost::Message)]
7437pub struct ChangeTraceConfigResponse {
7438}
7439/// Arguments for rpc DisableTracing().
7440///
7441/// TODO: not supported yet, selectively disable only some data sources.
7442/// repeated string data_source_name;
7443#[derive(Clone, PartialEq, ::prost::Message)]
7444pub struct DisableTracingRequest {
7445}
7446#[derive(Clone, PartialEq, ::prost::Message)]
7447pub struct DisableTracingResponse {
7448}
7449/// Arguments for rpc ReadBuffers().
7450///
7451/// The |id|s of the buffer, as passed to CreateBuffers().
7452/// TODO: repeated uint32 buffer_ids = 1;
7453#[derive(Clone, PartialEq, ::prost::Message)]
7454pub struct ReadBuffersRequest {
7455}
7456/// TODO: uint32 buffer_id = 1;
7457#[derive(Clone, PartialEq, ::prost::Message)]
7458pub struct ReadBuffersResponse {
7459    #[prost(message, repeated, tag="2")]
7460    pub slices: ::prost::alloc::vec::Vec<read_buffers_response::Slice>,
7461}
7462/// Nested message and enum types in `ReadBuffersResponse`.
7463pub mod read_buffers_response {
7464    /// Each streaming reply returns one or more slices for one or more trace
7465    /// packets, or even just a portion of it (if it's too big to fit within one
7466    /// IPC). The returned slices are ordered and contiguous: packets' slices are
7467    /// not interleaved and slices are sent only once all slices for a packet are
7468    /// available (i.e. the consumer will never see any gap).
7469    #[derive(Clone, PartialEq, ::prost::Message)]
7470    pub struct Slice {
7471        #[prost(bytes="vec", optional, tag="1")]
7472        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7473        /// When true, this is the last slice for the packet. A ReadBufferResponse
7474        /// might have no slices marked as |last_slice_for_packet|==true, in the case
7475        /// of a very large packet that gets chunked into several IPCs (in which case
7476        /// only the last IPC for the packet will have this flag set).
7477        #[prost(bool, optional, tag="2")]
7478        pub last_slice_for_packet: ::core::option::Option<bool>,
7479    }
7480}
7481/// Arguments for rpc FreeBuffers().
7482#[derive(Clone, PartialEq, ::prost::Message)]
7483pub struct FreeBuffersRequest {
7484    /// The |id|s of the buffer, as passed to CreateBuffers().
7485    #[prost(uint32, repeated, packed="false", tag="1")]
7486    pub buffer_ids: ::prost::alloc::vec::Vec<u32>,
7487}
7488#[derive(Clone, PartialEq, ::prost::Message)]
7489pub struct FreeBuffersResponse {
7490}
7491/// Arguments for rpc Flush().
7492#[derive(Clone, PartialEq, ::prost::Message)]
7493pub struct FlushRequest {
7494    #[prost(uint32, optional, tag="1")]
7495    pub timeout_ms: ::core::option::Option<u32>,
7496    /// More details such as flush reason and originator. Introduced in v38 / V.
7497    /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
7498    #[prost(uint64, optional, tag="2")]
7499    pub flags: ::core::option::Option<u64>,
7500}
7501#[derive(Clone, PartialEq, ::prost::Message)]
7502pub struct FlushResponse {
7503}
7504/// Arguments for rpc Detach
7505#[derive(Clone, PartialEq, ::prost::Message)]
7506pub struct DetachRequest {
7507    #[prost(string, optional, tag="1")]
7508    pub key: ::core::option::Option<::prost::alloc::string::String>,
7509}
7510#[derive(Clone, PartialEq, ::prost::Message)]
7511pub struct DetachResponse {
7512}
7513/// Arguments for rpc Attach.
7514#[derive(Clone, PartialEq, ::prost::Message)]
7515pub struct AttachRequest {
7516    #[prost(string, optional, tag="1")]
7517    pub key: ::core::option::Option<::prost::alloc::string::String>,
7518}
7519#[derive(Clone, PartialEq, ::prost::Message)]
7520pub struct AttachResponse {
7521    #[prost(message, optional, tag="1")]
7522    pub trace_config: ::core::option::Option<TraceConfig>,
7523}
7524// Arguments for rpc GetTraceStats.
7525
7526#[derive(Clone, PartialEq, ::prost::Message)]
7527pub struct GetTraceStatsRequest {
7528}
7529#[derive(Clone, PartialEq, ::prost::Message)]
7530pub struct GetTraceStatsResponse {
7531    #[prost(message, optional, tag="1")]
7532    pub trace_stats: ::core::option::Option<TraceStats>,
7533}
7534// Arguments for rpc ObserveEvents.
7535
7536/// To stop observing events of a certain type, send a request with the remaining
7537/// types. To stop observing completely, send an empty request.
7538#[derive(Clone, PartialEq, ::prost::Message)]
7539pub struct ObserveEventsRequest {
7540    #[prost(enumeration="observable_events::Type", repeated, packed="false", tag="1")]
7541    pub events_to_observe: ::prost::alloc::vec::Vec<i32>,
7542}
7543#[derive(Clone, PartialEq, ::prost::Message)]
7544pub struct ObserveEventsResponse {
7545    #[prost(message, optional, tag="1")]
7546    pub events: ::core::option::Option<ObservableEvents>,
7547}
7548/// Arguments for rpc QueryServiceState.
7549#[derive(Clone, PartialEq, ::prost::Message)]
7550pub struct QueryServiceStateRequest {
7551    /// If set, only the TracingServiceState.tracing_sessions is filled. Producers
7552    /// and data sources are omitted.
7553    #[prost(bool, optional, tag="1")]
7554    pub sessions_only: ::core::option::Option<bool>,
7555}
7556#[derive(Clone, PartialEq, ::prost::Message)]
7557pub struct QueryServiceStateResponse {
7558    /// In order to avoid hitting IPC message size limitations, the service will
7559    /// return >1 replies for each query, chunking the TracingServiceState. The
7560    /// receiver is expected to merge replies together and parse that when the
7561    /// last reply is received (i.e. when IPC's |has_more| == false).
7562    #[prost(message, optional, tag="1")]
7563    pub service_state: ::core::option::Option<TracingServiceState>,
7564}
7565/// Arguments for rpc QueryCapabilities.
7566#[derive(Clone, PartialEq, ::prost::Message)]
7567pub struct QueryCapabilitiesRequest {
7568}
7569#[derive(Clone, PartialEq, ::prost::Message)]
7570pub struct QueryCapabilitiesResponse {
7571    #[prost(message, optional, tag="1")]
7572    pub capabilities: ::core::option::Option<TracingServiceCapabilities>,
7573}
7574/// Arguments for rpc SaveTraceForBugreport.
7575#[derive(Clone, PartialEq, ::prost::Message)]
7576pub struct SaveTraceForBugreportRequest {
7577}
7578/// This response is sent only after the trace was saved into file (if succeeded)
7579/// or something failed.
7580#[derive(Clone, PartialEq, ::prost::Message)]
7581pub struct SaveTraceForBugreportResponse {
7582    /// If true, an eligible the trace was saved into a known location (on Android
7583    /// /data/misc/perfetto-traces, see GetBugreportTracePath()).
7584    /// If false no trace with bugreport_score > 0 was found or an error occurred.
7585    /// see |msg| in that case for details about the failure.
7586    #[prost(bool, optional, tag="1")]
7587    pub success: ::core::option::Option<bool>,
7588    #[prost(string, optional, tag="2")]
7589    pub msg: ::core::option::Option<::prost::alloc::string::String>,
7590}
7591/// Arguments for rpc CloneSession.
7592#[derive(Clone, PartialEq, ::prost::Message)]
7593pub struct CloneSessionRequest {
7594    /// If set, the trace filter will not have effect on the cloned session.
7595    /// Used for bugreports.
7596    #[prost(bool, optional, tag="2")]
7597    pub skip_trace_filter: ::core::option::Option<bool>,
7598    /// If set, affects the generation of the FlushFlags::CloneTarget to be set
7599    /// to kBugreport when requesting the flush to the producers.
7600    #[prost(bool, optional, tag="3")]
7601    pub for_bugreport: ::core::option::Option<bool>,
7602    /// If set, this is stored in the trace as name of the trigger that caused the
7603    /// clone.
7604    #[prost(string, optional, tag="5")]
7605    pub clone_trigger_name: ::core::option::Option<::prost::alloc::string::String>,
7606    /// If set, this is stored in the trace as name of the producer that triggered
7607    /// the clone.
7608    #[prost(string, optional, tag="6")]
7609    pub clone_trigger_producer_name: ::core::option::Option<::prost::alloc::string::String>,
7610    /// If set, this is stored in the trace as uid of the producer that triggered
7611    /// the clone.
7612    #[prost(int32, optional, tag="7")]
7613    pub clone_trigger_trusted_producer_uid: ::core::option::Option<i32>,
7614    /// If set, this is stored in the trace as timestamp of the trigger that caused
7615    /// the clone.
7616    #[prost(uint64, optional, tag="8")]
7617    pub clone_trigger_boot_time_ns: ::core::option::Option<u64>,
7618    /// If set, this is stored in the trace as the configured delay of the trigger
7619    /// that caused the clone.
7620    ///
7621    /// Consumer may also send a file descriptor with this rpc message. If the
7622    /// descriptor is valid, and the session that should be cloned is
7623    /// 'write_into_file' session, traced writes the cloned session content to that
7624    /// file descriptor, instead of writing it in the cloned session buffers.
7625    #[prost(uint64, optional, tag="9")]
7626    pub clone_trigger_delay_ms: ::core::option::Option<u64>,
7627    #[prost(oneof="clone_session_request::Selector", tags="1, 4")]
7628    pub selector: ::core::option::Option<clone_session_request::Selector>,
7629}
7630/// Nested message and enum types in `CloneSessionRequest`.
7631pub mod clone_session_request {
7632    #[derive(Clone, PartialEq, ::prost::Oneof)]
7633    pub enum Selector {
7634        /// The session ID to clone. If session_id == kBugreportSessionId (0xff...ff)
7635        /// the session with the highest bugreport score is cloned (if any exists).
7636        #[prost(uint64, tag="1")]
7637        SessionId(u64),
7638        /// The unique_session_name of the tracing session to clone. Tracing sessions
7639        /// that are clones of other tracing sessions are ignored.
7640        #[prost(string, tag="4")]
7641        UniqueSessionName(::prost::alloc::string::String),
7642    }
7643}
7644#[derive(Clone, PartialEq, ::prost::Message)]
7645pub struct CloneSessionResponse {
7646    /// If true, the clone was successful. If false it failed and |error| contains
7647    /// the details about the failure.
7648    #[prost(bool, optional, tag="1")]
7649    pub success: ::core::option::Option<bool>,
7650    #[prost(string, optional, tag="2")]
7651    pub error: ::core::option::Option<::prost::alloc::string::String>,
7652    /// The UUID of the cloned session.
7653    #[prost(int64, optional, tag="3")]
7654    pub uuid_msb: ::core::option::Option<i64>,
7655    #[prost(int64, optional, tag="4")]
7656    pub uuid_lsb: ::core::option::Option<i64>,
7657    /// TracingService sets this when the cloned session was write_into_file=true.
7658    /// The consumer cannot know upfront if a session is WIF or not.
7659    /// Introduced in v53.
7660    #[prost(bool, optional, tag="5")]
7661    pub was_write_into_file: ::core::option::Option<bool>,
7662}
7663#[derive(Clone, PartialEq, ::prost::Message)]
7664pub struct CommitDataRequest {
7665    #[prost(message, repeated, tag="1")]
7666    pub chunks_to_move: ::prost::alloc::vec::Vec<commit_data_request::ChunksToMove>,
7667    #[prost(message, repeated, tag="2")]
7668    pub chunks_to_patch: ::prost::alloc::vec::Vec<commit_data_request::ChunkToPatch>,
7669    /// Optional. If this commit is made in response to a Flush(id) request coming
7670    /// from the service, copy back the id of the request so the service can tell
7671    /// when the flush happened.
7672    #[prost(uint64, optional, tag="3")]
7673    pub flush_request_id: ::core::option::Option<u64>,
7674}
7675/// Nested message and enum types in `CommitDataRequest`.
7676pub mod commit_data_request {
7677    /// When |chunks_to_move| is present, the producer is requesting the service to
7678    /// move the given chunks form the share memory buffer into the central
7679    /// trace buffer(s).
7680    #[derive(Clone, PartialEq, ::prost::Message)]
7681    pub struct ChunksToMove {
7682        /// The 0-based index of the page in the Shared Memory Buffer.
7683        #[prost(uint32, optional, tag="1")]
7684        pub page: ::core::option::Option<u32>,
7685        /// The 0-based chunk index \[0..13\] within the page.
7686        #[prost(uint32, optional, tag="2")]
7687        pub chunk: ::core::option::Option<u32>,
7688        /// The target buffer it should be moved onto. The service will check that
7689        /// the producer is allowed to write into that buffer before the move.
7690        #[prost(uint32, optional, tag="3")]
7691        pub target_buffer: ::core::option::Option<u32>,
7692        /// Sending the chunk data over the wire. Used for transports that don't
7693        /// support shared memory (e.g. vsock or TCP sockets). In the default case
7694        /// (tracing protocol over a Unix socket), this field is not used and tracing
7695        /// data is stored in the shmem buffer and referenced by the fields above.
7696        /// See |use_shemem_emulation| in the codebase for reference.
7697        #[prost(bytes="vec", optional, tag="4")]
7698        pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7699    }
7700    /// Used to patch chunks that have already been sent to the service. The chunk
7701    /// might not be in the shared memory buffer anymore as it could have been
7702    /// moved by the service in response to a prior CommitDataRequest.
7703    /// It is perfectly valid to patch a chunk that is being notified in the same
7704    /// message (a chunk can show up both in the |changed_pages| and |patches|
7705    /// field within the same CommitDataRequest message).
7706    /// In other words, |chunks_to_patch| is always processed after
7707    /// |chunks_to_move|.
7708    #[derive(Clone, PartialEq, ::prost::Message)]
7709    pub struct ChunkToPatch {
7710        #[prost(uint32, optional, tag="1")]
7711        pub target_buffer: ::core::option::Option<u32>,
7712        /// {WriterID, ChunkID} uniquely identify a chunk for the current producer.
7713        #[prost(uint32, optional, tag="2")]
7714        pub writer_id: ::core::option::Option<u32>,
7715        #[prost(uint32, optional, tag="3")]
7716        pub chunk_id: ::core::option::Option<u32>,
7717        /// List of patches to apply to the given chunk.
7718        #[prost(message, repeated, tag="4")]
7719        pub patches: ::prost::alloc::vec::Vec<chunk_to_patch::Patch>,
7720        /// When true more patches will follow in future requests and the chunk
7721        /// should be still considered as patch-pending. When false the chunk becomes
7722        /// eligible for reading.
7723        #[prost(bool, optional, tag="5")]
7724        pub has_more_patches: ::core::option::Option<bool>,
7725    }
7726    /// Nested message and enum types in `ChunkToPatch`.
7727    pub mod chunk_to_patch {
7728        #[derive(Clone, PartialEq, ::prost::Message)]
7729        pub struct Patch {
7730            /// Offset in bytes from the start of the chunk payload. e.g., offset == 0
7731            /// corresponds to the first byte of the first packet (or fragment) in the
7732            /// chunk.
7733            #[prost(uint32, optional, tag="1")]
7734            pub offset: ::core::option::Option<u32>,
7735            /// Bytes to patch at the given offset.
7736            #[prost(bytes="vec", optional, tag="2")]
7737            pub data: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
7738        }
7739    }
7740}
7741/// Arguments for rpc InitializeConnection().
7742#[derive(Clone, PartialEq, ::prost::Message)]
7743pub struct InitializeConnectionRequest {
7744    /// Optional. Provides a hint to the tracing service about the suggested size
7745    /// of the shared memory buffer pages. The service is not required to respect
7746    /// this if it has already another value in the configuration or if the hint
7747    /// is unreasonably large. Must be an integer multiple of 4096. See tradeoff
7748    /// considerations in shared_memory_abi.h.
7749    #[prost(uint32, optional, tag="1")]
7750    pub shared_memory_page_size_hint_bytes: ::core::option::Option<u32>,
7751    /// Optional. Provides a hint to the tracing service about the suggested size
7752    /// of the shared memory buffer. The service is not required to respect this
7753    /// and might return a smaller buffer.
7754    #[prost(uint32, optional, tag="2")]
7755    pub shared_memory_size_hint_bytes: ::core::option::Option<u32>,
7756    /// Required to match the producer config set by the service to the correct
7757    /// producer.
7758    #[prost(string, optional, tag="3")]
7759    pub producer_name: ::core::option::Option<::prost::alloc::string::String>,
7760    /// If provided, overrides the service's SMB scraping setting for the producer.
7761    #[prost(enumeration="initialize_connection_request::ProducerSmbScrapingMode", optional, tag="4")]
7762    pub smb_scraping_mode: ::core::option::Option<i32>,
7763    // ---------------------------------------------------
7764    // All fields below have been introduced in Android R.
7765    // ---------------------------------------------------
7766
7767    /// Since Android R, this request can also transport an FD for the producer's
7768    /// shared memory buffer, if allocated by the producer (e.g. for startup
7769    /// tracing). In this case, |shared_memory_page_size_hint_bytes| is a required
7770    /// field, and describes the SMB's page size. Note that the service may not
7771    /// accept this SMB (e.g. because it is too old or its size / page size are
7772    /// invalid) and instead allocate a new SMB which is provided in the
7773    /// SetupTracing response. See TracingService::ConnectProducer() and
7774    /// |using_shmem_provided_by_producer| in InitializeConnectionResponse.
7775    #[prost(bool, optional, tag="6")]
7776    pub producer_provided_shmem: ::core::option::Option<bool>,
7777    // ---------------------------------------------------
7778    // All fields below have been introduced in Android S.
7779    // ---------------------------------------------------
7780
7781    /// The version of the client library used by the producer.
7782    /// This is a human readable string with and its format varies depending on
7783    /// the build system that is used to build the code and the repo (standalone
7784    /// vs AOSP). This is intended for human debugging only.
7785    #[prost(string, optional, tag="8")]
7786    pub sdk_version: ::core::option::Option<::prost::alloc::string::String>,
7787    /// On Windows, when producer_provided_shmem = true, the client creates a named
7788    /// SHM region and passes the name (an unguessable token) back to the service.
7789    /// Introduced in v13.
7790    #[prost(string, optional, tag="7")]
7791    pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
7792}
7793/// Nested message and enum types in `InitializeConnectionRequest`.
7794pub mod initialize_connection_request {
7795    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
7796    #[repr(i32)]
7797    pub enum ProducerSmbScrapingMode {
7798        /// Use the service's default setting for SMB scraping.
7799        SmbScrapingUnspecified = 0,
7800        /// Enable scraping of uncommitted chunks from the producer's shared memory
7801        /// buffer.
7802        SmbScrapingEnabled = 1,
7803        /// Disable scraping of uncommitted chunks from the producer's shared memory
7804        /// buffer.
7805        SmbScrapingDisabled = 2,
7806    }
7807    impl ProducerSmbScrapingMode {
7808        /// String value of the enum field names used in the ProtoBuf definition.
7809        ///
7810        /// The values are not transformed in any way and thus are considered stable
7811        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
7812        pub fn as_str_name(&self) -> &'static str {
7813            match self {
7814                ProducerSmbScrapingMode::SmbScrapingUnspecified => "SMB_SCRAPING_UNSPECIFIED",
7815                ProducerSmbScrapingMode::SmbScrapingEnabled => "SMB_SCRAPING_ENABLED",
7816                ProducerSmbScrapingMode::SmbScrapingDisabled => "SMB_SCRAPING_DISABLED",
7817            }
7818        }
7819    }
7820}
7821#[derive(Clone, PartialEq, ::prost::Message)]
7822pub struct InitializeConnectionResponse {
7823    /// Indicates whether the service accepted the SMB provided by the producer in
7824    /// InitializeConnectionRequest (if any). If false, the shared memory buffer FD
7825    /// will provided by the service via the SetupTracing async command.
7826    #[prost(bool, optional, tag="1")]
7827    pub using_shmem_provided_by_producer: ::core::option::Option<bool>,
7828    /// Indicates to the producer that the service allows direct SMB patching of
7829    /// chunks that have not yet been committed to it.
7830    /// This field has been introduced in Android S.
7831    #[prost(bool, optional, tag="2")]
7832    pub direct_smb_patching_supported: ::core::option::Option<bool>,
7833    /// Indicates whether the service would like to use SMB emulation for the
7834    /// connection, and request the client to send chunk data over the socket e.g.
7835    /// for remote connection from a VM guest.
7836    #[prost(bool, optional, tag="3")]
7837    pub use_shmem_emulation: ::core::option::Option<bool>,
7838}
7839// Arguments for rpc RegisterDataSource().
7840
7841#[derive(Clone, PartialEq, ::prost::Message)]
7842pub struct RegisterDataSourceRequest {
7843    #[prost(message, optional, tag="1")]
7844    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
7845}
7846#[derive(Clone, PartialEq, ::prost::Message)]
7847pub struct RegisterDataSourceResponse {
7848    /// Only set in case of errors, when |data_source_id| == 0.
7849    #[prost(string, optional, tag="1")]
7850    pub error: ::core::option::Option<::prost::alloc::string::String>,
7851}
7852// Arguments for rpc UpdateDataSource().
7853
7854#[derive(Clone, PartialEq, ::prost::Message)]
7855pub struct UpdateDataSourceRequest {
7856    /// The new data_source_descriptor.{id, name} must match {id, name} of a
7857    /// data source previously registered via RegisterDataSource().
7858    #[prost(message, optional, tag="1")]
7859    pub data_source_descriptor: ::core::option::Option<DataSourceDescriptor>,
7860}
7861#[derive(Clone, PartialEq, ::prost::Message)]
7862pub struct UpdateDataSourceResponse {
7863}
7864// Arguments for rpc UnregisterDataSource().
7865
7866#[derive(Clone, PartialEq, ::prost::Message)]
7867pub struct UnregisterDataSourceRequest {
7868    /// The name of the data source to unregister, as previously passed in
7869    /// |RegisterDataSourceRequest.name|.
7870    #[prost(string, optional, tag="1")]
7871    pub data_source_name: ::core::option::Option<::prost::alloc::string::String>,
7872}
7873#[derive(Clone, PartialEq, ::prost::Message)]
7874pub struct UnregisterDataSourceResponse {
7875}
7876// Arguments for rpc RegisterTraceWriter().
7877
7878#[derive(Clone, PartialEq, ::prost::Message)]
7879pub struct RegisterTraceWriterRequest {
7880    /// The ID of a producer's trace writer.
7881    #[prost(uint32, optional, tag="1")]
7882    pub trace_writer_id: ::core::option::Option<u32>,
7883    /// The ID of the target buffer that the trace writer commits its chunks to.
7884    #[prost(uint32, optional, tag="2")]
7885    pub target_buffer: ::core::option::Option<u32>,
7886}
7887#[derive(Clone, PartialEq, ::prost::Message)]
7888pub struct RegisterTraceWriterResponse {
7889}
7890// Arguments for rpc UnregisterTraceWriter().
7891
7892#[derive(Clone, PartialEq, ::prost::Message)]
7893pub struct UnregisterTraceWriterRequest {
7894    /// The ID of a producer's trace writer.
7895    #[prost(uint32, optional, tag="1")]
7896    pub trace_writer_id: ::core::option::Option<u32>,
7897}
7898#[derive(Clone, PartialEq, ::prost::Message)]
7899pub struct UnregisterTraceWriterResponse {
7900}
7901// Arguments for rpc CommitData().
7902// See commit_data_request.proto for CommitDataRequest. That has its own file
7903// because it is used also as input to generate C++ classes (xxx.gen.h).
7904
7905#[derive(Clone, PartialEq, ::prost::Message)]
7906pub struct CommitDataResponse {
7907}
7908// Arguments for rpc NotifyDataSourceStarted().
7909
7910#[derive(Clone, PartialEq, ::prost::Message)]
7911pub struct NotifyDataSourceStartedRequest {
7912    /// ID of the data source that has successfully started.
7913    #[prost(uint64, optional, tag="1")]
7914    pub data_source_id: ::core::option::Option<u64>,
7915}
7916#[derive(Clone, PartialEq, ::prost::Message)]
7917pub struct NotifyDataSourceStartedResponse {
7918}
7919// Arguments for rpc NotifyDataSourceStopped().
7920
7921#[derive(Clone, PartialEq, ::prost::Message)]
7922pub struct NotifyDataSourceStoppedRequest {
7923    /// ID of the data source that has successfully stopped.
7924    #[prost(uint64, optional, tag="1")]
7925    pub data_source_id: ::core::option::Option<u64>,
7926}
7927#[derive(Clone, PartialEq, ::prost::Message)]
7928pub struct NotifyDataSourceStoppedResponse {
7929}
7930// Arguments for rpc ActivateTriggersRequest().
7931
7932#[derive(Clone, PartialEq, ::prost::Message)]
7933pub struct ActivateTriggersRequest {
7934    #[prost(string, repeated, tag="1")]
7935    pub trigger_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
7936}
7937#[derive(Clone, PartialEq, ::prost::Message)]
7938pub struct ActivateTriggersResponse {
7939}
7940// Arguments for rpc GetAsyncCommand().
7941
7942#[derive(Clone, PartialEq, ::prost::Message)]
7943pub struct GetAsyncCommandRequest {
7944}
7945#[derive(Clone, PartialEq, ::prost::Message)]
7946pub struct GetAsyncCommandResponse {
7947    /// Next id: 8.
7948    #[prost(oneof="get_async_command_response::Cmd", tags="3, 6, 1, 2, 5, 7")]
7949    pub cmd: ::core::option::Option<get_async_command_response::Cmd>,
7950}
7951/// Nested message and enum types in `GetAsyncCommandResponse`.
7952pub mod get_async_command_response {
7953    /// Called after SetupTracing and before StartDataSource.
7954    /// This message was introduced in Android Q.
7955    #[derive(Clone, PartialEq, ::prost::Message)]
7956    pub struct SetupDataSource {
7957        #[prost(uint64, optional, tag="1")]
7958        pub new_instance_id: ::core::option::Option<u64>,
7959        #[prost(message, optional, tag="2")]
7960        pub config: ::core::option::Option<super::DataSourceConfig>,
7961    }
7962    #[derive(Clone, PartialEq, ::prost::Message)]
7963    pub struct StartDataSource {
7964        #[prost(uint64, optional, tag="1")]
7965        pub new_instance_id: ::core::option::Option<u64>,
7966        /// For backwards compat reasons (with Android P), the config passed here
7967        /// is identical to the one passed to SetupDataSource.config.
7968        #[prost(message, optional, tag="2")]
7969        pub config: ::core::option::Option<super::DataSourceConfig>,
7970    }
7971    #[derive(Clone, PartialEq, ::prost::Message)]
7972    pub struct StopDataSource {
7973        #[prost(uint64, optional, tag="1")]
7974        pub instance_id: ::core::option::Option<u64>,
7975    }
7976    /// On Android/Linux/Mac this message also transports the file descriptor for
7977    /// the shared memory buffer (not a proto field).
7978    #[derive(Clone, PartialEq, ::prost::Message)]
7979    pub struct SetupTracing {
7980        #[prost(uint32, optional, tag="1")]
7981        pub shared_buffer_page_size_kb: ::core::option::Option<u32>,
7982        /// On Windows, instead, we pass the name (an unguessable token) of a shared
7983        /// memory region that can be attached by the other process by name.
7984        /// Introduced in v13.
7985        #[prost(string, optional, tag="2")]
7986        pub shm_key_windows: ::core::option::Option<::prost::alloc::string::String>,
7987    }
7988    #[derive(Clone, PartialEq, ::prost::Message)]
7989    pub struct Flush {
7990        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
7991        /// sources to flush.
7992        #[prost(uint64, repeated, packed="false", tag="1")]
7993        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
7994        /// A monotonic counter generated by the service. The producer is simply
7995        /// expected to copy this value back into the CommitDataRequest, so the
7996        /// service can tell when the data for this flush has been committed.
7997        #[prost(uint64, optional, tag="2")]
7998        pub request_id: ::core::option::Option<u64>,
7999        /// More details such as flush reason and originator. Introduced in v38 / V.
8000        /// See FlushFlags in include/perfetto/ext/tracing/core/flush_flags.h.
8001        #[prost(uint64, optional, tag="3")]
8002        pub flags: ::core::option::Option<u64>,
8003    }
8004    /// Instructs the given data sources to stop referring to any trace contents
8005    /// emitted so far. Sent only to active data sources that set
8006    /// |handles_incremental_state_clear| in their DataSourceDescriptor.
8007    ///
8008    /// Added to perfetto tree in May 2019.
8009    #[derive(Clone, PartialEq, ::prost::Message)]
8010    pub struct ClearIncrementalState {
8011        /// The instance id (i.e. StartDataSource.new_instance_id) of the data
8012        /// sources that should clear their incremental state.
8013        #[prost(uint64, repeated, packed="false", tag="1")]
8014        pub data_source_ids: ::prost::alloc::vec::Vec<u64>,
8015    }
8016    /// Next id: 8.
8017    #[derive(Clone, PartialEq, ::prost::Oneof)]
8018    pub enum Cmd {
8019        #[prost(message, tag="3")]
8020        SetupTracing(SetupTracing),
8021        #[prost(message, tag="6")]
8022        SetupDataSource(SetupDataSource),
8023        #[prost(message, tag="1")]
8024        StartDataSource(StartDataSource),
8025        #[prost(message, tag="2")]
8026        StopDataSource(StopDataSource),
8027        /// id == 4 was teardown_tracing, never implemented.
8028        #[prost(message, tag="5")]
8029        Flush(Flush),
8030        #[prost(message, tag="7")]
8031        ClearIncrementalState(ClearIncrementalState),
8032    }
8033}
8034/// Arguments for rpc Sync().
8035#[derive(Clone, PartialEq, ::prost::Message)]
8036pub struct SyncRequest {
8037}
8038#[derive(Clone, PartialEq, ::prost::Message)]
8039pub struct SyncResponse {
8040}
8041#[derive(Clone, PartialEq, ::prost::Message)]
8042pub struct IpcFrame {
8043    /// The client is expected to send requests with monotonically increasing
8044    /// request_id. The host will match the request_id sent from the client.
8045    /// In the case of a Streaming response (has_more = true) the host will send
8046    /// several InvokeMethodReply with the same request_id.
8047    #[prost(uint64, optional, tag="2")]
8048    pub request_id: ::core::option::Option<u64>,
8049    /// Used only in unittests to generate a parsable message of arbitrary size.
8050    #[prost(bytes="vec", repeated, tag="1")]
8051    pub data_for_testing: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
8052    #[prost(oneof="ipc_frame::Msg", tags="3, 4, 5, 6, 7, 8")]
8053    pub msg: ::core::option::Option<ipc_frame::Msg>,
8054}
8055/// Nested message and enum types in `IPCFrame`.
8056pub mod ipc_frame {
8057    /// Client -> Host.
8058    #[derive(Clone, PartialEq, ::prost::Message)]
8059    pub struct BindService {
8060        #[prost(string, optional, tag="1")]
8061        pub service_name: ::core::option::Option<::prost::alloc::string::String>,
8062    }
8063    /// Host -> Client.
8064    #[derive(Clone, PartialEq, ::prost::Message)]
8065    pub struct BindServiceReply {
8066        #[prost(bool, optional, tag="1")]
8067        pub success: ::core::option::Option<bool>,
8068        #[prost(uint32, optional, tag="2")]
8069        pub service_id: ::core::option::Option<u32>,
8070        #[prost(message, repeated, tag="3")]
8071        pub methods: ::prost::alloc::vec::Vec<bind_service_reply::MethodInfo>,
8072    }
8073    /// Nested message and enum types in `BindServiceReply`.
8074    pub mod bind_service_reply {
8075        #[derive(Clone, PartialEq, ::prost::Message)]
8076        pub struct MethodInfo {
8077            #[prost(uint32, optional, tag="1")]
8078            pub id: ::core::option::Option<u32>,
8079            #[prost(string, optional, tag="2")]
8080            pub name: ::core::option::Option<::prost::alloc::string::String>,
8081        }
8082    }
8083    /// Client -> Host.
8084    #[derive(Clone, PartialEq, ::prost::Message)]
8085    pub struct InvokeMethod {
8086        /// BindServiceReply.id.
8087        #[prost(uint32, optional, tag="1")]
8088        pub service_id: ::core::option::Option<u32>,
8089        /// BindServiceReply.method.id.
8090        #[prost(uint32, optional, tag="2")]
8091        pub method_id: ::core::option::Option<u32>,
8092        /// Proto-encoded request argument.
8093        #[prost(bytes="vec", optional, tag="3")]
8094        pub args_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8095        /// When true the client specifies that a reply is not needed. The use case
8096        /// is a method with an empty, where the client doesn't care about the
8097        /// success/failure of the method invocation and rather prefers avoiding the
8098        /// IPC roundtrip + context switch associated with the reply.
8099        #[prost(bool, optional, tag="4")]
8100        pub drop_reply: ::core::option::Option<bool>,
8101    }
8102    /// Host -> Client.
8103    #[derive(Clone, PartialEq, ::prost::Message)]
8104    pub struct InvokeMethodReply {
8105        #[prost(bool, optional, tag="1")]
8106        pub success: ::core::option::Option<bool>,
8107        /// only for streaming RPCs.
8108        #[prost(bool, optional, tag="2")]
8109        pub has_more: ::core::option::Option<bool>,
8110        /// proto-encoded response value.
8111        #[prost(bytes="vec", optional, tag="3")]
8112        pub reply_proto: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
8113    }
8114    /// Host -> Client.
8115    #[derive(Clone, PartialEq, ::prost::Message)]
8116    pub struct RequestError {
8117        #[prost(string, optional, tag="1")]
8118        pub error: ::core::option::Option<::prost::alloc::string::String>,
8119    }
8120    /// Client (relay service) -> Host. This is generated by the relay service to
8121    /// fill the producer identity in the guest. This message is sent to the host
8122    /// service *before* any IPCFrame is from a local producer is relayed. This is
8123    /// accepted only on AF_VSOCK and AF_INET sockets, where we cannot validate the
8124    /// endpoont of the connection. for AF_UNIX sockets, this is ignored and traced
8125    /// uses instead the SO_PEERCRED.
8126    #[derive(Clone, PartialEq, ::prost::Message)]
8127    pub struct SetPeerIdentity {
8128        /// The UID and PID of the producer process.
8129        #[prost(int32, optional, tag="1")]
8130        pub pid: ::core::option::Option<i32>,
8131        #[prost(int32, optional, tag="2")]
8132        pub uid: ::core::option::Option<i32>,
8133        /// The hint for the tracing service to infer the machine ID. This field
8134        /// should satisfy the requriement that different machines should have
8135        /// different values. In practice, this filed contains the Linux kernel
8136        /// boot_id, or a hash of kernel bootup timestamp and uname(2) if boot_id
8137        /// isn't available.
8138        #[prost(string, optional, tag="3")]
8139        pub machine_id_hint: ::core::option::Option<::prost::alloc::string::String>,
8140        /// Human-readable name associated to the producer's machine. Provides the
8141        /// tracing service a new dimension to filter data sources on. Given the
8142        /// perfetto machine name is provided by users, there is no expectation of
8143        /// uniqueness across machines in a tracing session.
8144        #[prost(string, optional, tag="4")]
8145        pub machine_name: ::core::option::Option<::prost::alloc::string::String>,
8146    }
8147    #[derive(Clone, PartialEq, ::prost::Oneof)]
8148    pub enum Msg {
8149        #[prost(message, tag="3")]
8150        MsgBindService(BindService),
8151        #[prost(message, tag="4")]
8152        MsgBindServiceReply(BindServiceReply),
8153        #[prost(message, tag="5")]
8154        MsgInvokeMethod(InvokeMethod),
8155        #[prost(message, tag="6")]
8156        MsgInvokeMethodReply(InvokeMethodReply),
8157        #[prost(message, tag="7")]
8158        MsgRequestError(RequestError),
8159        #[prost(message, tag="8")]
8160        SetPeerIdentity(SetPeerIdentity),
8161    }
8162}