2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
PushFilePreparer
public
class
PushFilePreparer
extends BaseTargetPreparer
implements
IAbiReceiver,
IDiscoverDependencies,
IInvocationContextReceiver
任意のホストパスから任意のデバイスパスに任意の数のファイルを push しようとする ITargetPreparer
。
新しいビルドのフラッシュ後、DeviceSetup の実行後(有効な場合)に実行する必要があります。
概要
パブリック コンストラクタ
PushFilePreparer
public PushFilePreparer ()
パブリック メソッド
getAbi
public IAbi getAbi ()
getPushSpecs
public final getPushSpecs (ITestDevice device)
push するファイルのリストを作成します。
isCleanUpEnabled
public boolean isCleanUpEnabled ()
reportDependencies
public reportDependencies ()
resolveRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo,
String fileName)
IBuildInfo
ディレクトリとテストケース ディレクトリを介して相対ファイルパスを解決します。
パラメータ |
buildInfo |
IBuildInfo : ビルド アーティファクト情報 |
fileName |
String : 解決する相対ファイルパス |
戻り値 |
File |
build info ディレクトリまたは test cases ディレクトリのファイル |
setAbi
public void setAbi (IAbi abi)
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
パラメータ |
invocationContext |
IInvocationContext |
public void setUp (TestInformation testInfo)
パラメータ |
testInfo |
TestInformation |
shouldAbortOnFailure
public boolean shouldAbortOnFailure ()
push の失敗時に中止するかどうか。
shouldRemountSystem
public boolean shouldRemountSystem ()
shouldRemountVendor
public boolean shouldRemountVendor ()
public void tearDown (TestInformation testInfo,
Throwable e)
パラメータ |
testInfo |
TestInformation |
e |
Throwable |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-03-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-03-26 UTC。"],[],[]]