Effective in 2026, to align with our trunk stable development model and ensure platform stability for the ecosystem, we will publish source code to AOSP in Q2 and Q4. For building and contributing to AOSP, use android-latest-release. The android-latest-release manifest branch will always reference the most recent release pushed to AOSP. For more information, see Changes to AOSP.
指標テスト
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
一般的に、指標テストは、Hardware Abstraction Layer(HAL)の実行や、低レベルのシステム サービスとの直接のやり取りに使用されます。継続的なテストサービスを活用するには、指標テストを google-benchmark フレームワークで構築する必要があります。
例
指標テスト モジュールの設定例については、bionic/benchmarks/bionic-benchmarks をご覧ください。
ステップの概要
- テスト モジュール構成ファイルでは、
BUILD_NATIVE_BENCHMARK ビルドルールを使用して、google-benchmark の依存関係が自動的に含まれるようにします。
テスト モジュールを make でビルドします。
make -j40 bionic-benchmarks
Trade Federation テストハーネスを使用して自動インストールと実行を行います。
make tradefed-all -j
tradefed.sh run template/local_min --template:map test=bionic-benchmarks
次のように手動でインストールして実行します。
生成されたテストバイナリをデバイスにプッシュします。
adb push ${OUT}/data/benchmarktest/bionic-benchmarks/bionic-benchmarks32 \
/data/benchmarktest/bionic-benchmarks/bionic-benchmarks32
デバイスでテストバイナリを起動してテストを実行します。
adb shell /data/benchmarktest/bionic-benchmarks/bionic-benchmarks32
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2026-06-18 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-18 UTC。"],[],[]]