Class Device
- All Implemented Interfaces:
Serializable,Cloneable
Represents a device type that an app is tested against.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetArn()The device's ARN.The device's carrier.getCpu()Information about the device's CPU.The device's form factor.The device's heap size, expressed in bytes.getImage()The device's image name.The device's manufacturer name.The device's total memory size, expressed in bytes.getModel()The device's model name.getName()The device's display name.getOs()The device's operating system type.The device's platform.getRadio()The device's radio.inthashCode()voidThe device's ARN.voidsetCarrier(String carrier) The device's carrier.voidInformation about the device's CPU.voidsetFormFactor(DeviceFormFactor formFactor) The device's form factor.voidsetFormFactor(String formFactor) The device's form factor.voidsetHeapSize(Long heapSize) The device's heap size, expressed in bytes.voidThe device's image name.voidsetManufacturer(String manufacturer) The device's manufacturer name.voidThe device's total memory size, expressed in bytes.voidThe device's model name.voidThe device's display name.voidThe device's operating system type.voidsetPlatform(DevicePlatform platform) The device's platform.voidsetPlatform(String platform) The device's platform.voidThe device's radio.voidsetResolution(Resolution resolution) toString()Returns a string representation of this object; useful for testing and debugging.The device's ARN.withCarrier(String carrier) The device's carrier.Information about the device's CPU.withFormFactor(DeviceFormFactor formFactor) The device's form factor.withFormFactor(String formFactor) The device's form factor.withHeapSize(Long heapSize) The device's heap size, expressed in bytes.The device's image name.withManufacturer(String manufacturer) The device's manufacturer name.withMemory(Long memory) The device's total memory size, expressed in bytes.The device's model name.The device's display name.The device's operating system type.withPlatform(DevicePlatform platform) The device's platform.withPlatform(String platform) The device's platform.The device's radio.withResolution(Resolution resolution)
-
Constructor Details
-
Device
public Device()
-
-
Method Details
-
setArn
The device's ARN.
- Parameters:
arn- The device's ARN.
-
getArn
The device's ARN.
- Returns:
- The device's ARN.
-
withArn
The device's ARN.
- Parameters:
arn- The device's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The device's display name.
- Parameters:
name- The device's display name.
-
getName
The device's display name.
- Returns:
- The device's display name.
-
withName
The device's display name.
- Parameters:
name- The device's display name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setManufacturer
The device's manufacturer name.
- Parameters:
manufacturer- The device's manufacturer name.
-
getManufacturer
The device's manufacturer name.
- Returns:
- The device's manufacturer name.
-
withManufacturer
The device's manufacturer name.
- Parameters:
manufacturer- The device's manufacturer name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setModel
The device's model name.
- Parameters:
model- The device's model name.
-
getModel
The device's model name.
- Returns:
- The device's model name.
-
withModel
The device's model name.
- Parameters:
model- The device's model name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFormFactor
The device's form factor.
Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
- Parameters:
formFactor- The device's form factor.Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
-
- See Also:
-
-
getFormFactor
The device's form factor.
Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
- Returns:
- The device's form factor.
Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
-
- See Also:
-
-
withFormFactor
The device's form factor.
Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
- Parameters:
formFactor- The device's form factor.Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setFormFactor
The device's form factor.
Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
- Parameters:
formFactor- The device's form factor.Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
-
- See Also:
-
-
withFormFactor
The device's form factor.
Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
- Parameters:
formFactor- The device's form factor.Allowed values include:
-
PHONE: The phone form factor.
-
TABLET: The tablet form factor.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setPlatform
The device's platform.
Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
- Parameters:
platform- The device's platform.Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
-
- See Also:
-
-
getPlatform
The device's platform.
Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
- Returns:
- The device's platform.
Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
-
- See Also:
-
-
withPlatform
The device's platform.
Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
- Parameters:
platform- The device's platform.Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setPlatform
The device's platform.
Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
- Parameters:
platform- The device's platform.Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
-
- See Also:
-
-
withPlatform
The device's platform.
Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
- Parameters:
platform- The device's platform.Allowed values include:
-
ANDROID: The Android platform.
-
IOS: The iOS platform.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setOs
The device's operating system type.
- Parameters:
os- The device's operating system type.
-
getOs
The device's operating system type.
- Returns:
- The device's operating system type.
-
withOs
The device's operating system type.
- Parameters:
os- The device's operating system type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCpu
Information about the device's CPU.
- Parameters:
cpu- Information about the device's CPU.
-
getCpu
Information about the device's CPU.
- Returns:
- Information about the device's CPU.
-
withCpu
Information about the device's CPU.
- Parameters:
cpu- Information about the device's CPU.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResolution
- Parameters:
resolution-
-
getResolution
- Returns:
-
withResolution
- Parameters:
resolution-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHeapSize
The device's heap size, expressed in bytes.
- Parameters:
heapSize- The device's heap size, expressed in bytes.
-
getHeapSize
The device's heap size, expressed in bytes.
- Returns:
- The device's heap size, expressed in bytes.
-
withHeapSize
The device's heap size, expressed in bytes.
- Parameters:
heapSize- The device's heap size, expressed in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMemory
The device's total memory size, expressed in bytes.
- Parameters:
memory- The device's total memory size, expressed in bytes.
-
getMemory
The device's total memory size, expressed in bytes.
- Returns:
- The device's total memory size, expressed in bytes.
-
withMemory
The device's total memory size, expressed in bytes.
- Parameters:
memory- The device's total memory size, expressed in bytes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setImage
The device's image name.
- Parameters:
image- The device's image name.
-
getImage
The device's image name.
- Returns:
- The device's image name.
-
withImage
The device's image name.
- Parameters:
image- The device's image name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCarrier
The device's carrier.
- Parameters:
carrier- The device's carrier.
-
getCarrier
The device's carrier.
- Returns:
- The device's carrier.
-
withCarrier
The device's carrier.
- Parameters:
carrier- The device's carrier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRadio
The device's radio.
- Parameters:
radio- The device's radio.
-
getRadio
The device's radio.
- Returns:
- The device's radio.
-
withRadio
The device's radio.
- Parameters:
radio- The device's radio.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-