pub struct ShellTransition {Show 17 fields
pub id: Option<i32>,
pub create_time_ns: Option<i64>,
pub send_time_ns: Option<i64>,
pub dispatch_time_ns: Option<i64>,
pub merge_time_ns: Option<i64>,
pub merge_request_time_ns: Option<i64>,
pub shell_abort_time_ns: Option<i64>,
pub wm_abort_time_ns: Option<i64>,
pub finish_time_ns: Option<i64>,
pub start_transaction_id: Option<u64>,
pub finish_transaction_id: Option<u64>,
pub handler: Option<i32>,
pub type: Option<i32>,
pub targets: Vec<Target>,
pub merge_target: Option<i32>,
pub flags: Option<i32>,
pub starting_window_remove_time_ns: Option<i64>,
}
Expand description
ShellTransition messages record information about the shell transitions in the system. This is used to track the animations that are created and execute through the shell transition system.
Fields§
§id: Option<i32>
The unique identifier of the transition.
create_time_ns: Option<i64>
The time the transition was created on the WM side (using SystemClock.elapsedRealtimeNanos())
send_time_ns: Option<i64>
The time the transition was sent from the WM side to shell (using SystemClock.elapsedRealtimeNanos())
dispatch_time_ns: Option<i64>
The time the transition was dispatched by shell to execute (using SystemClock.elapsedRealtimeNanos())
merge_time_ns: Option<i64>
If the transition merge was accepted by the transition handler, this
contains the time the transition was merged into transition with id
merge_target
.
(using SystemClock.elapsedRealtimeNanos())
merge_request_time_ns: Option<i64>
The time shell proposed the transition should be merged to the transition
handler into transition with id merge_target
.
(using SystemClock.elapsedRealtimeNanos()).
shell_abort_time_ns: Option<i64>
If the transition was aborted on the shell side, this is the time that occurred. (using SystemClock.elapsedRealtimeNanos())
wm_abort_time_ns: Option<i64>
If the transition was aborted on the wm side, this is the time that occurred. (using SystemClock.elapsedRealtimeNanos())
finish_time_ns: Option<i64>
The time WM considers the transition to be complete. (using SystemClock.elapsedRealtimeNanos())
start_transaction_id: Option<u64>
The id of the transaction that WM proposed to use as the starting transaction. It contains all the layer changes required to setup the transition and should be executed right at the start of the transition by the transition handler.
finish_transaction_id: Option<u64>
The if of the transaction that WM proposed to use as the finish transaction. It contains all the layer changes required to set the final state of the transition.
handler: Option<i32>
The id of the handler that executed the transition. A HandlerMappings message in the trace will contain the mapping of id to a string representation of the handler.
type: Option<i32>
The transition type of this transition (e.g. TO_FRONT, OPEN, CLOSE).
targets: Vec<Target>
The list of targets that are part of this transition.
merge_target: Option<i32>
The id of the transition we have requested to merge or have merged this transition into.
flags: Option<i32>
The flags set on this transition.
starting_window_remove_time_ns: Option<i64>
The time the starting window was removed. Tracked because this can happen after the transition finishes, but the app may not yet be visible until the starting window is removed. So in a sense the transition is not finished until the starting window is removed. (b/284302118) (using SystemClock.elapsedRealtimeNanos())
Implementations§
Source§impl ShellTransition
impl ShellTransition
Sourcepub fn create_time_ns(&self) -> i64
pub fn create_time_ns(&self) -> i64
Returns the value of create_time_ns
, or the default value if create_time_ns
is unset.
Sourcepub fn send_time_ns(&self) -> i64
pub fn send_time_ns(&self) -> i64
Returns the value of send_time_ns
, or the default value if send_time_ns
is unset.
Sourcepub fn dispatch_time_ns(&self) -> i64
pub fn dispatch_time_ns(&self) -> i64
Returns the value of dispatch_time_ns
, or the default value if dispatch_time_ns
is unset.
Sourcepub fn merge_time_ns(&self) -> i64
pub fn merge_time_ns(&self) -> i64
Returns the value of merge_time_ns
, or the default value if merge_time_ns
is unset.
Sourcepub fn merge_request_time_ns(&self) -> i64
pub fn merge_request_time_ns(&self) -> i64
Returns the value of merge_request_time_ns
, or the default value if merge_request_time_ns
is unset.
Sourcepub fn shell_abort_time_ns(&self) -> i64
pub fn shell_abort_time_ns(&self) -> i64
Returns the value of shell_abort_time_ns
, or the default value if shell_abort_time_ns
is unset.
Sourcepub fn wm_abort_time_ns(&self) -> i64
pub fn wm_abort_time_ns(&self) -> i64
Returns the value of wm_abort_time_ns
, or the default value if wm_abort_time_ns
is unset.
Sourcepub fn finish_time_ns(&self) -> i64
pub fn finish_time_ns(&self) -> i64
Returns the value of finish_time_ns
, or the default value if finish_time_ns
is unset.
Sourcepub fn start_transaction_id(&self) -> u64
pub fn start_transaction_id(&self) -> u64
Returns the value of start_transaction_id
, or the default value if start_transaction_id
is unset.
Sourcepub fn finish_transaction_id(&self) -> u64
pub fn finish_transaction_id(&self) -> u64
Returns the value of finish_transaction_id
, or the default value if finish_transaction_id
is unset.
Sourcepub fn handler(&self) -> i32
pub fn handler(&self) -> i32
Returns the value of handler
, or the default value if handler
is unset.
Sourcepub fn merge_target(&self) -> i32
pub fn merge_target(&self) -> i32
Returns the value of merge_target
, or the default value if merge_target
is unset.
Sourcepub fn starting_window_remove_time_ns(&self) -> i64
pub fn starting_window_remove_time_ns(&self) -> i64
Returns the value of starting_window_remove_time_ns
, or the default value if starting_window_remove_time_ns
is unset.
Trait Implementations§
Source§impl Clone for ShellTransition
impl Clone for ShellTransition
Source§fn clone(&self) -> ShellTransition
fn clone(&self) -> ShellTransition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ShellTransition
impl Debug for ShellTransition
Source§impl Default for ShellTransition
impl Default for ShellTransition
Source§impl Message for ShellTransition
impl Message for ShellTransition
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
.