NativePoc
public abstract class NativePoc
extends Object
java.lang.Object |
↳ | com.android.sts.common.NativePoc |
Configure e execute um PoC nativo, afirmando condições de saída
Resumo
Classes aninhadas |
---|
interface | NativePoc.AfterFunction Construção Lambda a ser executada após a conclusão da execução do PoC, mas antes da asserção e da limpeza. |
class | NativePoc.Builder |
Métodos públicos |
---|
static NativePoc.Builder | builder () |
void | run (BaseHostJUnit4Test test) Execute o PoC com os parâmetros e asserções fornecidos. |
Constantes
BUF_SIZE
static final int BUF_SIZE
Valor Constante: 65536 (0x00010000)
DEFAULT_POC_TIMEOUT_SECONDS
static final long DEFAULT_POC_TIMEOUT_SECONDS
Valor Constante: 60 (0x00000000000003c)
RESOURCE_ROOT
static final String RESOURCE_ROOT
Valor constante: "/"
TMP_PATH
static final String TMP_PATH
Valor Constante: "/data/local/tmp/"
Métodos públicos
correr
public void run (BaseHostJUnit4Test test)
Execute o PoC com os parâmetros e asserções fornecidos.
Parâmetros |
---|
test | BaseHostJUnit4Test : a instância de BaseHostJUnit4Test em que está sendo executado. Geralmente chamado com "this" se chamado a partir de um teste STS. |
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2023-12-01 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2023-12-01 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` | |"]]