DeviceActionUtil

public class DeviceActionUtil
extends Object

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


Cihaz eylemlerini yürütmek için bir Yardımcı Program sınıfı.

Özet

İç içe geçmiş sınıflar

class DeviceActionUtil.DeviceActionConfigError

Yapılandırma hatası istisnası.

Genel yöntemler

static DeviceActionUtil create (File deviceActionMainJar, File bundletoolJar)

Bir örnek oluşturur.

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

Bir aygıt eylemi komutunu yürütür.

void generateLogFile ( CommandResult result)

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

void saveToLogs ( DeviceActionUtil.Command cmd, ITestLogger testLogger)

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

Genel yöntemler

yaratmak

public static DeviceActionUtil create (File deviceActionMainJar, 
                File bundletoolJar)

Bir örnek oluşturur.

Parametreler
deviceActionMainJar File

bundletoolJar File

İadeler
DeviceActionUtil

Atar
DeviceActionUtil.DeviceActionConfigError

uygulamak

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

Bir aygıt eylemi komutunu yürütür.

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

deviceId String : cihazın.

actionArgs : command için eylem argümanları.

İadeler
CommandResult

CreateLogFile

public void generateLogFile (CommandResult result)

Ana bilgisayar 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