Searched refs:NNParallelTestActivity (Results 1 – 4 of 4) sorted by relevance
/test/mlts/benchmark/src/com/android/nn/crashtest/app/ |
D | NNMemoryMappedModelCompilationTest.java | 51 ActivityInstrumentationTestCase2<NNParallelTestActivity> implements 66 super(NNParallelTestActivity.class); in NNMemoryMappedModelCompilationTest() 99 final NNParallelTestActivity activity = getActivity(); in testDriverDoesNotFailWithParallelThreads() 122 …intent.putExtra(NNParallelTestActivity.EXTRA_TEST_LIST, IntStream.range(0, modelsCount).toArray()); in compileSupportedModelsMemoryMappedOnNThreadsFor() 123 intent.putExtra(NNParallelTestActivity.EXTRA_THREAD_COUNT, threadCount); in compileSupportedModelsMemoryMappedOnNThreadsFor() 124 intent.putExtra(NNParallelTestActivity.EXTRA_TEST_DURATION_MILLIS, testDuration.toMillis()); in compileSupportedModelsMemoryMappedOnNThreadsFor() 125 intent.putExtra(NNParallelTestActivity.EXTRA_RUN_IN_SEPARATE_PROCESS, true); in compileSupportedModelsMemoryMappedOnNThreadsFor() 126 intent.putExtra(NNParallelTestActivity.EXTRA_TEST_NAME, mTestName.getMethodName()); in compileSupportedModelsMemoryMappedOnNThreadsFor() 127 intent.putExtra(NNParallelTestActivity.EXTRA_ACCELERATOR_NAME, mAcceleratorName); in compileSupportedModelsMemoryMappedOnNThreadsFor() 128 intent.putExtra(NNParallelTestActivity.EXTRA_RUN_MODEL_COMPILATION_ONLY, true); in compileSupportedModelsMemoryMappedOnNThreadsFor() [all …]
|
D | NNClientEarlyTerminationTest.java | 50 ActivityInstrumentationTestCase2<NNParallelTestActivity> implements 65 super(NNParallelTestActivity.class); in NNClientEarlyTerminationTest() 96 final NNParallelTestActivity activity = getActivity(); in testDriverDoesNotFailWithParallelThreads() 135 NNParallelTestActivity.EXTRA_TEST_LIST, IntStream.range(0, in compileSupportedModelsOnNThreadsFor() 137 intent.putExtra(NNParallelTestActivity.EXTRA_THREAD_COUNT, threadCount); in compileSupportedModelsOnNThreadsFor() 138 intent.putExtra(NNParallelTestActivity.EXTRA_TEST_DURATION_MILLIS, testDuration.toMillis()); in compileSupportedModelsOnNThreadsFor() 139 intent.putExtra(NNParallelTestActivity.EXTRA_RUN_IN_SEPARATE_PROCESS, true); in compileSupportedModelsOnNThreadsFor() 140 intent.putExtra(NNParallelTestActivity.EXTRA_TEST_NAME, mTestName.getMethodName()); in compileSupportedModelsOnNThreadsFor() 141 intent.putExtra(NNParallelTestActivity.EXTRA_ACCELERATOR_NAME, mAcceleratorName); in compileSupportedModelsOnNThreadsFor() 142 intent.putExtra(NNParallelTestActivity.EXTRA_IGNORE_UNSUPPORTED_MODELS, true); in compileSupportedModelsOnNThreadsFor() [all …]
|
D | NNParallelInferenceTest.java | 47 extends ActivityInstrumentationTestCase2<NNParallelTestActivity> 62 super(NNParallelTestActivity.class); in NNParallelInferenceTest() 123 NNParallelTestActivity.EXTRA_TEST_LIST, IntStream.range(0, modelsCount).toArray()); in runAllModelsOnNThreadsForOnAccelerator() 124 intent.putExtra(NNParallelTestActivity.EXTRA_THREAD_COUNT, threadCount); in runAllModelsOnNThreadsForOnAccelerator() 125 intent.putExtra(NNParallelTestActivity.EXTRA_TEST_DURATION_MILLIS, testDuration.toMillis()); in runAllModelsOnNThreadsForOnAccelerator() 126 intent.putExtra(NNParallelTestActivity.EXTRA_RUN_IN_SEPARATE_PROCESS, in runAllModelsOnNThreadsForOnAccelerator() 128 intent.putExtra(NNParallelTestActivity.EXTRA_TEST_NAME, mTestName.getMethodName()); in runAllModelsOnNThreadsForOnAccelerator() 130 intent.putExtra(NNParallelTestActivity.EXTRA_ACCELERATOR_NAME, acceleratorName); in runAllModelsOnNThreadsForOnAccelerator() 131 intent.putExtra(NNParallelTestActivity.EXTRA_IGNORE_UNSUPPORTED_MODELS, true); in runAllModelsOnNThreadsForOnAccelerator() 133 intent.putExtra(NNParallelTestActivity.EXTRA_USE_NNAPI_SL, in runAllModelsOnNThreadsForOnAccelerator() [all …]
|
D | NNParallelTestActivity.java | 43 public class NNParallelTestActivity extends Activity { class
|