Od 27 marca 2025 r. zalecamy używanie android-latest-release
zamiast aosp-main
do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
SubprocessEventHelper.TestEndedEventInfo
public
static
class
SubprocessEventHelper.TestEndedEventInfo
extends SubprocessEventHelper.BaseTestEventInfo
Pomoc dotycząca informacji testEnded.
Podsumowanie
Konstruktory publiczne |
TestEndedEventInfo(JSONObject jsonObject)
Utwórz i wypełnij obiekt zdarzenia testEnded za pomocą danych w pliku JSON.
|
TestEndedEventInfo(String className, String testName, Long endTime, runMetrics)
Utwórz obiekt zdarzenia, który reprezentuje wywołanie testEnded.
|
TestEndedEventInfo(String className, String testName, runMetrics)
|
Fieldsem
mEndTime
public Long mEndTime
mRunMetrics
public mRunMetrics
Konstruktory publiczne
TestEndedEventInfo
public TestEndedEventInfo (JSONObject jsonObject)
Utwórz i wypełnij obiekt zdarzenia testEnded za pomocą danych w pliku JSON.
Parametry |
jsonObject |
JSONObject |
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
Long endTime,
runMetrics)
Utwórz obiekt zdarzenia, który reprezentuje wywołanie testEnded.
Parametry |
className |
String : nazwa klasy testów |
testName |
String : nazwa testów |
endTime |
Long : sygnatura czasowa zakończenia testu (z poziomu System.currentTimeMillis() ). |
runMetrics |
: dane z testu. |
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
runMetrics)
Parametry |
className |
String |
testName |
String |
runMetrics |
|
Chronione metody
getNewJson
protected JSONObject getNewJson ()
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],null,["# SubprocessEventHelper.TestEndedEventInfo\n========================================\n\n\n`\npublic\nstatic\n\n\nclass\nSubprocessEventHelper.TestEndedEventInfo\n`\n\n\n`\n\n\n`\n\n`\n\nextends `[SubprocessEventHelper.BaseTestEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.BaseTestEventInfo.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|--------------------------------------------------------------------|\n| java.lang.Object |||\n| ↳ | [com.android.tradefed.util.SubprocessEventHelper.BaseTestEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.BaseTestEventInfo.html) ||\n| | ↳ | com.android.tradefed.util.SubprocessEventHelper.TestEndedEventInfo |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nHelper for testEnded information.\n\nSummary\n-------\n\n| ### Fields ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| ` public Long` | [mEndTime](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#mEndTime) |\n| ` public ` | [mRunMetrics](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#mRunMetrics) |\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[TestEndedEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#TestEndedEventInfo(org.json.JSONObject))`(JSONObject jsonObject) ` Create and populate and event object for testEnded from a JSON. |\n| ` `[TestEndedEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#TestEndedEventInfo(java.lang.String,%20java.lang.String,%20java.lang.Long,%20\u003cany\u003e))`(String className, String testName, Long endTime, ` runMetrics) Create an event object to represent the testEnded callback. |\n| ` `[TestEndedEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#TestEndedEventInfo(java.lang.String,%20java.lang.String,%20\u003cany\u003e))`(String className, String testName, ` runMetrics) |\n\n| ### Protected methods ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` JSONObject` | ` `[getNewJson](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#getNewJson())`() ` |\n\nFields\n------\n\n### mEndTime\n\n```\npublic Long mEndTime\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### mRunMetrics\n\n```\npublic mRunMetrics\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### TestEndedEventInfo\n\n```\npublic TestEndedEventInfo (JSONObject jsonObject)\n```\n\nCreate and populate and event object for testEnded from a JSON.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|---------------------|\n| `jsonObject` | `JSONObject` \u003cbr /\u003e |\n\n| Throws ||\n|-----------------|---|\n| `JSONException` | |\n\n### TestEndedEventInfo\n\n```\npublic TestEndedEventInfo (String className, \n String testName, \n Long endTime, \n runMetrics)\n```\n\nCreate an event object to represent the testEnded callback.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `className` | `String`: the classname of the tests \u003cbr /\u003e |\n| `testName` | `String`: the name of the tests \u003cbr /\u003e |\n| `endTime` | `Long`: the timestamp at which the test ended (from [System.currentTimeMillis()](../../../../../../reference/tradefed/java/lang/System.html#currentTimeMillis())) \u003cbr /\u003e |\n| `runMetrics` | : the metrics reported by the test. \u003cbr /\u003e |\n\n### TestEndedEventInfo\n\n```\npublic TestEndedEventInfo (String className, \n String testName, \n runMetrics)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|-----------------|\n| `className` | `String` \u003cbr /\u003e |\n| `testName` | `String` \u003cbr /\u003e |\n| `runMetrics` | \u003cbr /\u003e |\n\nProtected methods\n-----------------\n\n### getNewJson\n\n```\nprotected JSONObject getNewJson ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------|--------|\n| `JSONObject` | \u003cbr /\u003e |"]]