Package org.robolectric.shadows
Class ShadowBuild
java.lang.Object
org.robolectric.shadows.ShadowBuild
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
protected static String
static void
reset()
static void
Sets the value of theBuild.BOARD
field.static void
Sets the value of theBuild.BRAND
field.static void
Sets the value of theBuild.DEVICE
field.static void
setFingerprint
(String fingerprint) Sets the value of theBuild.FINGERPRINT
field.static void
setHardware
(String hardware) Sets the value of theBuild.HARDWARE
field.static void
Sets the value of theBuild.ID
field.static void
setManufacturer
(String manufacturer) Sets the value of theBuild.MANUFACTURER
field.static void
Sets the value of theBuild.MODEL
field.static void
setProduct
(String product) Sets the value of theBuild.PRODUCT
field.static void
setRadioVersion
(String radioVersion) Override return value fromBuild.getRadioVersion()
static void
Override return value fromBuild.getSerial()
.static void
setSupported64BitAbis
(String[] supported64BitAbis) Sets the value of theBuild.SUPPORTED_64_BIT_ABIS
field.static void
Sets the value of theBuild.TAGS
field.static void
Sets the value of theBuild.TYPE
field.static void
setVersionCodename
(String versionCodename) Sets the value of theBuild.VERSION.CODENAME
field.static void
setVersionIncremental
(String versionIncremental) Sets the value of theBuild.VERSION.INCREMENTAL
field.static void
setVersionMediaPerformanceClass
(int performanceClass) Sets the value of theBuild.VERSION.MEDIA_PERFORMANCE_CLASS
field.static void
setVersionRelease
(String release) Sets the value of theBuild.VERSION.RELEASE
field.static void
setVersionSecurityPatch
(String securityPatch) Sets the value of theBuild.VERSION.SECURITY_PATCH
field.
-
Constructor Details
-
ShadowBuild
public ShadowBuild()
-
-
Method Details
-
setBoard
Sets the value of theBuild.BOARD
field.It will be reset for the next test.
-
setDevice
Sets the value of theBuild.DEVICE
field.It will be reset for the next test.
-
setFingerprint
Sets the value of theBuild.FINGERPRINT
field.It will be reset for the next test.
-
setId
Sets the value of theBuild.ID
field.It will be reset for the next test.
-
setProduct
Sets the value of theBuild.PRODUCT
field.It will be reset for the next test.
-
setModel
Sets the value of theBuild.MODEL
field.It will be reset for the next test.
-
setManufacturer
Sets the value of theBuild.MANUFACTURER
field.It will be reset for the next test.
-
setBrand
Sets the value of theBuild.BRAND
field.It will be reset for the next test.
-
setHardware
Sets the value of theBuild.HARDWARE
field.It will be reset for the next test.
-
setSerial
Override return value fromBuild.getSerial()
. -
setVersionCodename
Sets the value of theBuild.VERSION.CODENAME
field.It will be reset for the next test.
-
setVersionIncremental
Sets the value of theBuild.VERSION.INCREMENTAL
field.It will be reset for the next test.
-
setVersionMediaPerformanceClass
public static void setVersionMediaPerformanceClass(int performanceClass) Sets the value of theBuild.VERSION.MEDIA_PERFORMANCE_CLASS
field. Available in Android S+.It will be reset for the next test.
-
setVersionRelease
Sets the value of theBuild.VERSION.RELEASE
field.It will be reset for the next test.
-
setVersionSecurityPatch
Sets the value of theBuild.VERSION.SECURITY_PATCH
field. Available in Android M+.It will be reset for the next test.
-
setTags
Sets the value of theBuild.TAGS
field.It will be reset for the next test.
-
setType
Sets the value of theBuild.TYPE
field.It will be reset for the next test.
-
setSupported64BitAbis
Sets the value of theBuild.SUPPORTED_64_BIT_ABIS
field. Available in Android L+.It will be reset for the next test.
-
setRadioVersion
Override return value fromBuild.getRadioVersion()
- Parameters:
radioVersion
-
-
getRadioVersion
-
getSerial
-
reset
-