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)

欄位

appendBitness

public boolean appendBitness

bitness32

public boolean bitness32

bitness64

public boolean bitness64

清理

public boolean cleanup

公用建構函式

PocPusher

public PocPusher ()

公用方法

appendBitness

public PocPusher appendBitness (boolean append)

參數
append boolean

傳回
PocPusher

bothBitness

public PocPusher bothBitness ()

傳回
PocPusher

清理

public PocPusher cleanup (boolean cleanup)

參數
cleanup boolean

傳回
PocPusher

only32

public PocPusher only32 ()

傳回
PocPusher

only64

public PocPusher only64 ()

傳回
PocPusher

pushFile

public void pushFile (String testFile, 
                String remoteFile)

參數
testFile String

remoteFile String

擲回
FileNotFoundException
DeviceNotAvailableException

setAbi

public PocPusher setAbi (IAbi abi)

參數
abi IAbi

傳回
PocPusher

setBuild

public PocPusher setBuild (IBuildInfo buildInfo)

參數
buildInfo IBuildInfo

傳回
PocPusher

setDevice

public PocPusher setDevice (ITestDevice device)

參數
device ITestDevice

傳回
PocPusher

受保護的方法

完成

protected void finished (Description d)

參數
d Description

啟動中

protected void starting (Description d)

參數
d Description