2026년부터 트렁크 안정 개발 모델과 일치하고 생태계의 플랫폼 안정성을 보장하기 위해 2분기와 4분기에 AOSP에 소스 코드를 게시합니다. AOSP를 빌드하고 기여하려면 aosp-main 대신 android-latest-release를 사용하는 것이 좋습니다. android-latest-release 매니페스트 브랜치는 항상 AOSP에 푸시된 최신 버전을 참조합니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
ISandbox
public
interface
ISandbox
| com.android.tradefed.sandbox.ISandbox
|
호출을 실행하는 데 사용할 수 있는 샌드박스를 정의하는 인터페이스입니다.
요약
공개 메서드 |
abstract
String
|
createClasspath(File workingDir)
getTradefedSandboxEnvironment(com.android.tradefed.invoker.IInvocationContext, com.android.tradefed.config.IConfiguration, String[])에서 반환된 환경 및 작업 디렉터리를 기반으로 클래스 경로를 만듭니다.
|
abstract
IConfiguration
|
createThinLauncherConfig(String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig)
기본 실행에서 연결 해제된 특수 모드: 구성이 상위 요소에 없는 것처럼 보이면 씬 런처로 대체됩니다. 여기서 현재 알려진 정보로 샌드박스를 설정하고 작업 디렉터리를 채워 버전이 지정된 디렉터리에 구성을 완전히 만듭니다.
|
default
|
discoverTests(IInvocationContext context, IConfiguration configuration)
SandboxOptions.shouldUseTestDiscovery()가 사용 설정되어 있는지 테스트를 감지하는 prepareEnvironment(com.android.tradefed.invoker.IInvocationContext, com.android.tradefed.config.IConfiguration, com.android.tradefed.result.ITestInvocationListener)의 하위 단계입니다.
|
default
|
discoverTests(IInvocationContext context, IConfiguration configuration, ITestLogger logger)
|
default
IFolderBuildInfo
|
fetchSandboxExtraArtifacts(IInvocationContext context, IConfiguration configuration, String[] args)
샌드박스에 필요한 추가 파일을 가져오는 prepareEnvironment(com.android.tradefed.invoker.IInvocationContext, com.android.tradefed.config.IConfiguration, com.android.tradefed.result.ITestInvocationListener)의 하위 단계입니다.
|
default
File
|
getTradefedSandboxEnvironment(IInvocationContext context, IConfiguration nonVersionedConfig, String[] args)
명령줄 인수를 기반으로 사용할 샌드박스 환경 TF를 반환합니다.
|
default
File
|
getTradefedSandboxEnvironment(IInvocationContext context, IConfiguration nonVersionedConfig, ITestLogger logger, String[] args)
|
abstract
Exception
|
prepareEnvironment(IInvocationContext context, IConfiguration configuration, ITestInvocationListener listener)
샌드박스가 제대로 실행될 수 있도록 환경을 준비합니다.
|
abstract
CommandResult
|
run(TestInformation info, IConfiguration configuration, ITestLogger logger)
설정된 환경으로 샌드박스를 실행합니다.
|
abstract
void
|
tearDown()
변경되었을 수 있는 상태, 파일 또는 환경을 정리합니다.
|
공개 메서드
createThinLauncherConfig
public abstract IConfiguration createThinLauncherConfig (String[] args,
IKeyStoreClient keyStoreClient,
IRunUtil runUtil,
File globalConfig)
기본 실행에서 연결 해제된 특수 모드: 구성이 상위 요소에 없는 것처럼 보이면 씬 런처로 대체됩니다. 여기서 현재 알려진 정보로 샌드박스를 설정하고 작업 디렉터리를 채워 버전이 지정된 디렉터리에 구성을 완전히 만듭니다.
| 매개변수 |
args |
String: 원래 명령줄 인수입니다. |
keyStoreClient |
IKeyStoreClient: 구성을 만드는 데 사용할 현재 키 저장소 클라이언트입니다. |
runUtil |
IRunUtil: 호스트 명령어를 실행할 현재 IRunUtil입니다. |
globalConfig |
File: TF의 하위 프로세스를 실행하는 데 사용할 전역 구성입니다. |
| 반환 값 |
IConfiguration |
NON_VERSIONED 객체의 TF 구성 XML을 가리키는 파일입니다. 씬 런처 구성을 만들 수 없는 경우 null을 반환합니다. |
getTradefedSandboxEnvironment
public File getTradefedSandboxEnvironment (IInvocationContext context,
IConfiguration nonVersionedConfig,
String[] args)
명령줄 인수를 기반으로 사용할 샌드박스 환경 TF를 반환합니다.
| 매개변수 |
context |
IInvocationContext: 상위 요소의 IInvocationContext입니다. |
nonVersionedConfig |
IConfiguration: 버전 관리되지 않는 객체를 나타내는 IConfiguration입니다. |
args |
String: 명령줄 인수입니다. |
getTradefedSandboxEnvironment
public File getTradefedSandboxEnvironment (IInvocationContext context,
IConfiguration nonVersionedConfig,
ITestLogger logger,
String[] args)
| 매개변수 |
context |
IInvocationContext |
nonVersionedConfig |
IConfiguration |
logger |
ITestLogger |
args |
String |
tearDown
public abstract void tearDown ()
변경되었을 수 있는 상태, 파일 또는 환경을 정리합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 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)"],[],[]]