DeviceFlashPreparer

public abstract class DeviceFlashPreparer
extends BaseTargetPreparer

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

İç içe yerleştirilmiş sınıflar

enum DeviceFlashPreparer.EncryptionOptions

Kullanıcı verisi resminin şifrelenmesini yönetmeye yönelik seçeneklerin listesi  

Herkese açık kurucular

DeviceFlashPreparer()

Herkese açık yöntemler

void setUp(TestInformation testInfo)

void setUserDataFlashOption(IDeviceFlasher.UserDataFlashOption flashOption)

userdata-flash seçeneğini ayarlama

void tearDown(TestInformation testInfo, Throwable e)

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 IDeviceFlasher oluşturun.

long getDeviceBootWaitTime()

Cihazın önyükleme bekleme süresini alır

IHostOptions getHostOptions()

Kullanılacak IHostOptions örneğini alır.

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 setSkipPostFlashFlavorCheck(boolean skipPostFlashFlavorCheck)

Herkese açık kurucular

DeviceFlashPreparer

public DeviceFlashPreparer ()

Herkese açık yöntemler

setUp

public void setUp (TestInformation testInfo)

Parametreler
testInfo TestInformation

Atışlar
BuildError
DeviceNotAvailableException
TargetSetupError

setUserDataFlashOption

public void setUserDataFlashOption (IDeviceFlasher.UserDataFlashOption flashOption)

userdata-flash seçeneğini ayarlama

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametreler
testInfo TestInformation

e Throwable

Atışlar
DeviceNotAvailableException

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
DeviceNotAvailableException
BuildError

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
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 bildirir

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

setSkipPostFlashFlavorCheck

protected void setSkipPostFlashFlavorCheck (boolean skipPostFlashFlavorCheck)

Parametreler
skipPostFlashFlavorCheck boolean