pub struct AndroidInputEventConfig {
pub mode: Option<i32>,
pub rules: Vec<TraceRule>,
pub trace_dispatcher_input_events: Option<bool>,
pub trace_dispatcher_window_dispatch: Option<bool>,
}
Expand description
Custom configuration for the “android.input.inputevent” data source.
NOTE: Input traces can only be taken on debuggable (userdebug/eng) builds!
Next ID: 5
Fields§
§mode: Option<i32>
The tracing mode to use. If unspecified, it will default to TRACE_MODE_USE_RULES.
rules: Vec<TraceRule>
The list of rules to use to determine the trace level of events. Each event will be traced using the TraceLevel of the first rule that it triggers from this list. The rules are evaluated in the order in which they are specified. If an event does not match any of the rules, TRACE_LEVEL_NONE will be used by default.
trace_dispatcher_input_events: Option<bool>
Trace input events processed by the system as they are being dispatched to application windows. All trace rules will apply.
- If this flag is used without enabling trace_dispatcher_window_dispatch, it will trace InputDispatcher’s inbound events (which does not include events synthesized within InputDispatcher) that match the rules.
- If used with trace_dispatcher_window_dispatch, all inbound and outbound events matching the rules, including all events synthesized within InputDispatcher, will be traced.
trace_dispatcher_window_dispatch: Option<bool>
Trace details about which windows the system is sending each input event to. All trace rules will apply.
Implementations§
Source§impl AndroidInputEventConfig
impl AndroidInputEventConfig
Sourcepub fn mode(&self) -> TraceMode
pub fn mode(&self) -> TraceMode
Returns the enum value of mode
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn trace_dispatcher_input_events(&self) -> bool
pub fn trace_dispatcher_input_events(&self) -> bool
Returns the value of trace_dispatcher_input_events
, or the default value if trace_dispatcher_input_events
is unset.
Sourcepub fn trace_dispatcher_window_dispatch(&self) -> bool
pub fn trace_dispatcher_window_dispatch(&self) -> bool
Returns the value of trace_dispatcher_window_dispatch
, or the default value if trace_dispatcher_window_dispatch
is unset.
Trait Implementations§
Source§impl Clone for AndroidInputEventConfig
impl Clone for AndroidInputEventConfig
Source§fn clone(&self) -> AndroidInputEventConfig
fn clone(&self) -> AndroidInputEventConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AndroidInputEventConfig
impl Debug for AndroidInputEventConfig
Source§impl Default for AndroidInputEventConfig
impl Default for AndroidInputEventConfig
Source§impl Message for AndroidInputEventConfig
impl Message for AndroidInputEventConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.