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
Map<String, File>
|
getPushSpecs(ITestDevice device)
プッシュするファイルのリストを作成します。 |
boolean
|
isCleanUpEnabled()
|
Set<String>
|
reportDependencies()
|
File
|
resolveRelativeFilePath(IBuildInfo buildInfo, String fileName)
|
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 ()
パブリック メソッド
getPushSpecs
public final Map<String, File> getPushSpecs (ITestDevice device)
プッシュするファイルのリストを作成します。
| パラメータ | |
|---|---|
device |
ITestDevice |
| 戻り値 | |
|---|---|
Map<String, File> |
|
| 例外 | |
|---|---|
TargetSetupError |
|
isCleanUpEnabled
public boolean isCleanUpEnabled ()
| 戻り値 | |
|---|---|
boolean |
|
reportDependencies
public Set<String> reportDependencies ()
| 戻り値 | |
|---|---|
Set<String> |
|
resolveRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo, String fileName)
IBuildInfo ディレクトリとテストケース ディレクトリを介して相対ファイルパスを解決します。
| パラメータ | |
|---|---|
buildInfo |
IBuildInfo: ビルド アーティファクト情報 |
fileName |
String: 解決する相対ファイルパス |
| 戻り値 | |
|---|---|
File |
ビルド情報またはテストケース ディレクトリのファイル |
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 |
|