/test/vts/tools/vts-core-tradefed/tests/src/com/android/testtype/suite/module/ |
D | KernelTestModuleControllerTest.java | 43 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/mlts/benchmark/src/com/android/nn/crashtest/core/ |
D | CrashTestCoordinator.java | 39 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/app_compat/csuite/instrumentation/launch/src/main/java/com/android/compatibilitytest/ |
D | AppCompatibility.java | 75 private Context mContext; field in AppCompatibility 101 mContext = InstrumentationRegistry.getTargetContext(); in setUp() 102 mActivityManager = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in setUp() 103 mPackageManager = mContext.getPackageManager(); in setUp() 229 (DropBoxManager) mContext.getSystemService(Context.DROPBOX_SERVICE); in checkDropbox() 251 UiModeManager umm = (UiModeManager) mContext.getSystemService(Context.UI_MODE_SERVICE); in getLaunchIntentForPackage() 276 mContext.startActivity(intent); in launchActivity()
|
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/ |
D | RunModelsInMultipleProcesses.java | 56 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()
|
D | PerformanceDegradationTest.java | 95 private Context mContext; 106 mContext = context; in init() 121 AcceleratorSpecificTestSupport.findAllTestModelsRunningOnAccelerator(mContext, in call() 174 () -> new ModelCompiler(start, mContext, mAcceleratorName, in testDegradationForModels() 229 Processor benchmarkProcessor = new Processor(mContext, mNoOpCallback, new int[0]); in modelPerformanceCollector()
|
D | RandomGraphTest.java | 40 return mContext.getExternalFilesDir(null).getAbsolutePath() + "/" in getGeneratorOutFilePath() 145 private Context mContext; 167 mContext = context; in init()
|
D | RunModelsInParallel.java | 64 private Context mContext; field in RunModelsInParallel 99 mContext = context; in init() 121 final Processor result = new Processor(mContext, new Processor.Callback() { in createSubTestRunner()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | NNTestBase.java | 112 protected Context mContext; field in NNTestBase 184 mContext = ipcxt; in setupModel() 189 String nnApiCacheDir = mContext.getCodeCacheDir().toString(); in setupModel() 202 mEvaluator = mEvaluatorConfig.createEvaluator(mContext.getAssets()); in setupModel() 234 getInputOutputAssets(mContext, mInputOutputAssets, mInputOutputDatasets); in getInputOutputAssets() 395 String.format("%s/%s-%d-%d.tflite", mContext.getCacheDir().getAbsolutePath(), in copyAssetToFile() 399 copyAssetToFile(mContext, mModelFile + ".tflite", outFileName); in copyAssetToFile()
|
D | Processor.java | 43 private Context mContext; field in Processor 74 mContext = context; in Processor() 196 if (!tb.setupModel(mContext)) { in changeTest()
|
/test/vts-testcase/hal/usb/gadget/V1_0/host/src/com/android/tests/usbgadget/ |
D | HalUsbGadgetV1_0HostTest.java | 50 private static Pointer mContext; field in HalUsbGadgetV1_0HostTest 64 mContext = context.getValue(); in beforeClassWithDevice() 70 int count = mUsb.libusb_get_device_list(mContext, list); in checkProtocol()
|
/test/vts-testcase/hal/usb/gadget/V1_2/host/src/com/android/usb/gadget/vts/ |
D | VtsHalUsbGadgetV1_2HostTest.java | 54 private static Pointer mContext; field in VtsHalUsbGadgetV1_2HostTest 78 mContext = context.getValue(); in beforeClassWithDevice() 84 int count = mUsb.libusb_get_device_list(mContext, list); in checkProtocol()
|