Home
last modified time | relevance | path

Searched refs:calType (Results 1 – 25 of 34) sorted by relevance

12

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCalendarUtil.java42 String calType = loc.getKeywordValue(CALKEY); in getCalendarType() local
43 if (calType != null) { in getCalendarType()
46 return calType.toLowerCase(Locale.ROOT); in getCalendarType()
51 calType = canonical.getKeywordValue(CALKEY); in getCalendarType()
52 if (calType != null) { in getCalendarType()
53 return calType; in getCalendarType()
DEraRules.java38 public static EraRules getInstance(CalType calType, boolean includeTentativeEra) { in getInstance() argument
42 UResourceBundle calendarTypeRes = calendarDataRes.get(calType.getId()); in getInstance()
57 … new ICUException("Invald era rule key:" + eraIdxStr + " in era rule data for " + calType.getId()); in getInstance()
60 … throw new ICUException("Era rule key:" + eraIdxStr + " in era rule data for " + calType.getId() in getInstance()
65 … "Dupulicated era rule for rule key:" + eraIdxStr + " in era rule data for " + calType.getId()); in getInstance()
79 + calType.getId()); in getInstance()
102 … "Era data for " + eraIdxStr + " in era rule data for " + calType.getId() in getInstance()
108 + calType.getId()); in getInstance()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCalendarUtil.java44 String calType = loc.getKeywordValue(CALKEY); in getCalendarType() local
45 if (calType != null) { in getCalendarType()
48 return calType.toLowerCase(Locale.ROOT); in getCalendarType()
53 calType = canonical.getKeywordValue(CALKEY); in getCalendarType()
54 if (calType != null) { in getCalendarType()
55 return calType; in getCalendarType()
DEraRules.java40 public static EraRules getInstance(CalType calType, boolean includeTentativeEra) { in getInstance() argument
44 UResourceBundle calendarTypeRes = calendarDataRes.get(calType.getId()); in getInstance()
59 … new ICUException("Invald era rule key:" + eraIdxStr + " in era rule data for " + calType.getId()); in getInstance()
62 … throw new ICUException("Era rule key:" + eraIdxStr + " in era rule data for " + calType.getId() in getInstance()
67 … "Dupulicated era rule for rule key:" + eraIdxStr + " in era rule data for " + calType.getId()); in getInstance()
81 + calType.getId()); in getInstance()
104 … "Era data for " + eraIdxStr + " in era rule data for " + calType.getId() in getInstance()
110 + calType.getId()); in getInstance()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DEraRulesTest.java27 for (CalType calType : CalType.values()) { in testAPIs()
28 String calId = calType.getId(); in testAPIs()
32 EraRules rules1 = EraRules.getInstance(calType, false); in testAPIs()
37 EraRules rules2 = EraRules.getInstance(calType, true); in testAPIs()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DEraRulesTest.java24 for (CalType calType : CalType.values()) { in testAPIs()
25 String calId = calType.getId(); in testAPIs()
29 EraRules rules1 = EraRules.getInstance(calType, false); in testAPIs()
34 EraRules rules2 = EraRules.getInstance(calType, true); in testAPIs()
DIBMCalendarTest.java1615 String calType = ucalTest.getType(); in TestAddRollEra0AndEraBounds() local
1616 …boolean era0YearsGoBackwards = (calType.equals("gregorian") || calType.equals("roc") || calType.eq… in TestAddRollEra0AndEraBounds()
1656 if ( !calType.equals("chinese") && (eraAfter != 0 || yrAfter != -1) ) { in TestAddRollEra0AndEraBounds()
1665 if (eraMin != 0 && calType.compareTo("chinese") != 0) { in TestAddRollEra0AndEraBounds()
1666 … errln("Fail: getMinimum returns minimum era " + eraMin + " (should be 0) for calType " + calType); in TestAddRollEra0AndEraBounds()
/external/icu/icu4c/source/test/intltest/
Dcallimts.cpp232 const char* calType = cal.getType(); in doTheoreticalLimitsTest() local
254 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of DAY_OF_YEAR is too big: " in doTheoreticalLimitsTest()
259 … errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of DAY_OF_YEAR is too small: " in doTheoreticalLimitsTest()
267 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of WEEK_OF_YEAR is too big: " in doTheoreticalLimitsTest()
272 … errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of WEEK_OF_YEAR is too small: " in doTheoreticalLimitsTest()
279 …errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of DAY_OF_WEEK_IN_MONTH is incorrect: " in doTheoreticalLimitsTest()
284 …errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of DAY_OF_WEEK_IN_MONTH is incor… in doTheoreticalLimitsTest()
291 errln((UnicodeString)"FAIL: [" + calType + "] Maximum value of WEEK_OF_MONTH is incorrect: " in doTheoreticalLimitsTest()
296 … errln((UnicodeString)"FAIL: [" + calType + "] Least maximum value of WEEK_OF_MONTH is incorrect: " in doTheoreticalLimitsTest()
Dwindttst.cpp120 int32_t calType = 0; in testLocales() local
146 calType = value; in testLocales()
150 uprv_strcat(localeID, getCalendarType(calType)); in testLocales()
/external/icu/android_icu4j/testing/src/android/icu/extratest/util/
DCalendarTest.java59 String calType = bundle.getStringWithFallback("calendar/default"); in testAllDefaultCalendar_Gregorian() local
60 assertEquals("calendar/default should be Gregorian: " + locale, "gregorian", calType); in testAllDefaultCalendar_Gregorian()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCalendar.java1565 String calType = locale.getKeywordValue("calendar"); in setCalendarLocale() local
1566 if (calType != null) { in setCalendarLocale()
1567 buf.append("@calendar=").append(calType); in setCalendarLocale()
1730 CalType calType = getCalendarTypeForLocale(locale); in createInstance() local
1731 if (calType == CalType.UNKNOWN) { in createInstance()
1733 calType = CalType.GREGORIAN; in createInstance()
1736 switch (calType) { in createInstance()
2796 String calType = getType(); in roll() local
2797 … if (calType.equals("gregorian") || calType.equals("roc") || calType.equals("coptic")) { in roll()
3135 String calType = getType(); in add() local
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java1630 String calType = locale.getKeywordValue("calendar"); in setCalendarLocale() local
1631 if (calType != null) { in setCalendarLocale()
1632 buf.append("@calendar=").append(calType); in setCalendarLocale()
1801 CalType calType = getCalendarTypeForLocale(locale); in createInstance() local
1802 if (calType == CalType.UNKNOWN) { in createInstance()
1804 calType = CalType.GREGORIAN; in createInstance()
1807 switch (calType) { in createInstance()
2893 String calType = getType(); in roll() local
2894 … if (calType.equals("gregorian") || calType.equals("roc") || calType.equals("coptic")) { in roll()
3233 String calType = getType(); in add() local
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DGlobalizationPreferencesTest.java632 String calType = cal.getType(); in TestCalendar() local
633 if (!calType.equals("gregorian")) { in TestCalendar()
634 errln("FAIL: Calendar type is " + calType + " Expected: gregorian"); in TestCalendar()
656 calType = cal.getType(); in TestCalendar()
657 if (!calType.equals("japanese")) { in TestCalendar()
658 errln("FAIL: Calendar type is " + calType + " Expected: japanese"); in TestCalendar()
690 calType = cal.getType(); in TestCalendar()
691 if (!calType.equals("japanese")) { in TestCalendar()
692 errln("FAIL: Calendar type afte clone is " + calType + " Expected: japanese"); in TestCalendar()
698 calType = cal.getType(); in TestCalendar()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DGlobalizationPreferencesTest.java635 String calType = cal.getType(); in TestCalendar() local
636 if (!calType.equals("gregorian")) { in TestCalendar()
637 errln("FAIL: Calendar type is " + calType + " Expected: gregorian"); in TestCalendar()
659 calType = cal.getType(); in TestCalendar()
660 if (!calType.equals("japanese")) { in TestCalendar()
661 errln("FAIL: Calendar type is " + calType + " Expected: japanese"); in TestCalendar()
693 calType = cal.getType(); in TestCalendar()
694 if (!calType.equals("japanese")) { in TestCalendar()
695 errln("FAIL: Calendar type afte clone is " + calType + " Expected: japanese"); in TestCalendar()
701 calType = cal.getType(); in TestCalendar()
[all …]
/external/icu/icu4c/source/i18n/
Dcalendar.cpp242 ECalType calType = getCalendarType(keyword); in isStandardSupportedKeyword() local
243 return (calType != CALTYPE_UNKNOWN); in isStandardSupportedKeyword()
264 ECalType calType = CALTYPE_UNKNOWN; in getCalendarTypeForLocale() local
285 calType = getCalendarType(calTypeBuf); in getCalendarTypeForLocale()
286 if (calType != CALTYPE_UNKNOWN) { in getCalendarTypeForLocale()
287 return calType; in getCalendarTypeForLocale()
317 calType = getCalendarType(calTypeBuf); in getCalendarTypeForLocale()
324 if (calType == CALTYPE_UNKNOWN) { in getCalendarTypeForLocale()
326 calType = CALTYPE_GREGORIAN; in getCalendarTypeForLocale()
328 return calType; in getCalendarTypeForLocale()
[all …]
Derarules.h37 …static EraRules* createInstance(const char *calType, UBool includeTentativeEra, UErrorCode& status…
Derarules.cpp114 EraRules* EraRules::createInstance(const char *calType, UBool includeTentativeEra, UErrorCode& stat… in createInstance() argument
120 ures_getByKey(rb.getAlias(), calType, rb.getAlias(), &status); in createInstance()
/external/icu/libicu/cts_headers/
Derarules.h37 …static EraRules* createInstance(const char *calType, UBool includeTentativeEra, UErrorCode& status…
/external/cldr/tools/java/org/unicode/cldr/util/
DLogicalGrouping.java320 String calType = parts.size() > 3 ? parts.getAttributeValue(3, "type") : null; in addPaths() local
323 int calendarMonthMax = calendarsWith13Months.contains(calType) ? 13 : 12; in addPaths()
327 if ("hebrew".equals(calType)) { in addPaths()
332 if ("hebrew".equals(calType)) { // Add extra hebrew calendar leap month in addPaths()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRelativeDateTimeFormatter.java1512 String calType = r.getStringWithFallback("calendar/default"); in getDateTimePattern() local
1513 if (calType == null || calType.equals("")) { in getDateTimePattern()
1514 calType = "gregorian"; in getDateTimePattern()
1516 String resourcePath = "calendar/" + calType + "/DateTimePatterns"; in getDateTimePattern()
1518 if (patternsRb == null && calType.equals("gregorian")) { in getDateTimePattern()
DDateFormatSymbols.java2333 String calType = null; in DateFormatSymbols() local
2336 calType = calClassInfo[1]; in DateFormatSymbols()
2340 if (calType == null) { in DateFormatSymbols()
2341 calType = className.replaceAll("Calendar", "").toLowerCase(Locale.ENGLISH); in DateFormatSymbols()
2344 initializeData(locale, calType); in DateFormatSymbols()
2356 public DateFormatSymbols(ULocale locale, String calType) { in DateFormatSymbols() argument
2357 initializeData(locale, calType); in DateFormatSymbols()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRelativeDateTimeFormatter.java1422 String calType = r.getStringWithFallback("calendar/default"); in getDateTimePattern() local
1423 if (calType == null || calType.equals("")) { in getDateTimePattern()
1424 calType = "gregorian"; in getDateTimePattern()
1426 String resourcePath = "calendar/" + calType + "/DateTimePatterns"; in getDateTimePattern()
1428 if (patternsRb == null && calType.equals("gregorian")) { in getDateTimePattern()
DDateFormatSymbols.java2287 String calType = null; in DateFormatSymbols() local
2290 calType = calClassInfo[1]; in DateFormatSymbols()
2294 if (calType == null) { in DateFormatSymbols()
2295 calType = className.replaceAll("Calendar", "").toLowerCase(Locale.ENGLISH); in DateFormatSymbols()
2298 initializeData(locale, calType); in DateFormatSymbols()
2310 public DateFormatSymbols(ULocale locale, String calType) { in DateFormatSymbols() argument
2311 initializeData(locale, calType); in DateFormatSymbols()
/external/icu/icu4c/source/test/cintltst/
Dccaltst.c83 UCalendarType calType; member
490 … caldef = ucal_open(NULL, 0, ucalGetTypeTestPtr->locale, ucalGetTypeTestPtr->calType, &status); in TestCalendar()
492 const char * calType = ucal_getType(caldef, &status); in TestCalendar() local
493 if ( U_SUCCESS(status) && calType != NULL ) { in TestCalendar()
494 if ( uprv_strcmp( calType, ucalGetTypeTestPtr->expectedResult ) != 0 ) { in TestCalendar()
496 … ucalGetTypeTestPtr->calType, ucalGetTypeTestPtr->expectedResult); in TestCalendar()
499 …L: ucal_open %s type %d, then ucal_getType fails\n", localeToDisplay, ucalGetTypeTestPtr->calType); in TestCalendar()
503 … log_err("FAIL: ucal_open %s type %d fails\n", localeToDisplay, ucalGetTypeTestPtr->calType); in TestCalendar()
2178 const char * calType = ucal_getType(ucalTest, &status); in TestAddRollEra0AndEraBounds() local
2185 … } else if ( uprv_strcmp(calType,"chinese")!=0 && (eraAfter != 0 || yrAfter != -1) ) { in TestAddRollEra0AndEraBounds()
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCoverageLevel.java575 String calType = xpp.findAttributeValue("calendar", "type");
576 if (!calType.matches("(gregorian|generic)")) {
582 if (calType.equals("generic")) {

12