2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
TestDescriptionsFile
public
class
TestDescriptionsFile
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.result.TestDescriptionsFile
|
TestDescription 목록을 테스트 파일로 마샬링 및 언마샬링하는 유틸리티 클래스입니다.
지연 로드를 통해 파일 I/O를 캐시하고 최소화하기 위한 것입니다.
스레드 안전하지 않음
요약
공개 생성자
TestDescriptionsFile
public TestDescriptionsFile ()
빈 테스트 설명 목록을 만듭니다.
TestDescriptionsFile
public TestDescriptionsFile (File file)
파일 콘텐츠에서 테스트 설명 목록을 만듭니다.
공개 메서드
addAll
public void addAll ( test)
getFile
public File getFile ()
테스트의 테스트 파일 표현을 반환합니다. 필요한 경우 빌드합니다.
테스트는 고유하고 정렬됩니다.
getTests
public getTests ()
저장된 테스트의 사본을 반환합니다. 필요한 경우 테스트 파일에서 빌드합니다.
populateTestFile
public void populateTestFile (File testfile)
현재 테스트로 지정된 파일을 채웁니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 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,["# TestDescriptionsFile\n====================\n\n\n`\npublic\n\n\nclass\nTestDescriptionsFile\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.TestDescriptionsFile |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA utility class for marshalling and unmarshalling a list of TestDescriptions to a test file.\n\nIntended to cache and minimize file I/O by lazy loading.\n\nNOT thread safe.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[TestDescriptionsFile](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#TestDescriptionsFile())`() ` Create an empty test description list. |\n| ` `[TestDescriptionsFile](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#TestDescriptionsFile(File))`(File file) ` Create a test description list from the file contents. |\n\n| ### Public methods ||\n|------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[add](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#add(com.android.tradefed.result.TestDescription))`(`[TestDescription](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescription.html)` test) ` |\n| ` void` | ` `[addAll](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#addAll(\u003cany\u003e))`(` test) |\n| ` static `[TestDescriptionsFile](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html) | ` `[fromTests](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#fromTests(\u003cany\u003e))`(` shardTests) |\n| ` File` | ` `[getFile](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#getFile())`() ` Return the test file representation of the tests - building it if necessary. |\n| ` ` | ` `[getTests](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#getTests())`() ` Return a copy of the tests stored - building from test file if necessary. |\n| ` void` | ` `[populateTestFile](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#populateTestFile(File))`(File testfile) ` Populates the given file with the current tests. |\n| ` void` | ` `[remove](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#remove(com.android.tradefed.result.TestDescription))`(`[TestDescription](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescription.html)` test) ` |\n| ` int` | ` `[size](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html#size())`() ` |\n\nPublic constructors\n-------------------\n\n### TestDescriptionsFile\n\n```\npublic TestDescriptionsFile ()\n```\n\nCreate an empty test description list.\n\n\u003cbr /\u003e\n\n### TestDescriptionsFile\n\n```\npublic TestDescriptionsFile (File file)\n```\n\nCreate a test description list from the file contents.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|---------------|\n| `file` | `File` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### add\n\n```\npublic void add (TestDescription test)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|--------------------------|\n| `test` | `TestDescription` \u003cbr /\u003e |\n\n### addAll\n\n```\npublic void addAll ( test)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|--------|\n| `test` | \u003cbr /\u003e |\n\n### fromTests\n\n```\npublic static TestDescriptionsFile fromTests ( shardTests)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|--------|\n| `shardTests` | \u003cbr /\u003e |\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------------|--------|\n| [TestDescriptionsFile](../../../../../../reference/tradefed/com/android/tradefed/result/TestDescriptionsFile.html) | \u003cbr /\u003e |\n\n### getFile\n\n```\npublic File getFile ()\n```\n\nReturn the test file representation of the tests - building it if necessary.\n\nTests will be unique and sorted.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `File` | \u003cbr /\u003e |\n\n### getTests\n\n```\npublic getTests ()\n```\n\nReturn a copy of the tests stored - building from test file if necessary.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### populateTestFile\n\n```\npublic void populateTestFile (File testfile)\n```\n\nPopulates the given file with the current tests.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|---------------|\n| `testfile` | `File` \u003cbr /\u003e |\n\n### remove\n\n```\npublic void remove (TestDescription test)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|--------------------------|\n| `test` | `TestDescription` \u003cbr /\u003e |\n\n### size\n\n```\npublic int size ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |"]]