pub struct AndroidModel {Show 18 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,
pub lab_info: Option<LabInfo>,
pub access_denied_reasons: Vec<i32>,
}Expand description
A description of an Android device tests may be run on.
Fields§
§id: StringThe unique opaque id for this model. Use this for invoking the TestExecutionService.
name: StringThe human-readable marketing name for this device model. Examples: “Nexus 5”, “Galaxy S5”.
manufacturer: StringThe manufacturer of this device.
brand: StringThe company that this device is branded with. Example: “Google”, “Samsung”.
codename: StringThe name of the industrial design. This corresponds to android.os.Build.DEVICE.
form: i32Whether this device is virtual or physical.
form_factor: i32Whether this device is a phone, tablet, wearable, etc.
per_version_info: Vec<PerAndroidVersionInfo>Version-specific information of an Android model.
screen_x: i32Screen size in the horizontal (X) dimension measured in pixels.
screen_y: i32Screen size in the vertical (Y) dimension measured in pixels.
screen_density: i32Screen density in DPI. This corresponds to ro.sf.lcd_density
low_fps_video_recording: boolTrue 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: StringURL of a thumbnail image (photo) of the device.
lab_info: Option<LabInfo>Output only. Lab info of this device.
access_denied_reasons: Vec<i32>Reasons for access denial. This model is accessible if this list is empty, otherwise the model is viewable only.
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.
Sourcepub fn access_denied_reasons(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<AccessDeniedReason>>
pub fn access_denied_reasons( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<AccessDeniedReason>>
Returns an iterator which yields the valid enum values contained in access_denied_reasons.
Sourcepub fn push_access_denied_reasons(&mut self, value: AccessDeniedReason)
pub fn push_access_denied_reasons(&mut self, value: AccessDeniedReason)
Appends the provided enum value to access_denied_reasons.
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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