Home
last modified time | relevance | path

Searched refs:TimeUtil (Results 1 – 14 of 14) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DTimeUtilTest.java29 assertEquals("1 ms", TimeUtil.formatElapsedTime(1)); in testFormatElapsedTime()
30 assertEquals("999 ms", TimeUtil.formatElapsedTime(999)); in testFormatElapsedTime()
31 assertEquals("1s", TimeUtil.formatElapsedTime(1001)); in testFormatElapsedTime()
32 assertEquals("1m 1s", TimeUtil.formatElapsedTime(61001)); in testFormatElapsedTime()
33 assertEquals("1h 1m 0s", TimeUtil.formatElapsedTime(60 * 60 * 1000 + 60 * 1000)); in testFormatElapsedTime()
38 assertEquals("2016-10-25 13:31:58", TimeUtil.formatTimeStampGMT(1477402318000L)); in testFormatTimeStampGMT()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DSuiteResultReporter.java32 import com.android.tradefed.util.TimeUtil;
159 String.format("Total Run time: %s\n", TimeUtil.formatElapsedTime(mElapsedTime))); in invocationEnded()
213 TimeUtil.formatElapsedTime(moduleTime.get(i).getElapsedTime()))); in printModuleTestTime()
219 TimeUtil.formatElapsedTime(totalRunTime))); in printModuleTestTime()
284 TimeUtil.formatElapsedTime(totalPrep), in printPreparationMetrics()
285 TimeUtil.formatElapsedTime(totalTear))); in printPreparationMetrics()
299 t.getName(), TimeUtil.formatElapsedTime(t.getElapsedTime()))); in printModuleCheckersMetric()
304 "Total module checkers time: %s\n", TimeUtil.formatElapsedTime(totalTime))); in printModuleCheckersMetric()
/tools/tradefederation/core/src/com/android/tradefed/util/
DTimeUtil.java26 public class TimeUtil { class
29 private TimeUtil() { in TimeUtil() method in TimeUtil
DLogcatUpdaterEventParser.java224 + TimeUtil.formatElapsedTime(timeoutMs)); in internalWaitForEvent()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardMasterResultForwarder.java28 import com.android.tradefed.util.TimeUtil;
108 TimeUtil.formatElapsedTime(System.currentTimeMillis() - mFirstShardEndTime)); in invocationEnded()
DShardListener.java31 import com.android.tradefed.util.TimeUtil;
222 runRes.getName(), TimeUtil.formatElapsedTime(runRes.getElapsedTime())); in logShardContent()
DInvocationExecution.java58 import com.android.tradefed.util.TimeUtil;
215 CLog.d("Setup duration: %s'", TimeUtil.formatElapsedTime(setupDuration)); in doSetup()
DTestInvocation.java53 import com.android.tradefed.util.TimeUtil;
645 CLog.d("Fetch build duration: %s", TimeUtil.formatElapsedTime(fetchBuildDuration)); in invoke()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceBatteryLevelChecker.java31 import com.android.tradefed.util.TimeUtil;
161 TimeUtil.formatElapsedTime(mMaxRunTime)); in run()
DPythonUnitTestRunner.java31 import com.android.tradefed.util.TimeUtil;
207 TimeUtil.formatElapsedTime(mTestTimeout))); in doRunTest()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DStrictShardHelper.java33 import com.android.tradefed.util.TimeUtil;
288 CLog.e("Shard %s approximate time: %s", index, TimeUtil.formatElapsedTime(aggTime)); in topBottom()
307 TimeUtil.formatElapsedTime(shardTimes.get(i).mAggTime)); in topBottom()
/tools/tradefederation/core/src/com/android/tradefed/device/
DINativeDevice.java33 import com.android.tradefed.util.TimeUtil;
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java59 import com.android.tradefed.util.TimeUtil;
769 TimeUtil.formatElapsedTime(mDirectModule.getRuntimeHint())); in getRuntimeHint()
/tools/tradefederation/core/src/com/android/tradefed/command/
DConsole.java35 import com.android.tradefed.util.TimeUtil;
809 TimeUtil.formatElapsedTime(elapsedTime)); in printElapsedTime()