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
-
getArn
-
withArn
-
setName
The device's display name.
- Parameters:
name- The device's display name.
-
getName
-
withName
-
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
-
setModel
The device's model name.
- Parameters:
model- The device's model name.
-
getModel
-
withModel
-
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
-
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
-
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
-
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
-
setImage
The device's image name.
- Parameters:
image- The device's image name.
-
getImage
-
withImage
-
setCarrier
The device's carrier.
- Parameters:
carrier- The device's carrier.
-
getCarrier
-
withCarrier
-
setRadio
-
getRadio
-
withRadio
-
toString
-
equals
-
hashCode
-
clone
-