Class ShadowBuild
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringprotected static Stringstatic voidreset()static voidSets the value of theBuild.BOARDfield.static voidSets the value of theBuild.BRANDfield.static voidsetDebuggable(Boolean isDebuggable) Sets the value of theBuild.IS_DEBUGGABLEfield.static voidSets the value of theBuild.DEVICEfield.static voidsetFingerprint(String fingerprint) Sets the value of theBuild.FINGERPRINTfield.static voidsetHardware(String hardware) Sets the value of theBuild.HARDWAREfield.static voidSets the value of theBuild.IDfield.static voidsetManufacturer(String manufacturer) Sets the value of theBuild.MANUFACTURERfield.static voidSets the value of theBuild.MODELfield.static voidSets the value of theBuild.ODM_SKUfield.static voidsetProduct(String product) Sets the value of theBuild.PRODUCTfield.static voidsetRadioVersion(String radioVersion) Override return value fromBuild.getRadioVersion()static voidOverride return value fromBuild.getSerial().static voidSets the value of theBuild.SKUfield.static voidsetSupported32BitAbis(String[] supported32BitAbis) Sets the value of theBuild.SUPPORTED_32_BIT_ABISfield.static voidsetSupported64BitAbis(String[] supported64BitAbis) Sets the value of theBuild.SUPPORTED_64_BIT_ABISfield.static voidsetSupportedAbis(String[] supportedAbis) Sets the value of theBuild.SUPPORTED_ABISfield.static voidsetSystemOnChipManufacturer(String systemOnChipManufacturer) Sets the value of theBuild.SOC_MANUFACTURERfield.static voidsetSystemOnChipModel(String systemOnChipModel) Sets the value of theBuild.SOC_MODELfield.static voidSets the value of theBuild.TAGSfield.static voidSets the value of theBuild.TYPEfield.static voidsetVersionCodename(String versionCodename) Sets the value of theBuild.VERSION.CODENAMEfield.static voidsetVersionIncremental(String versionIncremental) Sets the value of theBuild.VERSION.INCREMENTALfield.static voidsetVersionMediaPerformanceClass(int performanceClass) Sets the value of theBuild.VERSION.MEDIA_PERFORMANCE_CLASSfield.static voidsetVersionRelease(String release) Sets the value of theBuild.VERSION.RELEASEfield.static voidsetVersionSecurityPatch(String securityPatch) Sets the value of theBuild.VERSION.SECURITY_PATCHfield.
-
Constructor Details
-
ShadowBuild
public ShadowBuild()
-
-
Method Details
-
setBoard
Sets the value of theBuild.BOARDfield.It will be reset for the next test.
-
setDevice
Sets the value of theBuild.DEVICEfield.It will be reset for the next test.
-
setFingerprint
Sets the value of theBuild.FINGERPRINTfield.It will be reset for the next test.
-
setId
Sets the value of theBuild.IDfield.It will be reset for the next test.
-
setProduct
Sets the value of theBuild.PRODUCTfield.It will be reset for the next test.
-
setDebuggable
Sets the value of theBuild.IS_DEBUGGABLEfield.It will be reset for the next test.
-
setModel
Sets the value of theBuild.MODELfield.It will be reset for the next test.
-
setManufacturer
Sets the value of theBuild.MANUFACTURERfield.It will be reset for the next test.
-
setBrand
Sets the value of theBuild.BRANDfield.It will be reset for the next test.
-
setHardware
Sets the value of theBuild.HARDWAREfield.It will be reset for the next test.
-
setSerial
Override return value fromBuild.getSerial(). -
setVersionCodename
Sets the value of theBuild.VERSION.CODENAMEfield.It will be reset for the next test.
-
setVersionIncremental
Sets the value of theBuild.VERSION.INCREMENTALfield.It will be reset for the next test.
-
setVersionMediaPerformanceClass
Sets the value of theBuild.VERSION.MEDIA_PERFORMANCE_CLASSfield. Available in Android S+.It will be reset for the next test.
-
setVersionRelease
Sets the value of theBuild.VERSION.RELEASEfield.It will be reset for the next test.
-
setVersionSecurityPatch
Sets the value of theBuild.VERSION.SECURITY_PATCHfield. Available in Android M+.It will be reset for the next test.
-
setTags
Sets the value of theBuild.TAGSfield.It will be reset for the next test.
-
setType
Sets the value of theBuild.TYPEfield.It will be reset for the next test.
-
setSupported32BitAbis
Sets the value of theBuild.SUPPORTED_32_BIT_ABISfield.It will be reset for the next test.
-
setSupported64BitAbis
Sets the value of theBuild.SUPPORTED_64_BIT_ABISfield.It will be reset for the next test.
-
setSupportedAbis
Sets the value of theBuild.SUPPORTED_ABISfield.It will be reset for the next test.
-
setRadioVersion
Override return value fromBuild.getRadioVersion()- Parameters:
radioVersion-
-
setSystemOnChipManufacturer
Sets the value of theBuild.SOC_MANUFACTURERfield.It will be reset for the next test.
Added in API level 31.
-
setSystemOnChipModel
Sets the value of theBuild.SOC_MODELfield.It will be reset for the next test.
Added in API level 31.
-
setOdmSku
Sets the value of theBuild.ODM_SKUfield.It will be reset for the next test.
Added in API level 31.
-
setSku
-
getRadioVersion
-
getSerial
-
reset
-