Home
last modified time | relevance | path

Searched refs:LONG (Results 1 – 25 of 43) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDateFormatTest.java116 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.LONG); in test_getDateInstanceI()
119 DateFormat.LONG, Locale.getDefault()))); in test_getDateInstanceI()
163 f2 = (SimpleDateFormat) DateFormat.getDateInstance(DateFormat.LONG, in test_getDateInstanceILjava_util_Locale()
223 testDateTime(DateFormat.SHORT, DateFormat.LONG); in test_getDateTimeInstanceII()
228 testDateTime(DateFormat.MEDIUM, DateFormat.LONG); in test_getDateTimeInstanceII()
231 testDateTime(DateFormat.LONG, DateFormat.SHORT); in test_getDateTimeInstanceII()
232 testDateTime(DateFormat.LONG, DateFormat.MEDIUM); in test_getDateTimeInstanceII()
233 testDateTime(DateFormat.LONG, DateFormat.LONG); in test_getDateTimeInstanceII()
234 testDateTime(DateFormat.LONG, DateFormat.FULL); in test_getDateTimeInstanceII()
238 testDateTime(DateFormat.FULL, DateFormat.LONG); in test_getDateTimeInstanceII()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatterBuilderWithLocale.java165 …{FormatStyle.LONG, FormatStyle.LONG, IsoChronology.INSTANCE, Locale.FRENCH, "d MMMM y '\u00e0' HH:… in localizedDateTimePatterns()
169 {FormatStyle.LONG, null, IsoChronology.INSTANCE, Locale.FRENCH, "d MMMM y"}, in localizedDateTimePatterns()
173 {null, FormatStyle.LONG, IsoChronology.INSTANCE, Locale.FRENCH, "HH:mm:ss z"}, in localizedDateTimePatterns()
179 …{FormatStyle.LONG, FormatStyle.LONG, JapaneseChronology.INSTANCE, Locale.JAPANESE, "Gy\u5e74M\u670… in localizedDateTimePatterns()
183 … {FormatStyle.LONG, null, JapaneseChronology.INSTANCE, Locale.JAPANESE, "Gy\u5e74M\u6708d\u65e5"}, in localizedDateTimePatterns()
187 {null, FormatStyle.LONG, JapaneseChronology.INSTANCE, Locale.JAPANESE, "H:mm:ss z"}, in localizedDateTimePatterns()
197 …{FormatStyle.LONG, FormatStyle.LONG, MinguoChronology.INSTANCE, Locale.CHINESE, "Gy\u5e74M\u6708d\… in localizedDateTimePatterns()
203 … {FormatStyle.LONG, null, MinguoChronology.INSTANCE, Locale.CHINESE, "Gy\u5e74M\u6708d\u65e5"}, in localizedDateTimePatterns()
213 {null, FormatStyle.LONG, MinguoChronology.INSTANCE, Locale.CHINESE, "z HH:mm:ss"}, in localizedDateTimePatterns()
DTestDateTimeFormatterBuilder.java1264 …{FormatStyle.LONG, FormatStyle.LONG, IsoChronology.INSTANCE, Locale.US, "MMMM d, y 'at' h:mm:ss\u2… in localizedDateTimePatterns()
1268 {FormatStyle.LONG, null, IsoChronology.INSTANCE, Locale.US, "MMMM d, y"}, in localizedDateTimePatterns()
1272 {null, FormatStyle.LONG, IsoChronology.INSTANCE, Locale.US, "h:mm:ss\u202fa z"}, in localizedDateTimePatterns()
DTestUnicodeExtension.java818 {Locale.US, FormatStyle.LONG, "MMMM d, y 'at' h:mm:ss a z"}, in getLocalizedDateTimePattern()
822 {RG_GB, FormatStyle.LONG, "d MMMM y 'at' HH:mm:ss z"}, in getLocalizedDateTimePattern()
/libcore/luni/src/test/java/libcore/java/util/
DOldTimeZoneTest.java108 assertEquals("Pacific Daylight Time", tz.getDisplayName(true, TimeZone.LONG)); in test_getDisplayNameZI()
109 assertEquals("Pacific Standard Time", tz.getDisplayName(false, TimeZone.LONG)); in test_getDisplayNameZI()
116 assertEquals("Pacific Daylight Time", tz.getDisplayName(true, TimeZone.LONG, Locale.US)); in test_getDisplayNameZILjava_util_Locale()
117 assertEquals("Pacific Standard Time", tz.getDisplayName(false, TimeZone.LONG, Locale.UK)); in test_getDisplayNameZILjava_util_Locale()
119 tz.getDisplayName(true, TimeZone.LONG, Locale.FRANCE)); in test_getDisplayNameZILjava_util_Locale()
121 tz.getDisplayName(false, TimeZone.LONG, Locale.FRANCE)); in test_getDisplayNameZILjava_util_Locale()
DOldAndroidLocaleTest.java65 berlin.getDisplayName(false, TimeZone.LONG, eng)); in testResourceBundles()
67 berlin.getDisplayName(true, TimeZone.LONG, eng)); in testResourceBundles()
70 berlin.getDisplayName(false, TimeZone.LONG, deu)); in testResourceBundles()
72 berlin.getDisplayName(true, TimeZone.LONG, deu)); in testResourceBundles()
DTimeZoneTest.java277 String longDst = tz.getDisplayName(true, TimeZone.LONG, locale); in checkDisplayNames()
278 String longStd = tz.getDisplayName(false, TimeZone.LONG, locale); in checkDisplayNames()
336 assertEquals("Apia Daylight Time", tz.getDisplayName(true, TimeZone.LONG, Locale.US)); in testApia()
337 assertEquals("Apia Standard Time", tz.getDisplayName(false, TimeZone.LONG, Locale.US)); in testApia()
413 assertEquals(canonical.getDisplayName(true, TimeZone.LONG, Locale.ENGLISH), in testDisplayNameForNonCanonicalTimezones()
414 nonCanonical.getDisplayName(true, TimeZone.LONG, Locale.ENGLISH)); in testDisplayNameForNonCanonicalTimezones()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedPrinterParser.java132 {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.UK}, in data_date()
133 {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.US}, in data_date()
134 {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.FRANCE}, in data_date()
135 {LocalDate.of(2012, 6, 30), FormatStyle.LONG, DateFormat.LONG, Locale.JAPAN}, in data_date()
DTCKFormatStyle.java103 …ime.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), ZONEID_PARIS), FormatStyle.LONG, "2 October 2001 at… in data_formatStyle()
108 …Time.of(LocalDateTime.of(2001, 10, 2, 1, 2, 3), OFFSET_PTWO), FormatStyle.LONG, "2 October 2001 at… in data_formatStyle()
/libcore/luni/src/main/java/libcore/icu/
DSimpleDateFormatData.java75 android.icu.text.DateFormat.NONE, android.icu.text.DateFormat.LONG); in SimpleDateFormatData()
83 android.icu.text.DateFormat.LONG, android.icu.text.DateFormat.NONE); in SimpleDateFormatData()
139 case DateFormat.LONG: in getDateFormat()
171 case DateFormat.LONG: in getTimeFormat()
DTimeZoneNames.java131 return (style == TimeZone.LONG) ? row[LONG_NAME_DST] : row[SHORT_NAME_DST]; in getDisplayName()
133 return (style == TimeZone.LONG) ? row[LONG_NAME] : row[SHORT_NAME]; in getDisplayName()
/libcore/luni/src/test/java/libcore/highmemorytest/libcore/icu/
DSimpleDateFormatDataTest.java46 assertNotEquals(0, d.getDateFormat(DateFormat.LONG).length()); in testLongDateTimeFormat()
51 assertNotEquals(0, d.getTimeFormat(DateFormat.LONG).length()); in testLongDateTimeFormat()
/libcore/ojluni/src/main/java/java/time/format/
DFormatStyle.java87 LONG, enumConstant
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java163 public static final int LONG = 1; field in TimeZone
329 return getDisplayName(false, LONG, in getDisplayName()
349 return getDisplayName(false, LONG, locale); in getDisplayName()
400 case LONG: in getDisplayName()
DCalendar.java746 public static final int LONG = 2; field in Calendar
822 public static final int LONG_STANDALONE = LONG | STANDALONE_MASK;
2320 … case MONTH -> (baseStyle == LONG) ? symbols.getMonths() : symbols.getShortMonths(); in getFieldStrings()
2321 … case DAY_OF_WEEK -> (baseStyle == LONG) ? symbols.getWeekdays() : symbols.getShortWeekdays(); in getFieldStrings()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTimeZoneTest.java192 timezone.getDisplayName(false, TimeZone.LONG, Locale.CHINA)); in test_getDisplayNameZILjava_util_Locale()
269 String actualName = defaultZone.getDisplayName(false, TimeZone.LONG); in test_getDisplayName_ZI()
270 String expectedName = defaultZone.getDisplayName(false, TimeZone.LONG, in test_getDisplayName_ZI()
DSimpleTimeZoneTest.java172 TimeZone.LONG, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
181 TimeZone.LONG, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
184 TimeZone.LONG)); in test_ConstructorILjava_lang_StringIIIIIIIIIII()
188 TimeZone.LONG, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
197 TimeZone.LONG, in test_ConstructorILjava_lang_StringIIIIIIIIIII()
200 TimeZone.LONG)); in test_ConstructorILjava_lang_StringIIIIIIIIIII()
DCalendarTest.java806 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale()
812 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale()
820 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale()
826 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale()
837 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale()
848 assertEquals(cal.getDisplayName(field, Calendar.LONG, in test_getDisplayNameIILjava_util_Locale()
855 assertNull(cal.getDisplayName(field, Calendar.LONG, locale)); in test_getDisplayNameIILjava_util_Locale()
869 cal.getDisplayName(Calendar.FIELD_COUNT, Calendar.LONG, Locale.US); in test_getDisplayNameIILjava_util_Locale()
950 assertEquals(2, Calendar.LONG); in test_getDisplayNamesIILjava_util_Locale()
959 Calendar.LONG, locale); in test_getDisplayNamesIILjava_util_Locale()
[all …]
/libcore/luni/src/main/java/libcore/util/
DEmptyArray.java66 public static final @NonNull long[] LONG = new long[0]; field in EmptyArray
/libcore/benchmarks/src/benchmarks/regression/
DScannerBenchmark.java35 LONG(10_000, 50_000); enumConstant
/libcore/ojluni/src/test/java/lang/invoke/
DVarargsArrayTest.java206 case LONG: arg = (long)i * 1000_000_000; break; in makeTestArray()
229 case LONG: return Arrays.toString((long[])a); in toArrayString()
/libcore/ojluni/src/main/java/sun/invoke/util/
DWrapper.java37LONG ( Long.class, "Long", long.class, "long", 'J', new long[0], Format.signed… enumConstant
243 case LONG: in zero()
285 case 'J': return LONG; in forPrimitiveType()
/libcore/ojluni/src/test/sun/invoke/util/
DWrapperTest.java82 assertTrue(x == Wrapper.LONG.zero()); in testLongZeroConversion()
/libcore/ojluni/annotations/mmodule/java/text/
DDateFormat.annotated.java137 public static final int LONG = 1; // 0x1 field in DateFormat
/libcore/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java199 public static final int LONG = 1; // 0x1 field in DateFormat

12