Struct google_api_proto::google::devtools::testing::v1::AndroidModel
source · pub struct AndroidModel {Show 16 fields
pub id: String,
pub name: String,
pub manufacturer: String,
pub brand: String,
pub codename: String,
pub form: i32,
pub form_factor: i32,
pub per_version_info: Vec<PerAndroidVersionInfo>,
pub screen_x: i32,
pub screen_y: i32,
pub screen_density: i32,
pub low_fps_video_recording: bool,
pub supported_version_ids: Vec<String>,
pub supported_abis: Vec<String>,
pub tags: Vec<String>,
pub thumbnail_url: String,
}
Expand description
A description of an Android device tests may be run on.
Fields§
§id: String
The unique opaque id for this model. Use this for invoking the TestExecutionService.
name: String
The human-readable marketing name for this device model. Examples: “Nexus 5”, “Galaxy S5”.
manufacturer: String
The manufacturer of this device.
brand: String
The company that this device is branded with. Example: “Google”, “Samsung”.
codename: String
The name of the industrial design. This corresponds to android.os.Build.DEVICE.
form: i32
Whether this device is virtual or physical.
form_factor: i32
Whether this device is a phone, tablet, wearable, etc.
per_version_info: Vec<PerAndroidVersionInfo>
Version-specific information of an Android model.
screen_x: i32
Screen size in the horizontal (X) dimension measured in pixels.
screen_y: i32
Screen size in the vertical (Y) dimension measured in pixels.
screen_density: i32
Screen density in DPI. This corresponds to ro.sf.lcd_density
low_fps_video_recording: bool
True if and only if tests with this model are recorded by stitching together screenshots. See use_low_spec_video_recording in device config.
supported_version_ids: Vec<String>
The set of Android versions this device supports.
supported_abis: Vec<String>
The list of supported ABIs for this device. This corresponds to either android.os.Build.SUPPORTED_ABIS (for API level 21 and above) or android.os.Build.CPU_ABI/CPU_ABI2. The most preferred ABI is the first element in the list.
Elements are optionally prefixed by “version_id:” (where version_id is the id of an AndroidVersion), denoting an ABI that is supported only on a particular version.
Tags for this dimension. Examples: “default”, “preview”, “deprecated”.
thumbnail_url: String
URL of a thumbnail image (photo) of the device.
Implementations§
source§impl AndroidModel
impl AndroidModel
sourcepub fn form(&self) -> DeviceForm
pub fn form(&self) -> DeviceForm
Returns the enum value of form
, or the default if the field is set to an invalid enum value.
sourcepub fn set_form(&mut self, value: DeviceForm)
pub fn set_form(&mut self, value: DeviceForm)
Sets form
to the provided enum value.
sourcepub fn form_factor(&self) -> DeviceFormFactor
pub fn form_factor(&self) -> DeviceFormFactor
Returns the enum value of form_factor
, or the default if the field is set to an invalid enum value.
sourcepub fn set_form_factor(&mut self, value: DeviceFormFactor)
pub fn set_form_factor(&mut self, value: DeviceFormFactor)
Sets form_factor
to the provided enum value.
Trait Implementations§
source§impl Clone for AndroidModel
impl Clone for AndroidModel
source§fn clone(&self) -> AndroidModel
fn clone(&self) -> AndroidModel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AndroidModel
impl Debug for AndroidModel
source§impl Default for AndroidModel
impl Default for AndroidModel
source§impl Message for AndroidModel
impl Message for AndroidModel
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AndroidModel
impl PartialEq for AndroidModel
source§fn eq(&self, other: &AndroidModel) -> bool
fn eq(&self, other: &AndroidModel) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AndroidModel
Auto Trait Implementations§
impl Freeze for AndroidModel
impl RefUnwindSafe for AndroidModel
impl Send for AndroidModel
impl Sync for AndroidModel
impl Unpin for AndroidModel
impl UnwindSafe for AndroidModel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request