Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 37) sorted by relevance

12

/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/testtype/suite/module/
DKernelTestModuleController.java48 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/vts-testcase/kernel/ltp/shell_environment/definitions/base_definitions/
Dcheck_setup_cleanup.py43 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/vti/dashboard/src/test/java/com/android/vts/util/
DLocalDatastoreExtension.java39 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()
DObjectifyExtension.java34 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()
DMockitoExtension.java29 public void beforeEach(final ExtensionContext context) throws Exception { in beforeEach() argument
30 final Object testInstance = context.getTestInstance().get(); in beforeEach()
/test/cts-root/tests/stats/src/android/stats/cts_root/
DStatsHelperTest.java40 public synchronized void onReceive(Context context, Intent intent) { in onReceive() argument
42 onReceiveInternal(context, intent); in onReceive()
46 protected void onReceiveInternal(Context context, Intent intent) { in onReceiveInternal() argument
59 final Context context = InstrumentationRegistry.getInstrumentation().getContext(); in testSendStatsdReadyBroadcast() local
64 protected void onReceiveInternal(Context context, Intent intent) { in testSendStatsdReadyBroadcast()
70 context.registerReceiver(receiver, intentFilter); in testSendStatsdReadyBroadcast()
72 StatsHelper.sendStatsdReadyBroadcast(context); in testSendStatsdReadyBroadcast()
/test/vti/test_serving/gae/frontend/src/
Dtest.ts18 const context = require.context('./', true, /\.spec\.ts$/); constant
20 context.keys().map(context);
/test/mlts/benchmark/src/com/android/nn/crashtest/app/
DAcceleratorSpecificTestSupport.java45 Context context, String acceleratorName) throws NnApiDelegationFailure { in findTestModelRunningOnAccelerator() argument
47 if (Processor.isTestModelSupportedByAccelerator(context, model, acceleratorName)) { in findTestModelRunningOnAccelerator()
55 Context context, String acceleratorName) throws NnApiDelegationFailure { in findAllTestModelsRunningOnAccelerator() argument
58 if (Processor.isTestModelSupportedByAccelerator(context, model, acceleratorName)) { in findAllTestModelsRunningOnAccelerator()
114 public DriverLivenessChecker(Context context, String acceleratorName, in DriverLivenessChecker() argument
116 mProcessor = new Processor(context, in DriverLivenessChecker()
/test/vts-testcase/kernel/encryption/
Dutils.cpp369 const std::vector<uint8_t> &context, in GetFixedInputString() argument
376 fixed_input_string->insert(fixed_input_string->end(), context.begin(), in GetFixedInputString()
377 context.end()); in GetFixedInputString()
383 const std::vector<uint8_t> &context, in AesCmacKdfHelper() argument
389 GetFixedInputString(count + 1, label, context, (output_key_size * 8), in AesCmacKdfHelper()
408 std::vector<uint8_t> context = { in DeriveHwWrappedEncryptionKey() local
415 return AesCmacKdfHelper(master_key, label, context, kAes256XtsKeySize, in DeriveHwWrappedEncryptionKey()
425 std::vector<uint8_t> context = {'r', 'a', 'w', ' ', 's', 'e', 'c', in DeriveHwWrappedRawSecret() local
430 return AesCmacKdfHelper(master_key, label, context, kAes256KeySize, secret); in DeriveHwWrappedRawSecret()
Dfile_based_encryption_tests.cpp355 int mode, FscryptHkdfContext context,
599 static std::vector<uint8_t> InitHkdfInfo(FscryptHkdfContext context) { in InitHkdfInfo() argument
601 'f', 's', 'c', 'r', 'y', 'p', 't', '\0', static_cast<uint8_t>(context)}; in InitHkdfInfo()
637 FscryptHkdfContext context, std::vector<uint8_t> &enc_key) { in DerivePerModeEncryptionKey() argument
638 std::vector<uint8_t> hkdf_info = InitHkdfInfo(context); in DerivePerModeEncryptionKey()
641 if (context == HKDF_CONTEXT_IV_INO_LBLK_64_KEY || in DerivePerModeEncryptionKey()
642 context == HKDF_CONTEXT_IV_INO_LBLK_32_KEY) in DerivePerModeEncryptionKey()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DNNTestBase.java251 public static List<InferenceInOutSequence> getInputOutputAssets(Context context, in getInputOutputAssets() argument
258 inOutList.add(ioAsset.readAssets(context.getAssets())); in getInputOutputAssets()
263 inOutList.addAll(dataset.readDataset(context.getAssets(), context.getCacheDir())); in getInputOutputAssets()
403 public static boolean copyModelToFile(Context context, String modelFileName, File targetFile) in copyModelToFile() argument
409 NNTestBase.copyAssetToFile(context, modelFileName, targetFile.getAbsolutePath()); in copyModelToFile()
413 public static void copyAssetToFile(Context context, String modelAssetName, String targetPath) in copyAssetToFile() argument
415 AssetManager assetManager = context.getAssets(); in copyAssetToFile()
DProcessor.java73 public Processor(Context context, Processor.Callback callback, int[] testList) { in Processor() argument
74 mContext = context; in Processor()
161 public static boolean isTestModelSupportedByAccelerator(Context context, in isTestModelSupportedByAccelerator() argument
168 return tb.setupModel(context); in isTestModelSupportedByAccelerator()
/test/cts-root/tests/usage/src/android/usage/cts_root/
DStorageStatsManagerLocalTest.java54 Context context = ApplicationProvider.getApplicationContext(); in testStorageAugmenter() local
56 context.getSystemService(StorageStatsManager.class); in testStorageAugmenter()
57 String packageName = context.getPackageName(); in testStorageAugmenter()
58 UserHandle user = context.getUser(); in testStorageAugmenter()
/test/vts/runners/host/
Dasserts.py94 context = _AssertRaisesContext(expected_exception, extras=extras)
95 return context
120 context = _AssertRaisesContext(
122 return context
/test/mlts/benchmark/src/com/android/nn/benchmark/app/
DBenchmarkTestBase.java113 public static void waitUntilCharged(Context context, int minChargeLevel) { in waitUntilCharged() argument
119 public void onReceive(Context context, Intent intent) { in waitUntilCharged()
148 context.registerReceiver(receiver, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in waitUntilCharged()
155 context.unregisterReceiver(receiver); in waitUntilCharged()
/test/vti/dashboard/src/test/java/com/android/vts/api/
DVtsSpreadSheetSyncServletTest.java60 @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-testcase/hal/usb/gadget/V1_2/host/src/com/android/usb/gadget/vts/
DVtsHalUsbGadgetV1_2HostTest.java76 PointerByReference context = new PointerByReference(); in beforeClassWithDevice() local
77 mUsb.libusb_init(context); in beforeClassWithDevice()
78 mContext = context.getValue(); in beforeClassWithDevice()
/test/vts-testcase/hal/usb/gadget/V1_0/host/src/com/android/tests/usbgadget/
DHalUsbGadgetV1_0HostTest.java62 PointerByReference context = new PointerByReference(); in beforeClassWithDevice() local
63 mUsb.libusb_init(context); in beforeClassWithDevice()
64 mContext = context.getValue(); in beforeClassWithDevice()
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/
DPerformanceDegradationTest.java104 public void init(Context context, Intent configParams, in init() argument
106 mContext = context; in init()
251 ModelCompiler(final CountDownLatch start, final Context context,
255 mProcessor = new Processor(context, mNoOpCallback, new int[0]);
/test/app_compat/csuite/harness/src/test/java/com/android/compatibility/targetprep/
DCheckGmsPreparerTest.java272 IInvocationContext context = new InvocationContext(); in createTestInfo() local
273 context.addAllocatedDevice("device1", device); in createTestInfo()
274 context.addDeviceBuildInfo("device1", new BuildInfo()); in createTestInfo()
275 return TestInformation.newBuilder().setInvocationContext(context).build(); in createTestInfo()
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/config/
DModuleGeneratorTest.java239 IInvocationContext context = new InvocationContext(); in createTestInfo() local
240 context.addAllocatedDevice("device1", Mockito.mock(ITestDevice.class)); in createTestInfo()
241 context.addDeviceBuildInfo("device1", new BuildInfo()); in createTestInfo()
242 return TestInformation.newBuilder().setInvocationContext(context).build(); in createTestInfo()
/test/vts/utils/python/coverage/
Dsancov_parser_test.py48 with self.assertRaises(parser.FileFormatError) as context:
50 self.assertTrue('Invalid magic' in str(context.exception))
/test/mlts/benchmark/src/com/android/nn/crashtest/core/
DCrashTestCoordinator.java59 public CrashTestCoordinator(Context context) { in CrashTestCoordinator() argument
60 mContext = context; in CrashTestCoordinator()
/test/vti/dashboard/src/main/java/com/android/vts/util/
DGraphSerializer.java27 public JsonElement serialize(Graph src, Type typeOfSrc, JsonSerializationContext context) { in serialize() argument
/test/vts-testcase/hal/usb/gadget/V1_0/host/src/com/android/tests/usbgadget/libusb/
DIUsbNative.java30 int libusb_init(PointerByReference context); in libusb_init() argument

12