PushFilePreparer

public class PushFilePreparer
extends BaseTargetPreparer implements IAbiReceiver , IInvocationContextReceiver , IDiscoverDependencies

java.lang.객체
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.PushFilePreparer


임의의 호스트 경로에서 임의의 장치 경로로 많은 수의 파일을 푸시하려고 시도하는 ITargetPreparer 입니다.

새 빌드가 플래시되고 DeviceSetup이 실행된 *후*에 수행해야 합니다(활성화된 경우).

요약

공개 생성자

PushFilePreparer ()

공개 방법

IAbi getAbi ()

final getPushSpecs ( ITestDevice device)

푸시할 파일 목록을 만듭니다.

boolean isCleanUpEnabled ()
reportDependencies ()
File resolveRelativeFilePath ( IBuildInfo buildInfo, String fileName)

IBuildInfo 및 테스트 사례 디렉터리를 통해 상대 파일 경로를 확인합니다.

void setAbi ( IAbi abi)

void setInvocationContext ( IInvocationContext invocationContext)

void setUp ( TestInformation testInfo)

boolean shouldAbortOnFailure ()

푸시 실패 시 중단할지 여부입니다.

boolean shouldRemountSystem ()
boolean shouldRemountVendor ()
void tearDown ( TestInformation testInfo, Throwable e)

공개 생성자

PushFilePreparer

public PushFilePreparer ()

공개 방법

getAbi

public IAbi getAbi ()

보고
IAbi

getPushSpecs

public final  getPushSpecs (ITestDevice device)

푸시할 파일 목록을 만듭니다.

매개변수
device ITestDevice

보고

던지기
TargetSetupError

isCleanUpEnabled

public boolean isCleanUpEnabled ()

보고
boolean

보고서 종속성

public  reportDependencies ()

보고

resolveRelativeFilePath

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

IBuildInfo 및 테스트 사례 디렉터리를 통해 상대 파일 경로를 확인합니다.

매개변수
buildInfo IBuildInfo : 빌드 아티팩트 정보

fileName String : 확인할 상대 파일 경로

보고
File 빌드 정보 또는 테스트 케이스 디렉토리의 파일

setAbi

public void setAbi (IAbi abi)

매개변수
abi IAbi

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

매개변수
invocationContext IInvocationContext

설정

public void setUp (TestInformation testInfo)

매개변수
testInfo TestInformation

던지기
BuildError
DeviceNotAvailableException
TargetSetupError

shouldAbortOnFailure

public boolean shouldAbortOnFailure ()

푸시 실패 시 중단할지 여부입니다.

보고
boolean

shouldRemountSystem

public boolean shouldRemountSystem ()

보고
boolean

shouldRemountVendor

public boolean shouldRemountVendor ()

보고
boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

매개변수
testInfo TestInformation

e Throwable

던지기
DeviceNotAvailableException