Class: Google::Apis::TestingV1::AndroidModel
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::AndroidModel
- 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
-
#brand ⇒ String
The company that this device is branded with.
-
#codename ⇒ String
The name of the industrial design.
-
#form ⇒ String
Whether this device is virtual or physical.
-
#id ⇒ String
The unique opaque id for this model.
-
#manufacturer ⇒ String
The manufacturer of this device.
-
#name ⇒ String
The human-readable marketing name for this device model.
-
#screen_density ⇒ Fixnum
Screen density in DPI.
-
#screen_x ⇒ Fixnum
Screen size in the horizontal (X) dimension measured in pixels.
-
#screen_y ⇒ Fixnum
Screen size in the vertical (Y) dimension measured in pixels.
-
#supported_abis ⇒ Array<String>
The list of supported ABIs for this device.
-
#supported_version_ids ⇒ Array<String>
The set of Android versions this device supports.
-
#tags ⇒ Array<String>
Tags for this dimension.
-
#video_recording_not_supported ⇒ Boolean
(also: #video_recording_not_supported?)
True if and only if tests with this model DO NOT have video output.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AndroidModel
constructor
A new instance of AndroidModel.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AndroidModel
Returns a new instance of AndroidModel
374 375 376 |
# File 'generated/google/apis/testing_v1/classes.rb', line 374 def initialize(**args) update!(**args) end |
Instance Attribute Details
#brand ⇒ String
The company that this device is branded with.
Example: "Google", "Samsung"
Corresponds to the JSON property brand
288 289 290 |
# File 'generated/google/apis/testing_v1/classes.rb', line 288 def brand @brand end |
#codename ⇒ String
The name of the industrial design.
This corresponds to android.os.Build.DEVICE
Corresponds to the JSON property codename
295 296 297 |
# File 'generated/google/apis/testing_v1/classes.rb', line 295 def codename @codename end |
#form ⇒ String
Whether this device is virtual or physical.
Corresponds to the JSON property form
301 302 303 |
# File 'generated/google/apis/testing_v1/classes.rb', line 301 def form @form end |
#id ⇒ String
The unique opaque id for this model.
Use this for invoking the TestExecutionService.
Corresponds to the JSON property id
308 309 310 |
# File 'generated/google/apis/testing_v1/classes.rb', line 308 def id @id end |
#manufacturer ⇒ String
The manufacturer of this device.
Corresponds to the JSON property manufacturer
314 315 316 |
# File 'generated/google/apis/testing_v1/classes.rb', line 314 def manufacturer @manufacturer end |
#name ⇒ String
The human-readable marketing name for this device model.
Examples: "Nexus 5", "Galaxy S5"
Corresponds to the JSON property name
321 322 323 |
# File 'generated/google/apis/testing_v1/classes.rb', line 321 def name @name end |
#screen_density ⇒ Fixnum
Screen density in DPI.
This corresponds to ro.sf.lcd_density
Corresponds to the JSON property screenDensity
328 329 330 |
# File 'generated/google/apis/testing_v1/classes.rb', line 328 def screen_density @screen_density end |
#screen_x ⇒ Fixnum
Screen size in the horizontal (X) dimension measured in pixels.
Corresponds to the JSON property screenX
334 335 336 |
# File 'generated/google/apis/testing_v1/classes.rb', line 334 def screen_x @screen_x end |
#screen_y ⇒ Fixnum
Screen size in the vertical (Y) dimension measured in pixels.
Corresponds to the JSON property screenY
340 341 342 |
# File 'generated/google/apis/testing_v1/classes.rb', line 340 def screen_y @screen_y end |
#supported_abis ⇒ Array<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
352 353 354 |
# File 'generated/google/apis/testing_v1/classes.rb', line 352 def supported_abis @supported_abis end |
#supported_version_ids ⇒ Array<String>
The set of Android versions this device supports.
Corresponds to the JSON property supportedVersionIds
358 359 360 |
# File 'generated/google/apis/testing_v1/classes.rb', line 358 def supported_version_ids @supported_version_ids end |
#tags ⇒ Array<String>
Tags for this dimension.
Examples: "default", "preview", "deprecated"
Corresponds to the JSON property tags
364 365 366 |
# File 'generated/google/apis/testing_v1/classes.rb', line 364 def @tags end |
#video_recording_not_supported ⇒ Boolean Also known as: video_recording_not_supported?
True if and only if tests with this model DO NOT have video output.
See also TestSpecification.disable_video_recording
Corresponds to the JSON property videoRecordingNotSupported
371 372 373 |
# File 'generated/google/apis/testing_v1/classes.rb', line 371 def video_recording_not_supported @video_recording_not_supported end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 |
# File 'generated/google/apis/testing_v1/classes.rb', line 379 def update!(**args) @brand = args[:brand] if args.key?(:brand) @codename = args[:codename] if args.key?(:codename) @form = args[:form] if args.key?(:form) @id = args[:id] if args.key?(:id) @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) @video_recording_not_supported = args[:video_recording_not_supported] if args.key?(:video_recording_not_supported) end |