החל משנת 2026, כדי להתאים את התהליך למודל הפיתוח היציב שלנו ולשמור על יציבות הפלטפורמה בסביבה העסקית, נפרסם קוד מקור ב-AOSP ברבעון השני וברבעון הרביעי. כדי ליצור תוספים ל-AOSP ולתרום לו, מומלץ להשתמש ב-android-latest-release במקום ב-aosp-main. ענף המניפסט android-latest-release תמיד יפנה לגרסה העדכנית ביותר שנדחפה ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
DeviceParameterizedRunner
public
class
DeviceParameterizedRunner
extends JUnitParamsRunner
implements
IAbiReceiver,
ISetOptionReceiver,
ITestInformationReceiver
| java.lang.Object
|
| ↳ |
org.junit.runner.Runner
|
| |
↳ |
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
|
| |
|
↳ |
org.junit.runners.BlockJUnit4ClassRunner
|
| |
|
|
↳ |
junitparams.JUnitParamsRunner
|
| |
|
|
|
↳ |
com.android.tradefed.testtype.junit4.DeviceParameterizedRunner
|
מפעיל פרמטרים בסגנון JUnit4 לבדיקות פרמטריות שמנוהלות בצד המארח.
ה-runner הזה מבוסס על JUnitParamsRunner ולא על Parameterized הנייטיב של JUnit4, אבל ה-runner הנייטיב עם הפרמטרים לא טוב במיוחד ולא מאפשר להריץ שיטה אחת.
סיכום
קונסטרוקטורים גלויים לכולם
DeviceParameterizedRunner
public DeviceParameterizedRunner (Class<?> klass)
| זריקות |
|
org.junit.runners.model.InitializationError |
InitializationError |
|
שיטות ציבוריות
getAbi
public IAbi getAbi ()
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
| פרמטרים |
testInformation |
TestInformation |
שיטות מוגנות
methodInvoker
protected Statement methodInvoker (FrameworkMethod method,
Object testObj)
| פרמטרים |
method |
FrameworkMethod |
testObj |
Object |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
| פרמטרים |
statement |
Statement |
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
| פרמטרים |
statement |
Statement |
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[]]