PocPusher

public class PocPusher
extends TestWatcher

java.lang.Object
org.junit.rules.TestWatcher
com.android.sts.common.PocPusher


幫助將本機 PoC 可執行文件推送到設備的實用程序

概括

字段

public boolean appendBitness

public boolean bitness32

public boolean bitness64

public boolean cleanup

公共構造函數

PocPusher ()

公共方法

PocPusher appendBitness (boolean append)
PocPusher bothBitness ()
PocPusher cleanup (boolean cleanup)
PocPusher only32 ()
PocPusher only64 ()
void pushFile (String testFile, String remoteFile)
PocPusher setAbi (IAbi abi)
PocPusher setBuild (IBuildInfo buildInfo)
PocPusher setDevice (ITestDevice device)

受保護的方法

void finished (Description d)
void starting (Description d)

字段

追加位數

public boolean appendBitness

位數32

public boolean bitness32

bitness64

public boolean bitness64

清理

public boolean cleanup

公共構造函數

PocPusher

public PocPusher ()

公共方法

追加位數

public PocPusher appendBitness (boolean append)

參數
append boolean

退貨
PocPusher

雙位

public PocPusher bothBitness ()

退貨
PocPusher

清理

public PocPusher cleanup (boolean cleanup)

參數
cleanup boolean

退貨
PocPusher

只有32

public PocPusher only32 ()

退貨
PocPusher

只有64位

public PocPusher only64 ()

退貨
PocPusher

推送文件

public void pushFile (String testFile, 
                String remoteFile)

參數
testFile String

remoteFile String

投擲
FileNotFoundException
DeviceNotAvailableException

設置Abi

public PocPusher setAbi (IAbi abi)

參數
abi IAbi

退貨
PocPusher

設置構建

public PocPusher setBuild (IBuildInfo buildInfo)

參數
buildInfo IBuildInfo

退貨
PocPusher

設置設備

public PocPusher setDevice (ITestDevice device)

參數
device ITestDevice

退貨
PocPusher

受保護的方法

完成的

protected void finished (Description d)

參數
d Description

開始

protected void starting (Description d)

參數
d Description