pub struct AndroidModel {Show 16 fields
pub brand: Option<String>,
pub codename: Option<String>,
pub form: Option<String>,
pub form_factor: Option<String>,
pub id: Option<String>,
pub low_fps_video_recording: Option<bool>,
pub manufacturer: Option<String>,
pub name: Option<String>,
pub per_version_info: Option<Vec<PerAndroidVersionInfo>>,
pub screen_density: Option<i32>,
pub screen_x: Option<i32>,
pub screen_y: Option<i32>,
pub supported_abis: Option<Vec<String>>,
pub supported_version_ids: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
pub thumbnail_url: Option<String>,
}
Expand description
A description of an Android device tests may be run on.
This type is not used in any activity, and only used as part of another schema.
Fields§
§brand: Option<String>
The company that this device is branded with. Example: “Google”, “Samsung”.
codename: Option<String>
The name of the industrial design. This corresponds to android.os.Build.DEVICE.
form: Option<String>
Whether this device is virtual or physical.
form_factor: Option<String>
Whether this device is a phone, tablet, wearable, etc.
id: Option<String>
The unique opaque id for this model. Use this for invoking the TestExecutionService.
low_fps_video_recording: Option<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.
manufacturer: Option<String>
The manufacturer of this device.
name: Option<String>
The human-readable marketing name for this device model. Examples: “Nexus 5”, “Galaxy S5”.
per_version_info: Option<Vec<PerAndroidVersionInfo>>
Version-specific information of an Android model.
screen_density: Option<i32>
Screen density in DPI. This corresponds to ro.sf.lcd_density
screen_x: Option<i32>
Screen size in the horizontal (X) dimension measured in pixels.
screen_y: Option<i32>
Screen size in the vertical (Y) dimension measured in pixels.
supported_abis: Option<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.
supported_version_ids: Option<Vec<String>>
The set of Android versions this device supports.
Tags for this dimension. Examples: “default”, “preview”, “deprecated”.
thumbnail_url: Option<String>
URL of a thumbnail image (photo) of the device.
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§fn default() -> AndroidModel
fn default() -> AndroidModel
Source§impl<'de> Deserialize<'de> for AndroidModel
impl<'de> Deserialize<'de> for AndroidModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for AndroidModel
impl Serialize for AndroidModel
impl Part 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more