/external/cldr/tools/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() 247 public Span getFirstDayPeriodSpan(DayPeriodInfo.DayPeriod dayPeriod) { in getFirstDayPeriodSpan() 259 public Set<Span> getDayPeriodSpans(DayPeriodInfo.DayPeriod dayPeriod) { in getDayPeriodSpans() [all …]
|
D | LogicalGrouping.java | 8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 91 …DayPeriodInfo.Type dayPeriodContext = DayPeriodInfo.Type.fromString(parts.findAttributeValue("dayP… in getPaths() 92 … DayPeriodInfo dpi = supplementalData.getDayPeriods(dayPeriodContext, cldrFile.getLocaleID()); in getPaths()
|
D | DateTimeFormats.java | 950 …+ getFixFromPath(ICUServiceBuilder.getDayPeriodPath(DayPeriodInfo.DayPeriod.am, Context.format, Wi… in addDayPeriods() 981 … DayPeriodInfo 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()
|
D | DayPeriodData.java | 8 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod;
|
D | SupplementalDataInfo.java | 39 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 …]
|
D | ICUServiceBuilder.java | 12 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 858 …DayPeriodInfo dayPeriodInfo = supplementalData.getDayPeriods(DayPeriodInfo.Type.format, cldrFile.g…
|
D | CLDRFile.java | 39 import org.unicode.cldr.util.DayPeriodInfo.DayPeriod; 3371 … DayPeriodInfo dayPeriods = supplementalData.getDayPeriods(DayPeriodInfo.Type.format, locale);
|
/external/cldr/tools/cldr-unittest/src/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", (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()
|
D | TestCheckCLDR.java | 25 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/ |
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 | 13 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()
|
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; 145 final DayPeriodInfo dayPeriods = supplementalData.getDayPeriods(Type.format, locale); in getPeriods()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | CheckDates.java | 29 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()
|
D | ExampleGenerator.java | 29 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() 551 … DayPeriodInfo dayPeriodInfo = supplementalDataInfo.getDayPeriods(aType, cldrFile.getLocaleID()); in handleDayPeriod() 562 int time = (((info.get0() + info.get1()) % DayPeriodInfo.DAY_LIMIT) / 2); in handleDayPeriod()
|