Class: Google::Apis::TestingV1::AndroidModel

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/testing_v1/classes.rb,
generated/google/apis/testing_v1/representations.rb,
generated/google/apis/testing_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AndroidModel

Returns a new instance of AndroidModel.



371
372
373
# File 'generated/google/apis/testing_v1/classes.rb', line 371

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#brandString

The company that this device is branded with. Example: "Google", "Samsung". Corresponds to the JSON property brand

Returns:

  • (String)


291
292
293
# File 'generated/google/apis/testing_v1/classes.rb', line 291

def brand
  @brand
end

#codenameString

The name of the industrial design. This corresponds to android.os.Build.DEVICE. Corresponds to the JSON property codename

Returns:

  • (String)


297
298
299
# File 'generated/google/apis/testing_v1/classes.rb', line 297

def codename
  @codename
end

#formString

Whether this device is virtual or physical. Corresponds to the JSON property form

Returns:

  • (String)


302
303
304
# File 'generated/google/apis/testing_v1/classes.rb', line 302

def form
  @form
end

#form_factorString

Whether this device is a phone, tablet, wearable, etc. Corresponds to the JSON property formFactor

Returns:

  • (String)


307
308
309
# File 'generated/google/apis/testing_v1/classes.rb', line 307

def form_factor
  @form_factor
end

#idString

The unique opaque id for this model. Use this for invoking the TestExecutionService. Corresponds to the JSON property id

Returns:

  • (String)


313
314
315
# File 'generated/google/apis/testing_v1/classes.rb', line 313

def id
  @id
end

#low_fps_video_recordingBoolean Also known as: low_fps_video_recording?

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

Returns:

  • (Boolean)


319
320
321
# File 'generated/google/apis/testing_v1/classes.rb', line 319

def low_fps_video_recording
  @low_fps_video_recording
end

#manufacturerString

The manufacturer of this device. Corresponds to the JSON property manufacturer

Returns:

  • (String)


325
326
327
# File 'generated/google/apis/testing_v1/classes.rb', line 325

def manufacturer
  @manufacturer
end

#nameString

The human-readable marketing name for this device model. Examples: "Nexus 5", "Galaxy S5". Corresponds to the JSON property name

Returns:

  • (String)


331
332
333
# File 'generated/google/apis/testing_v1/classes.rb', line 331

def name
  @name
end

#screen_densityFixnum

Screen density in DPI. This corresponds to ro.sf.lcd_density Corresponds to the JSON property screenDensity

Returns:

  • (Fixnum)


337
338
339
# File 'generated/google/apis/testing_v1/classes.rb', line 337

def screen_density
  @screen_density
end

#screen_xFixnum

Screen size in the horizontal (X) dimension measured in pixels. Corresponds to the JSON property screenX

Returns:

  • (Fixnum)


342
343
344
# File 'generated/google/apis/testing_v1/classes.rb', line 342

def screen_x
  @screen_x
end

#screen_yFixnum

Screen size in the vertical (Y) dimension measured in pixels. Corresponds to the JSON property screenY

Returns:

  • (Fixnum)


347
348
349
# File 'generated/google/apis/testing_v1/classes.rb', line 347

def screen_y
  @screen_y
end

#supported_abisArray<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. Corresponds to the JSON property supportedAbis

Returns:

  • (Array<String>)


358
359
360
# File 'generated/google/apis/testing_v1/classes.rb', line 358

def supported_abis
  @supported_abis
end

#supported_version_idsArray<String>

The set of Android versions this device supports. Corresponds to the JSON property supportedVersionIds

Returns:

  • (Array<String>)


363
364
365
# File 'generated/google/apis/testing_v1/classes.rb', line 363

def supported_version_ids
  @supported_version_ids
end

#tagsArray<String>

Tags for this dimension. Examples: "default", "preview", "deprecated". Corresponds to the JSON property tags

Returns:

  • (Array<String>)


369
370
371
# File 'generated/google/apis/testing_v1/classes.rb', line 369

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
# File 'generated/google/apis/testing_v1/classes.rb', line 376

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)
end