自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
ExecutableActionResult
public
abstract
class
ExecutableActionResult
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.cache.ExecutableActionResult
|
代表 ExecutableAction
結果的值類別。
摘要
公用建構函式
ExecutableActionResult
public ExecutableActionResult ()
公用方法
create
public static ExecutableActionResult create (int exitCode,
File stdOut,
File stdErr)
參數 |
exitCode |
int |
stdOut |
File |
stdErr |
File |
exitCode
public abstract int exitCode ()
stdErr
public abstract File stdErr ()
stdOut
public abstract File stdOut ()
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","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-26 (世界標準時間)。"],[],[],null,["# ExecutableActionResult\n======================\n\n\n`\npublic\n\n\nabstract\nclass\nExecutableActionResult\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.cache.ExecutableActionResult |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA value class representing a result of a [ExecutableAction](../../../../../../reference/tradefed/com/android/tradefed/cache/ExecutableAction.html).\n\nSummary\n-------\n\n| ### Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[ExecutableActionResult](../../../../../../reference/tradefed/com/android/tradefed/cache/ExecutableActionResult.html#ExecutableActionResult())`() ` |\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static `[ExecutableActionResult](../../../../../../reference/tradefed/com/android/tradefed/cache/ExecutableActionResult.html) | ` `[create](../../../../../../reference/tradefed/com/android/tradefed/cache/ExecutableActionResult.html#create(int,%20File,%20File))`(int exitCode, File stdOut, File stdErr) ` |\n| ` abstract int` | ` `[exitCode](../../../../../../reference/tradefed/com/android/tradefed/cache/ExecutableActionResult.html#exitCode())`() ` |\n| ` abstract File` | ` `[stdErr](../../../../../../reference/tradefed/com/android/tradefed/cache/ExecutableActionResult.html#stdErr())`() ` |\n| ` abstract File` | ` `[stdOut](../../../../../../reference/tradefed/com/android/tradefed/cache/ExecutableActionResult.html#stdOut())`() ` |\n\nPublic constructors\n-------------------\n\n### ExecutableActionResult\n\n```\npublic ExecutableActionResult ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### create\n\n```\npublic static ExecutableActionResult create (int exitCode, \n File stdOut, \n File stdErr)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|---------------|\n| `exitCode` | `int` \u003cbr /\u003e |\n| `stdOut` | `File` \u003cbr /\u003e |\n| `stdErr` | `File` \u003cbr /\u003e |\n\n| Returns ||\n|-----------------------------------------------------------------------------------------------------------------------|--------|\n| [ExecutableActionResult](../../../../../../reference/tradefed/com/android/tradefed/cache/ExecutableActionResult.html) | \u003cbr /\u003e |\n\n### exitCode\n\n```\npublic abstract int exitCode ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### stdErr\n\n```\npublic abstract File stdErr ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `File` | \u003cbr /\u003e |\n\n### stdOut\n\n```\npublic abstract File stdOut ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `File` | \u003cbr /\u003e |"]]