Home
last modified time | relevance | path

Searched refs:tid (Results 1 – 21 of 21) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/invoker/
DShardListenerTest.java70 TestDescription tid = new TestDescription("class1", "name1"); in testBufferAndReplay() local
74 mShardListener.testStarted(tid, 0L); in testBufferAndReplay()
75 mShardListener.testEnded(tid, 0L, new HashMap<String, Metric>()); in testBufferAndReplay()
83 inOrder.verify(mMockListener).testStarted(tid, 0L); in testBufferAndReplay()
84 inOrder.verify(mMockListener).testEnded(tid, 0L, new HashMap<String, Metric>()); in testBufferAndReplay()
92 verify(mMockListener).testStarted(tid, 0L); in testBufferAndReplay()
93 verify(mMockListener).testEnded(tid, 0L, new HashMap<String, Metric>()); in testBufferAndReplay()
102 TestDescription tid = new TestDescription("class1", "name1"); in testPlayRuns() local
108 mShardListener.testStarted(tid, 0L); in testPlayRuns()
109 mShardListener.testEnded(tid, 0L, new HashMap<String, Metric>()); in testPlayRuns()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/
DModuleListenerTest.java59 TestDescription tid = new TestDescription("class", "test" + i); in testRegularExecution() local
60 mListener.testStarted(tid); in testRegularExecution()
61 mListener.testEnded(tid, new HashMap<String, Metric>()); in testRegularExecution()
73 TestDescription tid = new TestDescription("class", "test" + numTests); in testRun_missingTests() local
75 mListener.testStarted(tid); in testRun_missingTests()
76 mListener.testEnded(tid, new HashMap<String, Metric>()); in testRun_missingTests()
93 TestDescription tid = new TestDescription("class", "test" + numTests); in testInternalRerun() local
95 mListener.testStarted(tid); in testInternalRerun()
96 mListener.testEnded(tid, new HashMap<String, Metric>()); in testInternalRerun()
120 TestDescription tid = new TestDescription("class", "test" + i); in testMultiTestRun() local
[all …]
DTestSuiteStub.java96 TestDescription tid = new TestDescription("TestStub", "test1"); in testAttempt() local
97 listener.testStarted(tid); in testAttempt()
100 tid.toString() + "-file", in testAttempt()
104 listener.testEnded(tid, new HashMap<String, Metric>()); in testAttempt()
168 for (TestDescription tid : mShardedTestToRun) { in run()
169 listener.testStarted(tid); in run()
170 listener.testEnded(tid, new HashMap<String, Metric>()); in run()
173 TestDescription tid = mShardedTestToRun.get(0); in run() local
174 listener.testStarted(tid); in run()
175 listener.testEnded(tid, new HashMap<String, Metric>()); in run()
[all …]
DMultiDeviceStubTest.java54 TestDescription tid = new TestDescription(getClass().getSimpleName(), "test" + i); in run() local
55 listener.testStarted(tid, 0); in run()
56 listener.testEnded(tid, 5, new HashMap<String, Metric>()); in run()
DModuleDefinitionTest.java1277 TestDescription tid = new TestDescription("class", "method"); in testModuleController_skipTestCases()
1279 listener.testStarted(tid); in testModuleController_skipTestCases()
1281 tid, in testModuleController_skipTestCases()
1283 listener.testEnded(tid, new HashMap<String, Metric>()); in testModuleController_skipTestCases()
/tools/tradefederation/core/common_util/com/android/tradefed/invoker/tracing/
DActiveTrace.java46 private final long tid; field in ActiveTrace
54 public ActiveTrace(long pid, long tid) { in ActiveTrace() argument
55 this(pid, tid, false); in ActiveTrace()
64 public ActiveTrace(long pid, long tid, boolean mainProcess) { in ActiveTrace() argument
66 this.tid = tid; in ActiveTrace()
83 createMainInvocationTracker((int) pid, (int) tid, traceUuid, isSubprocess); in startTracing()
112 reportTraceEvent(categories, name, (int) tid, null, type); in reportTraceEvent()
119 return tid; in reportingThreadId()
136 if (threadId != this.tid) { in reportTraceEvent()
191 int pid, int tid, long traceUuid, boolean isSubprocess) { in createMainInvocationTracker() argument
[all …]
DTracingLogger.java38 public static ActiveTrace createActiveTrace(long pid, long tid) { in createActiveTrace() argument
39 return createActiveTrace(pid, tid, false); in createActiveTrace()
42 public static ActiveTrace createActiveTrace(long pid, long tid, boolean mainProcess) { in createActiveTrace() argument
45 ActiveTrace trace = new ActiveTrace(pid, tid, mainProcess); in createActiveTrace()
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DReportPassedTestsTest.java73 TestDescription tid = new TestDescription("class", "testName"); in testReport() local
74 mReporter.testStarted(tid); in testReport()
75 mReporter.testEnded(tid, Collections.emptyMap()); in testReport()
129 TestDescription tid = new TestDescription("class", "testName"); in testReport_runFailure_withPassedTestCases() local
136 mReporter.testStarted(tid); in testReport_runFailure_withPassedTestCases()
137 mReporter.testEnded(tid, Collections.emptyMap()); in testReport_runFailure_withPassedTestCases()
202 TestDescription tid = new TestDescription("class", "testName"); in testReport_moduleFailure_withPassedTestCases_shards() local
211 mReporter.testStarted(tid); in testReport_moduleFailure_withPassedTestCases_shards()
212 mReporter.testEnded(tid, Collections.emptyMap()); in testReport_moduleFailure_withPassedTestCases_shards()
231 TestDescription tid = new TestDescription("class", "testName"); in testReport_moduleFailure_withPassedTestCases() local
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DTfTestLauncher.java216 TestDescription tid = new TestDescription("elapsed-time", "run-elapsed-time"); in reportMetrics() local
217 listener.testStarted(tid); in reportMetrics()
221 listener.testEnded(tid, runMetrics); in reportMetrics()
238 TestDescription tid = new TestDescription("temporary-files", "testIfClean"); in testTmpDirClean() local
239 listener.testStarted(tid); in testTmpDirClean()
263 listener.testFailed(tid, FailureDescription.create(trace)); in testTmpDirClean()
265 listener.testEnded(tid, new HashMap<String, Metric>()); in testTmpDirClean()
305 TestDescription tid = new TestDescription("hprof", "allocationSites"); in logHprofResults() local
306 listener.testStarted(tid); in logHprofResults()
307 listener.testEnded(tid, TfMetricProtoUtil.upgradeConvert(results)); in logHprofResults()
DSubprocessTfLauncher.java522 TestDescription tid = new TestDescription("stderr-test", "checkIsEmpty"); in testCleanStdErr() local
523 listener.testStarted(tid); in testCleanStdErr()
529 listener.testFailed(tid, FailureDescription.create(trace)); in testCleanStdErr()
531 listener.testEnded(tid, new HashMap<String, Metric>()); in testCleanStdErr()
/tools/loganalysis/src/com/android/loganalysis/parser/
DLogcatParser.java108 public LogcatData(Integer pid, Integer tid, Date time, String level, String tag, in LogcatData() argument
111 mTid = tid; in LogcatData()
227 Integer tid = null; in parseLine() local
238 tid = Integer.parseInt(m.group(3)); in parseLine()
282 String key = encodeLine(pid, tid, level, tag); in parseLine()
285 data = new LogcatData(pid, tid, time, level, tag, mPreambleUtil.getLastTail(), in parseLine()
299 String key = encodeLine(pid, tid, level, tag); in parseLine()
302 data = new LogcatData(pid, tid, time, level, tag, mPreambleUtil.getLastTail(), in parseLine()
314 String key = encodeLine(pid, tid, level, tag); in parseLine()
317 data = new LogcatData(pid, tid, time, level, tag, mPreambleUtil.getLastTail(), in parseLine()
[all …]
/tools/netsim/src/util/
Dcrash_report.cc54 std::optional<pid_t> tid; in crash_callback() local
61 tid = ctx->tid; in crash_callback()
64 strsignal(signal_number), signal_number, ctx->tid) in crash_callback()
71 if (!unwinder.Unwind(tid, data)) { in crash_callback()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4TestTest.java82 TestDescription tid = new TestDescription("class", "test1"); in createListener() local
83 listener.testStarted(tid); in createListener()
84 listener.testEnded(tid, new HashMap<String, Metric>()); in createListener()
160 TestDescription tid = new TestDescription(CLASSNAME, "testPass"); in testSimpleRun() local
165 verify(mMockListener).testStarted(tid); in testSimpleRun()
166 verify(mMockListener).testEnded(tid, new HashMap<String, Metric>()); in testSimpleRun()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DInstrumentationTestTest.java973 TestDescription tid = new TestDescription("fakeclass", "fakemethod" + i); in testCollectWorks_RunCrash()
974 listener.testStarted(tid, 5); in testCollectWorks_RunCrash()
975 listener.testEnded(tid, 15, EMPTY_STRING_MAP); in testCollectWorks_RunCrash()
1021 TestDescription tid = new TestDescription("fakeclass", "fakemethod" + i); in testRun_noMoreTests()
1022 listener.testStarted(tid, 5); in testRun_noMoreTests()
1023 listener.testEnded(tid, 15, EMPTY_STRING_MAP); in testRun_noMoreTests()
1033 TestDescription tid = new TestDescription("fakeclass", "fakemethod0"); in testRun_noMoreTests()
1034 listener.testStarted(tid, 0L); in testRun_noMoreTests()
1036 tid, "Instrumentation run failed due to 'Process crashed.'"); in testRun_noMoreTests()
1037 listener.testEnded(tid, 15L, EMPTY_STRING_MAP); in testRun_noMoreTests()
[all …]
DJarHostTestTest.java413 TestDescription tid = new TestDescription(Junit4TestClass2.class.getName(), "testPass2"); in testJarHostMetrics() local
421 verify(mListener).testStarted(Mockito.eq(tid)); in testJarHostMetrics()
423 .testEnded(Mockito.eq(tid), Mockito.eq(TfMetricProtoUtil.upgradeConvert(metrics))); in testJarHostMetrics()
DHostTestTest.java2325 for (TestDescription tid : expectedTids) { in testSplit_excludeFilter_shardUnit_Method()
2326 Integer count = testClassRunCounts.getOrDefault(tid.getClassName(), 0); in testSplit_excludeFilter_shardUnit_Method()
2328 testClassRunCounts.put(tid.getClassName(), count); in testSplit_excludeFilter_shardUnit_Method()
2329 verify(mListener).testStarted(tid); in testSplit_excludeFilter_shardUnit_Method()
2330 verify(mListener).testEnded(tid, new HashMap<String, Metric>()); in testSplit_excludeFilter_shardUnit_Method()
2410 TestDescription tid = new TestDescription(JUnit4FailedBefore.class.getName(), "test1"); in testRun_junit4ExceptionBefore() local
2411 verify(mListener).testStarted(Mockito.eq(tid)); in testRun_junit4ExceptionBefore()
2412 verify(mListener).testFailed(Mockito.eq(tid), (String) Mockito.any()); in testRun_junit4ExceptionBefore()
2413 verify(mListener).testEnded(Mockito.eq(tid), (HashMap<String, Metric>) Mockito.any()); in testRun_junit4ExceptionBefore()
/tools/loganalysis/src/com/android/loganalysis/item/
DMiscLogcatItem.java103 public void setTid(Integer tid) { in setTid() argument
104 setAttribute(TID, tid); in setTid()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandRunner.java203 long tid = Thread.currentThread().getId(); in main() local
207 trace = TracingLogger.createActiveTrace(pid, tid, true); in main()
DCommandScheduler.java629 long tid = Thread.currentThread().getId(); in run() local
630 ActiveTrace trace = TracingLogger.createActiveTrace(pid, tid); in run()
/tools/tradefederation/core/test_observatory/com/android/tradefed/observatory/
DTestDiscoveryExecutor.java96 long tid = Thread.currentThread().getId(); in main() local
97 ActiveTrace trace = TracingLogger.createActiveTrace(pid, tid); in main()
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java693 TestDescription tid = new TestDescription("class", CMD_LINE);
694 handler.testStarted(tid);
695 handler.testFailed(tid, "failed");
696 handler.testEnded(tid, new HashMap<String, Metric>());