/external/cldr/tools/java/org/unicode/cldr/util/ |
D | DayPeriodInfo.java | 42 public final DayPeriod dayPeriod; field in DayPeriodInfo.Span 44 public Span(int start, int end, DayPeriod dayPeriod) { in Span() argument 48 this.dayPeriod = dayPeriod; in Span() 91 return dayPeriod + ":" + toStringPlain(); in toString() 135 …public DayPeriodInfo.Builder add(DayPeriodInfo.DayPeriod dayPeriod, int start, boolean includesSta… in add() argument 137 if (dayPeriod == null || start < 0 || start > end || end > DAY_LIMIT in add() 141 Span span = new Span(start, end, dayPeriod); in add() 155 public boolean contains(DayPeriod dayPeriod) { in contains() argument 157 if (span.dayPeriod == dayPeriod) { in contains() 172 tempPeriods.add(last.dayPeriod); in DayPeriodInfo() [all …]
|
D | DayPeriodConverter.java | 38 DayPeriod dayPeriod = data[i]; in toString() local 39 if (dayPeriod != lastDayPeriod) { in toString() 41 + dayPeriod in toString() 43 + toNativeName.get(dayPeriod) in toString() 45 lastDayPeriod = dayPeriod; in toString() 66 DayPeriod dayPeriod = data[i]; in toCldr() local 67 if (dayPeriod != lastDayPeriod) { in toCldr() 69 lastDayPeriod = dayPeriod; in toCldr() 78 private String addPeriod(String result, DayPeriod dayPeriod, int start, int i) { in addPeriod() argument 80 + dayPeriod.toString().toLowerCase(Locale.ENGLISH) in addPeriod() [all …]
|
D | DayPeriodsCheck.java | 84 DayPeriod dayPeriod = dayPeriods.get(i); in main() local 85 … System.out.print("\t" + dayPeriod); // + "\t" + dayPeriods.getSample(dayPeriod)); in main() 96 DayPeriod dayPeriod = dayPeriods.get(i); in main() local 99 String sample = dayPeriods.getSample(dayPeriod); in main() 101 if (!dayPeriodOld.toString().equals(dayPeriod.toString())) { in main() 102 … System.out.print(locale + "\t" + i / HOUR + "..\t" + dayPeriodOld + " → " + dayPeriod); in main() 110 …System.out.print(locale + "\t" + i / HOUR + "..\t" + dayPeriod + "\t\t" + sampleOld + "\t→\t" + sa… in main() 139 DayPeriod dayPeriod = dayPeriods.get(i * HOUR); in main() local 140 if (dayPeriod != lastDayPeriod) { in main() 142 lastDayPeriod = dayPeriod; in main() [all …]
|
D | DayPeriodsOld.java | 26 public static DayPeriod get(String dayPeriod) { in get() argument 28 if (dayPeriod.equals(d.name)) { in get() 32 return DayPeriod.valueOf(dayPeriod); in get() 64 public String getSample(DayPeriod dayPeriod) { in getSample() argument 65 return samples.get(dayPeriod); in getSample() 145 public DayPeriodBuilder add(String dayPeriod, String localeName, int... hours) { in add() argument 146 DayPeriod dayPeriodEnum = DayPeriod.get(dayPeriod); in add()
|
D | DayPeriods.java | 26 public static DayPeriod get(String dayPeriod) { in get() argument 28 if (dayPeriod.equals(d.name)) { in get() 32 return DayPeriod.valueOf(dayPeriod); in get() 64 public String getSample(DayPeriod dayPeriod) { in getSample() argument 65 return samples.get(dayPeriod); in getSample() 145 public DayPeriodBuilder add(String dayPeriod, String localeName, int... hours) { in add() argument 146 DayPeriod dayPeriodEnum = DayPeriod.get(dayPeriod); in add()
|
D | DayPeriodData.java | 403 public static String getName(String locale, DayPeriod dayPeriod) { in getName() argument 404 return localeToDayPeriodToName.get(locale, dayPeriod); in getName()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | DayPeriodRules.java | 277 public double getMidPointForDayPeriod(DayPeriod dayPeriod) { in getMidPointForDayPeriod() argument 278 int startHour = getStartHourForDayPeriod(dayPeriod); in getMidPointForDayPeriod() 279 int endHour = getEndHourForDayPeriod(dayPeriod); in getMidPointForDayPeriod() 313 private int getStartHourForDayPeriod(DayPeriod dayPeriod) throws IllegalArgumentException { in getStartHourForDayPeriod() argument 314 if (dayPeriod == DayPeriod.MIDNIGHT) { return 0; } in getStartHourForDayPeriod() 315 if (dayPeriod == DayPeriod.NOON) { return 12; } in getStartHourForDayPeriod() 317 if (dayPeriodForHour[0] == dayPeriod && dayPeriodForHour[23] == dayPeriod) { in getStartHourForDayPeriod() 320 if (dayPeriodForHour[i] != dayPeriod) { in getStartHourForDayPeriod() 326 if (dayPeriodForHour[i] == dayPeriod) { in getStartHourForDayPeriod() 336 private int getEndHourForDayPeriod(DayPeriod dayPeriod) { in getEndHourForDayPeriod() argument [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | DayPeriodRules.java | 270 public double getMidPointForDayPeriod(DayPeriod dayPeriod) { in getMidPointForDayPeriod() argument 271 int startHour = getStartHourForDayPeriod(dayPeriod); in getMidPointForDayPeriod() 272 int endHour = getEndHourForDayPeriod(dayPeriod); in getMidPointForDayPeriod() 306 private int getStartHourForDayPeriod(DayPeriod dayPeriod) throws IllegalArgumentException { in getStartHourForDayPeriod() argument 307 if (dayPeriod == DayPeriod.MIDNIGHT) { return 0; } in getStartHourForDayPeriod() 308 if (dayPeriod == DayPeriod.NOON) { return 12; } in getStartHourForDayPeriod() 310 if (dayPeriodForHour[0] == dayPeriod && dayPeriodForHour[23] == dayPeriod) { in getStartHourForDayPeriod() 313 if (dayPeriodForHour[i] != dayPeriod) { in getStartHourForDayPeriod() 319 if (dayPeriodForHour[i] == dayPeriod) { in getStartHourForDayPeriod() 329 private int getEndHourForDayPeriod(DayPeriod dayPeriod) { in getEndHourForDayPeriod() argument [all …]
|
/external/cldr/tools/java/org/unicode/cldr/tool/ |
D | GenerateDayPeriods.java | 41 for (DayPeriod dayPeriod : DayPeriod.values()) { in main() 42 … if ((dayPeriod == DayPeriod.am || dayPeriod == DayPeriod.pm) && !locale.equals("root")) { in main() 45 Set<Span> spanSet = dayPeriodInfo.getDayPeriodSpans(dayPeriod); in main() 48 final String localization = localizations.get(dayPeriod); in main() 50 + span.dayPeriod in main() 90 DayPeriod dayPeriod = null; in combineSpans() local 95 dayPeriod = span.dayPeriod; in combineSpans() 106 return new Span(start, end, dayPeriod); in combineSpans()
|
D | GenerateDayPeriodChart.java | 103 DayPeriodInfo dayPeriod = getFixedDayPeriodInfo(type, locale); in main() local 104 doRow(dayPeriod); in main() 126 for (DayPeriod dayPeriod : DayPeriod.values()) { in main() 127 System.out.print(dayPeriod); in main() 128 final Map<Integer, Integer> times = dayPeriodToTimes.get(dayPeriod); in main() 138 DayPeriodInfo dayPeriod = getFixedDayPeriodInfo(type, locale); in main() local 139 present.retainAll(dayPeriod.getPeriods()); in main() 153 public static void doRow(DayPeriodInfo dayPeriod) { in doRow() argument 155 if (dayPeriod == null) { in doRow() 160 DayPeriod period = dayPeriod.getDayPeriod((i * 60) * MINUTE); in doRow() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | dayperiodrules.cpp | 391 DayPeriodRules::DayPeriod dayPeriod, UErrorCode &errorCode) const { in getMidPointForDayPeriod() argument 394 int32_t startHour = getStartHourForDayPeriod(dayPeriod, errorCode); in getMidPointForDayPeriod() 395 int32_t endHour = getEndHourForDayPeriod(dayPeriod, errorCode); in getMidPointForDayPeriod() 414 DayPeriodRules::DayPeriod dayPeriod, UErrorCode &errorCode) const { in getStartHourForDayPeriod() argument 417 if (dayPeriod == DAYPERIOD_MIDNIGHT) { return 0; } in getStartHourForDayPeriod() 418 if (dayPeriod == DAYPERIOD_NOON) { return 12; } in getStartHourForDayPeriod() 420 if (fDayPeriodForHour[0] == dayPeriod && fDayPeriodForHour[23] == dayPeriod) { in getStartHourForDayPeriod() 423 if (fDayPeriodForHour[i] != dayPeriod) { in getStartHourForDayPeriod() 429 if (fDayPeriodForHour[i] == dayPeriod) { in getStartHourForDayPeriod() 441 DayPeriodRules::DayPeriod dayPeriod, UErrorCode &errorCode) const { in getEndHourForDayPeriod() argument [all …]
|
D | dayperiodrules.h | 56 double getMidPointForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 74 int32_t getStartHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 80 int32_t getEndHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const;
|
/external/icu/libicu/cts_headers/ |
D | dayperiodrules.h | 56 double getMidPointForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 74 int32_t getStartHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const; 80 int32_t getEndHourForDayPeriod(DayPeriod dayPeriod, UErrorCode &errorCode) const;
|
/external/icu/tools/cldr/cldr-to-icu/src/main/resources/ |
D | ldml2icu_locale.txt | 178 …ayPeriods/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="wide"]/dayPeriod[@type="(am|pm)"]… 179 …Periods/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="narrow"]/dayPeriod[@type="(am|pm)"]… 180 …ds/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="abbreviated"]/dayPeriod[@type="(am|pm)"]… 182 …ayPeriods/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="wide"]/dayPeriod[@type="(am|pm)"]… 183 …ds/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="abbreviated"]/dayPeriod[@type="(am|pm)"]… 184 …Periods/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="narrow"]/dayPeriod[@type="(am|pm)"]… 186 …stand-alone)"]/dayPeriodWidth[@type="(%A)"]/dayPeriod[@type="(am|pm)"][@alt="(%A)"] ; /calendar/$1… 187 …stand-alone)"]/dayPeriodWidth[@type="(%A)"]/dayPeriod[@type="(am|pm)"] ; /calendar/$1… 188 …pe="(%A)"]/dayPeriodWidth[@type="(%A)"]/dayPeriod[@type="(?!am|pm)(%A)"][@alt="(%A)"] ; /calend… 189 …pe="(%A)"]/dayPeriodWidth[@type="(%A)"]/dayPeriod[@type="(?!am|pm)(%A)"] ; /calend…
|
/external/cldr/tools/java/org/unicode/cldr/util/data/ |
D | prettyPath.txt | 106 …an"]/dayPeriods/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="wide"]/dayPeriod[@type="am"] 108 … ($avalue) '"]/dayPeriodWidth[@type="' ($avalue) '"]/dayPeriod[@type="' ($avalue) '"]' > '|dayPeri… 109 …@type="' ($avalue) '"]/dayPeriodWidth[@type="' ($avalue) '"]/alias' > '|dayPeriod|' $1 '-' $2 '-al… 110 '$%%/dayPeriods/dayPeriodContext[@type="' ($avalue) '"]/alias' > '|dayPeriod|' $1 '-alias'; 111 '$%%/dayPeriods/alias' > '|dayPeriod|-alias';
|
/external/icu/icu4c/source/data/locales/ |
D | de_LI.txt | 20 dayPeriod{
|
D | ar_LY.txt | 17 dayPeriod{
|
D | ar_SA.txt | 16 dayPeriod{
|
D | fr_CD.txt | 14 dayPeriod{
|
D | fr_RE.txt | 14 dayPeriod{
|
D | fr_SN.txt | 7 dayPeriod{
|
D | sr_Cyrl_XK.txt | 15 dayPeriod{
|
D | sr_Latn_XK.txt | 15 dayPeriod{
|
D | sr_Cyrl_ME.txt | 59 dayPeriod{
|
D | fr_CM.txt | 28 dayPeriod{
|