pub struct ExpectedSurfaceFrameStart {
pub cookie: Option<i64>,
pub token: Option<i64>,
pub display_frame_token: Option<i64>,
pub pid: Option<i32>,
pub layer_name: Option<String>,
}
Expand description
Indicates the start of expected timeline slice for SurfaceFrames.
Fields§
Cookie used to correlate between the start and end messages of the same frame. Since all values except the ts are same for start and end, cookie helps in preventing redundant data transmission. The same cookie is used only by start and end messages of a single frame and is otherwise unique.
token: Option<i64>
Token received by the app for its work. Can be shared between multiple layers of the same app (example: pip mode).
display_frame_token: Option<i64>
The corresponding DisplayFrame token is required to link the App’s work with SurfaceFlinger’s work. Many SurfaceFrames can be mapped to a single DisplayFrame. this.display_frame_token = DisplayFrame.token
pid: Option<i32>
Pid of the app. Used in creating the timeline tracks (and slices) inside the respective process track group.
layer_name: Option<String>
Implementations§
Source§impl ExpectedSurfaceFrameStart
impl ExpectedSurfaceFrameStart
Returns the value of cookie
, or the default value if cookie
is unset.
Sourcepub fn display_frame_token(&self) -> i64
pub fn display_frame_token(&self) -> i64
Returns the value of display_frame_token
, or the default value if display_frame_token
is unset.
Sourcepub fn layer_name(&self) -> &str
pub fn layer_name(&self) -> &str
Returns the value of layer_name
, or the default value if layer_name
is unset.
Trait Implementations§
Source§impl Clone for ExpectedSurfaceFrameStart
impl Clone for ExpectedSurfaceFrameStart
Source§fn clone(&self) -> ExpectedSurfaceFrameStart
fn clone(&self) -> ExpectedSurfaceFrameStart
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExpectedSurfaceFrameStart
impl Debug for ExpectedSurfaceFrameStart
Source§impl Default for ExpectedSurfaceFrameStart
impl Default for ExpectedSurfaceFrameStart
Source§impl Message for ExpectedSurfaceFrameStart
impl Message for ExpectedSurfaceFrameStart
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
.