PushFilePreparer
public
class
PushFilePreparer
extends BaseTargetPreparer
implements
IAbiReceiver,
IDiscoverDependencies,
IInvocationContextReceiver
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.PushFilePreparer | |
任意のホストパスから任意のデバイスパスに任意の数のファイルを push しようとする ITargetPreparer。
新しいビルドのフラッシュ後、DeviceSetup の実行後(有効な場合)に実行する必要があります。
概要
パブリック コンストラクタ | |
|---|---|
PushFilePreparer()
|
|
パブリック メソッド | |
|---|---|
IAbi
|
getAbi()
|
final
|
getPushSpecs(ITestDevice device)
プッシュするファイルのリストを作成します。 |
boolean
|
isCleanUpEnabled()
|
|
reportDependencies()
|
File
|
resolveRelativeFilePath(IBuildInfo buildInfo, String fileName)
|
void
|
setAbi(IAbi abi)
|
void
|
setInvocationContext(IInvocationContext invocationContext)
|
void
|
setUp(TestInformation testInfo)
|
boolean
|
shouldAbortOnFailure()
push の失敗時に中止するかどうか。 |
boolean
|
shouldRemountSystem()
|
boolean
|
shouldRemountVendor()
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
パブリック コンストラクタ
PushFilePreparer
public PushFilePreparer ()
パブリック メソッド
getPushSpecs
public finalgetPushSpecs (ITestDevice device)
push するファイルのリストを作成します。
| パラメータ | |
|---|---|
device |
ITestDevice |
| 戻り値 | |
|---|---|
|
|
| 例外 | |
|---|---|
TargetSetupError |
|
isCleanUpEnabled
public boolean isCleanUpEnabled ()
| 戻り値 | |
|---|---|
boolean |
|
reportDependencies
publicreportDependencies ()
| 戻り値 | |
|---|---|
|
|
resolveRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo, String fileName)
IBuildInfo ディレクトリとテストケース ディレクトリを介して相対ファイルパスを解決します。
| パラメータ | |
|---|---|
buildInfo |
IBuildInfo: ビルド アーティファクト情報 |
fileName |
String: 解決する相対ファイルパス |
| 戻り値 | |
|---|---|
File |
build info ディレクトリまたは test cases ディレクトリのファイル |
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
| パラメータ | |
|---|---|
invocationContext |
IInvocationContext |
setUp
public void setUp (TestInformation testInfo)
| パラメータ | |
|---|---|
testInfo |
TestInformation |
| 例外 | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
shouldAbortOnFailure
public boolean shouldAbortOnFailure ()
push の失敗時に中止するかどうか。
| 戻り値 | |
|---|---|
boolean |
|
shouldRemountSystem
public boolean shouldRemountSystem ()
| 戻り値 | |
|---|---|
boolean |
|
shouldRemountVendor
public boolean shouldRemountVendor ()
| 戻り値 | |
|---|---|
boolean |
|
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| パラメータ | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| 例外 | |
|---|---|
DeviceNotAvailableException |
|