Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Tích hợp với Android CTS
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Các gói phát hành CTS của Android (có trong phần Tải xuống về khả năng tương thích với Android) bao gồm Kiểm thử tuân thủ Khronos và yêu cầu một tập hợp con của các kiểm thử này (được gọi là danh sách mustpass
) để vượt qua. Đối với các thiết bị không hỗ trợ API hoặc tiện ích mục tiêu, các bài kiểm thử sẽ bị bỏ qua và được báo cáo là đạt.
Danh sách mustpass
bao gồm phạm vi áp dụng cho OpenGL ES 2.0 thông qua OpenGL ES 3.2 và Vulkan 1.1. Bạn có thể tìm thấy các tệp mustpass
trong thư mục android/cts
trong Khronos Conformance Tests (Kiểm thử tuân thủ Khronos). Bạn có thể chạy các chương trình kiểm thử này thông qua tiện ích cts-tradefed
bằng lệnh sau:
cts-tradefed run cts --plan CTS-DEQP
Chạy trùng lặp mà không có CTS
Để sao chép quá trình chạy CTS, hãy cài đặt tệp APK deqp của gói CTS và sử dụng lệnh sau:
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
Phần quan trọng là đối số --deqp-gl-config-name=rgba8888d24s8
, yêu cầu chạy các chương trình kiểm thử trên một nền tảng RGBA 8888 trên màn hình với vùng đệm độ sâu 24 bit và vùng đệm mô hình 8 bit. Hãy nhớ đặt các bài kiểm thử mong muốn bằng đối số --deqp-case
.
Liên kết kết quả CTS
Trong Android CTS, một trường hợp kiểm thử có thể kết thúc ở một trong ba trạng thái: đã vượt qua, không vượt qua hoặc không được thực thi (deqp có nhiều mã kết quả hơn). CTS tự động liên kết mã kết quả Kiểm thử tuân thủ Khronos với kết quả CTS:
- Thẻ CTS có thể bao gồm
Pass
, NotSupported
, QualityWarning
và CompatibilityWarning
.
- Lỗi CTS có thể bao gồm
Fail
, ResourceError
, Crash
, Timeout
và InternalError
.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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`."]]