Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/text/format/
DDateFormatTest.java26 assertTrue(DateFormat.hasDesignator("hh:mm:ss", DateFormat.MINUTE)); in testHasDesignator()
27 assertTrue(DateFormat.hasDesignator("myyyy", DateFormat.MINUTE)); in testHasDesignator()
28 assertTrue(DateFormat.hasDesignator("mmm", DateFormat.MINUTE)); in testHasDesignator()
30 assertFalse(DateFormat.hasDesignator("hh:MM:ss", DateFormat.MINUTE)); in testHasDesignator()
35 assertTrue(DateFormat.hasDesignator("hh:mm 'LOL'", DateFormat.MINUTE)); in testHasDesignatorEscaped()
37 assertFalse(DateFormat.hasDesignator("hh:mm 'yyyy'", DateFormat.YEAR)); in testHasDesignatorEscaped()
/frameworks/base/core/java/android/text/format/
DDateFormat.java371 return hasDesignator(inFormat, SECONDS); in hasSeconds()
380 public static boolean hasDesignator(CharSequence inFormat, char designator) { in hasDesignator() method in DateFormat