/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | CalendarUtil.java | 42 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()
|
D | EraRules.java | 38 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/ |
D | CalendarUtil.java | 44 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()
|
D | EraRules.java | 40 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/ |
D | EraRulesTest.java | 27 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/ |
D | EraRulesTest.java | 24 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()
|
D | IBMCalendarTest.java | 1615 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/ |
D | callimts.cpp | 232 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()
|
D | windttst.cpp | 120 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/ |
D | CalendarTest.java | 59 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/ |
D | Calendar.java | 1565 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/ |
D | Calendar.java | 1630 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/ |
D | GlobalizationPreferencesTest.java | 632 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/ |
D | GlobalizationPreferencesTest.java | 635 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/ |
D | calendar.cpp | 242 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 …]
|
D | erarules.h | 37 …static EraRules* createInstance(const char *calType, UBool includeTentativeEra, UErrorCode& status…
|
D | erarules.cpp | 114 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/ |
D | erarules.h | 37 …static EraRules* createInstance(const char *calType, UBool includeTentativeEra, UErrorCode& status…
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | LogicalGrouping.java | 320 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/ |
D | RelativeDateTimeFormatter.java | 1512 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()
|
D | DateFormatSymbols.java | 2333 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/ |
D | RelativeDateTimeFormatter.java | 1422 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()
|
D | DateFormatSymbols.java | 2287 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/ |
D | ccaltst.c | 83 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/ |
D | TestCoverageLevel.java | 575 String calType = xpp.findAttributeValue("calendar", "type"); 576 if (!calType.matches("(gregorian|generic)")) { 582 if (calType.equals("generic")) {
|