Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 17 of 17) sorted by relevance

/test/vts/tools/vts-core-tradefed/tests/src/com/android/testtype/suite/module/
DKernelTestModuleControllerTest.java43 private IInvocationContext mContext; field in KernelTestModuleControllerTest
53 mContext = new InvocationContext(); in setUp()
54 mContext.addInvocationAttribute(ModuleDefinition.MODULE_NAME, "module1"); in setUp()
55 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
62 mContext.addInvocationAttribute(ModuleDefinition.MODULE_ABI, "arm64-v8a"); in testModuleAbiMatchesArch()
69 assertEquals(RunStrategy.RUN, mController.shouldRunModule(mContext)); in testModuleAbiMatchesArch()
75 mContext.addInvocationAttribute(ModuleDefinition.MODULE_ABI, "arm64-v8a"); in testModuleAbiMismatchesArch()
82 assertEquals(RunStrategy.FULL_MODULE_BYPASS, mController.shouldRunModule(mContext)); in testModuleAbiMismatchesArch()
88 mContext.addInvocationAttribute(ModuleDefinition.MODULE_ABI, "arm64-v8a"); in testDeviceWithLowMemAndIsLowMemFlagTrue()
96 assertEquals(RunStrategy.RUN, mController.shouldRunModule(mContext)); in testDeviceWithLowMemAndIsLowMemFlagTrue()
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/suite/
DPreviousSessionFileCopierTest.java44 private IInvocationContext mContext; field in PreviousSessionFileCopierTest
62 mContext = new InvocationContext(); in setUp()
63 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp()
76 mCopier.invocationStarted(mContext); in testCopy()
92 mCopier.invocationStarted(mContext); in testCopy_fileExists()
102 mCopier.invocationStarted(mContext); in testCopy_fileExcluded()
DPreviousResultLoaderTest.java61 private IInvocationContext mContext; field in PreviousResultLoaderTest
75 mContext = new InvocationContext(); in setUp()
76 mContext.setConfigurationDescriptor(new ConfigurationDescriptor()); in setUp()
77 mContext.addInvocationAttribute(TestInvocation.COMMAND_ARGS_KEY, in setUp()
79 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp()
122 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testReloadTests()
154 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testReloadTests_withMultiProto()
196 mContext.addInvocationAttribute(RUN_HISTORY_KEY, OLD_RUN_HISTORY); in testReloadTests_withRunHistory()
199 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testReloadTests_withRunHistory()
238 builder.setDescription(Any.pack(mContext.toProto())); in createFakeBuild()
DCertificationSuiteResultReporterTest.java44 private IInvocationContext mContext; field in CertificationSuiteResultReporterTest
59 mContext = new InvocationContext(); in setUp()
60 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, info); in setUp()
106 mReporter.invocationStarted(mContext); in testSuiteVariant()
132 mReporter.invocationStarted(mContext); in testSuiteVariantGSI()
162 mReporter.invocationStarted(mContext); in testSuiteVariantGSI_R_Compatibility()
196 mReporter.invocationStarted(mContext); in testSuiteVariantGSI_R_Compatibility_ATS()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java89 private IInvocationContext mContext; field in IntegrationTest
139 mContext = new InvocationContext(); in setUp()
140 mContext.addAllocatedDevice("default", mMockDevice); in setUp()
141 mContext.addDeviceBuildInfo("default", mMockBuildInfo); in setUp()
142 mTest.setInvocationContext(mContext); in setUp()
209 mReporter.invocationStarted(mContext); in testSingleModuleRun()
269 myListener.invocationStarted(mContext); in testSingleModuleRun_checkMetadata()
312 mReporter.invocationStarted(mContext); in testSingleModuleRun_incomplete()
341 mReporter.invocationStarted(mContext); in testSingleModuleRun_completeAfterInternalRetry()
381 mReporter.invocationStarted(mContext); in testSingleModuleRun_incomplete_rerun_incomplete()
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/
DResultReporterTest.java79 private IInvocationContext mContext; field in ResultReporterTest
114 mContext = new InvocationContext(); in setUp()
115 mContext.addDeviceBuildInfo("fakeDevice", mBuildInfo); in setUp()
125 mReporter.invocationStarted(mContext); in testSetup()
145 mReporter.invocationStarted(mContext); in testResultReporting()
204 mReporter.invocationStarted(mContext); in testRepeatedExecutions()
250 mReporter.invocationStarted(mContext); in testRetry()
305 mReporter.invocationStarted(mContext); in testRetryCanSetDone()
344 mReporter.invocationStarted(mContext); in testRetryCannotSetDone()
383 mReporter.invocationStarted(mContext); in testResultReporting_moduleNotDone()
[all …]
DMetadataReporterTest.java59 private IInvocationContext mContext; field in MetadataReporterTest
79 mContext = new InvocationContext(); in setUp()
80 mContext.addDeviceBuildInfo("fakeDevice", mBuildInfo); in setUp()
93 mReporter.invocationStarted(mContext); in testResultReportingFastTests()
106 mReporter.invocationStarted(mContext); in testResultReportingSlowTests()
DConsoleReporterTest.java56 private IInvocationContext mContext; field in ConsoleReporterTest
72 mReporter.invocationStarted(mContext); in testResultReporting_singleModule()
88 mReporter.invocationStarted(mContext); in testResultReporting_multipleModules()
/test/mlts/benchmark/src/com/android/nn/crashtest/core/
DCrashTestCoordinator.java39 private final Context mContext; field in CrashTestCoordinator
60 mContext = context; in CrashTestCoordinator()
163 final Intent crashTestServiceIntent = new Intent(mContext, in startTest()
172 mServiceBound.set(mContext.bindService(crashTestServiceIntent, mServiceConnection.get(), in startTest()
208 mContext.unbindService(sc); in unbindService()
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/
DRunModelsInMultipleProcesses.java56 private Context mContext; field in RunModelsInMultipleProcesses
98 mContext = context; in init()
123 new File(mContext.getExternalFilesDir(null), mTestModelEntry.mModelFile + ".tflite"); in call()
125 new File(mContext.getExternalFilesDir(null), mTestModelEntry.mModelFile + ".input"); in call()
130 mContext, mTestModelEntry.mModelFile + ".tflite", targetModelFile)) { in call()
135 mContext, mTestModelEntry.mInOutAssets, mTestModelEntry.mInOutDatasets); in call()
DPerformanceDegradationTest.java94 private Context mContext;
105 mContext = context; in init()
120 AcceleratorSpecificTestSupport.findAllTestModelsRunningOnAccelerator(mContext, in call()
173 () -> new ModelCompiler(start, mContext, mAcceleratorName, in testDegradationForModels()
228 Processor benchmarkProcessor = new Processor(mContext, mNoOpCallback, new int[0]); in modelPerformanceCollector()
DRandomGraphTest.java40 return mContext.getExternalFilesDir(null).getAbsolutePath() + "/" in getGeneratorOutFilePath()
145 private Context mContext;
167 mContext = context; in init()
DRunModelsInParallel.java63 private Context mContext; field in RunModelsInParallel
98 mContext = context; in init()
120 final Processor result = new Processor(mContext, new Processor.Callback() { in createSubTestRunner()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DNNTestBase.java108 protected Context mContext; field in NNTestBase
178 mContext = ipcxt; in setupModel()
183 String nnApiCacheDir = mContext.getCodeCacheDir().toString(); in setupModel()
194 mEvaluator = mEvaluatorConfig.createEvaluator(mContext.getAssets()); in setupModel()
226 getInputOutputAssets(mContext, mInputOutputAssets, mInputOutputDatasets); in getInputOutputAssets()
380 String.format("%s/%s-%d-%d.tflite", mContext.getCacheDir().getAbsolutePath(), in copyAssetToFile()
384 copyAssetToFile(mContext, mModelFile + ".tflite", outFileName); in copyAssetToFile()
DProcessor.java43 private Context mContext; field in Processor
74 mContext = context; in Processor()
182 if (!tb.setupModel(mContext)) { in changeTest()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DModuleDef.java78 private IInvocationContext mContext; field in ModuleDef
310 ((IInvocationContextReceiver) mTest).setInvocationContext(mContext); in prepareTestClass()
425 return mContext; in getInvocationContext()
430 mContext = invocationContext; in setInvocationContext()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/retry/
DRetryFactoryTest.java179 private IInvocationContext mContext; field in RetryFactoryTest
204 mContext = invocationContext; in setInvocationContext()
271 test.setInvocationContext(mContext); in loadSuite()