NativePoc
public
abstract
class
NativePoc
extends Object
java.lang.Object
|
↳ |
com.android.sts.common.NativePoc
|
Setup and run a native PoC, asserting exit conditions
Summary
Nested classes |
interface |
NativePoc.AfterFunction
Lambda construct to run after PoC finished executing but before assertion and cleanup.
|
class |
NativePoc.Builder
|
Public methods |
static
NativePoc.Builder
|
builder()
|
void
|
run(BaseHostJUnit4Test test)
Execute the PoC with the given parameters and assertions.
|
Constants
BUF_SIZE
static final int BUF_SIZE
Constant Value:
65536
(0x00010000)
DEFAULT_POC_TIMEOUT_SECONDS
static final long DEFAULT_POC_TIMEOUT_SECONDS
Constant Value:
60
(0x000000000000003c)
RESOURCE_ROOT
static final String RESOURCE_ROOT
Constant Value:
"/"
TMP_PATH
static final String TMP_PATH
Constant Value:
"/data/local/tmp/"
Public methods
run
public void run (BaseHostJUnit4Test test)
Execute the PoC with the given parameters and assertions.
Parameters |
test |
BaseHostJUnit4Test : the instance of BaseHostJUnit4Test this is running in. Usually called with "this"
if called from an STS test.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-11-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-11-18 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` | |"]]