Home
last modified time | relevance | path

Searched refs:dayPeriod (Results 1 – 25 of 193) sorted by relevance

12345678

/external/cldr/tools/java/org/unicode/cldr/util/
DDayPeriodInfo.java42 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 …]
DDayPeriodConverter.java38 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 …]
DDayPeriodsCheck.java84 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 …]
DDayPeriodsOld.java26 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()
DDayPeriods.java26 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()
DDayPeriodData.java403 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/
DDayPeriodRules.java277 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/
DDayPeriodRules.java270 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/
DGenerateDayPeriods.java41 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()
DGenerateDayPeriodChart.java103 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/
Ddayperiodrules.cpp391 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 …]
Ddayperiodrules.h56 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/
Ddayperiodrules.h56 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/
Dldml2icu_locale.txt178 …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/
DprettyPath.txt106 …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/
Dde_LI.txt20 dayPeriod{
Dar_LY.txt17 dayPeriod{
Dar_SA.txt16 dayPeriod{
Dfr_CD.txt14 dayPeriod{
Dfr_RE.txt14 dayPeriod{
Dfr_SN.txt7 dayPeriod{
Dsr_Cyrl_XK.txt15 dayPeriod{
Dsr_Latn_XK.txt15 dayPeriod{
Dsr_Cyrl_ME.txt59 dayPeriod{
Dfr_CM.txt28 dayPeriod{

12345678