Searched refs:TimeVal (Results 1 – 5 of 5) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | TimeValTest.java | 27 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/util/ |
D | TimeVal.java | 30 public class TimeVal extends Number implements Comparable<Long> { class 44 public TimeVal(Long value) { in TimeVal() method in TimeVal 53 public TimeVal(String value) throws NumberFormatException { in TimeVal() method in TimeVal
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/ |
D | LongevityHostRunner.java | 37 import com.android.tradefed.util.TimeVal; 153 mTotalTimeoutMsec = TimeVal.fromString(kvPair.split(":")[1]); in getOptions()
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | OptionSetter.java | 22 import com.android.tradefed.util.TimeVal; 93 handlers.put(TimeVal.class, new TimeValHandler()); in handlers.put() 222 } else if (TimeVal.class.equals(cType)) { in getHandlerOrTimeVal() 1050 return TimeVal.fromString(valueText); in translate() 1065 return new TimeVal(valueText); in translate()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | OptionSetterTest.java | 27 import com.android.tradefed.util.TimeVal; 165 private TimeVal mTimeVal = null;
|