Home
last modified time | relevance | path

Searched refs:TimeVal (Results 1 – 5 of 5) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DTimeValTest.java27 assertEquals(0, TimeVal.fromString("0")); in testBasic()
28 assertEquals(1, TimeVal.fromString("1")); in testBasic()
30 assertEquals(1000, TimeVal.fromString("1000")); in testBasic()
31 assertEquals(1000, TimeVal.fromString("1000ms")); in testBasic()
32 assertEquals(1000, TimeVal.fromString("1000Ms")); in testBasic()
33 assertEquals(1000, TimeVal.fromString("1000mS")); in testBasic()
34 assertEquals(1000, TimeVal.fromString("1000MS")); in testBasic()
36 assertEquals(1000, TimeVal.fromString("1s")); in testBasic()
37 assertEquals(1000, TimeVal.fromString("1S")); in testBasic()
39 assertEquals(1000 * 60, TimeVal.fromString("1m")); in testBasic()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/config/
DOptionSetter.java23 import com.android.tradefed.util.TimeVal;
97 handlers.put(TimeVal.class, new TimeValHandler()); in handlers.put()
228 } else if (TimeVal.class.equals(cType)) { in getHandlerOrTimeVal()
1073 return TimeVal.fromString(valueText); in translate()
1081 private static class TimeValHandler extends Handler<TimeVal> {
1084 TimeVal translate(String valueText) { in translate()
1086 return new TimeVal(valueText); in translate()
1104 return Duration.ofMillis(TimeVal.fromString(valueText)); in translate()
/tools/tradefederation/core/src/com/android/tradefed/util/
DTimeVal.java33 public class TimeVal extends Number implements Comparable<Long> { class
47 public TimeVal(Long value) { in TimeVal() method in TimeVal
56 public TimeVal(String value) throws NumberFormatException { in TimeVal() method in TimeVal
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DLongevityHostRunner.java37 import com.android.tradefed.util.TimeVal;
133 mTotalTimeoutMsec = TimeVal.fromString(kvPair.split(":")[1]); in getOptions()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DOptionSetterTest.java27 import com.android.tradefed.util.TimeVal;
167 private TimeVal mTimeVal = null;