Home
last modified time | relevance | path

Searched refs:formatter (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/text/src/android/text/format/cts/
DDateUtilsTest.java215 final Formatter formatter = new Formatter(); in testFormatDateRange_withFormatter() local
216 final Formatter result = DateUtils.formatDateRange(mContext, formatter, fixedTime, in testFormatDateRange_withFormatter()
219 assertSame(result, formatter); in testFormatDateRange_withFormatter()
231 final Formatter formatter = new Formatter(); in testFormatDateRange_withFormatterAndTimezone() local
232 final Formatter result = DateUtils.formatDateRange(mContext, formatter, fixedTime, in testFormatDateRange_withFormatterAndTimezone()
235 assertSame(result, formatter); in testFormatDateRange_withFormatterAndTimezone()
/cts/tests/tests/net/src/android/net/cts/
DNetworkWatchlistTest.java111 Formatter formatter = new Formatter(); in byteArrayToHexString() local
113 formatter.format("%02X", b); in byteArrayToHexString()
115 return formatter.toString(); in byteArrayToHexString()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyPairGeneratorTest.java1787 SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy HH:mm:ss"); in assertDateEquals() local
1789 String result1 = formatter.format(date1); in assertDateEquals()
1790 String result2 = formatter.format(date2); in assertDateEquals()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java1212 SimpleDateFormat formatter = new SimpleDateFormat("yyyy:MM:dd HH:mm:ss"); in getGpsDateTimeFromJpeg() local
1213 formatter.setTimeZone(TimeZone.getTimeZone("UTC")); in getGpsDateTimeFromJpeg()
1215 Date datetime = formatter.parse(dateTimeString, pos); in getGpsDateTimeFromJpeg()