/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/testtype/suite/module/ |
D | KernelTestModuleController.java | 48 public RunStrategy shouldRun(IInvocationContext context) { in shouldRun() argument 57 if (!deviceLowMem(context)) { in shouldRun() 62 if (deviceLowMem(context)) { in shouldRun() 70 if (!deviceWithHwasan(context)) { in shouldRun() 76 if (deviceWithHwasan(context)) { in shouldRun() 92 private boolean deviceLowMem(IInvocationContext context) { in deviceLowMem() argument 93 for (ITestDevice device : context.getDevices()) { in deviceLowMem() 118 private boolean deviceWithHwasan(IInvocationContext context) { in deviceWithHwasan() argument 119 for (ITestDevice device : context.getDevices()) { in deviceWithHwasan()
|
/test/vti/dashboard/src/test/java/com/android/vts/util/ |
D | LocalDatastoreExtension.java | 39 public void beforeAll(final ExtensionContext context) throws Exception { in beforeAll() argument 40 if (getHelper(context) == null) { in beforeAll() 44 context.getRoot().getStore(Namespace.GLOBAL).put(LocalDatastoreHelper.class, helper); in beforeAll() 50 public void beforeEach(final ExtensionContext context) throws Exception { in beforeEach() argument 51 final LocalDatastoreHelper helper = getHelper(context); in beforeEach() 56 public static LocalDatastoreHelper getHelper(final ExtensionContext context) { in getHelper() argument 57 return context.getRoot() in getHelper()
|
D | ObjectifyExtension.java | 34 public void beforeEach(final ExtensionContext context) throws Exception { in beforeEach() argument 36 LocalDatastoreExtension.getHelper(context).getOptions().getService(); in beforeEach() 42 context.getStore(NAMESPACE).put(Closeable.class, rootService); in beforeEach() 46 public void afterEach(final ExtensionContext context) throws Exception { in afterEach() argument 48 context.getStore(NAMESPACE).get(Closeable.class, Closeable.class); in afterEach()
|
D | MockitoExtension.java | 29 public void beforeEach(final ExtensionContext context) throws Exception { in beforeEach() argument 30 final Object testInstance = context.getTestInstance().get(); in beforeEach()
|
/test/vts-testcase/kernel/ltp/shell_environment/definitions/base_definitions/ |
D | check_setup_cleanup.py | 43 self.context = None 55 def context(self): member in CheckSetupCleanup 58 @context.setter 59 def context(self, context): member in CheckSetupCleanup 60 self._context = context 73 if self.context is None: 88 self.context.AddCleanupJob(self.InternalCall, self.Cleanup) 215 return self.context.shell
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/ |
D | CertificationResultXml.java | 115 public void parseSuiteAttributes(XmlPullParser parser, IInvocationContext context) in parseSuiteAttributes() argument 118 context.addInvocationAttribute(SUITE_NAME_ATTR, mSuiteName); in parseSuiteAttributes() 121 context.addInvocationAttribute(SUITE_VERSION_ATTR, mSuiteVersion); in parseSuiteAttributes() 124 context.addInvocationAttribute(SUITE_PLAN_ATTR, mSuitePlan); in parseSuiteAttributes() 127 context.addInvocationAttribute(SUITE_BUILD_ATTR, mSuiteBuild); in parseSuiteAttributes() 131 context.addInvocationAttribute(REFERENCE_URL_ATTR, mReferenceUrl); in parseSuiteAttributes() 135 context.addInvocationAttribute(LOG_URL_ATTR, mLogUrl); in parseSuiteAttributes() 145 for (IBuildInfo build : holder.context.getBuildInfos()) { in addBuildInfoAttributes() 159 public void parseBuildInfoAttributes(XmlPullParser parser, IInvocationContext context) in parseBuildInfoAttributes() argument 164 context.addInvocationAttribute(key, value); in parseBuildInfoAttributes()
|
D | PreviousResultLoader.java | 174 mExpectedFingerprint = holder.context.getAttributes() in init() 184 holder.context.getAttributes().getUniqueMap().get(BUILD_VENDOR_FINGERPRINT); in init() 193 holder.context.getAttributes().getUniqueMap().get(BUILD_FINGERPRINT_UNALTERED); in init() 203 holder.context.getAttributes().getUniqueMap().get(COMMAND_LINE_ARGS)); in init()
|
/test/vti/test_serving/gae/frontend/src/ |
D | test.ts | 18 const context = require.context('./', true, /\.spec\.ts$/); constant 20 context.keys().map(context);
|
/test/mlts/benchmark/src/com/android/nn/crashtest/app/ |
D | AcceleratorSpecificTestSupport.java | 44 Context context, String acceleratorName) throws NnApiDelegationFailure { in findTestModelRunningOnAccelerator() argument 46 if (Processor.isTestModelSupportedByAccelerator(context, model, acceleratorName)) { in findTestModelRunningOnAccelerator() 54 Context context, String acceleratorName) throws NnApiDelegationFailure { in findAllTestModelsRunningOnAccelerator() argument 57 if (Processor.isTestModelSupportedByAccelerator(context, model, acceleratorName)) { in findAllTestModelsRunningOnAccelerator() 113 public DriverLivenessChecker(Context context, String acceleratorName, in DriverLivenessChecker() argument 115 mProcessor = new Processor(context, in DriverLivenessChecker()
|
/test/vts-testcase/kernel/encryption/ |
D | utils.cpp | 370 const std::vector<uint8_t> &context, in GetFixedInputString() argument 377 fixed_input_string->insert(fixed_input_string->end(), context.begin(), in GetFixedInputString() 378 context.end()); in GetFixedInputString() 384 const std::vector<uint8_t> &context, in AesCmacKdfHelper() argument 390 GetFixedInputString(count + 1, label, context, (output_key_size * 8), in AesCmacKdfHelper() 409 std::vector<uint8_t> context = { in DeriveHwWrappedEncryptionKey() local 416 return AesCmacKdfHelper(master_key, label, context, kAes256XtsKeySize, in DeriveHwWrappedEncryptionKey() 426 std::vector<uint8_t> context = {'r', 'a', 'w', ' ', 's', 'e', 'c', in DeriveHwWrappedRawSecret() local 431 return AesCmacKdfHelper(master_key, label, context, kAes256KeySize, secret); in DeriveHwWrappedRawSecret()
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/ |
D | PropertyCheckTest.java | 53 IInvocationContext context = new InvocationContext(); in setUp() local 54 context.addAllocatedDevice("device", mMockDevice); in setUp() 55 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp() 56 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
|
D | VtsDeviceInfoCollectorTest.java | 78 IInvocationContext context = new InvocationContext(); in setUp() local 79 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp() 80 context.addAllocatedDevice("device", mMockTestDevice); in setUp() 81 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
|
D | DeviceInfoCollectorTest.java | 56 IInvocationContext context = new InvocationContext(); in setUp() local 57 context.addDeviceBuildInfo("device", mBuildInfo); in setUp() 58 context.addAllocatedDevice("device", mDevice); in setUp() 61 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
|
D | SettingsPreparerTest.java | 57 IInvocationContext context = new InvocationContext(); in setUp() local 58 context.addAllocatedDevice("device", mMockDevice); in setUp() 59 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp() 60 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
|
D | MediaPreparerTest.java | 56 IInvocationContext context = new InvocationContext(); in setUp() local 57 context.addDeviceBuildInfo("device", mMockBuildInfo); in setUp() 58 context.addAllocatedDevice("device", mMockDevice); in setUp() 59 mTestInfo = TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | NNTestBase.java | 243 public static List<InferenceInOutSequence> getInputOutputAssets(Context context, in getInputOutputAssets() argument 250 inOutList.add(ioAsset.readAssets(context.getAssets())); in getInputOutputAssets() 255 inOutList.addAll(dataset.readDataset(context.getAssets(), context.getCacheDir())); in getInputOutputAssets() 388 public static boolean copyModelToFile(Context context, String modelFileName, File targetFile) in copyModelToFile() argument 394 NNTestBase.copyAssetToFile(context, modelFileName, targetFile.getAbsolutePath()); in copyModelToFile() 398 public static void copyAssetToFile(Context context, String modelAssetName, String targetPath) in copyAssetToFile() argument 400 AssetManager assetManager = context.getAssets(); in copyAssetToFile()
|
D | Processor.java | 73 public Processor(Context context, Processor.Callback callback, int[] testList) { in Processor() argument 74 mContext = context; in Processor() 147 public static boolean isTestModelSupportedByAccelerator(Context context, in isTestModelSupportedByAccelerator() argument 154 return tb.setupModel(context); in isTestModelSupportedByAccelerator()
|
/test/vts/runners/host/ |
D | asserts.py | 94 context = _AssertRaisesContext(expected_exception, extras=extras) 95 return context 120 context = _AssertRaisesContext( 122 return context
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/ |
D | DeviceInteractionHelperInstaller.java | 77 IInvocationContext context = new InvocationContext(); in setUp() local 78 context.addAllocatedDevice("device", device); in setUp() 79 context.addDeviceBuildInfo("device", buildInfo); in setUp() 81 TestInformation.newBuilder().setInvocationContext(context).build(); in setUp()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/app/ |
D | BenchmarkTestBase.java | 109 public static void waitUntilCharged(Context context, int minChargeLevel) { in waitUntilCharged() argument 115 public void onReceive(Context context, Intent intent) { in waitUntilCharged() 144 context.registerReceiver(receiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in waitUntilCharged() 151 context.unregisterReceiver(receiver); in waitUntilCharged()
|
/test/vti/dashboard/src/test/java/com/android/vts/api/ |
D | VtsSpreadSheetSyncServletTest.java | 60 @Mock private ServletContext context; field in VtsSpreadSheetSyncServletTest 94 when(request.getServletContext()).thenReturn(context); in setUpExtra() 100 when(servletConfig.getServletContext()).thenReturn(context); in setUpExtra()
|
/test/vts/harnesses/tradefed/src/com/android/tradefed/module/ |
D | VtsHalAdapterModuleController.java | 45 public RunStrategy shouldRun(IInvocationContext context) { in shouldRun() argument 46 ITestDevice device = context.getDevices().get(0); in shouldRun()
|
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/ |
D | ModuleListener.java | 55 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument 56 CLog.d("ModuleListener.invocationStarted(%s)", context.getBuildInfos()); in invocationStarted() 57 mListener.invocationStarted(context); in invocationStarted()
|
D | ConsoleReporter.java | 59 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument 60 if (context == null) { in invocationStarted() 64 ITestDevice primaryDevice = context.getDevices().get(0); in invocationStarted()
|
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/ |
D | PerformanceDegradationTest.java | 103 public void init(Context context, Intent configParams, in init() argument 105 mContext = context; in init() 250 ModelCompiler(final CountDownLatch start, final Context context, 254 mProcessor = new Processor(context, mNoOpCallback, new int[0]);
|