Home
last modified time | relevance | path

Searched refs:DayPeriod (Results 1 – 25 of 31) sorted by relevance

12

/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestCheckCLDR.java26 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
382 { Type.format, DayPeriod.night1, Type.format, DayPeriod.night1, Subtype.none }, in TestCheckDates()
383 { Type.format, DayPeriod.morning1, Type.format, DayPeriod.morning1, Subtype.none }, in TestCheckDates()
384 { Type.format, DayPeriod.afternoon1, Type.format, DayPeriod.afternoon1, Subtype.none }, in TestCheckDates()
385 { Type.format, DayPeriod.evening1, Type.format, DayPeriod.evening1, Subtype.none }, in TestCheckDates()
387 { Type.format, DayPeriod.am, Type.format, DayPeriod.am, Subtype.none }, in TestCheckDates()
388 { Type.format, DayPeriod.pm, Type.format, DayPeriod.pm, Subtype.none }, in TestCheckDates()
389 { Type.format, DayPeriod.noon, Type.format, DayPeriod.noon, Subtype.none }, in TestCheckDates()
390 { Type.format, DayPeriod.midnight, Type.format, DayPeriod.midnight, Subtype.none }, in TestCheckDates()
392 { Type.selection, DayPeriod.night1, Type.selection, DayPeriod.night1, Subtype.none }, in TestCheckDates()
[all …]
DTestDayPeriods.java13 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()
68 List<DayPeriod> periods = periodInfo.getPeriods(); in TestAttributes()
81 DayPeriod period; in TestAttributes()
83 period = DayPeriodInfo.DayPeriod.fromString(type); in TestAttributes()
/external/cldr/tools/java/org/unicode/cldr/util/
DDayPeriodConverter.java15 import org.unicode.cldr.util.DayPeriods.DayPeriod;
29 DayPeriods.DayPeriod[] data = new DayPeriod[24];
30 Map<DayPeriod, String> toNativeName = new EnumMap<DayPeriod, String>(DayPeriod.class);
31 Map<String, DayPeriod> toDayPeriod = new HashMap<String, DayPeriod>();
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 …]
DDayPeriodInfo.java42 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 …]
DDayPeriodsOld.java17 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 …]
DDayPeriods.java17 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 …]
DDayPeriodData.java8 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()
DDayPeriodsCheck.java8 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()
DLogicalGrouping.java8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
93 List<DayPeriod> dayPeriods = dpi.getPeriods(); in getPaths()
94 DayPeriod thisDayPeriod = DayPeriod.fromString(dayPeriodType); in getPaths()
96 for (DayPeriod d : dayPeriods) { in getPaths()
DDateTimeFormats.java950 …+ getFixFromPath(ICUServiceBuilder.getDayPeriodPath(DayPeriodInfo.DayPeriod.am, Context.format, Wi… in addDayPeriods()
982 … Set<DayPeriodInfo.DayPeriod> dayPeriods = new LinkedHashSet<>(dayPeriodInfo.getPeriods()); in addDayPeriods()
984 Set<DayPeriodInfo.DayPeriod> eDayPeriods = EnumSet.copyOf(dayPeriodInfo2.getPeriods()); in addDayPeriods()
988 for (DayPeriodInfo.DayPeriod period : dayPeriods) { in addDayPeriods()
DICUServiceBuilder.java12 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
859 DayPeriod period = dayPeriodInfo.getDayPeriod(timeInDay);
878 public static String getDayPeriodPath(DayPeriod period, Context context, Width width) {
DCLDRFile.java39 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
3373 LinkedHashSet<DayPeriod> items = new LinkedHashSet<DayPeriod>(dayPeriods.getPeriods());
3374 items.add(DayPeriod.am);
3375 items.add(DayPeriod.pm);
3378 for (DayPeriod dayPeriod : items) {
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateDayPeriodChart.java15 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 …]
DGenerateDayPeriods.java14 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
39 … Map<DayPeriod, String> localizations = getLocalizations(factory.make(locale, true)); in main()
40 for (DayPeriod dayPeriod : DayPeriod.values()) { in main()
41 … if ((dayPeriod == DayPeriod.am || dayPeriod == DayPeriod.pm) && !locale.equals("root")) { in main()
69 static Map<DayPeriod, String> getLocalizations(CLDRFile localeFile) { in getLocalizations()
70 Map<DayPeriod, String> result = new TreeMap<>(); in getLocalizations()
78 result.put(DayPeriod.valueOf(type), localeFile.getStringValue(path2)); in getLocalizations()
89 DayPeriod dayPeriod = null; in combineSpans()
DChartDayPeriods.java8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
75 R3<Integer, Boolean, DayPeriod> data = dayPeriodInfo.getPeriod(i); in writeContents()
DVerifyAttributeValues.java21 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
146 for (DayPeriod period : dayPeriods.getPeriods()) { in getPeriods()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DDayPeriodRules.java19 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/android_icu4j/src/main/java/android/icu/impl/
DDayPeriodRules.java26 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/icu4c/source/i18n/
Ddayperiodrules.h33 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];
Ddayperiodrules.cpp137 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/
DSimpleDateFormat.java1955 DayPeriodRules.DayPeriod periodType; in subFormat()
1957 periodType = DayPeriodRules.DayPeriod.MIDNIGHT; in subFormat()
1959 periodType = DayPeriodRules.DayPeriod.NOON; in subFormat()
1973 … if (periodType != DayPeriodRules.DayPeriod.AM && periodType != DayPeriodRules.DayPeriod.PM && in subFormat()
1974 periodType != DayPeriodRules.DayPeriod.MIDNIGHT) { in subFormat()
1991 (periodType == DayPeriodRules.DayPeriod.MIDNIGHT || in subFormat()
1992 periodType == DayPeriodRules.DayPeriod.NOON)) { in subFormat()
2006 if (periodType == DayPeriodRules.DayPeriod.AM || in subFormat()
2007 periodType == DayPeriodRules.DayPeriod.PM || in subFormat()
2378 Output<DayPeriodRules.DayPeriod> dayPeriod = new Output<DayPeriodRules.DayPeriod>(null); in parse()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSimpleDateFormat.java1945 DayPeriodRules.DayPeriod periodType; in subFormat()
1947 periodType = DayPeriodRules.DayPeriod.MIDNIGHT; in subFormat()
1949 periodType = DayPeriodRules.DayPeriod.NOON; in subFormat()
1963 … if (periodType != DayPeriodRules.DayPeriod.AM && periodType != DayPeriodRules.DayPeriod.PM && in subFormat()
1964 periodType != DayPeriodRules.DayPeriod.MIDNIGHT) { in subFormat()
1981 (periodType == DayPeriodRules.DayPeriod.MIDNIGHT || in subFormat()
1982 periodType == DayPeriodRules.DayPeriod.NOON)) { in subFormat()
1996 if (periodType == DayPeriodRules.DayPeriod.AM || in subFormat()
1997 periodType == DayPeriodRules.DayPeriod.PM || in subFormat()
2365 Output<DayPeriodRules.DayPeriod> dayPeriod = new Output<DayPeriodRules.DayPeriod>(null); in parse()
[all …]
/external/cldr/tools/java/org/unicode/cldr/test/
DCheckDates.java30 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
439 DayPeriod dayPeriod = null; in handleCheck()
444 dayPeriod = DayPeriod.valueOf(parts.getAttributeValue(-1, "type")); in handleCheck()
470DayPeriod itemDayPeriod = DayPeriod.valueOf(itemParts.getAttributeValue(-1, "type")); in handleCheck()
DExampleGenerator.java30 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
554 DayPeriod dayPeriod = DayPeriod.valueOf(periodString); in handleDayPeriod()
/external/cldr/tools/java/org/unicode/cldr/util/data/
DPathHeader.txt417 …odRules[@locales="%A"]/dayPeriodRule[@type="%A"]/_%E ; Supplemental ; DayPeriod ; $1-$2 ; $3-$4 …
418 …odRules[@locales="%A"]/dayPeriodRule[@type="%A"]/_%E ; Supplemental ; DayPeriod ; $1 ; $2-$3 ; H…

12