2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
Android CTS と統合する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Android CTS のリリース パッケージ(Android の互換性のダウンロードから取得可能です)には、Khronos 適合性テストが含まれ、これらのテストのサブセット(mustpass
リスト)に合格することが必要となります。ターゲット API または拡張機能をサポートしていないデバイスの場合、テストはスキップされ、合格として報告されます。
mustpass
のリストには、OpenGL ES 2.0 から OpenGL ES 3.2 までと、Vulkan 1.1 が含まれています。mustpass
ファイルは、Khronos 適合性テストの android/cts
ディレクトリにあります。これらのテストは、cts-tradefed
ユーティリティを介して次のコマンドで実行できます。
cts-tradefed run cts --plan CTS-DEQP
CTS なしでの実行を複製する
CTS の実行を複製するには、CTS パッケージの deqp APK をインストールし、次のコマンドを使用します。
adb -d shell am start -n com.drawelements.deqp/android.app.NativeActivity -e \
cmdLine "deqp --deqp-case=dEQP-GLES3.some_group.* --deqp-gl-config-name=rgba8888d24s8 --deqp-log-filename=/sdcard/dEQP-Log.qpa
重要なのは、24 ビットの深度バッファと 8 ビットのステンシル バッファで RGBA 8888 の画面上サーフェスでテストを実行することを要求する --deqp-gl-config-name=rgba8888d24s8
引数です。必ず --deqp-case
引数を使用して、目的のテストを設定してください。
CTS 結果のマッピング
Android CTS では、テストケースは「合格」、「不合格」、「deqp」の 3 つの状態のいずれかになります(deqp にはさらに多くの結果コードがあります)。CTS は、Khronos 適合性テストの結果コードを自動的に CTS の結果にマッピングします。
- CTS の合格には、
Pass
、NotSupported
、QualityWarning
、CompatibilityWarning
などが含まれます。
- CTS の不合格には、
Fail
、ResourceError
、Crash
、Timeout
、InternalError
などが含まれます。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 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-07-27 UTC。"],[],[],null,["# Integrate with Android CTS\n\nAndroid CTS release packages (available from\n[Android Compatibility\nDownloads](/docs/compatibility/cts/downloads)) include [Khronos Conformance Tests](https://github.com/khronosgroup/vk-gl-cts) and require a subset of these\ntests (known as the `mustpass` list), to pass. For devices that do\nnot support a target API or extension, tests are skipped and reported as\npassing.\n\nThe `mustpass` list includes coverage for OpenGL ES 2.0 through\nOpenGL ES 3.2 and Vulkan 1.1. `mustpass`\nfiles can be found under the `android/cts` directory in the Khronos\nConformance Tests. You can run these tests through the `cts-tradefed`\nutility with the following command: \n\n```\ncts-tradefed run cts --plan CTS-DEQP\n```\n\nDuplicate runs without CTS\n--------------------------\n\nTo replicate the CTS run, install the deqp APK of the CTS package and use the\nfollowing command: \n\n```\nadb -d shell am start -n com.drawelements.deqp/android.app.NativeActivity -e \\\ncmdLine \"deqp --deqp-case=dEQP-GLES3.some_group.* --deqp-gl-config-name=rgba8888d24s8 --deqp-log-filename=/sdcard/dEQP-Log.qpa\n```\n\nThe important part is the `--deqp-gl-config-name=rgba8888d24s8`\nargument, which requests the tests be run on an RGBA 8888 on-screen surface\nwith a 24-bit depth buffer and an 8-bit stencil buffer. Remember to set\nthe desired tests using the `--deqp-case` argument.\n\nCTS results mapping\n-------------------\n\nIn the Android CTS, a test case can end up in one of three states: passed,\nfailed, or not executed (the deqp has more result codes available). CTS\nautomatically maps Khronos Conformance Test result codes to CTS results:\n\n- A CTS pass can include `Pass`, `NotSupported`, `QualityWarning`, and `CompatibilityWarning`.\n- A CTS failure can include `Fail`, `ResourceError`, `Crash`, `Timeout`, and `InternalError`."]]