Home
last modified time | relevance | path

Searched refs:DayPeriodInfo (Results 1 – 16 of 16) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/util/
DDayPeriodConverter.java129 … EnumSet<DayPeriodInfo.DayPeriod> dayPeriodSet = EnumSet.noneOf(DayPeriodInfo.DayPeriod.class); in generateFieldNames()
133 for (String locale : sdi.getDayPeriodLocales(DayPeriodInfo.Type.format)) { in generateFieldNames()
135 DayPeriodInfo dayPeriodInfo = sdi.getDayPeriods(DayPeriodInfo.Type.format, locale); in generateFieldNames()
151DayPeriodInfo.DayPeriod period = DayPeriodInfo.DayPeriod.fromString(parts.getAttributeValue(-1, "t… in generateFieldNames()
166 addOldDayPeriod(cldrFile, DayPeriodInfo.DayPeriod.am); in generateFieldNames()
167 addOldDayPeriod(cldrFile, DayPeriodInfo.DayPeriod.pm); in generateFieldNames()
169 for (DayPeriodInfo.DayPeriod dayPeriod : dayPeriodSet) { in generateFieldNames()
196 …private static void showModLine(String locale, DayPeriodInfo.DayPeriod dayPeriod, String name, boo… in showModLine()
207 private static void addOldDayPeriod(CLDRFile cldrFile, DayPeriodInfo.DayPeriod period) { in addOldDayPeriod()
216 static String getPath(String context, String width, DayPeriodInfo.DayPeriod dayPeriod) { in getPath()
[all …]
DDayPeriodInfo.java19 public class DayPeriodInfo { class
127 final private DayPeriodInfo.DayPeriod[] dayPeriods;
135 …public DayPeriodInfo.Builder add(DayPeriodInfo.DayPeriod dayPeriod, int start, boolean includesSta… in add()
149 public DayPeriodInfo finish(String[] locales) { in finish()
150 DayPeriodInfo result = new DayPeriodInfo(info, locales); in finish()
165 private DayPeriodInfo(TreeSet<Span> info, String[] locales) { in DayPeriodInfo() method in DayPeriodInfo
227 public int getFirstStartTime(DayPeriodInfo.DayPeriod dayPeriod) { in getFirstStartTime()
242 public R3<Integer, Integer, Boolean> getFirstDayPeriodInfo(DayPeriodInfo.DayPeriod dayPeriod) { in getFirstDayPeriodInfo()
247 public Span getFirstDayPeriodSpan(DayPeriodInfo.DayPeriod dayPeriod) { in getFirstDayPeriodSpan()
259 public Set<Span> getDayPeriodSpans(DayPeriodInfo.DayPeriod dayPeriod) { in getDayPeriodSpans()
[all …]
DLogicalGrouping.java8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
91DayPeriodInfo.Type dayPeriodContext = DayPeriodInfo.Type.fromString(parts.findAttributeValue("dayP… in getPaths()
92DayPeriodInfo dpi = supplementalData.getDayPeriods(dayPeriodContext, cldrFile.getLocaleID()); in getPaths()
DDateTimeFormats.java950 …+ getFixFromPath(ICUServiceBuilder.getDayPeriodPath(DayPeriodInfo.DayPeriod.am, Context.format, Wi… in addDayPeriods()
981DayPeriodInfo dayPeriodInfo = sdi.getDayPeriods(DayPeriodInfo.Type.format, file.getLocaleID()); in addDayPeriods()
982 … Set<DayPeriodInfo.DayPeriod> dayPeriods = new LinkedHashSet<>(dayPeriodInfo.getPeriods()); in addDayPeriods()
983 DayPeriodInfo dayPeriodInfo2 = sdi.getDayPeriods(DayPeriodInfo.Type.format, "en"); in addDayPeriods()
984 Set<DayPeriodInfo.DayPeriod> eDayPeriods = EnumSet.copyOf(dayPeriodInfo2.getPeriods()); in addDayPeriods()
988 for (DayPeriodInfo.DayPeriod period : dayPeriods) { in addDayPeriods()
DDayPeriodData.java8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
DSupplementalDataInfo.java39 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
2921 …vate Map<DayPeriodInfo.Type, Map<String, DayPeriodInfo>> typeToLocaleToDayPeriodInfo = new EnumMap…
2922 DayPeriodInfo.Type.class);
2929 private transient DayPeriodInfo.Type lastDayPeriodType = null;
2930 private transient DayPeriodInfo.Builder dayPeriodBuilder = new DayPeriodInfo.Builder();
2945 DayPeriodInfo.Type type = typeString == null
2946 ? DayPeriodInfo.Type.format
2947 : DayPeriodInfo.Type.valueOf(typeString.trim());
3011 DayPeriodInfo temp = dayPeriodBuilder.finish(locales);
3012 Map<String, DayPeriodInfo> locale2DPI = typeToLocaleToDayPeriodInfo.get(lastDayPeriodType);
[all …]
DICUServiceBuilder.java12 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
858DayPeriodInfo dayPeriodInfo = supplementalData.getDayPeriods(DayPeriodInfo.Type.format, cldrFile.g…
DCLDRFile.java39 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
3371DayPeriodInfo dayPeriods = supplementalData.getDayPeriods(DayPeriodInfo.Type.format, locale);
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestDayPeriods.java12 import org.unicode.cldr.util.DayPeriodInfo;
13 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
14 import org.unicode.cldr.util.DayPeriodInfo.Type;
35 for (String locale : SUPPLEMENTAL.getDayPeriodLocales(DayPeriodInfo.Type.format)) { in TestBasicDayPeriods()
36DayPeriodInfo dayPeriodFormat = SUPPLEMENTAL.getDayPeriods(DayPeriodInfo.Type.format, locale); in TestBasicDayPeriods()
37DayPeriodInfo dayPeriodSelection = SUPPLEMENTAL.getDayPeriods(DayPeriodInfo.Type.selection, locale… in TestBasicDayPeriods()
49 private Set<R2<Integer, DayPeriod>> getSet(DayPeriodInfo dayPeriodInfo) { in getSet()
54 …assertEquals("Time is even hours", (int) (start / DayPeriodInfo.HOUR) * DayPeriodInfo.HOUR, (int) … in getSet()
67 DayPeriodInfo periodInfo = SUPPLEMENTAL.getDayPeriods(Type.format, locale); in TestAttributes()
83 period = DayPeriodInfo.DayPeriod.fromString(type); in TestAttributes()
DTestCheckCLDR.java25 import org.unicode.cldr.util.DayPeriodInfo;
26 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
27 import org.unicode.cldr.util.DayPeriodInfo.Type;
502 final DayPeriodInfo.Type type1 = (Type) test[0]; in TestCheckDates()
503 final DayPeriodInfo.DayPeriod period1 = (DayPeriod) test[1]; in TestCheckDates()
504 final DayPeriodInfo.Type type2 = (Type) test[2]; in TestCheckDates()
505 final DayPeriodInfo.DayPeriod period2 = (DayPeriod) test[3]; in TestCheckDates()
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateDayPeriodChart.java14 import org.unicode.cldr.util.DayPeriodInfo;
15 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
16 import org.unicode.cldr.util.DayPeriodInfo.Type;
51 for (DayPeriodInfo.Type type : DayPeriodInfo.Type.values()) { in main()
66 DayPeriodInfo info = getFixedDayPeriodInfo(type, locale); in main()
103 DayPeriodInfo dayPeriod = getFixedDayPeriodInfo(type, locale); in main()
138 DayPeriodInfo dayPeriod = getFixedDayPeriodInfo(type, locale); in main()
145 public static DayPeriodInfo getFixedDayPeriodInfo(Type type, String locale) { in getFixedDayPeriodInfo()
153 public static void doRow(DayPeriodInfo dayPeriod) { in doRow()
DGenerateDayPeriods.java13 import org.unicode.cldr.util.DayPeriodInfo;
14 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
15 import org.unicode.cldr.util.DayPeriodInfo.Span;
16 import org.unicode.cldr.util.DayPeriodInfo.Type;
37 DayPeriodInfo dayPeriodInfo = SDI.getDayPeriods(type, locale); in main()
66 return DayPeriodInfo.formatTime(to == true && start == 0 ? start + MILLIS_PER_DAY : start); in format()
DChartDayPeriods.java7 import org.unicode.cldr.util.DayPeriodInfo;
8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
9 import org.unicode.cldr.util.DayPeriodInfo.Type;
73 DayPeriodInfo dayPeriodInfo = SDI.getDayPeriods(Type.selection, locale); in writeContents()
DVerifyAttributeValues.java20 import org.unicode.cldr.util.DayPeriodInfo;
21 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
22 import org.unicode.cldr.util.DayPeriodInfo.Type;
145 final DayPeriodInfo dayPeriods = supplementalData.getDayPeriods(Type.format, locale); in getPeriods()
/external/cldr/tools/java/org/unicode/cldr/test/
DCheckDates.java29 import org.unicode.cldr.util.DayPeriodInfo;
30 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
31 import org.unicode.cldr.util.DayPeriodInfo.Type;
80 private DayPeriodInfo dateFormatInfoFormat;
498 value, others.toString(), sampleError.value / DayPeriodInfo.HOUR); in handleCheck()
DExampleGenerator.java29 import org.unicode.cldr.util.DayPeriodInfo;
30 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
550 …org.unicode.cldr.util.DayPeriodInfo.Type aType = dayPeriodType.equals("format") ? DayPeriodInfo.Ty… in handleDayPeriod()
551DayPeriodInfo dayPeriodInfo = supplementalDataInfo.getDayPeriods(aType, cldrFile.getLocaleID()); in handleDayPeriod()
562 int time = (((info.get0() + info.get1()) % DayPeriodInfo.DAY_LIMIT) / 2); in handleDayPeriod()