/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/ |
D | DayPeriodConverter.java | 129 … 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() 151 …DayPeriodInfo.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 …]
|
D | DayPeriodInfo.java | 19 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 …]
|
D | DateTimeFormats.java | 977 …+ getFixFromPath(ICUServiceBuilder.getDayPeriodPath(DayPeriodInfo.DayPeriod.am, Context.format, Wi… in addDayPeriods() 1008 … DayPeriodInfo 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()
|
D | DayPeriodData.java | 8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
|
D | LogicalGrouping.java | 11 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 294 …DayPeriodInfo.Type dayPeriodContext = DayPeriodInfo.Type.fromString(parts.findAttributeValue("dayP… in addPaths() 295 … DayPeriodInfo dpi = supplementalData.getDayPeriods(dayPeriodContext, cldrFile.getLocaleID()); in addPaths()
|
D | SupplementalDataInfo.java | 40 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 …]
|
D | ICUServiceBuilder.java | 13 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 886 …DayPeriodInfo dayPeriodInfo = supplementalData.getDayPeriods(DayPeriodInfo.Type.format, cldrFile.g…
|
D | CLDRFile.java | 38 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 2842 … DayPeriodInfo dayPeriods = supplementalData.getDayPeriods(DayPeriodInfo.Type.format, locale);
|
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/ |
D | TestDayPeriods.java | 12 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() 36 … DayPeriodInfo dayPeriodFormat = SUPPLEMENTAL.getDayPeriods(DayPeriodInfo.Type.format, locale); in TestBasicDayPeriods() 37 …DayPeriodInfo 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()
|
D | TestCheckCLDR.java | 42 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/ |
D | GenerateDayPeriodChart.java | 14 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()
|
D | GenerateDayPeriods.java | 14 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()
|
D | ChartDayPeriods.java | 7 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()
|
D | VerifyAttributeValues.java | 20 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/ |
D | CheckDates.java | 31 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()
|
D | ExampleGenerator.java | 29 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() 763 … DayPeriodInfo dayPeriodInfo = supplementalDataInfo.getDayPeriods(aType, cldrFile.getLocaleID()); in handleDayPeriod() 777 int time = (((info.get0() + info.get1()) % DayPeriodInfo.DAY_LIMIT) / 2); in handleDayPeriod()
|