Home
last modified time | relevance | path

Searched refs:is24Hour (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DDateFormatTest.java31 Boolean originalIs24Hour = DateFormat.is24Hour; in testIs24Hour_notCached()
34 DateFormat.is24Hour = null; // null == locale default (12 hour for US) in testIs24Hour_notCached()
38 DateFormat.is24Hour = true; // Explicit 24 hour. in testIs24Hour_notCached()
42 DateFormat.is24Hour = false; // Explicit 12 hour. in testIs24Hour_notCached()
46 DateFormat.is24Hour = originalIs24Hour; in testIs24Hour_notCached()
DOldDateFormatTest.java90 DateFormat.is24Hour = null; in test_formatLjava_util_Date()
110 DateFormat.is24Hour = null; in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition()
212 DateFormat.is24Hour = null; in test_parseLString()
/libcore/luni/src/test/java/libcore/libcore/icu/
DLocaleDataTest.java129 Boolean originalSetting = DateFormat.is24Hour; in testTimeFormat12And24()
132 DateFormat.is24Hour = false; in testTimeFormat12And24()
134 DateFormat.is24Hour = true; in testTimeFormat12And24()
138 DateFormat.is24Hour = false; in testTimeFormat12And24()
140 DateFormat.is24Hour = true; in testTimeFormat12And24()
143 DateFormat.is24Hour = originalSetting; in testTimeFormat12And24()
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java601 public static Boolean is24Hour; field in DateFormat
618 public static final void set24HourTimePref(Boolean is24Hour) { in set24HourTimePref() argument
619 DateFormat.is24Hour = is24Hour; in set24HourTimePref()
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java270 if (DateFormat.is24Hour == null) { in getTimeFormat()
273 return ICU.getTimePattern(mLocale, DateFormat.is24Hour, false); in getTimeFormat()
276 if (DateFormat.is24Hour == null) { in getTimeFormat()
279 return ICU.getTimePattern(mLocale, DateFormat.is24Hour, true); in getTimeFormat()
DICU.java322 /* package */ static String getTimePattern(Locale locale, boolean is24Hour, boolean withSecond) { in getTimePattern() argument
325 skeleton = is24Hour ? "Hms" : "hms"; in getTimePattern()
327 skeleton = is24Hour ? "Hm" : "hm"; in getTimePattern()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DSupport_MessageFormat.java48 DateFormat.is24Hour = null; in t_format_with_FieldPosition()
77 DateFormat.is24Hour = null; in t_formatToCharacterIterator()
DMessageFormatTest.java188 DateFormat.is24Hour = null; in test_parseLjava_lang_String()
/libcore/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java118 public static final void set24HourTimePref(java.lang.Boolean is24Hour) { in set24HourTimePref() argument
224 public static java.lang.Boolean is24Hour; field in DateFormat
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java88 public static final void set24HourTimePref(java.lang.Boolean is24Hour) { throw new RuntimeException… in set24HourTimePref() argument
162 public static java.lang.Boolean is24Hour; field in DateFormat
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java91 originalIs24Hour = DateFormat.is24Hour; in clearIs24Hour()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DDateTest.java494 DateFormat.is24Hour = null; in test_toLocaleString()