2026 年より、トランク安定版開発モデルに沿ってエコシステムのプラットフォームの安定性を確保するため、第 2 四半期と第 4 四半期に AOSP にソースコードを公開します。AOSP のビルドと投稿には、android-latest-release を使用します。android-latest-release マニフェスト ブランチは、常に AOSP にプッシュされた最新のリリースを参照します。詳細については、AOSP の変更点をご覧ください。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
MoblyBinaryHostTest
public
class
MoblyBinaryHostTest
extends Object
implements
IBuildReceiver,
IDeviceTest,
IRemoteTest,
IShardableTest,
ITestFilterReceiver
| java.lang.Object
|
| ↳ |
com.android.tradefed.testtype.mobly.MoblyBinaryHostTest
|
Android ビルドシステム(Soong)から mobly python バイナリ ファイルを実行するためのホストテスト
概要
保護されたメソッド |
String[]
|
buildCommandLineArray(String filePath, String configPath, List<String> tests)
|
String[]
|
buildCommandLineArray(String filePath, String configPath)
|
String[]
|
buildCommandLineForListTests(String filePath)
|
Optional<Pair<List<String>, List<String>>>
|
filterTests(String[] testListLines, String runName, ITestInvocationListener listener)
|
MoblyArtifactReporter
|
getArtifactReporter()
|
String
|
getLogDirAbsolutePath()
|
File
|
getLogDirFile()
|
boolean
|
processYamlTestResults(InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)
Mobly テスト結果を解析し、結果をレポートします。
|
void
|
updateConfigFile(InputStream configInputStream, Writer writer)
|
パブリック コンストラクタ
MoblyBinaryHostTest
public MoblyBinaryHostTest ()
パブリック メソッド
addAllExcludeFilters
public void addAllExcludeFilters (Set<String> filters)
除外するテストのフィルタの Set を追加します。
addAllIncludeFilters
public void addAllIncludeFilters (Set<String> filters)
テストに含めるフィルタの Set を追加します。
addExcludeFilter
public void addExcludeFilter (String filter)
除外するテストのフィルタを追加します。
addIncludeFilter
public void addIncludeFilter (String filter)
含めるテストのフィルタを追加します。
clearExcludeFilters
public void clearExcludeFilters ()
現在トラッキングされている除外フィルタをすべて削除します。
clearIncludeFilters
public void clearIncludeFilters ()
現在トラッキングされているすべての除外フィルタを削除します。
getDevice
public ITestDevice getDevice ()
テスト対象デバイスを取得します。
getExcludeFilters
public Set<String> getExcludeFilters ()
除外フィルタの現在の Set を返します。
getIncludeFilters
public Set<String> getIncludeFilters ()
インクルード フィルタの現在の Set を返します。
setBuild
public void setBuild (IBuildInfo buildInfo)
| パラメータ |
buildInfo |
IBuildInfo |
setDevice
public void setDevice (ITestDevice device)
テスト対象デバイスを挿入します。
split
public Collection<IRemoteTest> split (int shardCountHint)
実行しようとした shardCount も提供する split() の代替バージョン。これは、テストランナーが任意に決定できない場合に便利です。
| パラメータ |
shardCountHint |
int: 試行されたシャード数。 |
| 戻り値 |
Collection<IRemoteTest> |
個別に実行されるサブテストのコレクション。テストが現在シャード可能でない場合は null |
保護されたメソッド
buildCommandLineArray
protected String[] buildCommandLineArray (String filePath,
String configPath,
List<String> tests)
| パラメータ |
filePath |
String |
configPath |
String |
tests |
List |
buildCommandLineArray
protected String[] buildCommandLineArray (String filePath,
String configPath)
| パラメータ |
filePath |
String |
configPath |
String |
buildCommandLineForListTests
protected String[] buildCommandLineForListTests (String filePath)
filterTests
protected Optional<Pair<List<String>, List<String>>> filterTests (String[] testListLines,
String runName,
ITestInvocationListener listener)
| パラメータ |
testListLines |
String |
runName |
String |
listener |
ITestInvocationListener |
| 戻り値 |
Optional<Pair<List<String>, List<String>>> |
|
getLogDirAbsolutePath
protected String getLogDirAbsolutePath ()
getLogDirFile
protected File getLogDirFile ()
protected boolean processYamlTestResults (InputStream inputStream,
MoblyYamlResultParser parser,
ITestInvocationListener listener,
String runName)
Mobly テスト結果を解析し、結果レポートを作成します。
| パラメータ |
inputStream |
InputStream: Mobly テスト結果ファイルを読み取る InputStream オブジェクト。 |
parser |
MoblyYamlResultParser: Mobly テスト結果を処理する MoblyYamlResultParser オブジェクト。 |
listener |
ITestInvocationListener: さまざまなレポートを行う ITestInvocationListener インスタンス。 |
runName |
String: str。Mobly テストバイナリ実行の名前。 |
protected void updateConfigFile (InputStream configInputStream,
Writer writer)
| パラメータ |
configInputStream |
InputStream |
writer |
Writer |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2026-06-22 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"]],["最終更新日 2026-06-22 UTC。"],[],[]]