از 27 مارس 2025، توصیه می کنیم از android-latest-release
به جای aosp-main
برای ساختن و کمک به AOSP استفاده کنید. برای اطلاعات بیشتر، به تغییرات AOSP مراجعه کنید.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
SkipReason
public class SkipReason
extends Object
java.lang.object |
↳ | com.android.tradefed.result.skipped.SkipReason |
دلیل و ابرداده های آن را برای رد شدن از آزمون ارائه دهید.
خلاصه
سازندگان عمومی
SkipReason
public SkipReason (String message,
SkipReason.DemotionTrigger trigger)
پارامترها |
---|
message | String |
trigger | SkipReason.DemotionTrigger |
SkipReason
public SkipReason (String message,
SkipReason.DemotionTrigger trigger,
String bugId)
پارامترها |
---|
message | String |
trigger | SkipReason.DemotionTrigger |
bugId | String |
SkipReason
public SkipReason (String message,
String trigger)
پارامترها |
---|
message | String |
trigger | String |
SkipReason
public SkipReason (String message,
String trigger,
String bugId)
پارامترها |
---|
message | String |
trigger | String |
bugId | String |
روش های عمومی
getBugId
public String getBugId ()
شناسه اشکال مرتبط با وضعیت پرش را برمیگرداند. اختیاری.
getReason
public String getReason ()
دلیل مرتبط با وضعیت پرش را برمیگرداند.
getTrigger
public String getTrigger ()
ماشه مرتبط با وضعیت پرش را برمیگرداند.
toString
public String toString ()
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# SkipReason\n==========\n\n\n`\npublic\n\n\nclass\nSkipReason\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.result.skipped.SkipReason |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nProvide a reason and its metadata for skipping a test.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20com.android.tradefed.result.skipped.SkipReason.DemotionTrigger))`(String message, `[SkipReason.DemotionTrigger](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.DemotionTrigger.html)` trigger) ` |\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20com.android.tradefed.result.skipped.SkipReason.DemotionTrigger,%20java.lang.String))`(String message, `[SkipReason.DemotionTrigger](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.DemotionTrigger.html)` trigger, String bugId) ` |\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20java.lang.String))`(String message, String trigger) ` |\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20java.lang.String,%20java.lang.String))`(String message, String trigger, String bugId) ` |\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html) | ` `[fromString](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#fromString(java.lang.String))`(String skipReasonMessage) ` Parses [toString()](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#toString()) into a [SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html). |\n| ` String` | ` `[getBugId](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#getBugId())`() ` Returns the bug id associated with skip status. |\n| ` String` | ` `[getReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#getReason())`() ` Returns the reason associated with the skip status. |\n| ` String` | ` `[getTrigger](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#getTrigger())`() ` Returns the trigger associated with the skip status. |\n| ` String` | ` `[toString](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#toString())`() ` |\n\nPublic constructors\n-------------------\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n SkipReason.DemotionTrigger trigger)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-------------------------------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `SkipReason.DemotionTrigger` \u003cbr /\u003e |\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n SkipReason.DemotionTrigger trigger, \n String bugId)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-------------------------------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `SkipReason.DemotionTrigger` \u003cbr /\u003e |\n| `bugId` | `String` \u003cbr /\u003e |\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n String trigger)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `String` \u003cbr /\u003e |\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n String trigger, \n String bugId)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `String` \u003cbr /\u003e |\n| `bugId` | `String` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### fromString\n\n```\npublic static SkipReason fromString (String skipReasonMessage)\n```\n\nParses [toString()](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#toString()) into a [SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------------|-----------------|\n| `skipReasonMessage` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|-----------------------------------------------------------------------------------------------------------|--------|\n| [SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html) | \u003cbr /\u003e |\n\n### getBugId\n\n```\npublic String getBugId ()\n```\n\nReturns the bug id associated with skip status. Optional.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getReason\n\n```\npublic String getReason ()\n```\n\nReturns the reason associated with the skip status.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getTrigger\n\n```\npublic String getTrigger ()\n```\n\nReturns the trigger associated with the skip status.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### toString\n\n```\npublic String toString ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |"]]