החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
שילוב עם Android CTS
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
חבילות הגרסה של Android CTS (זמינות ב-Android Compatibility Downloads) כוללות בדיקות תאימות של Khronos, וצריך לעבור קבוצת משנה של הבדיקות האלה (שנקראת רשימת mustpass
). במכשירים שלא תומכים ב-API או בתוסף היעד, הבדיקה מושמטת והיא תדווח כ'עברה'.
הרשימה mustpass
כוללת כיסוי ל-OpenGL ES 2.0 עד OpenGL ES 3.2 ול-Vulkan 1.1. קובצי mustpass
נמצאים בספרייה android/cts
במבחני התאימות של Khronos. אפשר להריץ את הבדיקות האלה באמצעות השירות cts-tradefed
באמצעות הפקודה הבאה:
cts-tradefed run cts --plan CTS-DEQP
הפעלות כפולות ללא CTS
כדי לשכפל את ההרצה של CTS, מתקינים את קובץ ה-APK של deqp מחבילת CTS ומשתמשים בפקודה הבאה:
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
החלק החשוב הוא הארגומנט --deqp-gl-config-name=rgba8888d24s8
, שמבקש להריץ את הבדיקות על משטח RGBA 8888 במסך עם מאגר עומק של 24 ביט ומאגר סטנסיל של 8 ביט. חשוב לזכור להגדיר את הבדיקות הרצויות באמצעות הארגומנט --deqp-case
.
מיפוי תוצאות CTS
ב-Android CTS, תרחיש בדיקה יכול להגיע לאחד משלושת המצבים הבאים: עבר, נכשל או לא בוצע (ב-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`."]]