DeviceActionUtil

public class DeviceActionUtil
extends Object

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


Cihaz işlemlerini yürütmek için kullanılan 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, List<String> 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

create

public static DeviceActionUtil create (File deviceActionMainJar, 
                File bundletoolJar)

Örnek oluşturur.

Parametreler
deviceActionMainJar File

bundletoolJar File

Döndürülenler
DeviceActionUtil

Verdiği hatalar
DeviceActionUtil.DeviceActionConfigError

execute

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

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

Parametreler
command DeviceActionUtil.Command: yürütmek için.

deviceId String: Cihazın

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

İadeler
CommandResult

findExecutableOnPath

public static File findExecutableOnPath (String name)

Parametreler
name String

Döndürülenler
File

Verdiği hatalar
DeviceActionUtil.DeviceActionConfigError

generateLogFile

public void generateLogFile (CommandResult result)

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

Parametreler
result CommandResult

Verdiği hatalar
IOException

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

Verdiği hatalar
IOException