Home
last modified time | relevance | path

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

12

/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/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationResultXml.java94 public void parseSuiteAttributes(XmlPullParser parser, IInvocationContext context) in parseSuiteAttributes() argument
97 context.addInvocationAttribute(SUITE_NAME_ATTR, mSuiteName); in parseSuiteAttributes()
100 context.addInvocationAttribute(SUITE_VERSION_ATTR, mSuiteVersion); in parseSuiteAttributes()
103 context.addInvocationAttribute(SUITE_PLAN_ATTR, mSuitePlan); in parseSuiteAttributes()
106 context.addInvocationAttribute(SUITE_BUILD_ATTR, mSuiteBuild); in parseSuiteAttributes()
110 context.addInvocationAttribute(REFERENCE_URL_ATTR, mReferenceUrl); in parseSuiteAttributes()
114 context.addInvocationAttribute(LOG_URL_ATTR, mLogUrl); in parseSuiteAttributes()
124 for (IBuildInfo build : holder.context.getBuildInfos()) { in addBuildInfoAttributes()
138 public void parseBuildInfoAttributes(XmlPullParser parser, IInvocationContext context) in parseBuildInfoAttributes() argument
143 context.addInvocationAttribute(key, value); in parseBuildInfoAttributes()
DPreviousSessionFileCopier.java59 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument
61 mBuildHelper = createCompatibilityHelper(context.getBuildInfos().get(0)); in invocationStarted()
DPreviousResultLoader.java148 mExpectedFingerprint = holder.context.getAttributes() in init()
158 holder.context.getAttributes().getUniqueMap().get(BUILD_VENDOR_FINGERPRINT); in init()
167 holder.context.getAttributes().getUniqueMap().get(BUILD_FINGERPRINT_UNALTERED); in init()
/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/vti/test_serving/gae/frontend/src/
Dtest.ts18 const context = require.context('./', true, /\.spec\.ts$/); constant
20 context.keys().map(context);
/test/vts/runners/host/
Dasserts.py94 context = _AssertRaisesContext(expected_exception, extras=extras)
95 return context
120 context = _AssertRaisesContext(
122 return context
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsTestPlanResultReporter.java122 public void setUp(IInvocationContext context) in setUp() argument
124 setUp(context.getDevices().get(0), context.getBuildInfos().get(0)); in setUp()
177 public void tearDown(IInvocationContext context, Throwable e) in tearDown() argument
179 tearDown(context.getDevices().get(0), context.getBuildInfos().get(0), e); in tearDown()
DVtsPythonVirtualenvPreparer.java123 public synchronized void setUp(IInvocationContext context) in setUp() argument
126 mBuildInfo = context.getBuildInfos().get(0); in setUp()
129 ITestDevice device = context.getDevices().get(0); in setUp()
144 public synchronized void tearDown(IInvocationContext context, Throwable e) in tearDown() argument
/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/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DModuleListener.java55 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument
56 CLog.d("ModuleListener.invocationStarted(%s)", context.getBuildInfos()); in invocationStarted()
57 mListener.invocationStarted(context); in invocationStarted()
DConsoleReporter.java59 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument
60 if (context == null) { in invocationStarted()
64 ITestDevice primaryDevice = context.getDevices().get(0); in invocationStarted()
DMetadataReporter.java75 public void invocationStarted(IInvocationContext context) { in invocationStarted() argument
76 IBuildInfo buildInfo = context.getBuildInfos().get(0); in invocationStarted()
/test/vts/harnesses/tradefed/src/com/android/tradefed/module/
DVtsHalAdapterModuleController.java45 public RunStrategy shouldRun(IInvocationContext context) { in shouldRun() argument
46 ITestDevice device = context.getDevices().get(0); in shouldRun()
/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/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/
DChecksumReporterTest.java89 IInvocationContext context = new InvocationContext(); in setUp() local
90 context.addDeviceBuildInfo("fakeDevice", mBuildInfo); in setUp()
92 resultReporter.invocationStarted(context); in setUp()
/test/vts-testcase/hal/usb/gadget/V1_0/host/
DVtsHalUsbGadgetV1_0HostTest.py61 with usb1.USBContext() as context:
62 for device in context.getDeviceIterator(skip_on_error=True):
/test/framework/harnesses/host_controller/command_processor/
Dcommand_config.py144 context = fd.read()
146 text_format.Merge(context, sched_cfg_msg)
151 context = fd.read()
153 text_format.Merge(context, lab_cfg_msg)
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/command/
DCompatibilityConsole.java409 holder.context in listResults()
413 Joiner.on(", ").join(holder.context.getShardsSerials().values()), in listResults()
414 printAttributes(holder.context.getAttributes(), "build_id"), in listResults()
415 printAttributes(holder.context.getAttributes(), "build_product"))); in listResults()
/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/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java246 public void invocationStarted(IInvocationContext context) { in testSingleModuleRun_checkMetadata()
247 myContext = context; in testSingleModuleRun_checkMetadata()
521 ITestDevice device, IInvocationContext context) { in ShardThread() argument
526 mShardContext = context; in ShardThread()
/test/vts-testcase/kernel/ltp/shell_environment/
Dshell_environment.py66 definition.context = self
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
DVtsMultiDeviceTest.java533 public void setInvocationContext(IInvocationContext context) { in setInvocationContext() argument
534 mInvocationContext = context; in setInvocationContext()
535 setDevice(context.getDevices().get(0)); in setInvocationContext()
536 setBuild(context.getBuildInfos().get(0)); in setInvocationContext()

12