Home
last modified time | relevance | path

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

/external/cldr/tools/cldr-code/src/main/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()
250 public Span getFirstDayPeriodSpan(DayPeriodInfo.DayPeriod dayPeriod) { in getFirstDayPeriodSpan()
262 public Set<Span> getDayPeriodSpans(DayPeriodInfo.DayPeriod dayPeriod) { in getDayPeriodSpans()
[all …]
DDateTimeFormats.java977 …+ getFixFromPath(ICUServiceBuilder.getDayPeriodPath(DayPeriodInfo.DayPeriod.am, Context.format, Wi… in addDayPeriods()
1008DayPeriodInfo dayPeriodInfo = sdi.getDayPeriods(DayPeriodInfo.Type.format, file.getLocaleID()); in addDayPeriods()
1009 … Set<DayPeriodInfo.DayPeriod> dayPeriods = new LinkedHashSet<>(dayPeriodInfo.getPeriods()); in addDayPeriods()
1010 DayPeriodInfo dayPeriodInfo2 = sdi.getDayPeriods(DayPeriodInfo.Type.format, "en"); in addDayPeriods()
1011 Set<DayPeriodInfo.DayPeriod> eDayPeriods = EnumSet.copyOf(dayPeriodInfo2.getPeriods()); in addDayPeriods()
1015 for (DayPeriodInfo.DayPeriod period : dayPeriods) { in addDayPeriods()
DDayPeriodData.java8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
DLogicalGrouping.java11 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
294DayPeriodInfo.Type dayPeriodContext = DayPeriodInfo.Type.fromString(parts.findAttributeValue("dayP… in addPaths()
295DayPeriodInfo dpi = supplementalData.getDayPeriods(dayPeriodContext, cldrFile.getLocaleID()); in addPaths()
DSupplementalDataInfo.java40 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
3145 …private Map<DayPeriodInfo.Type, Map<String, DayPeriodInfo>> typeToLocaleToDayPeriodInfo = new Enum…
3146 DayPeriodInfo.Type.class);
3153 private transient DayPeriodInfo.Type lastDayPeriodType = null;
3154 private transient DayPeriodInfo.Builder dayPeriodBuilder = new DayPeriodInfo.Builder();
3169 DayPeriodInfo.Type type = typeString == null
3170 ? DayPeriodInfo.Type.format
3171 : DayPeriodInfo.Type.valueOf(typeString.trim());
3235 DayPeriodInfo temp = dayPeriodBuilder.finish(locales);
3236 Map<String, DayPeriodInfo> locale2DPI = typeToLocaleToDayPeriodInfo.get(lastDayPeriodType);
[all …]
DICUServiceBuilder.java13 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
886DayPeriodInfo dayPeriodInfo = supplementalData.getDayPeriods(DayPeriodInfo.Type.format, cldrFile.g…
DCLDRFile.java38 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
2842DayPeriodInfo dayPeriods = supplementalData.getDayPeriods(DayPeriodInfo.Type.format, locale);
/external/cldr/tools/cldr-code/src/test/java/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", start / DayPeriodInfo.HOUR * DayPeriodInfo.HOUR, start); in getSet()
66 DayPeriodInfo periodInfo = SUPPLEMENTAL.getDayPeriods(Type.format, locale); in TestAttributes()
81 period = DayPeriodInfo.DayPeriod.fromString(type); in TestAttributes()
DTestCheckCLDR.java42 import org.unicode.cldr.util.DayPeriodInfo;
43 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
44 import org.unicode.cldr.util.DayPeriodInfo.Type;
746 final DayPeriodInfo.Type type1 = (Type) test[0]; in TestCheckDates()
747 final DayPeriodInfo.DayPeriod period1 = (DayPeriod) test[1]; in TestCheckDates()
748 final DayPeriodInfo.Type type2 = (Type) test[2]; in TestCheckDates()
749 final DayPeriodInfo.DayPeriod period2 = (DayPeriod) test[3]; in TestCheckDates()
/external/cldr/tools/cldr-code/src/main/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.java14 import org.unicode.cldr.util.DayPeriodInfo;
15 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
16 import org.unicode.cldr.util.DayPeriodInfo.Span;
17 import org.unicode.cldr.util.DayPeriodInfo.Type;
38 DayPeriodInfo dayPeriodInfo = SDI.getDayPeriods(type, locale); in main()
67 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;
146 final DayPeriodInfo dayPeriods = supplementalData.getDayPeriods(Type.format, locale); in getPeriods()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/test/
DCheckDates.java31 import org.unicode.cldr.util.DayPeriodInfo;
32 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
33 import org.unicode.cldr.util.DayPeriodInfo.Type;
86 private DayPeriodInfo dateFormatInfoFormat;
534 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;
762 …org.unicode.cldr.util.DayPeriodInfo.Type aType = dayPeriodType.equals("format") ? DayPeriodInfo.Ty… in handleDayPeriod()
763DayPeriodInfo dayPeriodInfo = supplementalDataInfo.getDayPeriods(aType, cldrFile.getLocaleID()); in handleDayPeriod()
777 int time = (((info.get0() + info.get1()) % DayPeriodInfo.DAY_LIMIT) / 2); in handleDayPeriod()