DeviceFlashPreparer
public
abstract
class
DeviceFlashPreparer
extends BaseTargetPreparer
implements
IConfigurationReceiver,
ITestLoggerReceiver
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.DeviceFlashPreparer | |
Fiziksel Android donanımında bir görüntünün yanıp sönmesini sağlayan ITargetPreparer.
Özet
Herkese açık kurucular | |
|---|---|
DeviceFlashPreparer()
|
|
Herkese açık yöntemler | |
|---|---|
void
|
addAllowedBranchForTransitionInIncremental(String branch)
|
void
|
addBranchTransitionInIncremental(String origin, String destination)
|
IBuildInfo
|
getBuild(TestInformation testInfo)
getBuildInfo işlevini sarmalayarak belirli senaryolarda geçersiz kılacak bir değişiklik yapalım. |
ITestLogger
|
getTestLogger()
|
boolean
|
isIncrementalFlashingEnabled()
|
boolean
|
isIncrementalFlashingForceDisabled()
|
void
|
setAllowCrossReleaseFlashing(boolean allowCrossReleaseFlashing)
|
void
|
setAllowUnzipBaseline(boolean allowUnzipBaseline)
|
void
|
setApplySnapshot(boolean applySnapshot)
|
void
|
setConfiguration(IConfiguration configuration)
Kullanımdaki |
void
|
setIgnoreHostOptions(boolean ignoreHostOptions)
|
void
|
setTestLogger(ITestLogger testLogger)
|
void
|
setUp(TestInformation testInfo)
|
void
|
setUpdateBootloaderFromUserspace(boolean updateBootloaderFromUserspace)
|
void
|
setUseIncrementalNewFlow(boolean useIncrementalNewFlow)
|
void
|
setUserDataFlashOption(IDeviceFlasher.UserDataFlashOption flashOption)
userdata-flash seçeneğini ayarlama |
void
|
setWipeAfterApplySnapshot(boolean wipeAfterApplySnapshot)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
void
|
useMerkleTreeComparison(boolean enableMerkleTreeComparison)
|
Korunan yöntemler | |
|---|---|
void
|
checkDeviceProductType(ITestDevice device, IDeviceBuildInfo deviceBuild)
Cihazın, derleme bilgilerine göre beklendiği gibi olduğundan emin olmak için önyüklemeden önce kontrol edilebilir. |
abstract
IDeviceFlasher
|
createFlasher(ITestDevice device)
Kullanmak için |
long
|
getDeviceBootWaitTime()
Cihazın önyükleme bekleme süresini alır |
IHostOptions
|
getHostOptions()
Kullanılacak |
void
|
reportFlashMetrics(String branch, String buildFlavor, String buildId, String serial, long queueTime, long flashingTime, CommandStatus flashingStatus)
Cihaz yanıp sönme zamanlama verilerini metrik arka ucuna bildirir |
void
|
setSkipPostFlashBuildIdCheck(boolean skipPostFlashBuildIdCheck)
|
void
|
setUseIncrementalFlashing(boolean incrementalFlashing)
|
Herkese açık kurucular
DeviceFlashPreparer
public DeviceFlashPreparer ()
Herkese açık yöntemler
addAllowedBranchForTransitionInIncremental
public void addAllowedBranchForTransitionInIncremental (String branch)
| Parametreler | |
|---|---|
branch |
String |
addBranchTransitionInIncremental
public void addBranchTransitionInIncremental (String origin,
String destination)| Parametreler | |
|---|---|
origin |
String |
destination |
String |
getBuild
public IBuildInfo getBuild (TestInformation testInfo)
getBuildInfo işlevini sarmalayarak belirli senaryolarda geçersiz kılacak bir değişiklik yapalım.
| Parametreler | |
|---|---|
testInfo |
TestInformation |
| İlerlemeler | |
|---|---|
IBuildInfo |
|
isIncrementalFlashingEnabled
public boolean isIncrementalFlashingEnabled ()
| İlerlemeler | |
|---|---|
boolean |
|
isIncrementalFlashingForceDisabled
public boolean isIncrementalFlashingForceDisabled ()
| İlerlemeler | |
|---|---|
boolean |
|
setAllowCrossReleaseFlashing
public void setAllowCrossReleaseFlashing (boolean allowCrossReleaseFlashing)
| Parametreler | |
|---|---|
allowCrossReleaseFlashing |
boolean |
setAllowUnzipBaseline
public void setAllowUnzipBaseline (boolean allowUnzipBaseline)
| Parametreler | |
|---|---|
allowUnzipBaseline |
boolean |
setApplySnapshot
public void setApplySnapshot (boolean applySnapshot)
| Parametreler | |
|---|---|
applySnapshot |
boolean |
setConfiguration
public void setConfiguration (IConfiguration configuration)
Kullanımdaki IConfiguration'ü enjekte eder.
| Parametreler | |
|---|---|
configuration |
IConfiguration |
setIgnoreHostOptions
public void setIgnoreHostOptions (boolean ignoreHostOptions)
| Parametreler | |
|---|---|
ignoreHostOptions |
boolean |
setTestLogger
public void setTestLogger (ITestLogger testLogger)
ITestLogger örneğini yerleştirir
| Parametreler | |
|---|---|
testLogger |
ITestLogger |
setUp
public void setUp (TestInformation testInfo)
| Parametreler | |
|---|---|
testInfo |
TestInformation |
| Atışlar | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
setUpdateBootloaderFromUserspace
public void setUpdateBootloaderFromUserspace (boolean updateBootloaderFromUserspace)
| Parametreler | |
|---|---|
updateBootloaderFromUserspace |
boolean |
setUseIncrementalNewFlow
public void setUseIncrementalNewFlow (boolean useIncrementalNewFlow)
| Parametreler | |
|---|---|
useIncrementalNewFlow |
boolean |
setUserDataFlashOption
public void setUserDataFlashOption (IDeviceFlasher.UserDataFlashOption flashOption)
userdata-flash seçeneğini ayarlama
setWipeAfterApplySnapshot
public void setWipeAfterApplySnapshot (boolean wipeAfterApplySnapshot)
| Parametreler | |
|---|---|
wipeAfterApplySnapshot |
boolean |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| Parametreler | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| Atışlar | |
|---|---|
DeviceNotAvailableException |
|
useMerkleTreeComparison
public void useMerkleTreeComparison (boolean enableMerkleTreeComparison)
| Parametreler | |
|---|---|
enableMerkleTreeComparison |
boolean |
Korunan yöntemler
checkDeviceProductType
protected void checkDeviceProductType (ITestDevice device, IDeviceBuildInfo deviceBuild)
Cihazın, derleme bilgilerine göre beklendiği gibi olduğundan emin olmak için önyüklemeden önce kontrol edilebilir.
| Parametreler | |
|---|---|
device |
ITestDevice: Yanacak ITestDevice. |
deviceBuild |
IDeviceBuildInfo: Yanıp sönen IDeviceBuildInfo. |
| Atışlar | |
|---|---|
|
com.android.tradefed.targetprep.BuildError |
|
com.android.tradefed.device.DeviceNotAvailableException |
BuildError |
|
DeviceNotAvailableException |
|
createFlasher
protected abstract IDeviceFlasher createFlasher (ITestDevice device)
Kullanmak için IDeviceFlasher oluşturun. Alt sınıflar geçersiz kılabilir
| Parametreler | |
|---|---|
device |
ITestDevice |
| İlerlemeler | |
|---|---|
IDeviceFlasher |
|
| Atışlar | |
|---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
|
getDeviceBootWaitTime
protected long getDeviceBootWaitTime ()
Cihazın önyükleme bekleme süresini alır
| İlerlemeler | |
|---|---|
long |
|
getHostOptions
protected IHostOptions getHostOptions ()
Kullanılacak IHostOptions örneğini alır.
Birim testi için kullanıma sunulur.
| İlerlemeler | |
|---|---|
IHostOptions |
|
reportFlashMetrics
protected void reportFlashMetrics (String branch,
String buildFlavor,
String buildId,
String serial,
long queueTime,
long flashingTime,
CommandStatus flashingStatus)Cihaz yanıp sönme zamanlama verilerini metrik arka ucuna raporlar
| Parametreler | |
|---|---|
branch |
String: cihaz derlemesinin oluşturulduğu dal |
buildFlavor |
String: cihaz derlemesinin derleme çeşidi |
buildId |
String: cihaz derlemesinin derleme numarası |
serial |
String: cihazın seri numarası |
queueTime |
long: Yanıp sönen sınırın kullanılabilir hale gelmesi için bekleme süresi |
flashingTime |
long: cihaz resmi zip'ini yükleme işleminde harcanan süre |
flashingStatus |
CommandStatus: yanıp sönme komutunun yürütme durumu |
setSkipPostFlashBuildIdCheck
protected void setSkipPostFlashBuildIdCheck (boolean skipPostFlashBuildIdCheck)
| Parametreler | |
|---|---|
skipPostFlashBuildIdCheck |
boolean |
setUseIncrementalFlashing
protected void setUseIncrementalFlashing (boolean incrementalFlashing)
| Parametreler | |
|---|---|
incrementalFlashing |
boolean |