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