Searched refs:expectedTime (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | StringUtilTest.java | 47 final String expectedTime = "5 min, 30 sec"; in testFormatElapsedTime_WithSeconds_ShowSeconds() local 50 .isEqualTo(expectedTime); in testFormatElapsedTime_WithSeconds_ShowSeconds() 56 final String expectedTime = "6 min"; in testFormatElapsedTime_NoSeconds_DoNotShowSeconds() local 59 .isEqualTo(expectedTime); in testFormatElapsedTime_NoSeconds_DoNotShowSeconds() 66 final String expectedTime = "2 days, 4 hr, 15 min"; in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly() local 69 .isEqualTo(expectedTime); in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly() 76 final String expectedTime = "2 days, 4 hr"; in testFormatElapsedTime_TimeMoreThanOneDayAndCollapseTimeUnit_ShowCorrectly() local 79 .isEqualTo(expectedTime); in testFormatElapsedTime_TimeMoreThanOneDayAndCollapseTimeUnit_ShowCorrectly() 85 final String expectedTime = "2 days, 15 min"; in testFormatElapsedTime_ZeroFieldsInTheMiddleDontShow() local 88 .isEqualTo(expectedTime); in testFormatElapsedTime_ZeroFieldsInTheMiddleDontShow() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 203 String expectedTime = String.format("%d-%02d-%02d %02d:%02d", in testNormalize1() local 208 "day test index " + index + ", normalize(): expected local " + expectedTime in testNormalize1() 221 String expectedTime = String.format("%d-%02d-%02d %02d:%02d", in testNormalize1() local 226 "day test index " + index + ", toMillis(): expected local " + expectedTime in testNormalize1() 244 String expectedTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d", in testNormalize1() local 251 … "minute test index " + index + ", normalize(): expected local " + expectedTime in testNormalize1() 266 String expectedTime = String.format("%d-%02d-%02d %02d:%02d isDst: %d", in testNormalize1() local 273 … "minute test index " + index + ", toMillis(): expected local " + expectedTime in testNormalize1()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | TimeTest.java | 516 String expectedTime = String.format("%d-%02d-%02d %02d:%02d", 521 fail("Expected: " + expectedTime + "; Actual: " + actualTime); 527 String expectedTime = String.format("%d-%02d-%02d %02d:%02d", 532 fail("Expected: " + expectedTime + "; Actual: " + actualTime); 542 String expectedTime = String.format("%d-%02d-%02d %02d:%02d", 547 fail("Expected: " + expectedTime + "; Actual: " + actualTime); 553 String expectedTime = String.format("%d-%02d-%02d %02d:%02d", 558 fail("Expected: " + expectedTime + "; Actual: " + actualTime);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | SystemUpdatePolicyTest.java | 401 private void assertInstallationOption(int expectedType, long expectedTime, long now, in assertInstallationOption() argument 404 assertThat(p.getInstallationOptionAt(now).getEffectiveTime()).isEqualTo(expectedTime); in assertInstallationOption()
|