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 ()

パブリックメソッド

アビを取得

public IAbi getAbi ()

戻り値
IAbi

getPushSpecs

public final  getPushSpecs (ITestDevice device)

プッシュするファイルのリストを作成します。

パラメーター
device ITestDevice

戻り値

投げる
TargetSetupError

クリーンアップが有効です

public boolean isCleanUpEnabled ()

戻り値
boolean

レポート依存関係

public  reportDependencies ()

戻り値

相対ファイルパスの解決

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

IBuildInfoおよびテスト ケース ディレクトリを介して相対ファイル パスを解決します。

パラメーター
buildInfo IBuildInfo : ビルド アーティファクト情報

fileName String : 解決される相対ファイルパス

戻り値
Fileビルド情報ディレクトリまたはテスト ケース ディレクトリからのファイル

セットアビ

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

shouldRemountシステム

public boolean shouldRemountSystem ()

戻り値
boolean

ベンダーを再マウントする必要があります

public boolean shouldRemountVendor ()

戻り値
boolean

取り壊す

public void tearDown (TestInformation testInfo, 
                Throwable e)

パラメーター
testInfo TestInformation

e Throwable

投げる
DeviceNotAvailableException