/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()
|
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/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 | 1612 String calType = ucalTest.getType(); in TestAddRollEra0AndEraBounds() local 1613 …boolean era0YearsGoBackwards = (calType.equals("gregorian") || calType.equals("roc") || calType.eq… in TestAddRollEra0AndEraBounds() 1653 if ( !calType.equals("chinese") && (eraAfter != 0 || yrAfter != -1) ) { in TestAddRollEra0AndEraBounds() 1662 if (eraMin != 0 && calType.compareTo("chinese") != 0) { in TestAddRollEra0AndEraBounds() 1663 … 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()
|
D | dtifmtts.cpp | 1103 const char* calType = defCal->getType(); in expect() local 1106 if (calType) { in expect() 1107 refLoc.setKeywordValue("calendar", calType, ec); in expect()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | Calendar.java | 1629 String calType = locale.getKeywordValue("calendar"); in setCalendarLocale() local 1630 if (calType != null) { in setCalendarLocale() 1631 buf.append("@calendar=").append(calType); in setCalendarLocale() 1800 CalType calType = getCalendarTypeForLocale(locale); in createInstance() local 1801 if (calType == CalType.UNKNOWN) { in createInstance() 1803 calType = CalType.GREGORIAN; in createInstance() 1806 switch (calType) { in createInstance() 2892 String calType = getType(); in roll() local 2893 … if (calType.equals("gregorian") || calType.equals("roc") || calType.equals("coptic")) { in roll() 3232 String calType = getType(); in add() local [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | Calendar.java | 1564 String calType = locale.getKeywordValue("calendar"); in setCalendarLocale() local 1565 if (calType != null) { in setCalendarLocale() 1566 buf.append("@calendar=").append(calType); in setCalendarLocale() 1729 CalType calType = getCalendarTypeForLocale(locale); in createInstance() local 1730 if (calType == CalType.UNKNOWN) { in createInstance() 1732 calType = CalType.GREGORIAN; in createInstance() 1735 switch (calType) { in createInstance() 2795 String calType = getType(); in roll() local 2796 … if (calType.equals("gregorian") || calType.equals("roc") || calType.equals("coptic")) { in roll() 3134 String calType = getType(); in add() local [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/ |
D | GlobalizationPreferencesTest.java | 622 String calType = cal.getType(); in TestCalendar() local 623 if (!calType.equals("gregorian")) { in TestCalendar() 624 errln("FAIL: Calendar type is " + calType + " Expected: gregorian"); in TestCalendar() 646 calType = cal.getType(); in TestCalendar() 647 if (!calType.equals("japanese")) { in TestCalendar() 648 errln("FAIL: Calendar type is " + calType + " Expected: japanese"); in TestCalendar() 680 calType = cal.getType(); in TestCalendar() 681 if (!calType.equals("japanese")) { in TestCalendar() 682 errln("FAIL: Calendar type afte clone is " + calType + " Expected: japanese"); in TestCalendar() 688 calType = cal.getType(); in TestCalendar() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | GlobalizationPreferencesTest.java | 625 String calType = cal.getType(); in TestCalendar() local 626 if (!calType.equals("gregorian")) { in TestCalendar() 627 errln("FAIL: Calendar type is " + calType + " Expected: gregorian"); in TestCalendar() 649 calType = cal.getType(); in TestCalendar() 650 if (!calType.equals("japanese")) { in TestCalendar() 651 errln("FAIL: Calendar type is " + calType + " Expected: japanese"); in TestCalendar() 683 calType = cal.getType(); in TestCalendar() 684 if (!calType.equals("japanese")) { in TestCalendar() 685 errln("FAIL: Calendar type afte clone is " + calType + " Expected: japanese"); in TestCalendar() 691 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/cldr/tools/java/org/unicode/cldr/util/ |
D | LogicalGrouping.java | 289 String calType = parts.size() > 3 ? parts.getAttributeValue(3, "type") : null; in addPaths() local 292 int calendarMonthMax = calendarsWith13Months.contains(calType) ? 13 : 12; in addPaths() 296 if ("hebrew".equals(calType)) { in addPaths() 301 if ("hebrew".equals(calType)) { // Add extra hebrew calendar leap month in addPaths()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | RelativeDateTimeFormatter.java | 1459 String calType = r.getStringWithFallback("calendar/default"); in getDateTimePattern() local 1460 if (calType == null || calType.equals("")) { in getDateTimePattern() 1461 calType = "gregorian"; in getDateTimePattern() 1463 String resourcePath = "calendar/" + calType + "/DateTimePatterns"; in getDateTimePattern() 1465 if (patternsRb == null && calType.equals("gregorian")) { in getDateTimePattern()
|
D | DateFormatSymbols.java | 2168 String calType = null; in DateFormatSymbols() local 2171 calType = calClassInfo[1]; in DateFormatSymbols() 2175 if (calType == null) { in DateFormatSymbols() 2176 calType = className.replaceAll("Calendar", "").toLowerCase(Locale.ENGLISH); in DateFormatSymbols() 2179 initializeData(locale, calType); in DateFormatSymbols() 2192 public DateFormatSymbols(ULocale locale, String calType) { in DateFormatSymbols() argument 2193 initializeData(locale, calType); in DateFormatSymbols()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | RelativeDateTimeFormatter.java | 1539 String calType = r.getStringWithFallback("calendar/default"); in getDateTimePattern() local 1540 if (calType == null || calType.equals("")) { in getDateTimePattern() 1541 calType = "gregorian"; in getDateTimePattern() 1543 String resourcePath = "calendar/" + calType + "/DateTimePatterns"; in getDateTimePattern() 1545 if (patternsRb == null && calType.equals("gregorian")) { in getDateTimePattern()
|
D | DateFormatSymbols.java | 2215 String calType = null; in DateFormatSymbols() local 2218 calType = calClassInfo[1]; in DateFormatSymbols() 2222 if (calType == null) { in DateFormatSymbols() 2223 calType = className.replaceAll("Calendar", "").toLowerCase(Locale.ENGLISH); in DateFormatSymbols() 2226 initializeData(locale, calType); in DateFormatSymbols() 2238 public DateFormatSymbols(ULocale locale, String calType) { in DateFormatSymbols() argument 2239 initializeData(locale, calType); in DateFormatSymbols()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ccaltst.c | 82 UCalendarType calType; member 489 … caldef = ucal_open(NULL, 0, ucalGetTypeTestPtr->locale, ucalGetTypeTestPtr->calType, &status); in TestCalendar() 491 const char * calType = ucal_getType(caldef, &status); in TestCalendar() local 492 if ( U_SUCCESS(status) && calType != NULL ) { in TestCalendar() 493 if ( uprv_strcmp( calType, ucalGetTypeTestPtr->expectedResult ) != 0 ) { in TestCalendar() 495 … ucalGetTypeTestPtr->calType, ucalGetTypeTestPtr->expectedResult); in TestCalendar() 498 …L: ucal_open %s type %d, then ucal_getType fails\n", localeToDisplay, ucalGetTypeTestPtr->calType); in TestCalendar() 502 … log_err("FAIL: ucal_open %s type %d fails\n", localeToDisplay, ucalGetTypeTestPtr->calType); in TestCalendar() 2177 const char * calType = ucal_getType(ucalTest, &status); in TestAddRollEra0AndEraBounds() local 2184 … } 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 | 567 String calType = xpp.findAttributeValue("calendar", "type"); 568 if (!calType.matches("(gregorian|generic)")) { 574 if (calType.equals("generic")) {
|