PushFilePreparer

public class PushFilePreparer
extends BaseTargetPreparer implements IAbiReceiver, IDiscoverDependencies, IInvocationContextReceiver

java.lang.Object
   ↳ 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

reportDependencies

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

setUp

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