Home
last modified time | relevance | path

Searched refs:mInvocationContext (Results 1 – 13 of 13) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/result/proto/
DProtoResultParserTest.java74 private IInvocationContext mInvocationContext; field in ProtoResultParserTest
140 mInvocationContext = new InvocationContext(); in setUp()
141 mInvocationContext.setConfigurationDescriptor(new ConfigurationDescriptor()); in setUp()
143 mInvocationContext.addAllocatedDevice( in setUp()
147 mInvocationContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, info); in setUp()
169 mInvocationContext.getBuildInfos().get(0).addBuildAttribute("early_key", "build_value"); in testEvents()
170 mInvocationContext.addInvocationAttribute("early_context_key", "context_value"); in testEvents()
171 mTestParser.invocationStarted(mInvocationContext); in testEvents()
172 mInvocationContext.getBuildInfos().get(0).addBuildAttribute("after_start", "build_value"); in testEvents()
279 mInvocationContext.getBuildInfos().get(0).addBuildAttribute("early_key", "build_value"); in testEvents_invocationFailure()
[all …]
DProtoResultReporterTest.java52 private IInvocationContext mInvocationContext; field in ProtoResultReporterTest
64 mInvocationContext = new InvocationContext(); in setUp()
65 mInvocationContext.setConfigurationDescriptor(new ConfigurationDescriptor()); in setUp()
72 mReporter.invocationStarted(mInvocationContext); in testFinalizeProto()
135 mReporter.invocationStarted(mInvocationContext); in testRunFail_interleavedWithTest()
159 mReporter.invocationStarted(mInvocationContext); in testInvocationFailure()
DStreamProtoResultReporterTest.java51 private IInvocationContext mInvocationContext; field in StreamProtoResultReporterTest
76 mInvocationContext = new InvocationContext(); in setUp()
78 mInvocationContext.setConfigurationDescriptor(new ConfigurationDescriptor()); in setUp()
95 mReporter.invocationStarted(mInvocationContext); in testStream()
177 mReporter.invocationStarted(mInvocationContext); in testStream_stopParsing()
206 mReporter.invocationStarted(mInvocationContext); in testStream_noInvocationReporting()
/tools/tradefederation/core/javatests/com/android/tradefed/device/internal/
DDeviceReleaseReporterTest.java52 private @Mock IInvocationContext mInvocationContext; field in DeviceReleaseReporterTest
65 when(mInvocationContext.getDeviceName(mTestDevice1)).thenReturn(DEVICE_1_NAME); in releaseDevices_oneDevice()
69 mInvocationContext, Map.of(mTestDevice1, DEVICE_1_STATE)); in releaseDevices_oneDevice()
83 when(mInvocationContext.getDeviceName(mTestDevice1)).thenReturn(DEVICE_1_NAME); in releaseDevices_multipleDevices()
84 when(mInvocationContext.getDeviceName(mTestDevice2)).thenReturn(DEVICE_2_NAME); in releaseDevices_multipleDevices()
88 mInvocationContext, in releaseDevices_multipleDevices()
DEarlyDeviceReleaseFeatureTest.java61 private @Mock IInvocationContext mInvocationContext; field in EarlyDeviceReleaseFeatureTest
74 when(mTestInformation.getContext()).thenReturn(mInvocationContext); in setUp()
75 when(mInvocationContext.getDevice(DEVICE_1_NAME)).thenReturn(mTestDevice1); in setUp()
76 when(mInvocationContext.getDevice(DEVICE_2_NAME)).thenReturn(mTestDevice2); in setUp()
91 verify(mListener1).releaseDevices(Mockito.eq(mInvocationContext), capture.capture()); in testFeature_oneDevice()
109 verify(mListener1).releaseDevices(Mockito.eq(mInvocationContext), capture.capture()); in testFeature_multipleDevices()
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterCommandLauncherTest.java70 private IInvocationContext mInvocationContext; field in ClusterCommandLauncherTest
98 mInvocationContext = new InvocationContext(); in setUp()
101 mLauncher.setInvocationContext(mInvocationContext); in setUp()
114 mInvocationContext.addAllocatedDevice("foo", mMockTestDevice); in testRun()
115 mInvocationContext.addAllocatedDevice("bar", mMockTestDevice); in testRun()
185 mInvocationContext = new InvocationContext(); in testRun_withTFDeviceCount()
188 mLauncher.setInvocationContext(mInvocationContext); in testRun_withTFDeviceCount()
193 mInvocationContext.addAllocatedDevice("foo", mMockTestDevice); in testRun_withTFDeviceCount()
194 mInvocationContext.addAllocatedDevice("bar", mMockTestDevice); in testRun_withTFDeviceCount()
249 mInvocationContext.addAllocatedDevice("foo", mMockTestDevice); in testRun_withSetupScripts()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/retry/
DResultAggregatorTest.java62 private IInvocationContext mInvocationContext; field in ResultAggregatorTest
92 mInvocationContext = new InvocationContext(); in setUp()
93 mInvocationContext.addDeviceBuildInfo( in setUp()
145 mAggregator.invocationStarted(mInvocationContext); in testForwarding()
176 inOrderAgg.verify(mAggListener).invocationStarted(mInvocationContext); in testForwarding()
178 inOrder.verify(mDetailedListener).invocationStarted(mInvocationContext); in testForwarding()
283 mAggregator.invocationStarted(mInvocationContext); in testForwarding_emptyModule()
302 inOrderAgg.verify(mAggListener).invocationStarted(mInvocationContext); in testForwarding_emptyModule()
304 inOrder.verify(mDetailedListener).invocationStarted(mInvocationContext); in testForwarding_emptyModule()
396 mAggregator.invocationStarted(mInvocationContext); in testForwarding_newResult()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/build/content/
DTestContentAnalyzerTest.java48 private IInvocationContext mInvocationContext; field in TestContentAnalyzerTest
52 mInvocationContext = new InvocationContext(); in setUp()
54 mInvocationContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp()
56 TestInformation.newBuilder().setInvocationContext(mInvocationContext).build(); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandLauncher.java127 private IInvocationContext mInvocationContext; field in ClusterCommandLauncher
133 mInvocationContext = invocationContext; in setInvocationContext()
162 mEnvVars.put(TF_DEVICE_COUNT, String.valueOf(mInvocationContext.getDevices().size())); in run()
167 runUtil.setEnvVariable(ANDROID_SERIALS, String.join(",", mInvocationContext.getSerials())); in run()
186 createSubprocessTestResultsParser(listener, true, mInvocationContext); in run()
387 for (final ITestDevice device : mInvocationContext.getDevices()) { in buildJavaCommandArgs()
408 List<ITestDevice> devices = mInvocationContext.getDevices(); in resetDevices()
/tools/tradefederation/core/src/com/android/tradefed/build/
DDependenciesResolver.java68 private IInvocationContext mInvocationContext; field in DependenciesResolver
92 dependency.getValue(), build, mInvocationContext); in getBuild()
130 mInvocationContext = invocationContext; in setInvocationContext()
/tools/tradefederation/core/src/com/android/tradefed/result/
DJsonHttpTestResultReporter.java100 private IInvocationContext mInvocationContext = null; field in JsonHttpTestResultReporter
107 mInvocationContext = context; in invocationStarted()
125 parseAdditionalDeviceDetails(getDevice(mInvocationContext)); in invocationEnded()
245 List<IBuildInfo> buildInfos = mInvocationContext.getBuildInfos(); in convertMetricsToJson()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java593 private final IInvocationContext mInvocationContext; field in CommandScheduler.InvocationThread
608 mInvocationContext = invocationContext; in InvocationThread()
652 mInvocationContext.addInvocationAttribute( in run()
666 listener.invocationInitiated(mInvocationContext); in run()
680 mInvocationContext.addInvocationAttributes( in run()
690 mInvocationContext, in run()
734 createReleaseMap(mInvocationContext, trackDeviceException); in run()
737 listener.invocationComplete(mInvocationContext, deviceStates); in run()
752 mCmd.getCommandTracker().getId(), elapsedTime, mInvocationContext); in run() local
875 return mInvocationContext; in getInvocationContext()
[all …]
/tools/tradefederation/contrib/src/com/android/performance/tests/
DBootTimeTest.java351 private IInvocationContext mInvocationContext = null; field in BootTimeTest
399 mInvocationContext = invocationContext; in setInvocationContext()
420 listener = collector.init(mInvocationContext, listener); in run()