Home
last modified time | relevance | path

Searched refs:TimeUtil (Results 1 – 22 of 22) 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.java33 import com.android.tradefed.util.TimeUtil;
179 "Total Run time: %s\n", TimeUtil.formatElapsedTime(mEndTime - mStartTime))); in invocationEnded()
233 TimeUtil.formatElapsedTime(moduleTime.get(i).getElapsedTime()))); in printModuleTestTime()
239 TimeUtil.formatElapsedTime(totalRunTime))); in printModuleTestTime()
304 TimeUtil.formatElapsedTime(totalPrep), in printPreparationMetrics()
305 TimeUtil.formatElapsedTime(totalTear))); in printPreparationMetrics()
319 t.getName(), TimeUtil.formatElapsedTime(t.getElapsedTime()))); in printModuleCheckersMetric()
324 "Total module checkers time: %s\n", TimeUtil.formatElapsedTime(totalTime))); in printModuleCheckersMetric()
342 TimeUtil.formatElapsedTime(mModuleRetryTime.get(t)))); in printModuleRetriesInformation()
352 TimeUtil.formatElapsedTime(mTotalRetryTime))); in printModuleRetriesInformation()
/tools/tradefederation/core/src/com/android/tradefed/util/
DTimeUtil.java26 public class TimeUtil { class
29 private TimeUtil() { in TimeUtil() method in TimeUtil
DRunUtil.java346 runnable.getCommand(), TimeUtil.formatElapsedTime(timeout)); in runTimed()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DTimeStatusChecker.java23 import com.android.tradefed.util.TimeUtil;
41 TimeUtil.formatElapsedTime(difference)); in postExecutionCheck()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DStrictShardHelper.java32 import com.android.tradefed.util.TimeUtil;
261 CLog.d("Shard %s approximate time: %s", index, TimeUtil.formatElapsedTime(aggTime)); in topBottom()
279 TimeUtil.formatElapsedTime(shardTimes.get(i).mAggTime)); in topBottom()
DTestsPoolPoller.java51 import com.android.tradefed.util.TimeUtil;
280 TimeUtil.formatElapsedTime(WAIT_RECOVERY_TIME)); in HandleDeviceNotAvailable()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DStreamProtoReceiver.java24 import com.android.tradefed.util.TimeUtil;
180 TimeUtil.formatElapsedTime(waitTime)); in joinReceiver()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardMasterResultForwarder.java27 import com.android.tradefed.util.TimeUtil;
107 TimeUtil.formatElapsedTime(System.currentTimeMillis() - mFirstShardEndTime)); in invocationEnded()
DShardListener.java31 import com.android.tradefed.util.TimeUtil;
230 runRes.getName(), TimeUtil.formatElapsedTime(runRes.getElapsedTime())); in logShardContent()
DRemoteInvocationExecution.java53 import com.android.tradefed.util.TimeUtil;
441 TimeUtil.formatElapsedTime(maxTimeout)))); in isStillRunning()
DInvocationExecution.java62 import com.android.tradefed.util.TimeUtil;
227 CLog.d("Setup duration: %s'", TimeUtil.formatElapsedTime(setupDuration)); in doSetup()
DTestInvocation.java63 import com.android.tradefed.util.TimeUtil;
688 CLog.d("Fetch build duration: %s", TimeUtil.formatElapsedTime(fetchBuildDuration)); in invoke()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceBatteryLevelChecker.java30 import com.android.tradefed.util.TimeUtil;
151 TimeUtil.formatElapsedTime(mMaxRunTime)); in run()
DPythonUnitTestRunner.java32 import com.android.tradefed.util.TimeUtil;
211 TimeUtil.formatElapsedTime(mTestTimeout))); in doRunTest()
DSubprocessTfLauncher.java40 import com.android.tradefed.util.TimeUtil;
296 TimeUtil.formatElapsedTime(mMaxTfRunTime)); in run()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigUtil.java28 import com.android.tradefed.util.TimeUtil;
101 String.format(" Timed out after %s.", TimeUtil.formatElapsedTime(DUMP_TIMEOUT)); in dumpConfigForVersion()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayer.java31 import com.android.tradefed.util.TimeUtil;
101 TimeUtil.formatElapsedTime(System.currentTimeMillis() - startReplay)); in run()
/tools/tradefederation/core/src/com/android/tradefed/command/
DConsole.java39 import com.android.tradefed.util.TimeUtil;
855 TimeUtil.formatElapsedTime(elapsedTime)); in printElapsedTime()
DCommandScheduler.java75 import com.android.tradefed.util.TimeUtil;
693 args.put(INVOC_END_EVENT_ELAPSED_KEY, TimeUtil.formatElapsedTime(elapsedTime)); in logInvocationEndedEvent()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java64 import com.android.tradefed.util.TimeUtil;
979 TimeUtil.formatElapsedTime(mDirectModule.getRuntimeHint())); in getRuntimeHint()
/tools/tradefederation/core/src/com/android/tradefed/device/
DINativeDevice.java33 import com.android.tradefed.util.TimeUtil;