/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
D | CalendarTest.java | 16 import com.ibm.icu.util.Calendar; 26 Calendar cal1 = Calendar.getInstance(); in testHashCode() 27 Calendar cal2 = Calendar.getInstance(); in testHashCode() 28 Calendar cal3 = Calendar.getInstance(); in testHashCode() 58 Calendar cal = Calendar.getInstance(tz); in testGetInstanceTimeZone() 68 Calendar cal = Calendar.getInstance(Locale.US); in testGetInstanceLocale() 77 Calendar cal = Calendar.getInstance(ULocale.US); in testGetInstanceULocale() 87 Calendar cal = Calendar.getInstance(tz, Locale.US); in testGetInstanceTimeZoneLocale() 97 Calendar cal = Calendar.getInstance(tz, ULocale.US); in testGetInstanceTimeZoneULocale() 106 assertNotNull(Calendar.getAvailableLocales()); in testGetAvailableLocales() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CompatibilityTest.java | 24 import android.icu.util.Calendar; 46 java.util.Calendar jdkCal = java.util.Calendar.getInstance(jdkGMT); in TestGregorianChangeover() 48 jdkCal.set(1582, Calendar.OCTOBER, 15); in TestGregorianChangeover() 99 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover() 100 dom = cal.get(Calendar.DATE), dow = cal.get(Calendar.DAY_OF_WEEK); in TestGregorianChangeover() 174 2440588, 1970, Calendar.JANUARY, 1, 1969, Calendar.DECEMBER, 19, in TestMapping() 175 2415080, 1900, Calendar.MARCH, 1, 1900, Calendar.FEBRUARY, 17, in TestMapping() 176 2451604, 2000, Calendar.FEBRUARY, 29, 2000, Calendar.FEBRUARY, 16, in TestMapping() 177 2452269, 2001, Calendar.DECEMBER, 25, 2001, Calendar.DECEMBER, 12, in TestMapping() 178 2416526, 1904, Calendar.FEBRUARY, 15, 1904, Calendar.FEBRUARY, 2, in TestMapping() [all …]
|
D | CalendarRegressionTest.java | 29 import android.icu.util.Calendar; 85 if (cal.get(Calendar.HOUR) != 5) { in Test4031502() 88 cal.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 89 cal.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 91 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502() 94 if (cal.get(Calendar.HOUR) != 5) { in Test4031502() 97 cal.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 98 … cal.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 100 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502() 104 cal.get(Calendar.HOUR); in Test4031502() [all …]
|
D | IBMCalendarTest.java | 27 import android.icu.util.Calendar; 62 2000, Calendar.MARCH, 17, 23, 0, 0, // Fri 23:00 in TestWeekend() 63 2000, Calendar.MARCH, 18, 0, -1, 0, // Fri 23:59:59.999 in TestWeekend() 64 2000, Calendar.MARCH, 18, 0, 0, 1, // Sat 00:00 in TestWeekend() 65 2000, Calendar.MARCH, 18, 15, 0, 1, // Sat 15:00 in TestWeekend() 66 2000, Calendar.MARCH, 19, 23, 0, 1, // Sun 23:00 in TestWeekend() 67 2000, Calendar.MARCH, 20, 0, -1, 1, // Sun 23:59:59.999 in TestWeekend() 68 2000, Calendar.MARCH, 20, 0, 0, 0, // Mon 00:00 in TestWeekend() 69 2000, Calendar.MARCH, 20, 8, 0, 0, // Mon 08:00 in TestWeekend() 72 2000, Calendar.MARCH, 15, 23, 0, 0, // Wed 23:00 in TestWeekend() [all …]
|
D | DangiTest.java | 16 import android.icu.util.Calendar; 73 Calendar cal = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi")); in TestMapping() 78 Calendar grego = Calendar.getInstance(); in TestMapping() 84 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping() 85 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based in TestMapping() 86 int L = cal.get(Calendar.IS_LEAP_MONTH); in TestMapping() 87 int d = cal.get(Calendar.DAY_OF_MONTH); in TestMapping() 111 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping() 112 cal.set(Calendar.MONTH, cmonth - 1); in TestMapping() 113 cal.set(Calendar.IS_LEAP_MONTH, cisleapmonth); in TestMapping() [all …]
|
D | CalendarTestFmwk.java | 21 import android.icu.util.Calendar; 33 public final static int SUN = Calendar.SUNDAY; 34 public final static int MON = Calendar.MONDAY; 35 public final static int TUE = Calendar.TUESDAY; 36 public final static int WED = Calendar.WEDNESDAY; 37 public final static int THU = Calendar.THURSDAY; 38 public final static int FRI = Calendar.FRIDAY; 39 public final static int SAT = Calendar.SATURDAY; 41 public final static int ERA = Calendar.ERA; 42 public final static int YEAR = Calendar.YEAR; [all …]
|
D | ChineseTest.java | 19 import android.icu.util.Calendar; 98 Calendar grego = Calendar.getInstance(); in TestMapping() 104 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping() 105 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based in TestMapping() 106 int L = cal.get(Calendar.IS_LEAP_MONTH); in TestMapping() 107 int d = cal.get(Calendar.DAY_OF_MONTH); in TestMapping() 132 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping() 133 cal.set(Calendar.MONTH, cmonth-1); in TestMapping() 134 cal.set(Calendar.IS_LEAP_MONTH, cisleapmonth); in TestMapping() 135 cal.set(Calendar.DAY_OF_MONTH, cdayofmonth); in TestMapping() [all …]
|
D | HolidayTest.java | 20 import android.icu.util.Calendar; 43 private Calendar cal; 143 final Calendar c = Calendar.getInstance(TimeZone.GMT_ZONE); // Temporary copy in exerciseHoliday() 145 final Date fStartOfMonth = startOfMonth((Calendar)c.clone()); in exerciseHoliday() 160 c.roll(Calendar.DATE, false); in exerciseHoliday() 164 c.roll(Calendar.DATE, true); in exerciseHoliday() 165 c.add(Calendar.MONTH, 1); in exerciseHoliday() 167 c.add(Calendar.SECOND, -1); in exerciseHoliday() 211 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() 216 int era = fCalendar.get(Calendar.ERA); in startOfMonth() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CompatibilityTest.java | 23 import com.ibm.icu.util.Calendar; 45 java.util.Calendar jdkCal = java.util.Calendar.getInstance(jdkGMT); in TestGregorianChangeover() 47 jdkCal.set(1582, Calendar.OCTOBER, 15); in TestGregorianChangeover() 98 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover() 99 dom = cal.get(Calendar.DATE), dow = cal.get(Calendar.DAY_OF_WEEK); in TestGregorianChangeover() 173 2440588, 1970, Calendar.JANUARY, 1, 1969, Calendar.DECEMBER, 19, in TestMapping() 174 2415080, 1900, Calendar.MARCH, 1, 1900, Calendar.FEBRUARY, 17, in TestMapping() 175 2451604, 2000, Calendar.FEBRUARY, 29, 2000, Calendar.FEBRUARY, 16, in TestMapping() 176 2452269, 2001, Calendar.DECEMBER, 25, 2001, Calendar.DECEMBER, 12, in TestMapping() 177 2416526, 1904, Calendar.FEBRUARY, 15, 1904, Calendar.FEBRUARY, 2, in TestMapping() [all …]
|
D | CalendarRegressionTest.java | 28 import com.ibm.icu.util.Calendar; 84 if (cal.get(Calendar.HOUR) != 5) { in Test4031502() 87 cal.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 88 cal.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 90 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502() 93 if (cal.get(Calendar.HOUR) != 5) { in Test4031502() 96 cal.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 97 … cal.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 99 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502() 103 cal.get(Calendar.HOUR); in Test4031502() [all …]
|
D | IBMCalendarTest.java | 26 import com.ibm.icu.util.Calendar; 61 2000, Calendar.MARCH, 17, 23, 0, 0, // Fri 23:00 in TestWeekend() 62 2000, Calendar.MARCH, 18, 0, -1, 0, // Fri 23:59:59.999 in TestWeekend() 63 2000, Calendar.MARCH, 18, 0, 0, 1, // Sat 00:00 in TestWeekend() 64 2000, Calendar.MARCH, 18, 15, 0, 1, // Sat 15:00 in TestWeekend() 65 2000, Calendar.MARCH, 19, 23, 0, 1, // Sun 23:00 in TestWeekend() 66 2000, Calendar.MARCH, 20, 0, -1, 1, // Sun 23:59:59.999 in TestWeekend() 67 2000, Calendar.MARCH, 20, 0, 0, 0, // Mon 00:00 in TestWeekend() 68 2000, Calendar.MARCH, 20, 8, 0, 0, // Mon 08:00 in TestWeekend() 71 2000, Calendar.MARCH, 15, 23, 0, 0, // Wed 23:00 in TestWeekend() [all …]
|
D | DangiTest.java | 15 import com.ibm.icu.util.Calendar; 72 Calendar cal = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi")); in TestMapping() 77 Calendar grego = Calendar.getInstance(); in TestMapping() 83 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping() 84 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based in TestMapping() 85 int L = cal.get(Calendar.IS_LEAP_MONTH); in TestMapping() 86 int d = cal.get(Calendar.DAY_OF_MONTH); in TestMapping() 110 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping() 111 cal.set(Calendar.MONTH, cmonth - 1); in TestMapping() 112 cal.set(Calendar.IS_LEAP_MONTH, cisleapmonth); in TestMapping() [all …]
|
D | ChineseTest.java | 18 import com.ibm.icu.util.Calendar; 97 Calendar grego = Calendar.getInstance(); in TestMapping() 103 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping() 104 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based in TestMapping() 105 int L = cal.get(Calendar.IS_LEAP_MONTH); in TestMapping() 106 int d = cal.get(Calendar.DAY_OF_MONTH); in TestMapping() 131 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping() 132 cal.set(Calendar.MONTH, cmonth-1); in TestMapping() 133 cal.set(Calendar.IS_LEAP_MONTH, cisleapmonth); in TestMapping() 134 cal.set(Calendar.DAY_OF_MONTH, cdayofmonth); in TestMapping() [all …]
|
D | HolidayTest.java | 19 import com.ibm.icu.util.Calendar; 42 private Calendar cal; 142 final Calendar c = Calendar.getInstance(TimeZone.GMT_ZONE); // Temporary copy in exerciseHoliday() 144 final Date fStartOfMonth = startOfMonth((Calendar)c.clone()); in exerciseHoliday() 159 c.roll(Calendar.DATE, false); in exerciseHoliday() 163 c.roll(Calendar.DATE, true); in exerciseHoliday() 164 c.add(Calendar.MONTH, 1); in exerciseHoliday() 166 c.add(Calendar.SECOND, -1); in exerciseHoliday() 210 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() 215 int era = fCalendar.get(Calendar.ERA); in startOfMonth() [all …]
|
D | CalendarTestFmwk.java | 20 import com.ibm.icu.util.Calendar; 32 public final static int SUN = Calendar.SUNDAY; 33 public final static int MON = Calendar.MONDAY; 34 public final static int TUE = Calendar.TUESDAY; 35 public final static int WED = Calendar.WEDNESDAY; 36 public final static int THU = Calendar.THURSDAY; 37 public final static int FRI = Calendar.FRIDAY; 38 public final static int SAT = Calendar.SATURDAY; 40 public final static int ERA = Calendar.ERA; 41 public final static int YEAR = Calendar.YEAR; [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | DebugUtilitiesData.java | 123 android.icu.util.Calendar.ERA, /* 0 */ 124 android.icu.util.Calendar.YEAR, /* 1 */ 125 android.icu.util.Calendar.MONTH, /* 2 */ 126 android.icu.util.Calendar.WEEK_OF_YEAR, /* 3 */ 127 android.icu.util.Calendar.WEEK_OF_MONTH, /* 4 */ 128 android.icu.util.Calendar.DATE, /* 5 */ 129 android.icu.util.Calendar.DAY_OF_YEAR, /* 6 */ 130 android.icu.util.Calendar.DAY_OF_WEEK, /* 7 */ 131 android.icu.util.Calendar.DAY_OF_WEEK_IN_MONTH, /* 8 */ 132 android.icu.util.Calendar.AM_PM, /* 9 */ [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | DebugUtilitiesData.java | 122 com.ibm.icu.util.Calendar.ERA, /* 0 */ 123 com.ibm.icu.util.Calendar.YEAR, /* 1 */ 124 com.ibm.icu.util.Calendar.MONTH, /* 2 */ 125 com.ibm.icu.util.Calendar.WEEK_OF_YEAR, /* 3 */ 126 com.ibm.icu.util.Calendar.WEEK_OF_MONTH, /* 4 */ 127 com.ibm.icu.util.Calendar.DATE, /* 5 */ 128 com.ibm.icu.util.Calendar.DAY_OF_YEAR, /* 6 */ 129 com.ibm.icu.util.Calendar.DAY_OF_WEEK, /* 7 */ 130 com.ibm.icu.util.Calendar.DAY_OF_WEEK_IN_MONTH, /* 8 */ 131 com.ibm.icu.util.Calendar.AM_PM, /* 9 */ [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
D | HeaderParser.java | 56 return Calendar.MONDAY; in wkday() 58 return Calendar.TUESDAY; in wkday() 60 return Calendar.WEDNESDAY; in wkday() 62 return Calendar.THURSDAY; in wkday() 64 return Calendar.FRIDAY; in wkday() 66 return Calendar.SATURDAY; in wkday() 68 return Calendar.SUNDAY; in wkday() 81 protected Calendar date() throws ParseException { in date() 83 Calendar retval = Calendar.getInstance(TimeZone.getTimeZone("GMT")); in date() 88 retval.set(Calendar.DAY_OF_MONTH, day); in date() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/data/ |
D | HolidayBundle_en_US.java | 13 import java.util.Calendar; 27 … new SimpleHoliday(Calendar.JANUARY, 15, Calendar.MONDAY, "Martin Luther King Day", 1986), 29 … new SimpleHoliday(Calendar.FEBRUARY, 15, Calendar.MONDAY, "Presidents' Day", 1976), 30 …new SimpleHoliday(Calendar.FEBRUARY, 22, "Washington's Birthday", 1776, … 35 … new SimpleHoliday(Calendar.MAY, 8, Calendar.SUNDAY, "Mother's Day", 1914), 37 … new SimpleHoliday(Calendar.MAY, 31, -Calendar.MONDAY, "Memorial Day", 1971), 38 …new SimpleHoliday(Calendar.MAY, 30, "Memorial Day", 1868, … 40 … new SimpleHoliday(Calendar.JUNE, 15, Calendar.SUNDAY, "Father's Day", 1956), 41 … new SimpleHoliday(Calendar.JULY, 4, "Independence Day", 1776), 42 … new SimpleHoliday(Calendar.SEPTEMBER, 1, Calendar.MONDAY, "Labor Day", 1894), [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/data/ |
D | HolidayBundle_en_US.java | 12 import java.util.Calendar; 23 … new SimpleHoliday(Calendar.JANUARY, 15, Calendar.MONDAY, "Martin Luther King Day", 1986), 25 … new SimpleHoliday(Calendar.FEBRUARY, 15, Calendar.MONDAY, "Presidents' Day", 1976), 26 …new SimpleHoliday(Calendar.FEBRUARY, 22, "Washington's Birthday", 1776, … 31 … new SimpleHoliday(Calendar.MAY, 8, Calendar.SUNDAY, "Mother's Day", 1914), 33 … new SimpleHoliday(Calendar.MAY, 31, -Calendar.MONDAY, "Memorial Day", 1971), 34 …new SimpleHoliday(Calendar.MAY, 30, "Memorial Day", 1868, … 36 … new SimpleHoliday(Calendar.JUNE, 15, Calendar.SUNDAY, "Father's Day", 1956), 37 … new SimpleHoliday(Calendar.JULY, 4, "Independence Day", 1776), 38 … new SimpleHoliday(Calendar.SEPTEMBER, 1, Calendar.MONDAY, "Labor Day", 1894), [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneRegressionTest.java | 32 import android.icu.util.Calendar; 70 z.setStartRule(Calendar.FEBRUARY, 1, Calendar.SUNDAY, 0); in Test4073215() 71 z.setEndRule(Calendar.MARCH, -1, Calendar.SUNDAY, 0); in Test4073215() 74 Calendar tempcal = Calendar.getInstance(); in Test4073215() 77 tempcal.set(1997, Calendar.JANUARY, 31); in Test4073215() 83 tempcal.set(1997, Calendar.MARCH, 1); in Test4073215() 89 tempcal.set(1997, Calendar.MARCH, 31); in Test4073215() 109 1997, Calendar.OCTOBER, 26, Calendar.SUNDAY, (2*60*60*1000)); in Test4084933() 111 1997, Calendar.OCTOBER, 26, Calendar.SUNDAY, (2*60*60*1000)-1); in Test4084933() 114 1997, Calendar.OCTOBER, 26, Calendar.SUNDAY, (1*60*60*1000)); in Test4084933() [all …]
|
D | TimeZoneBoundaryTest.java | 19 import android.icu.util.Calendar; 202 java.util.Calendar cal = java.util.Calendar.getInstance(); in showDate() 204 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + in showDate() 205 showNN(cal.get(Calendar.MONTH) + 1) + "/" + in showDate() 206 showNN(cal.get(Calendar.DAY_OF_MONTH)) + " " + in showDate() 207 showNN(cal.get(Calendar.HOUR_OF_DAY)) + ":" in showDate() 208 + showNN(cal.get(Calendar.MINUTE)) + " \"" + d + "\" = " + in showDate() 221 java.util.Calendar cal = java.util.Calendar.getInstance(); in showDate() 223 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + in showDate() 224 showNN(cal.get(Calendar.MONTH) + 1) + "/" + in showDate() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneRegressionTest.java | 31 import com.ibm.icu.util.Calendar; 69 z.setStartRule(Calendar.FEBRUARY, 1, Calendar.SUNDAY, 0); in Test4073215() 70 z.setEndRule(Calendar.MARCH, -1, Calendar.SUNDAY, 0); in Test4073215() 73 Calendar tempcal = Calendar.getInstance(); in Test4073215() 76 tempcal.set(1997, Calendar.JANUARY, 31); in Test4073215() 82 tempcal.set(1997, Calendar.MARCH, 1); in Test4073215() 88 tempcal.set(1997, Calendar.MARCH, 31); in Test4073215() 108 1997, Calendar.OCTOBER, 26, Calendar.SUNDAY, (2*60*60*1000)); in Test4084933() 110 1997, Calendar.OCTOBER, 26, Calendar.SUNDAY, (2*60*60*1000)-1); in Test4084933() 113 1997, Calendar.OCTOBER, 26, Calendar.SUNDAY, (1*60*60*1000)); in Test4084933() [all …]
|
D | TimeZoneBoundaryTest.java | 18 import com.ibm.icu.util.Calendar; 201 java.util.Calendar cal = java.util.Calendar.getInstance(); in showDate() 203 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + in showDate() 204 showNN(cal.get(Calendar.MONTH) + 1) + "/" + in showDate() 205 showNN(cal.get(Calendar.DAY_OF_MONTH)) + " " + in showDate() 206 showNN(cal.get(Calendar.HOUR_OF_DAY)) + ":" in showDate() 207 + showNN(cal.get(Calendar.MINUTE)) + " \"" + d + "\" = " + in showDate() 220 java.util.Calendar cal = java.util.Calendar.getInstance(); in showDate() 222 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + in showDate() 223 showNN(cal.get(Calendar.MONTH) + 1) + "/" + in showDate() [all …]
|
/external/nist-sip/java/gov/nist/javax/sip/header/ |
D | SIPDate.java | 31 import java.util.Calendar; 130 private java.util.Calendar javaCal; 173 wkday = javaCal.get(Calendar.DAY_OF_WEEK); in SIPDate() 175 case Calendar.MONDAY : in SIPDate() 178 case Calendar.TUESDAY : in SIPDate() 181 case Calendar.WEDNESDAY : in SIPDate() 184 case Calendar.THURSDAY : in SIPDate() 187 case Calendar.FRIDAY : in SIPDate() 190 case Calendar.SATURDAY : in SIPDate() 193 case Calendar.SUNDAY : in SIPDate() [all …]
|