2026년부터 트렁크 안정 개발 모델과 일치하고 생태계의 플랫폼 안정성을 보장하기 위해 2분기와 4분기에 AOSP에 소스 코드를 게시합니다. AOSP를 빌드하고 기여하려면 android-latest-release를 사용하세요. android-latest-release 매니페스트 브랜치는 항상 AOSP에 푸시된 최신 버전을 참조합니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
MoblyBinaryHostTest
public
class
MoblyBinaryHostTest
extends Object
implements
IBuildReceiver,
IDeviceTest,
IRemoteTest,
IShardableTest,
ITestFilterReceiver
| java.lang.Object
|
| ↳ |
com.android.tradefed.testtype.mobly.MoblyBinaryHostTest
|
Android 빌드 시스템 (Soong)에서 mobly python 바이너리 파일을 실행하기 위한 호스트 테스트
요약
보호된 메서드 |
String[]
|
buildCommandLineArray(String filePath, String configPath, List<String> tests)
|
String[]
|
buildCommandLineArray(String filePath, String configPath)
|
String[]
|
buildCommandLineForListTests(String filePath)
|
Optional<Pair<List<String>, List<String>>>
|
filterTests(String[] testListLines, String runName, ITestInvocationListener listener)
|
MoblyArtifactReporter
|
getArtifactReporter()
|
String
|
getLogDirAbsolutePath()
|
File
|
getLogDirFile()
|
boolean
|
processYamlTestResults(InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)
Mobly 테스트 결과를 파싱하고 결과를 보고합니다.
|
void
|
updateConfigFile(InputStream configInputStream, Writer writer)
|
공개 생성자
MoblyBinaryHostTest
public MoblyBinaryHostTest ()
공개 메서드
addAllExcludeFilters
public void addAllExcludeFilters (Set<String> filters)
제외할 테스트의 필터 Set를 추가합니다.
addAllIncludeFilters
public void addAllIncludeFilters (Set<String> filters)
포함할 테스트의 필터 Set를 추가합니다.
addExcludeFilter
public void addExcludeFilter (String filter)
제외할 테스트의 필터를 추가합니다.
addIncludeFilter
public void addIncludeFilter (String filter)
포함할 테스트의 필터를 추가합니다.
clearExcludeFilters
public void clearExcludeFilters ()
현재 추적 중인 모든 제외 필터를 삭제합니다.
clearIncludeFilters
public void clearIncludeFilters ()
현재 추적 중인 모든 포함 필터를 삭제합니다.
getDevice
public ITestDevice getDevice ()
테스트 대상 기기를 가져옵니다.
getExcludeFilters
public Set<String> getExcludeFilters ()
현재 제외 필터의 Set를 반환합니다.
getIncludeFilters
public Set<String> getIncludeFilters ()
포함 필터의 현재 Set를 반환합니다.
setBuild
public void setBuild (IBuildInfo buildInfo)
| 매개변수 |
buildInfo |
IBuildInfo |
setDevice
public void setDevice (ITestDevice device)
테스트 대상 기기를 삽입합니다.
분할
public Collection<IRemoteTest> split (int shardCountHint)
실행을 시도한 shardCount도 제공하는 split()의 대체 버전입니다. 이는 임의로 결정할 수 없는 일부 테스트 러너에 유용합니다.
| 매개변수 |
shardCountHint |
int: 시도된 샤드 수입니다. |
| 반환 |
Collection<IRemoteTest> |
별도로 실행할 하위 테스트 모음 또는 테스트를 현재 샤딩할 수 없는 경우 null |
보호된 메서드
buildCommandLineArray
protected String[] buildCommandLineArray (String filePath,
String configPath,
List<String> tests)
| 매개변수 |
filePath |
String |
configPath |
String |
tests |
List |
buildCommandLineArray
protected String[] buildCommandLineArray (String filePath,
String configPath)
| 매개변수 |
filePath |
String |
configPath |
String |
buildCommandLineForListTests
protected String[] buildCommandLineForListTests (String filePath)
filterTests
protected Optional<Pair<List<String>, List<String>>> filterTests (String[] testListLines,
String runName,
ITestInvocationListener listener)
| 매개변수 |
testListLines |
String |
runName |
String |
listener |
ITestInvocationListener |
| 반환 |
Optional<Pair<List<String>, List<String>>> |
|
getLogDirAbsolutePath
protected String getLogDirAbsolutePath ()
getLogDirFile
protected File getLogDirFile ()
protected boolean processYamlTestResults (InputStream inputStream,
MoblyYamlResultParser parser,
ITestInvocationListener listener,
String runName)
Mobly 테스트 결과를 파싱하고 결과를 보고합니다.
| 매개변수 |
inputStream |
InputStream: Mobly 테스트 결과 파일을 읽는 InputStream 객체입니다. |
parser |
MoblyYamlResultParser: Mobly 테스트 결과를 처리하는 MoblyYamlResultParser 객체입니다. |
listener |
ITestInvocationListener: 다양한 보고를 실행하는 ITestInvocationListener 인스턴스입니다. |
runName |
String: str, Mobly 테스트 바이너리 실행의 이름입니다. |
protected void updateConfigFile (InputStream configInputStream,
Writer writer)
| 매개변수 |
configInputStream |
InputStream |
writer |
Writer |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2026-06-22(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"]],["최종 업데이트: 2026-06-22(UTC)"],[],[]]