pub struct ActualSurfaceFrameStart {
pub cookie: Option<i64>,
pub token: Option<i64>,
pub display_frame_token: Option<i64>,
pub pid: Option<i32>,
pub layer_name: Option<String>,
pub present_type: Option<i32>,
pub on_time_finish: Option<bool>,
pub gpu_composition: Option<bool>,
pub jank_type: Option<i32>,
pub prediction_type: Option<i32>,
pub is_buffer: Option<bool>,
pub jank_severity_type: Option<i32>,
}
Expand description
Indicates the start of actual timeline slice for SurfaceFrames. Also includes the jank information.
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>
§present_type: Option<i32>
§on_time_finish: Option<bool>
§gpu_composition: Option<bool>
§jank_type: Option<i32>
A bitmask of JankType. More than one reason can be attributed to a janky frame.
prediction_type: Option<i32>
§is_buffer: Option<bool>
§jank_severity_type: Option<i32>
Implementations§
Source§impl ActualSurfaceFrameStart
impl ActualSurfaceFrameStart
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.
Sourcepub fn present_type(&self) -> PresentType
pub fn present_type(&self) -> PresentType
Returns the enum value of present_type
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_present_type(&mut self, value: PresentType)
pub fn set_present_type(&mut self, value: PresentType)
Sets present_type
to the provided enum value.
Sourcepub fn on_time_finish(&self) -> bool
pub fn on_time_finish(&self) -> bool
Returns the value of on_time_finish
, or the default value if on_time_finish
is unset.
Sourcepub fn gpu_composition(&self) -> bool
pub fn gpu_composition(&self) -> bool
Returns the value of gpu_composition
, or the default value if gpu_composition
is unset.
Sourcepub fn jank_type(&self) -> i32
pub fn jank_type(&self) -> i32
Returns the value of jank_type
, or the default value if jank_type
is unset.
Sourcepub fn prediction_type(&self) -> PredictionType
pub fn prediction_type(&self) -> PredictionType
Returns the enum value of prediction_type
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_prediction_type(&mut self, value: PredictionType)
pub fn set_prediction_type(&mut self, value: PredictionType)
Sets prediction_type
to the provided enum value.
Sourcepub fn is_buffer(&self) -> bool
pub fn is_buffer(&self) -> bool
Returns the value of is_buffer
, or the default value if is_buffer
is unset.
Sourcepub fn jank_severity_type(&self) -> JankSeverityType
pub fn jank_severity_type(&self) -> JankSeverityType
Returns the enum value of jank_severity_type
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_jank_severity_type(&mut self, value: JankSeverityType)
pub fn set_jank_severity_type(&mut self, value: JankSeverityType)
Sets jank_severity_type
to the provided enum value.
Trait Implementations§
Source§impl Clone for ActualSurfaceFrameStart
impl Clone for ActualSurfaceFrameStart
Source§fn clone(&self) -> ActualSurfaceFrameStart
fn clone(&self) -> ActualSurfaceFrameStart
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ActualSurfaceFrameStart
impl Debug for ActualSurfaceFrameStart
Source§impl Default for ActualSurfaceFrameStart
impl Default for ActualSurfaceFrameStart
Source§impl Message for ActualSurfaceFrameStart
impl Message for ActualSurfaceFrameStart
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
.