@Implements(value=android.os.Build.class) public class ShadowBuild extends java.lang.Object
Constructor and Description |
---|
ShadowBuild() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
getRadioVersion() |
protected static java.lang.String |
getSerial() |
static void |
reset() |
static void |
setDevice(java.lang.String device)
Sets the value of the
Build.DEVICE field. |
static void |
setFingerprint(java.lang.String fingerprint)
Sets the value of the
Build.FINGERPRINT field. |
static void |
setId(java.lang.String id)
Sets the value of the
Build.ID field. |
static void |
setManufacturer(java.lang.String manufacturer)
Sets the value of the
Build.MANUFACTURER field. |
static void |
setModel(java.lang.String model)
Sets the value of the
Build.MODEL field. |
static void |
setRadioVersion(java.lang.String radioVersion)
Override return value from
Build.getRadioVersion() |
static void |
setSupported64BitAbis(java.lang.String[] supported64BitAbis)
Sets the value of the
Build.SUPPORTED_64_BIT_ABIS field. |
static void |
setTags(java.lang.String tags)
Sets the value of the
Build.TAGS field. |
static void |
setType(java.lang.String type)
Sets the value of the
Build.TYPE field. |
static void |
setVersionCodename(java.lang.String versionCodename)
Sets the value of the
Build.VERSION#CODENAME field. |
static void |
setVersionIncremental(java.lang.String versionIncremental)
Sets the value of the
Build.VERSION#INCREMENTAL field. |
static void |
setVersionRelease(java.lang.String release)
Sets the value of the
Build.VERSION#RELEASE field. |
public static void setDevice(java.lang.String device)
Sets the value of the Build.DEVICE
field.
It will be reset for the next test.
public static void setFingerprint(java.lang.String fingerprint)
Sets the value of the Build.FINGERPRINT
field.
It will be reset for the next test.
public static void setId(java.lang.String id)
Sets the value of the Build.ID
field.
It will be reset for the next test.
public static void setModel(java.lang.String model)
Sets the value of the Build.MODEL
field.
It will be reset for the next test.
public static void setManufacturer(java.lang.String manufacturer)
Sets the value of the Build.MANUFACTURER
field.
It will be reset for the next test.
public static void setVersionCodename(java.lang.String versionCodename)
Sets the value of the Build.VERSION#CODENAME
field.
It will be reset for the next test.
public static void setVersionIncremental(java.lang.String versionIncremental)
Sets the value of the Build.VERSION#INCREMENTAL
field.
It will be reset for the next test.
public static void setVersionRelease(java.lang.String release)
Sets the value of the Build.VERSION#RELEASE
field.
It will be reset for the next test.
public static void setTags(java.lang.String tags)
Sets the value of the Build.TAGS
field.
It will be reset for the next test.
public static void setType(java.lang.String type)
Sets the value of the Build.TYPE
field.
It will be reset for the next test.
public static void setSupported64BitAbis(java.lang.String[] supported64BitAbis)
Sets the value of the Build.SUPPORTED_64_BIT_ABIS
field. Available in Android L+.
It will be reset for the next test.
public static void setRadioVersion(java.lang.String radioVersion)
Override return value from Build.getRadioVersion()
radioVersion
- @Implementation protected static java.lang.String getRadioVersion()
@Implementation(minSdk=26) protected static java.lang.String getSerial()
@Resetter public static void reset()