Home
last modified time | relevance | path

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

/cts/tests/signature/lib/common/src/android/signature/cts/
DApiComplianceChecker.java302 Formatter formatter = new Formatter(); in getModifierString() local
304 formatter.format("<%s", m); in getModifierString()
307 formatter.format("%senum", sep); in getModifierString()
311 formatter.format("%svarargs", sep); in getModifierString()
315 formatter.format("%ssynthetic", sep); in getModifierString()
319 formatter.format("%sannotation", sep); in getModifierString()
323 formatter.format("%senum", sep); in getModifierString()
327 formatter.format("%smandated", sep); in getModifierString()
329 return formatter.format("> (0x%x)", modifiers).toString(); in getModifierString()
/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.java113 Formatter formatter = new Formatter(); in byteArrayToHexString() local
115 formatter.format("%02X", b); in byteArrayToHexString()
117 return formatter.toString(); in byteArrayToHexString()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyPairGeneratorTest.java1859 SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy HH:mm:ss"); in assertDateEquals() local
1861 String result1 = formatter.format(date1); in assertDateEquals()
1862 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()