DeviceActionUtil

public class DeviceActionUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.DeviceActionUtil


Cihaz işlemlerini yürüten bir yardımcı program sınıfı.

Özet

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

class DeviceActionUtil.DeviceActionConfigError

Yapılandırma hatası için istisna. 

Herkese açık yöntemler

static DeviceActionUtil create(File deviceActionMainJar, File bundletoolJar)

Örnek oluşturur.

CommandResult execute(DeviceActionUtil.Command command, String deviceId, actionArgs)

Cihaz işlemi komutunu yürütür.

static File findExecutableOnPath(String name)
void generateLogFile(CommandResult result)

Ana makine günlük dosyasını oluşturur.

void saveToLogs(DeviceActionUtil.Command cmd, ITestLogger testLogger)

Oluşturulan tüm dosyaları test günlüklerine kaydeder.

Herkese açık yöntemler

oluştur

public static DeviceActionUtil create (File deviceActionMainJar, 
                File bundletoolJar)

Örnek oluşturur.

Parametreler
deviceActionMainJar File

bundletoolJar File

İlerlemeler
DeviceActionUtil

Atışlar
DeviceActionUtil.DeviceActionConfigError

execute

public CommandResult execute (DeviceActionUtil.Command command, 
                String deviceId, 
                 actionArgs)

Cihaz işlemi komutunu yürütür.

Parametreler
command DeviceActionUtil.Command: çalıştırın.

deviceId String: cihazın.

actionArgs : command için işlem bağımsız değişkenleri.

İlerlemeler
CommandResult

findExecutableOnPath

public static File findExecutableOnPath (String name)

Parametreler
name String

İlerlemeler
File

Atışlar
DeviceActionUtil.DeviceActionConfigError

generateLogFile

public void generateLogFile (CommandResult result)

Ana makine günlük dosyasını oluşturur.

Parametreler
result CommandResult

saveToLogs

public void saveToLogs (DeviceActionUtil.Command cmd, 
                ITestLogger testLogger)

Oluşturulan tüm dosyaları test günlüklerine kaydeder.

Parametreler
cmd DeviceActionUtil.Command

testLogger ITestLogger