class Google::Apis::TestingV1::AndroidModel

A description of an Android device tests may be run on.

Attributes

brand[RW]

The company that this device is branded with. Example: “Google”, “Samsung”. Corresponds to the JSON property `brand` @return [String]

codename[RW]

The name of the industrial design. This corresponds to android.os.Build.DEVICE. Corresponds to the JSON property `codename` @return [String]

form[RW]

Whether this device is virtual or physical. Corresponds to the JSON property `form` @return [String]

form_factor[RW]

Whether this device is a phone, tablet, wearable, etc. Corresponds to the JSON property `formFactor` @return [String]

id[RW]

The unique opaque id for this model. Use this for invoking the TestExecutionService. Corresponds to the JSON property `id` @return [String]

low_fps_video_recording[RW]

True if and only if tests with this model are recorded by stitching together screenshots. See use_low_spec_video_recording in device config. Corresponds to the JSON property `lowFpsVideoRecording` @return [Boolean]

low_fps_video_recording?[RW]

True if and only if tests with this model are recorded by stitching together screenshots. See use_low_spec_video_recording in device config. Corresponds to the JSON property `lowFpsVideoRecording` @return [Boolean]

manufacturer[RW]

The manufacturer of this device. Corresponds to the JSON property `manufacturer` @return [String]

name[RW]

The human-readable marketing name for this device model. Examples: “Nexus 5”, “ Galaxy S5”. Corresponds to the JSON property `name` @return [String]

screen_density[RW]

Screen density in DPI. This corresponds to ro.sf.lcd_density Corresponds to the JSON property `screenDensity` @return [Fixnum]

screen_x[RW]

Screen size in the horizontal (X) dimension measured in pixels. Corresponds to the JSON property `screenX` @return [Fixnum]

screen_y[RW]

Screen size in the vertical (Y) dimension measured in pixels. Corresponds to the JSON property `screenY` @return [Fixnum]

supported_abis[RW]

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. Corresponds to the JSON property `supportedAbis` @return [Array<String>]

supported_version_ids[RW]

The set of Android versions this device supports. Corresponds to the JSON property `supportedVersionIds` @return [Array<String>]

tags[RW]

Tags for this dimension. Examples: “default”, “preview”, “deprecated”. Corresponds to the JSON property `tags` @return [Array<String>]

thumbnail_url[RW]

URL of a thumbnail image (photo) of the device. e.g. lh3. googleusercontent.com/90WcauuJiCYABEl8U0lcZeuS5STUbf2yW… Corresponds to the JSON property `thumbnailUrl` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/testing_v1/classes.rb, line 360
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/testing_v1/classes.rb, line 365
def update!(**args)
  @brand = args[:brand] if args.key?(:brand)
  @codename = args[:codename] if args.key?(:codename)
  @form = args[:form] if args.key?(:form)
  @form_factor = args[:form_factor] if args.key?(:form_factor)
  @id = args[:id] if args.key?(:id)
  @low_fps_video_recording = args[:low_fps_video_recording] if args.key?(:low_fps_video_recording)
  @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
  @name = args[:name] if args.key?(:name)
  @screen_density = args[:screen_density] if args.key?(:screen_density)
  @screen_x = args[:screen_x] if args.key?(:screen_x)
  @screen_y = args[:screen_y] if args.key?(:screen_y)
  @supported_abis = args[:supported_abis] if args.key?(:supported_abis)
  @supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids)
  @tags = args[:tags] if args.key?(:tags)
  @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
end