2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
NativePoc
public
abstract
class
NativePoc
extends Object
java.lang.Object
|
↳ |
com.android.sts.common.NativePoc
|
네이티브 PoC를 설정하고 실행하여 종료 조건 어설션
요약
상수
BUF_SIZE
static final int BUF_SIZE
상수 값:
65536
(0x00010000)
DEFAULT_POC_TIMEOUT_SECONDS
static final long DEFAULT_POC_TIMEOUT_SECONDS
상수 값:
60
(0x000000000000003c)
RESOURCE_ROOT
static final String RESOURCE_ROOT
상수 값:
"/"
TMP_PATH
static final String TMP_PATH
상수 값:
"/data/local/tmp/"
공개 메서드
실행
public void run (BaseHostJUnit4Test test)
지정된 매개변수와 어설션으로 PoC를 실행합니다.
매개변수 |
test |
BaseHostJUnit4Test : 실행 중인 BaseHostJUnit4Test의 인스턴스입니다. 일반적으로 STS 테스트에서 호출되는 경우 'this'로 호출됩니다.
|
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 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,["# NativePoc\n=========\n\n\n`\npublic\n\n\nabstract\nclass\nNativePoc\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.sts.common.NativePoc |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSetup and run a native PoC, asserting exit conditions\n\nSummary\n-------\n\n| ### Nested classes ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` interface` | [NativePoc.AfterFunction](../../../../../../reference/sts/com/android/sts/common/NativePoc.AfterFunction.html) Lambda construct to run after PoC finished executing but before assertion and cleanup. |\n| ` class` | [NativePoc.Builder](../../../../../../reference/sts/com/android/sts/common/NativePoc.Builder.html) |\n\n| ### Constants ||\n|----------|----------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [BUF_SIZE](../../../../../../reference/sts/com/android/sts/common/NativePoc.html#BUF_SIZE) |\n| `long` | [DEFAULT_POC_TIMEOUT_SECONDS](../../../../../../reference/sts/com/android/sts/common/NativePoc.html#DEFAULT_POC_TIMEOUT_SECONDS) |\n| `String` | [RESOURCE_ROOT](../../../../../../reference/sts/com/android/sts/common/NativePoc.html#RESOURCE_ROOT) |\n| `String` | [TMP_PATH](../../../../../../reference/sts/com/android/sts/common/NativePoc.html#TMP_PATH) |\n\n| ### Public methods ||\n|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static `[NativePoc.Builder](../../../../../../reference/sts/com/android/sts/common/NativePoc.Builder.html) | ` `[builder](../../../../../../reference/sts/com/android/sts/common/NativePoc.html#builder())`() ` |\n| ` void` | ` `[run](../../../../../../reference/sts/com/android/sts/common/NativePoc.html#run(com.android.tradefed.testtype.junit4.BaseHostJUnit4Test))`(BaseHostJUnit4Test test) ` Execute the PoC with the given parameters and assertions. |\n\nConstants\n---------\n\n### BUF_SIZE\n\n```\nstatic final int BUF_SIZE\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n65536\n(0x00010000)\n\n\n### DEFAULT_POC_TIMEOUT_SECONDS\n\n```\nstatic final long DEFAULT_POC_TIMEOUT_SECONDS\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n60\n(0x000000000000003c)\n\n\n### RESOURCE_ROOT\n\n```\nstatic final String RESOURCE_ROOT\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"/\"\n\n\n### TMP_PATH\n\n```\nstatic final String TMP_PATH\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n\"/data/local/tmp/\"\n\n\nPublic methods\n--------------\n\n### builder\n\n```\npublic static NativePoc.Builder builder ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------------------------------------------------------------------------------------------------|--------|\n| [NativePoc.Builder](../../../../../../reference/sts/com/android/sts/common/NativePoc.Builder.html) | \u003cbr /\u003e |\n\n### run\n\n```\npublic void run (BaseHostJUnit4Test test)\n```\n\nExecute the PoC with the given parameters and assertions.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `test` | `BaseHostJUnit4Test`: the instance of BaseHostJUnit4Test this is running in. Usually called with \"this\" if called from an STS test. \u003cbr /\u003e |\n\n| Throws ||\n|-------------|---|\n| `Exception` | |"]]