Home
last modified time | relevance | path

Searched refs:toIntOrDefault (Results 1 – 2 of 2) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/testtype/
DFakeTest.java83 int toIntOrDefault(String number, int defValue) throws IllegalArgumentException { in toIntOrDefault() method in FakeTest
103 final int repeat = toIntOrDefault(m.group(3), 1); in decodeRle()
138 final int repeat = toIntOrDefault(m.group(3), 1); in decode()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DFakeTestTest.java52 assertEquals(55, mTest.toIntOrDefault(null, 55)); in testIntOrDefault()
53 assertEquals(45, mTest.toIntOrDefault("45", 55)); in testIntOrDefault()
54 assertEquals(-13, mTest.toIntOrDefault("-13", 55)); in testIntOrDefault()
56 mTest.toIntOrDefault("thirteen", 55); in testIntOrDefault()