Home
last modified time | relevance | path

Searched refs:IInvocationContext (Results 1 – 25 of 169) sorted by relevance

1234567

/tools/tradefederation/core/src/com/android/tradefed/invoker/
DIInvocationExecution.java49 IInvocationContext context, in fetchBuild()
63 public default void cleanUpBuilds(IInvocationContext context, IConfiguration config) {} in cleanUpBuilds()
77 IInvocationContext context, in doSetup()
93 IInvocationContext context, IConfiguration config, ITestLogger logger) in runDevicePreInvocationSetup()
104 IInvocationContext context, IConfiguration config) {} in runDevicePostInvocationTearDown()
117 IInvocationContext context, in doTeardown()
132 IInvocationContext context, IConfiguration config, Throwable exception) {} in doCleanUp()
148 IConfiguration config, IInvocationContext context, IRescheduler rescheduler) { in shardConfig()
161 IInvocationContext context, IConfiguration config, ITestInvocationListener listener) in runTests()
177 IInvocationContext context); in resetBuildAndReschedule()
DInvocationExecution.java85 IInvocationContext context, in fetchBuild()
145 public void cleanUpBuilds(IInvocationContext context, IConfiguration config) { in cleanUpBuilds()
164 IConfiguration config, IInvocationContext context, IRescheduler rescheduler) { in shardConfig()
176 IInvocationContext context, in doSetup()
226 context.addInvocationTimingMetric(IInvocationContext.TimingEvent.SETUP, setupDuration); in doSetup()
238 IInvocationContext context, IConfiguration config, ITestLogger logger) in runDevicePreInvocationSetup()
261 IInvocationContext context, IConfiguration config) { in runDevicePostInvocationTearDown()
275 IInvocationContext context, in runMultiTargetPreparers()
296 IInvocationContext context, in runMultiTargetPreparersTearDown()
334 IInvocationContext context, in doTeardown()
[all …]
DShardMasterResultForwarder.java48 private IInvocationContext mOriginalContext;
49 private List<IInvocationContext> mShardContextList;
70 public void invocationStarted(IInvocationContext context) { in invocationStarted()
176 IInvocationContext main, List<IInvocationContext> shardContexts) { in copyShardBuildInfoToMain()
177 for (IInvocationContext shard : shardContexts) { in copyShardBuildInfoToMain()
DInvocationContext.java43 public class InvocationContext implements IInvocationContext {
53 private Map<IInvocationContext.TimingEvent, Long> mInvocationTimingMetrics;
59 private IInvocationContext mModuleContext;
234 public Map<IInvocationContext.TimingEvent, Long> getInvocationTimingMetrics() { in getInvocationTimingMetrics()
242 public void addInvocationTimingMetric(IInvocationContext.TimingEvent timingEvent, in addInvocationTimingMetric()
325 public void setModuleInvocationContext(IInvocationContext invocationContext) { in setModuleInvocationContext()
331 public IInvocationContext getModuleInvocationContext() { in getModuleInvocationContext()
DTestInvocation.java153 public void invocationStarted(IInvocationContext context) { in invocationStarted()
169 private void logStartInvocation(IInvocationContext context, IConfiguration config) { in logStartInvocation()
204 IInvocationContext context, in performInvocation()
372 IInvocationContext context, in prepareAndRun()
392 private void startInvocation(IConfiguration config, IInvocationContext context, in startInvocation()
406 private boolean resume(IConfiguration config, IInvocationContext context, in resume()
443 IInvocationContext context, in reportFailure()
532 void logDeviceBatteryLevel(IInvocationContext context, String event) { in logDeviceBatteryLevel()
575 IInvocationContext context, in invokeFetchBuild()
613 IInvocationContext context, in invoke()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/monitor/
DInvocationsMonitorTest.java20 import com.android.tradefed.invoker.IInvocationContext;
42 IInvocationContext initialContext = new InvocationContext(); in testTrackInvocation()
43 initialContext.addInvocationAttribute(IInvocationContext.INVOCATION_ID, "123"); in testTrackInvocation()
53 IInvocationContext initialContext = new InvocationContext(); in testTrackInvocation_sharding()
54 initialContext.addInvocationAttribute(IInvocationContext.INVOCATION_ID, "123"); in testTrackInvocation_sharding()
60 IInvocationContext shard1 = new InvocationContext(); in testTrackInvocation_sharding()
61 shard1.addInvocationAttribute(IInvocationContext.INVOCATION_ID, "123"); in testTrackInvocation_sharding()
63 IInvocationContext shard2 = new InvocationContext(); in testTrackInvocation_sharding()
64 shard2.addInvocationAttribute(IInvocationContext.INVOCATION_ID, "123"); in testTrackInvocation_sharding()
/tools/tradefederation/core/src/com/android/tradefed/invoker/monitor/
DInvocationTracker.java18 import com.android.tradefed.invoker.IInvocationContext;
29 private Map<IInvocationContext, Boolean> mInvocationContext;
40 public InvocationTracker(IInvocationContext context) { in InvocationTracker()
43 Collections.synchronizedMap(new LinkedHashMap<IInvocationContext, Boolean>()); in InvocationTracker()
55 public boolean hasInvocation(IInvocationContext context) { in hasInvocation()
60 public void addInvocationTracking(IInvocationContext context) { in addInvocationTracking()
70 public synchronized void invocationDone(IInvocationContext context) { in invocationDone()
/tools/tradefederation/core/src/com/android/tradefed/result/
DCollectingTestListener.java21 import com.android.tradefed.invoker.IInvocationContext;
56 private IInvocationContext mContext;
58 private Map<String, IInvocationContext> mModuleContextMap = new HashMap<>();
63 private IInvocationContext mCurrentModuleContext = null;
106 public IInvocationContext getInvocationContext() { in getInvocationContext()
133 public void invocationStarted(IInvocationContext context) { in invocationStarted()
151 public void testModuleStarted(IInvocationContext moduleContext) { in testModuleStarted()
507 public IInvocationContext getModuleContextForRunResult(String testRunName) { in getModuleContextForRunResult()
DITestInvocationListener.java19 import com.android.tradefed.invoker.IInvocationContext;
56 public default void invocationStarted(IInvocationContext context) {} in invocationStarted()
99 public default void testModuleStarted(IInvocationContext moduleContext) {} in testModuleStarted()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultParser.java19 import com.android.tradefed.invoker.IInvocationContext;
61 private IInvocationContext mMainContext;
68 IInvocationContext context, in ProtoResultParser()
76 IInvocationContext context, in ProtoResultParser()
189 IInvocationContext receivedProto; in handleInvocationStart()
215 IInvocationContext context = in handleInvocationEnded()
255 IInvocationContext moduleContext = in handleModuleStart()
415 IInvocationContext receiverContext, IInvocationContext endInvocationContext) { in mergeInvocationContext()
DStreamProtoReceiver.java18 import com.android.tradefed.invoker.IInvocationContext;
61 IInvocationContext mainContext, in StreamProtoReceiver()
77 IInvocationContext mainContext, in StreamProtoReceiver()
95 IInvocationContext mainContext, in StreamProtoReceiver()
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecution.java27 import com.android.tradefed.invoker.IInvocationContext;
49 IInvocationContext context, in fetchBuild()
66 IInvocationContext context, IConfiguration config, ITestInvocationListener listener) in doSetup()
79 IInvocationContext context, in doTeardown()
96 public void doCleanUp(IInvocationContext context, IConfiguration config, Throwable exception) { in doCleanUp()
107 IInvocationContext context, IConfiguration config, ITestInvocationListener listener) in runTests()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayer.java21 import com.android.tradefed.invoker.IInvocationContext;
44 public IInvocationContext mModuleContext;
48 private IInvocationContext mContext;
73 IInvocationContext moduleContext = holder.mModuleContext; in run()
114 IInvocationContext moduleContext, in addToReplay()
130 public void setInvocationContext(IInvocationContext invocationContext) { in setInvocationContext()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DXmlResultReporterTest.java19 import com.android.tradefed.invoker.IInvocationContext;
58 public void invocationStarted(IInvocationContext context) { in invocationStarted()
106 IInvocationContext context = new InvocationContext(); in testEmptyGeneration()
120 IInvocationContext context = new InvocationContext(); in testSinglePass()
144 IInvocationContext context = new InvocationContext(); in testSingleFail()
DConsoleResultReporterTest.java18 import com.android.tradefed.invoker.IInvocationContext;
40 IInvocationContext nullContext = null; in testGetInvocationSummary_empty()
51 IInvocationContext nullContext = null; in testGetInvocationSummary_test_run_metrics()
72 IInvocationContext nullContext = null; in testGetInvocationSummary_test_metrics()
99 IInvocationContext nullContext = null; in testGetInvocationSummary_logs()
120 IInvocationContext nullContext = null; in testGetInvocationSummary_all()
DMetricsXMLResultReporterTest.java24 import com.android.tradefed.invoker.IInvocationContext;
60 IInvocationContext context = new InvocationContext(); in testEmptyGeneration()
77 IInvocationContext context = new InvocationContext(); in testRunMetrics()
104 IInvocationContext context = new InvocationContext(); in testTestMetrics()
129 IInvocationContext context = new InvocationContext(); in testTestFailMetrics()
DEmailResultReporterTest.java20 import com.android.tradefed.invoker.IInvocationContext;
52 IInvocationContext context = new InvocationContext(); in testInvocationEnded()
71 IInvocationContext context = new InvocationContext(); in testInvocationEnded_multiBuild()
93 IInvocationContext context = new InvocationContext(); in testNullFlavorAndBranch()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/module/
DBaseModuleController.java19 import com.android.tradefed.invoker.IInvocationContext;
49 private IInvocationContext mContext;
52 public final RunStrategy shouldRunModule(IInvocationContext context) { in shouldRunModule()
63 public abstract RunStrategy shouldRun(IInvocationContext context); in shouldRun()
/tools/tradefederation/core/src/com/android/tradefed/command/
DICommandScheduler.java26 import com.android.tradefed.invoker.IInvocationContext;
49 public default void invocationInitiated(IInvocationContext context) {} in invocationInitiated()
59 IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates); in invocationComplete()
139 IInvocationContext context, IScheduledInvocationListener listener, String[] args) in execCommand()
DCommandScheduler.java55 import com.android.tradefed.invoker.IInvocationContext;
131 private Map<IInvocationContext, InvocationThread> mInvocationThreadMap;
479 public void invocationComplete(IInvocationContext context, in invocationComplete()
533 private final IInvocationContext mInvocationContext;
540 public InvocationThread(String name, IInvocationContext invocationContext, in InvocationThread()
690 int invocId, long elapsedTime, final IInvocationContext context) { in logInvocationEndedEvent()
712 IInvocationContext getInvocationContext() { in getInvocationContext()
848 mInvocationThreadMap = new HashMap<IInvocationContext, InvocationThread>(); in CommandScheduler()
1034 Map<ExecutableCommand, IInvocationContext> scheduledCommandMap = new HashMap<>(); in processReadyCommands()
1044 IInvocationContext context = new InvocationContext(); in processReadyCommands()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandSchedulerTest.java50 import com.android.tradefed.invoker.IInvocationContext;
103 private IInvocationContext mContext;
123 protected IInvocationContext createInvocationContext() { in createInvocationContext()
366 mockListener.invocationInitiated((IInvocationContext) EasyMock.anyObject()); in testExecCommand()
367 mockListener.invocationComplete((IInvocationContext)EasyMock.anyObject(), in testExecCommand()
386 mMockInvocation.invoke((IInvocationContext)EasyMock.anyObject(), in setExpectedInvokeCalls()
413 mMockInvocation.invoke((IInvocationContext)EasyMock.anyObject(), in waitForExpectedInvokeCalls()
471 mMockInvocation.invoke((IInvocationContext)EasyMock.anyObject(), in testRun_fatalError()
584 mMockInvocation.invoke(EasyMock.<IInvocationContext>anyObject(), in testRun_rescheduled()
1085 mMockInvocation.invoke((IInvocationContext)EasyMock.anyObject(), in testExecCommand_multipleDevices()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DStreamProtoResultReporterTest.java22 import com.android.tradefed.invoker.IInvocationContext;
47 private IInvocationContext mInvocationContext;
48 private IInvocationContext mMainInvocationContext;
191 private IInvocationContext createModuleContext(String moduleId) { in createModuleContext()
192 IInvocationContext context = new InvocationContext(); in createModuleContext()
DProtoResultParserTest.java24 import com.android.tradefed.invoker.IInvocationContext;
57 private IInvocationContext mInvocationContext;
58 private IInvocationContext mMainInvocationContext;
64 TestRecord invocationStartRecord, IInvocationContext context) { in processStartInvocation()
209 IInvocationContext context = mMainInvocationContext; in testEvents()
486 IInvocationContext context = mMainInvocationContext; in testEvents_subprocess()
561 private IInvocationContext createModuleContext(String moduleId) { in createModuleContext()
562 IInvocationContext context = new InvocationContext(); in createModuleContext()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DLongevityHostRunnerTest.java27 import com.android.tradefed.invoker.IInvocationContext;
64 private IInvocationContext mMockContext;
97 private IInvocationContext mContext;
136 public void setInvocationContext(IInvocationContext invocationContext) { in setInvocationContext()
178 mMockContext = mock(IInvocationContext.class); in setUpMocks()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DTradefedSandboxRunner.java27 import com.android.tradefed.invoker.IInvocationContext;
91 IInvocationContext context = null; in run()
108 context = (IInvocationContext) SerializationUtil.deserialize(contextFile, false); in run()
159 IInvocationContext metadata, Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete()

1234567