Google is committed to advancing racial equity for Black communities. See how.
Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

HostGTest

public class HostGTest
extends GTestBase implements IAbiReceiver , IBuildReceiver

java.lang.Object
com.android.tradefed.testtype.GTestBase
com.android.tradefed.testtype.HostGTest


Tes yang menjalankan paket tes asli.

Ringkasan

Konstruktor publik

HostGTest ()

Metode publik

CommandResult executeHostCommand (String cmd, long timeoutMs)
CommandResult executeHostCommand (String cmd)
CommandResult executeHostGTestCommand (String cmd, long timeoutMs, IShellOutputReceiver receiver)
IAbi getAbi ()
String loadFilter (String binaryOnHost)

Tentukan metode filter get.

void run ( ITestInvocationListener listener)

void setAbi ( IAbi abi)
void setBuild ( IBuildInfo buildInfo)

Konstruktor publik

HostGTest

public HostGTest ()

Metode publik

executeHostCommand

public CommandResult executeHostCommand (String cmd, 
                long timeoutMs)

Parameter
cmd String : perintah yang ingin dieksekusi di host

timeoutMs long : timeout untuk perintah dalam milidetik

Kembali
CommandResult CommandResult of command

executeHostCommand

public CommandResult executeHostCommand (String cmd)

Parameter
cmd String : perintah yang ingin dieksekusi di host

Kembali
CommandResult CommandResult of command

mengeksekusiHostGTestCommand

public CommandResult executeHostGTestCommand (String cmd, 
                long timeoutMs, 
                IShellOutputReceiver receiver)

Parameter
cmd String : perintah yang ingin dieksekusi di host

timeoutMs long : timeout untuk perintah dalam milidetik

receiver IShellOutputReceiver : parser hasil

Kembali
CommandResult CommandResult of command

getAbi

public IAbi getAbi ()

Kembali
IAbi

loadFilter

public String loadFilter (String binaryOnHost)

Tentukan metode filter get.

Sub kelas harus menerapkan cara mendapatkan filter itu sendiri.

Parameter
binaryOnHost String : path lengkap file filter.

Kembali
String filter string.

Lari

public void run ( ITestInvocationListener listener)

Parameter
listener ITestInvocationListener

Melempar
DeviceNotAvailableException

setAbi

public void setAbi ( IAbi abi)

Parameter
abi IAbi

setBuild

public void setBuild ( IBuildInfo buildInfo)

Parameter
buildInfo IBuildInfo