Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/test/java/text/Format/DateFormat/
DSimpleDateFormatPatternTest.java162 public void testIllegalArgumentException1(String pattern, Locale loc) in testIllegalArgumentException1() argument
164 Locale.setDefault(loc); in testIllegalArgumentException1()
171 public void testIllegalArgumentException2(String pattern, Locale loc) in testIllegalArgumentException2() argument
173 Locale.setDefault(loc); in testIllegalArgumentException2()
180 public void testIllegalArgumentException3(String pattern, Locale loc) in testIllegalArgumentException3() argument
182 Locale.setDefault(loc); in testIllegalArgumentException3()
189 public void testIllegalArgumentException4(String pattern, Locale loc) in testIllegalArgumentException4() argument
191 Locale.setDefault(loc); in testIllegalArgumentException4()
209 public void testNullPointerException1(Locale loc) in testNullPointerException1() argument
211 Locale.setDefault(loc); in testNullPointerException1()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCurrencyTest.java96 Locale loc = new Locale("", "AQ"); in test_getInstanceLjava_util_Locale() local
98 Currency curr = Currency.getInstance(loc); in test_getInstanceLjava_util_Locale()
107 loc = new Locale("", "ZR"); in test_getInstanceLjava_util_Locale()
109 Currency curr = Currency.getInstance(loc); in test_getInstanceLjava_util_Locale()
114 loc = new Locale("", "ZAR"); in test_getInstanceLjava_util_Locale()
116 Currency curr = Currency.getInstance(loc); in test_getInstanceLjava_util_Locale()
121 loc = new Locale("", "FX"); in test_getInstanceLjava_util_Locale()
123 Currency curr = Currency.getInstance(loc); in test_getInstanceLjava_util_Locale()
128 loc = new Locale("", "FXX"); in test_getInstanceLjava_util_Locale()
130 Currency curr = Currency.getInstance(loc); in test_getInstanceLjava_util_Locale()
DResourceBundleTest.java270 Locale loc = Locale.getDefault(); in test_getLocale() local
291 Locale.setDefault(loc); in test_getLocale()
DDateTest.java494 Locale loc = Locale.getDefault(); in test_toLocaleString() local
507 Locale.setDefault(loc); in test_toLocaleString()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestNarrowMonthNamesAndDayNames.java85 LOCARR.forEach((loc) -> { in compareMonthNarrowValues() argument
88 String result = value.getDisplayName(style, loc); in compareMonthNarrowValues()
92 + loc + " for style " + style.name() in compareMonthNarrowValues()
/libcore/ojluni/src/main/java/java/util/
DLocale.java1047 Locale loc = defaultDisplayLocale; // volatile read in getDefault() local
1048 if (loc == null) { in getDefault()
1049 loc = getDisplayLocale(); in getDefault()
1051 return loc; in getDefault()
1054 Locale loc = defaultFormatLocale; // volatile read in getDefault() local
1055 if (loc == null) { in getDefault()
1056 loc = getFormatLocale(); in getDefault()
1058 return loc; in getDefault()
1063 Locale loc = defaultDisplayLocale; in getDisplayLocale() local
1064 if (loc == null) { in getDisplayLocale()
[all …]
/libcore/ojluni/src/main/java/sun/util/calendar/
DCalendarDate.java359 protected void setLocale(Locale loc) { in setLocale() argument
360 locale = loc; in setLocale()
DImmutableGregorianDate.java185 protected void setLocale(Locale loc) { in setLocale() argument
/libcore/ojluni/src/main/java/java/text/
DDateFormat.java846 int flags, Locale loc) { in get() argument
872 return new SimpleDateFormat(timeStyle, dateStyle, loc); in get()
DSimpleDateFormat.java737 private void initialize(Locale loc) { in initialize() argument
742 numberFormat = cachedNumberFormatData.get(loc); in initialize()
744 numberFormat = NumberFormat.getIntegerInstance(loc); in initialize()
748 cachedNumberFormatData.putIfAbsent(loc, numberFormat); in initialize()
755 private void initializeCalendar(Locale loc) { in initializeCalendar() argument
757 assert loc != null; in initializeCalendar()
762 calendar = Calendar.getInstance(loc); in initializeCalendar()
/libcore/ojluni/src/test/java/text/Format/NumberFormat/
DBigDecimalParse.java43 Locale loc = Locale.getDefault(); in main() local
49 Locale.setDefault(loc); in main()
/libcore/ojluni/src/main/java/java/util/zip/
DZipFile.java977 byte[] loc = new byte[LOCHDR]; in initDataOffset()
979 int len = ZipFile.this.res.zsrc.readFullyAt(loc, 0, loc.length, pos); in initDataOffset()
983 if (LOCSIG(loc) != LOCSIG) { in initDataOffset()
986 pos += LOCHDR + LOCNAM(loc) + LOCEXT(loc); in initDataOffset()
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/
DImmutableGregorianDate.java181 protected void setLocale(java.util.Locale loc) { in setLocale() argument
DCalendarDate.java196 protected void setLocale(java.util.Locale loc) { in setLocale() argument
/libcore/ojluni/src/main/native/
Dzip_util.c1415 unsigned char loc[LOCHDR]; in ZIP_GetEntryDataOffset() local
1416 if (readFullyAt(zip->zfd, loc, LOCHDR, -(entry->pos)) == -1) { in ZIP_GetEntryDataOffset()
1420 if (!LOCSIG_AT(loc)) { in ZIP_GetEntryDataOffset()
1424 entry->pos = (- entry->pos) + LOCHDR + LOCNAM(loc) + LOCEXT(loc); in ZIP_GetEntryDataOffset()
/libcore/ojluni/annotations/hiddenapi/java/text/
DDateFormat.java171 int timeStyle, int dateStyle, int flags, java.util.Locale loc) { in get() argument