Home
last modified time | relevance | path

Searched refs:dayPeriod (Results 1 – 25 of 198) 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/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/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/cldr/tools/java/org/unicode/cldr/tool/
DGenerateDayPeriods.java40 for (DayPeriod dayPeriod : DayPeriod.values()) { in main()
41 … if ((dayPeriod == DayPeriod.am || dayPeriod == DayPeriod.pm) && !locale.equals("root")) { in main()
44 Set<Span> spanSet = dayPeriodInfo.getDayPeriodSpans(dayPeriod); in main()
47 final String localization = localizations.get(dayPeriod); in main()
49 + span.dayPeriod in main()
89 DayPeriod dayPeriod = null; in combineSpans() local
94 dayPeriod = span.dayPeriod; in combineSpans()
105 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/cldr/tools/java/org/unicode/cldr/icu/
Dldml2icu_locale.txt122 …ayPeriods/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="wide"]/dayPeriod[@type="(am|pm)"]…
123 …Periods/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="narrow"]/dayPeriod[@type="(am|pm)"]…
124 …ds/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="abbreviated"]/dayPeriod[@type="(am|pm)"]…
126 …ayPeriods/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="wide"]/dayPeriod[@type="(am|pm)"]…
127 …ds/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="abbreviated"]/dayPeriod[@type="(am|pm)"]…
128 …Periods/dayPeriodContext[@type="format"]/dayPeriodWidth[@type="narrow"]/dayPeriod[@type="(am|pm)"]…
130 …stand-alone)"]/dayPeriodWidth[@type="(%A)"]/dayPeriod[@type="(am|pm)"][@alt="(%A)"] ; /calendar/$1…
131 …type="(stand-alone)"]/dayPeriodWidth[@type="(%A)"]/dayPeriod[@type="(am|pm)"] ; /calendar/$1/dayPe…
132 …ype="(%A)"]/dayPeriodWidth[@type="(%A)"]/dayPeriod[@type="(?!am|pm)(%A)"][@alt="(%A)"] ; /calendar…
133 …text[@type="(%A)"]/dayPeriodWidth[@type="(%A)"]/dayPeriod[@type="(?!am|pm)(%A)"] ; /calendar/$1/da…
/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_SA.txt16 dayPeriod{
Dar_LY.txt17 dayPeriod{
Dfr_RE.txt14 dayPeriod{
Dfr_CD.txt14 dayPeriod{
Dfr_SN.txt7 dayPeriod{
Des_NI.txt16 dayPeriod{
Des_EC.txt27 dayPeriod{
Dsr_Cyrl_XK.txt39 dayPeriod{
Des_SV.txt16 dayPeriod{
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DSimpleDateFormat.java2378 Output<DayPeriodRules.DayPeriod> dayPeriod = new Output<DayPeriodRules.DayPeriod>(null); in parse() local
2457 … false, true, ambiguousYear, cal, numericLeapMonthFormatter, tzTimeType, dayPeriod); in parse()
2544 if (dayPeriod.value != null) { in parse()
2550 double midPoint = ruleSet.getMidPointForDayPeriod(dayPeriod.value); in parse()
2592 double midPointHour = ruleSet.getMidPointForDayPeriod(dayPeriod.value); in parse()
3031 Output<DayPeriodRules.DayPeriod> dayPeriod) in matchDayPeriodString() argument
3048 dayPeriod.value = DayPeriodRules.DayPeriod.VALUES[bestMatch]; in matchDayPeriodString()
3122 Output<DayPeriodRules.DayPeriod> dayPeriod) in subParse() argument
3643 numericLeapMonthFormatter, tzTimeType, dayPeriod); in subParse()
3651 text, start, formatData.abbreviatedDayPeriods, 2, dayPeriod)) > 0) { in subParse()
[all …]

12345678