/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
D | CalendarTest.java | 14 import com.ibm.icu.util.Calendar; 24 Calendar cal1 = Calendar.getInstance(); in testHashCode() 25 Calendar cal2 = Calendar.getInstance(); in testHashCode() 26 Calendar cal3 = Calendar.getInstance(); in testHashCode() 56 Calendar cal = Calendar.getInstance(tz); in testGetInstanceTimeZone() 66 Calendar cal = Calendar.getInstance(Locale.US); in testGetInstanceLocale() 75 Calendar cal = Calendar.getInstance(ULocale.US); in testGetInstanceULocale() 85 Calendar cal = Calendar.getInstance(tz, Locale.US); in testGetInstanceTimeZoneLocale() 95 Calendar cal = Calendar.getInstance(tz, ULocale.US); in testGetInstanceTimeZoneULocale() 104 assertNotNull(Calendar.getAvailableLocales()); in testGetAvailableLocales() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | CompatibilityTest.java | 20 import android.icu.util.Calendar; 49 java.util.Calendar jdkCal = java.util.Calendar.getInstance(jdkGMT); in TestGregorianChangeover() 51 jdkCal.set(1582, Calendar.OCTOBER, 15); in TestGregorianChangeover() 102 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover() 103 dom = cal.get(Calendar.DATE), dow = cal.get(Calendar.DAY_OF_WEEK); in TestGregorianChangeover() 176 2440588, 1970, Calendar.JANUARY, 1, 1969, Calendar.DECEMBER, 19, in TestMapping() 177 2415080, 1900, Calendar.MARCH, 1, 1900, Calendar.FEBRUARY, 17, in TestMapping() 178 2451604, 2000, Calendar.FEBRUARY, 29, 2000, Calendar.FEBRUARY, 16, in TestMapping() 179 2452269, 2001, Calendar.DECEMBER, 25, 2001, Calendar.DECEMBER, 12, in TestMapping() 180 2416526, 1904, Calendar.FEBRUARY, 15, 1904, Calendar.FEBRUARY, 2, in TestMapping() [all …]
|
D | CalendarRegression.java | 25 import android.icu.util.Calendar; 87 if (cal.get(Calendar.HOUR) != 5) { in Test4031502() 90 cal.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 91 cal.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 93 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502() 96 if (cal.get(Calendar.HOUR) != 5) { in Test4031502() 99 cal.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 100 … cal.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 102 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502() 106 cal.get(Calendar.HOUR); in Test4031502() [all …]
|
D | IBMCalendarTest.java | 23 import android.icu.util.Calendar; 65 2000, Calendar.MARCH, 17, 23, 0, 0, // Fri 23:00 in TestWeekend() 66 2000, Calendar.MARCH, 18, 0, -1, 0, // Fri 23:59:59.999 in TestWeekend() 67 2000, Calendar.MARCH, 18, 0, 0, 1, // Sat 00:00 in TestWeekend() 68 2000, Calendar.MARCH, 18, 15, 0, 1, // Sat 15:00 in TestWeekend() 69 2000, Calendar.MARCH, 19, 23, 0, 1, // Sun 23:00 in TestWeekend() 70 2000, Calendar.MARCH, 20, 0, -1, 1, // Sun 23:59:59.999 in TestWeekend() 71 2000, Calendar.MARCH, 20, 0, 0, 0, // Mon 00:00 in TestWeekend() 72 2000, Calendar.MARCH, 20, 8, 0, 0, // Mon 08:00 in TestWeekend() 75 2000, Calendar.MARCH, 15, 23, 0, 0, // Wed 23:00 in TestWeekend() [all …]
|
D | DangiTest.java | 12 import android.icu.util.Calendar; 76 Calendar cal = Calendar.getInstance(new ULocale("ko_KR@calendar=dangi")); in TestMapping() 81 Calendar grego = Calendar.getInstance(); in TestMapping() 87 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping() 88 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based in TestMapping() 89 int L = cal.get(Calendar.IS_LEAP_MONTH); in TestMapping() 90 int d = cal.get(Calendar.DAY_OF_MONTH); in TestMapping() 114 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping() 115 cal.set(Calendar.MONTH, cmonth - 1); in TestMapping() 116 cal.set(Calendar.IS_LEAP_MONTH, cisleapmonth); in TestMapping() [all …]
|
D | ChineseTest.java | 15 import android.icu.util.Calendar; 101 Calendar grego = Calendar.getInstance(); in TestMapping() 107 int y = cal.get(Calendar.EXTENDED_YEAR); in TestMapping() 108 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based in TestMapping() 109 int L = cal.get(Calendar.IS_LEAP_MONTH); in TestMapping() 110 int d = cal.get(Calendar.DAY_OF_MONTH); in TestMapping() 135 cal.set(Calendar.EXTENDED_YEAR, cyear); in TestMapping() 136 cal.set(Calendar.MONTH, cmonth-1); in TestMapping() 137 cal.set(Calendar.IS_LEAP_MONTH, cisleapmonth); in TestMapping() 138 cal.set(Calendar.DAY_OF_MONTH, cdayofmonth); in TestMapping() [all …]
|
D | HolidayTest.java | 15 import android.icu.util.Calendar; 42 static Calendar cal; 141 final Calendar c = Calendar.getInstance(TimeZone.GMT_ZONE); // Temporary copy in exerciseHoliday() 143 final Date fStartOfMonth = startOfMonth((Calendar)c.clone()); in exerciseHoliday() 158 c.roll(Calendar.DATE, false); in exerciseHoliday() 162 c.roll(Calendar.DATE, true); in exerciseHoliday() 163 c.add(Calendar.MONTH, 1); in exerciseHoliday() 165 c.add(Calendar.SECOND, -1); in exerciseHoliday() 209 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() 214 int era = fCalendar.get(Calendar.ERA); in startOfMonth() [all …]
|
D | CalendarTest.java | 19 import android.icu.util.Calendar; 34 public final static int SUN = Calendar.SUNDAY; 35 public final static int MON = Calendar.MONDAY; 36 public final static int TUE = Calendar.TUESDAY; 37 public final static int WED = Calendar.WEDNESDAY; 38 public final static int THU = Calendar.THURSDAY; 39 public final static int FRI = Calendar.FRIDAY; 40 public final static int SAT = Calendar.SATURDAY; 42 public final static int ERA = Calendar.ERA; 43 public final static int YEAR = Calendar.YEAR; [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | CompatibilityTest.java | 19 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() 172 2440588, 1970, Calendar.JANUARY, 1, 1969, Calendar.DECEMBER, 19, in TestMapping() 173 2415080, 1900, Calendar.MARCH, 1, 1900, Calendar.FEBRUARY, 17, in TestMapping() 174 2451604, 2000, Calendar.FEBRUARY, 29, 2000, Calendar.FEBRUARY, 16, in TestMapping() 175 2452269, 2001, Calendar.DECEMBER, 25, 2001, Calendar.DECEMBER, 12, in TestMapping() 176 2416526, 1904, Calendar.FEBRUARY, 15, 1904, Calendar.FEBRUARY, 2, in TestMapping() [all …]
|
D | CalendarRegression.java | 24 import com.ibm.icu.util.Calendar; 83 if (cal.get(Calendar.HOUR) != 5) { in Test4031502() 86 cal.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 87 cal.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 89 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502() 92 if (cal.get(Calendar.HOUR) != 5) { in Test4031502() 95 cal.get(Calendar.DST_OFFSET) / (60*60*1000.0) + "; ZONE_OFFSET = " + in Test4031502() 96 … cal.get(Calendar.ZONE_OFFSET) / (60*60*1000.0) + "; getRawOffset() = " + in Test4031502() 98 "; HOUR = " + cal.get(Calendar.HOUR)); in Test4031502() 102 cal.get(Calendar.HOUR); in Test4031502() [all …]
|
D | IBMCalendarTest.java | 22 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 | 11 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 | 14 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 | 14 import com.ibm.icu.util.Calendar; 38 static Calendar cal; 137 final Calendar c = Calendar.getInstance(TimeZone.GMT_ZONE); // Temporary copy in exerciseHoliday() 139 final Date fStartOfMonth = startOfMonth((Calendar)c.clone()); in exerciseHoliday() 154 c.roll(Calendar.DATE, false); in exerciseHoliday() 158 c.roll(Calendar.DATE, true); in exerciseHoliday() 159 c.add(Calendar.MONTH, 1); in exerciseHoliday() 161 c.add(Calendar.SECOND, -1); in exerciseHoliday() 205 private Date startOfMonth(/*Date dateInMonth,*/ Calendar fCalendar) in startOfMonth() 210 int era = fCalendar.get(Calendar.ERA); in startOfMonth() [all …]
|
D | CalendarTest.java | 18 import com.ibm.icu.util.Calendar; 30 public final static int SUN = Calendar.SUNDAY; 31 public final static int MON = Calendar.MONDAY; 32 public final static int TUE = Calendar.TUESDAY; 33 public final static int WED = Calendar.WEDNESDAY; 34 public final static int THU = Calendar.THURSDAY; 35 public final static int FRI = Calendar.FRIDAY; 36 public final static int SAT = Calendar.SATURDAY; 38 public final static int ERA = Calendar.ERA; 39 public final static int YEAR = Calendar.YEAR; [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | DebugUtilitiesData.java | 120 android.icu.util.Calendar.ERA, /* 0 */ 121 android.icu.util.Calendar.YEAR, /* 1 */ 122 android.icu.util.Calendar.MONTH, /* 2 */ 123 android.icu.util.Calendar.WEEK_OF_YEAR, /* 3 */ 124 android.icu.util.Calendar.WEEK_OF_MONTH, /* 4 */ 125 android.icu.util.Calendar.DATE, /* 5 */ 126 android.icu.util.Calendar.DAY_OF_YEAR, /* 6 */ 127 android.icu.util.Calendar.DAY_OF_WEEK, /* 7 */ 128 android.icu.util.Calendar.DAY_OF_WEEK_IN_MONTH, /* 8 */ 129 android.icu.util.Calendar.AM_PM, /* 9 */ [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | DebugUtilitiesData.java | 119 com.ibm.icu.util.Calendar.ERA, /* 0 */ 120 com.ibm.icu.util.Calendar.YEAR, /* 1 */ 121 com.ibm.icu.util.Calendar.MONTH, /* 2 */ 122 com.ibm.icu.util.Calendar.WEEK_OF_YEAR, /* 3 */ 123 com.ibm.icu.util.Calendar.WEEK_OF_MONTH, /* 4 */ 124 com.ibm.icu.util.Calendar.DATE, /* 5 */ 125 com.ibm.icu.util.Calendar.DAY_OF_YEAR, /* 6 */ 126 com.ibm.icu.util.Calendar.DAY_OF_WEEK, /* 7 */ 127 com.ibm.icu.util.Calendar.DAY_OF_WEEK_IN_MONTH, /* 8 */ 128 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 | 11 import java.util.Calendar; 25 … new SimpleHoliday(Calendar.JANUARY, 15, Calendar.MONDAY, "Martin Luther King Day", 1986), 27 … new SimpleHoliday(Calendar.FEBRUARY, 15, Calendar.MONDAY, "Presidents' Day", 1976), 28 …new SimpleHoliday(Calendar.FEBRUARY, 22, "Washington's Birthday", 1776, … 33 … new SimpleHoliday(Calendar.MAY, 8, Calendar.SUNDAY, "Mother's Day", 1914), 35 … new SimpleHoliday(Calendar.MAY, 31, -Calendar.MONDAY, "Memorial Day", 1971), 36 …new SimpleHoliday(Calendar.MAY, 30, "Memorial Day", 1868, … 38 … new SimpleHoliday(Calendar.JUNE, 15, Calendar.SUNDAY, "Father's Day", 1956), 39 … new SimpleHoliday(Calendar.JULY, 4, "Independence Day", 1776), 40 … 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 | 10 import java.util.Calendar; 21 … new SimpleHoliday(Calendar.JANUARY, 15, Calendar.MONDAY, "Martin Luther King Day", 1986), 23 … new SimpleHoliday(Calendar.FEBRUARY, 15, Calendar.MONDAY, "Presidents' Day", 1976), 24 …new SimpleHoliday(Calendar.FEBRUARY, 22, "Washington's Birthday", 1776, … 29 … new SimpleHoliday(Calendar.MAY, 8, Calendar.SUNDAY, "Mother's Day", 1914), 31 … new SimpleHoliday(Calendar.MAY, 31, -Calendar.MONDAY, "Memorial Day", 1971), 32 …new SimpleHoliday(Calendar.MAY, 30, "Memorial Day", 1868, … 34 … new SimpleHoliday(Calendar.JUNE, 15, Calendar.SUNDAY, "Father's Day", 1956), 35 … new SimpleHoliday(Calendar.JULY, 4, "Independence Day", 1776), 36 … new SimpleHoliday(Calendar.SEPTEMBER, 1, Calendar.MONDAY, "Labor Day", 1894), [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneRegression.java | 27 import com.ibm.icu.util.Calendar; 67 z.setStartRule(Calendar.FEBRUARY, 1, Calendar.SUNDAY, 0); in Test4073215() 68 z.setEndRule(Calendar.MARCH, -1, Calendar.SUNDAY, 0); in Test4073215() 71 Calendar tempcal = Calendar.getInstance(); in Test4073215() 74 tempcal.set(1997, Calendar.JANUARY, 31); in Test4073215() 80 tempcal.set(1997, Calendar.MARCH, 1); in Test4073215() 86 tempcal.set(1997, Calendar.MARCH, 31); in Test4073215() 105 1997, Calendar.OCTOBER, 26, Calendar.SUNDAY, (2*60*60*1000)); in Test4084933() 107 1997, Calendar.OCTOBER, 26, Calendar.SUNDAY, (2*60*60*1000)-1); in Test4084933() 110 1997, Calendar.OCTOBER, 26, Calendar.SUNDAY, (1*60*60*1000)); in Test4084933() [all …]
|
D | TimeZoneBoundaryTest.java | 14 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/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneRegression.java | 28 import android.icu.util.Calendar; 71 z.setStartRule(Calendar.FEBRUARY, 1, Calendar.SUNDAY, 0); in Test4073215() 72 z.setEndRule(Calendar.MARCH, -1, Calendar.SUNDAY, 0); in Test4073215() 75 Calendar tempcal = Calendar.getInstance(); in Test4073215() 78 tempcal.set(1997, Calendar.JANUARY, 31); in Test4073215() 84 tempcal.set(1997, Calendar.MARCH, 1); in Test4073215() 90 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 | 15 import android.icu.util.Calendar; 205 java.util.Calendar cal = java.util.Calendar.getInstance(); in showDate() 207 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + in showDate() 208 showNN(cal.get(Calendar.MONTH) + 1) + "/" + in showDate() 209 showNN(cal.get(Calendar.DAY_OF_MONTH)) + " " + in showDate() 210 showNN(cal.get(Calendar.HOUR_OF_DAY)) + ":" in showDate() 211 + showNN(cal.get(Calendar.MINUTE)) + " \"" + d + "\" = " + in showDate() 224 java.util.Calendar cal = java.util.Calendar.getInstance(); in showDate() 226 return "" + (cal.get(Calendar.YEAR) - 1900) + "/" + in showDate() 227 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 …]
|