/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/ |
D | DayPeriodConverter.java | 15 import org.unicode.cldr.util.DayPeriods.DayPeriod; 29 DayPeriods.DayPeriod[] data = new DayPeriod[24]; 30 Map<DayPeriod, String> toNativeName = new EnumMap<>(DayPeriod.class); 31 Map<String, DayPeriod> toDayPeriod = new HashMap<>(); 36 DayPeriod lastDayPeriod = null; in toString() 38 DayPeriod dayPeriod = data[i]; in toString() 63 DayPeriod lastDayPeriod = data[0]; in toCldr() 66 DayPeriod dayPeriod = data[i]; in toCldr() 78 private String addPeriod(String result, DayPeriod dayPeriod, int start, int i) { in addPeriod() 96 DayPeriod dayPeriod = DayPeriod.valueOf(x[2]); [all …]
|
D | DayPeriodInfo.java | 42 public final DayPeriod dayPeriod; 44 public Span(int start, int end, DayPeriod dayPeriod) { in Span() 99 public enum DayPeriod { enum in DayPeriodInfo 107 private DayPeriod(int start, int end) { in DayPeriod() method in DayPeriodInfo.DayPeriod 111 private DayPeriod() { in DayPeriod() method in DayPeriodInfo.DayPeriod 115 public static DayPeriod fromString(String value) { in fromString() 127 final private DayPeriodInfo.DayPeriod[] dayPeriods; 128 …final Relation<DayPeriod, Span> dayPeriodsToSpans = Relation.of(new EnumMap<DayPeriod, Set<Span>>(… 135 …public DayPeriodInfo.Builder add(DayPeriodInfo.DayPeriod dayPeriod, int start, boolean includesSta… in add() 155 public boolean contains(DayPeriod dayPeriod) { in contains() [all …]
|
D | DayPeriodsOld.java | 17 public enum DayPeriod { enum in DayPeriodsOld 22 DayPeriod(String name) { in DayPeriod() method in DayPeriodsOld.DayPeriod 26 public static DayPeriod get(String dayPeriod) { in get() 27 for (DayPeriod d : DayPeriod.values()) { in get() 32 return DayPeriod.valueOf(dayPeriod); in get() 41 public DayPeriod get(long millisInDay) { in get() 64 public String getSample(DayPeriod dayPeriod) { in getSample() 72 public Set<DayPeriod> getDayPeriods() { in getDayPeriods() 102 private final DayPeriod[] timeMap; 103 private final Map<DayPeriod, String> samples; [all …]
|
D | DayPeriods.java | 17 public enum DayPeriod { enum in DayPeriods 22 DayPeriod(String name) { in DayPeriod() method in DayPeriods.DayPeriod 26 public static DayPeriod get(String dayPeriod) { in get() 27 for (DayPeriod d : DayPeriod.values()) { in get() 32 return DayPeriod.valueOf(dayPeriod); in get() 41 public DayPeriod get(long millisInDay) { in get() 64 public String getSample(DayPeriod dayPeriod) { in getSample() 72 public Set<DayPeriod> getDayPeriods() { in getDayPeriods() 102 private final DayPeriod[] timeMap; 103 private final Map<DayPeriod, String> samples; [all …]
|
D | DayPeriodData.java | 8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 391 …static final M3<String, DayPeriod, String> localeToDayPeriodToName = ChainedMap.of(new HashMap<Str… 392 new TreeMap<DayPeriod, Object>(), 399 …localeToDayPeriodToName.put(locale, DayPeriod.fromString(dayPeriodString.toLowerCase(Locale.ENGLIS… in localeToDayPeriodToName.put() 403 public static String getName(String locale, DayPeriod dayPeriod) { in getName()
|
D | DayPeriodsCheck.java | 8 import org.unicode.cldr.util.DayPeriods.DayPeriod; 84 DayPeriod dayPeriod = dayPeriods.get(i); in main() 96 DayPeriod dayPeriod = dayPeriods.get(i); in main() 97 DayPeriodsOld.DayPeriod dayPeriodOld = dayPeriodsOld.get(i); in main() 136 DayPeriod lastDayPeriod = dayPeriods.get(start * HOUR); in main() 139 DayPeriod dayPeriod = dayPeriods.get(i * HOUR); in main() 156 …private static void show(ULocale locale, int start, int limit, DayPeriods dayPeriods, DayPeriod da… in show()
|
D | LogicalGrouping.java | 11 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 296 List<DayPeriod> dayPeriods = dpi.getPeriods(); in addPaths() 297 DayPeriod thisDayPeriod = DayPeriod.fromString(dayPeriodType); in addPaths() 299 for (DayPeriod d : dayPeriods) { in addPaths()
|
D | ICUServiceBuilder.java | 13 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 887 DayPeriod period = dayPeriodInfo.getDayPeriod(timeInDay); 906 public static String getDayPeriodPath(DayPeriod period, Context context, Width width) { 925 private String formatDayPeriod(int timeInDay, DayPeriod period, String dayPeriodFormatString) { 942 if (period == DayPeriod.am || period == DayPeriod.pm) {
|
D | DateTimeFormats.java | 977 …+ getFixFromPath(ICUServiceBuilder.getDayPeriodPath(DayPeriodInfo.DayPeriod.am, Context.format, Wi… in addDayPeriods() 1009 … Set<DayPeriodInfo.DayPeriod> dayPeriods = new LinkedHashSet<>(dayPeriodInfo.getPeriods()); in addDayPeriods() 1011 Set<DayPeriodInfo.DayPeriod> eDayPeriods = EnumSet.copyOf(dayPeriodInfo2.getPeriods()); in addDayPeriods() 1015 for (DayPeriodInfo.DayPeriod period : dayPeriods) { in addDayPeriods()
|
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/ |
D | TestCheckCLDR.java | 43 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 626 { Type.format, DayPeriod.night1, Type.format, DayPeriod.night1, Subtype.none }, in TestCheckDates() 627 { Type.format, DayPeriod.morning1, Type.format, DayPeriod.morning1, Subtype.none }, in TestCheckDates() 628 { Type.format, DayPeriod.afternoon1, Type.format, DayPeriod.afternoon1, Subtype.none }, in TestCheckDates() 629 { Type.format, DayPeriod.evening1, Type.format, DayPeriod.evening1, Subtype.none }, in TestCheckDates() 631 { Type.format, DayPeriod.am, Type.format, DayPeriod.am, Subtype.none }, in TestCheckDates() 632 { Type.format, DayPeriod.pm, Type.format, DayPeriod.pm, Subtype.none }, in TestCheckDates() 633 { Type.format, DayPeriod.noon, Type.format, DayPeriod.noon, Subtype.none }, in TestCheckDates() 634 { Type.format, DayPeriod.midnight, Type.format, DayPeriod.midnight, Subtype.none }, in TestCheckDates() 636 { Type.selection, DayPeriod.night1, Type.selection, DayPeriod.night1, Subtype.none }, in TestCheckDates() [all …]
|
D | TestDayPeriods.java | 13 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 39 Set<R2<Integer, DayPeriod>> sortedFormat = getSet(dayPeriodFormat); in TestBasicDayPeriods() 40 Set<R2<Integer, DayPeriod>> sortedSelection = getSet(dayPeriodSelection); in TestBasicDayPeriods() 49 private Set<R2<Integer, DayPeriod>> getSet(DayPeriodInfo dayPeriodInfo) { in getSet() 50 Set<R2<Integer, DayPeriod>> sorted = new TreeSet<>(); in getSet() 52 R3<Integer, Boolean, DayPeriod> info = dayPeriodInfo.getPeriod(i); in getSet() 55 R2<Integer, DayPeriod> row = Row.of(start, info.get2()); in getSet() 67 List<DayPeriod> periods = periodInfo.getPeriods(); in TestAttributes() 79 DayPeriod period; in TestAttributes() 81 period = DayPeriodInfo.DayPeriod.fromString(type); in TestAttributes()
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/ |
D | GenerateDayPeriodChart.java | 15 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 53 final M4<DayPeriod, DayPeriod, String, Boolean> minimalPairs = ChainedMap.of( in main() 54 new TreeMap<DayPeriod, Object>(), in main() 55 new TreeMap<DayPeriod, Object>(), in main() 59 EnumSet<DayPeriod> careAbout = EnumSet.noneOf(DayPeriod.class); in main() 61 …M3<DayPeriod, Integer, Integer> dayPeriodToTimes = ChainedMap.of(new TreeMap<DayPeriod, Object>(),… in main() 70 final List<DayPeriod> periods = info.getPeriods(); in main() 72 for (DayPeriod dp1 : periods) { in main() 73 for (DayPeriod dp2 : periods) { in main() 83 DayPeriod period = info.getDayPeriod((i * 60 + 30) * MINUTE); in main() [all …]
|
D | GenerateDayPeriods.java | 15 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 40 … Map<DayPeriod, String> localizations = getLocalizations(factory.make(locale, true)); in main() 41 for (DayPeriod dayPeriod : DayPeriod.values()) { in main() 42 … if ((dayPeriod == DayPeriod.am || dayPeriod == DayPeriod.pm) && !locale.equals("root")) { in main() 70 static Map<DayPeriod, String> getLocalizations(CLDRFile localeFile) { in getLocalizations() 71 Map<DayPeriod, String> result = new TreeMap<>(); in getLocalizations() 79 result.put(DayPeriod.valueOf(type), localeFile.getStringValue(path2)); in getLocalizations() 90 DayPeriod dayPeriod = null; in combineSpans()
|
D | ChartDayPeriods.java | 8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 75 R3<Integer, Boolean, DayPeriod> data = dayPeriodInfo.getPeriod(i); in writeContents()
|
D | VerifyAttributeValues.java | 21 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 147 for (DayPeriod period : dayPeriods.getPeriods()) { in getPeriods()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | DayPeriodRules.java | 26 public enum DayPeriod { enum in DayPeriodRules 40 public static DayPeriod[] VALUES = DayPeriod.values(); 42 private static DayPeriod fromStringOrNull(CharSequence str) { in fromStringOrNull() 111 period = DayPeriod.fromStringOrNull(key); in processRules() 136 for (DayPeriod period : data.rules[ruleSetNum].dayPeriodForHour) { in processRules() 149 private DayPeriod period; 164 if (startHour == 0 && period == DayPeriod.MIDNIGHT) { in setDayPeriodForHoursFromCutoffs() 166 } else if (startHour == 12 && period == DayPeriod.NOON) { in setDayPeriodForHoursFromCutoffs() 237 private DayPeriod[] dayPeriodForHour; 242 dayPeriodForHour = new DayPeriod[24]; in DayPeriodRules() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | DayPeriodRules.java | 19 public enum DayPeriod { enum in DayPeriodRules 33 public static DayPeriod[] VALUES = DayPeriod.values(); 35 private static DayPeriod fromStringOrNull(CharSequence str) { in fromStringOrNull() 104 period = DayPeriod.fromStringOrNull(key); in processRules() 129 for (DayPeriod period : data.rules[ruleSetNum].dayPeriodForHour) { in processRules() 142 private DayPeriod period; 157 if (startHour == 0 && period == DayPeriod.MIDNIGHT) { in setDayPeriodForHoursFromCutoffs() 159 } else if (startHour == 12 && period == DayPeriod.NOON) { in setDayPeriodForHoursFromCutoffs() 230 private DayPeriod[] dayPeriodForHour; 235 dayPeriodForHour = new DayPeriod[24]; in DayPeriodRules() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | dayperiodrules.h | 33 enum DayPeriod { enum 53 DayPeriod getDayPeriodForHour(int32_t hour) const { return fDayPeriodForHour[hour]; } in getDayPeriodForHour() 56 double getMidPointForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 62 static DayPeriod getDayPeriodFromString(const char *type_str); 67 void add(int32_t startHour, int32_t limitHour, DayPeriod period); 74 int32_t getStartHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 80 int32_t getEndHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 84 DayPeriod fDayPeriodForHour[24];
|
D | dayperiodrules.cpp | 137 DayPeriodRules::DayPeriod period; 391 DayPeriodRules::DayPeriod dayPeriod, UErrorCode &errorCode) const { in getMidPointForDayPeriod() 414 DayPeriodRules::DayPeriod dayPeriod, UErrorCode &errorCode) const { in getStartHourForDayPeriod() 441 DayPeriodRules::DayPeriod dayPeriod, UErrorCode &errorCode) const { in getEndHourForDayPeriod() 468 DayPeriodRules::DayPeriod DayPeriodRules::getDayPeriodFromString(const char *type_str) { in getDayPeriodFromString() 498 void DayPeriodRules::add(int32_t startHour, int32_t limitHour, DayPeriod period) { in add()
|
/external/icu/libicu/cts_headers/ |
D | dayperiodrules.h | 33 enum DayPeriod { enum 53 DayPeriod getDayPeriodForHour(int32_t hour) const { return fDayPeriodForHour[hour]; } in getDayPeriodForHour() 56 double getMidPointForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 62 static DayPeriod getDayPeriodFromString(const char *type_str); 67 void add(int32_t startHour, int32_t limitHour, DayPeriod period); 74 int32_t getStartHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 80 int32_t getEndHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 84 DayPeriod fDayPeriodForHour[24];
|
/external/cronet/third_party/icu/source/i18n/ |
D | dayperiodrules.h | 33 enum DayPeriod { enum 53 DayPeriod getDayPeriodForHour(int32_t hour) const { return fDayPeriodForHour[hour]; } in getDayPeriodForHour() 56 double getMidPointForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 62 static DayPeriod getDayPeriodFromString(const char *type_str); 67 void add(int32_t startHour, int32_t limitHour, DayPeriod period); 74 int32_t getStartHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 80 int32_t getEndHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 84 DayPeriod fDayPeriodForHour[24];
|
D | dayperiodrules.cpp | 137 DayPeriodRules::DayPeriod period; 391 DayPeriodRules::DayPeriod dayPeriod, UErrorCode &errorCode) const { in getMidPointForDayPeriod() 414 DayPeriodRules::DayPeriod dayPeriod, UErrorCode &errorCode) const { in getStartHourForDayPeriod() 441 DayPeriodRules::DayPeriod dayPeriod, UErrorCode &errorCode) const { in getEndHourForDayPeriod() 468 DayPeriodRules::DayPeriod DayPeriodRules::getDayPeriodFromString(const char *type_str) { in getDayPeriodFromString() 498 void DayPeriodRules::add(int32_t startHour, int32_t limitHour, DayPeriod period) { in add()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | SimpleDateFormat.java | 1983 DayPeriodRules.DayPeriod periodType; in subFormat() 1985 periodType = DayPeriodRules.DayPeriod.MIDNIGHT; in subFormat() 1987 periodType = DayPeriodRules.DayPeriod.NOON; in subFormat() 2001 … if (periodType != DayPeriodRules.DayPeriod.AM && periodType != DayPeriodRules.DayPeriod.PM && in subFormat() 2002 periodType != DayPeriodRules.DayPeriod.MIDNIGHT) { in subFormat() 2019 (periodType == DayPeriodRules.DayPeriod.MIDNIGHT || in subFormat() 2020 periodType == DayPeriodRules.DayPeriod.NOON)) { in subFormat() 2034 if (periodType == DayPeriodRules.DayPeriod.AM || in subFormat() 2035 periodType == DayPeriodRules.DayPeriod.PM || in subFormat() 2422 Output<DayPeriodRules.DayPeriod> dayPeriod = new Output<>(null); in parse() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | SimpleDateFormat.java | 1971 DayPeriodRules.DayPeriod periodType; in subFormat() 1973 periodType = DayPeriodRules.DayPeriod.MIDNIGHT; in subFormat() 1975 periodType = DayPeriodRules.DayPeriod.NOON; in subFormat() 1989 … if (periodType != DayPeriodRules.DayPeriod.AM && periodType != DayPeriodRules.DayPeriod.PM && in subFormat() 1990 periodType != DayPeriodRules.DayPeriod.MIDNIGHT) { in subFormat() 2007 (periodType == DayPeriodRules.DayPeriod.MIDNIGHT || in subFormat() 2008 periodType == DayPeriodRules.DayPeriod.NOON)) { in subFormat() 2022 if (periodType == DayPeriodRules.DayPeriod.AM || in subFormat() 2023 periodType == DayPeriodRules.DayPeriod.PM || in subFormat() 2407 Output<DayPeriodRules.DayPeriod> dayPeriod = new Output<>(null); in parse() [all …]
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/test/ |
D | CheckDates.java | 32 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 474 DayPeriod dayPeriod = null; in handleCheck() 479 dayPeriod = DayPeriod.valueOf(parts.getAttributeValue(-1, "type")); in handleCheck() 506 … DayPeriod itemDayPeriod = DayPeriod.valueOf(itemParts.getAttributeValue(-1, "type")); in handleCheck()
|