/cts/tests/tests/widget/src/android/widget/cts/ |
D | DatePickerTest.java | 253 final Calendar calendar = new GregorianCalendar(); in testCalendarViewInSpinnerMode() local 254 calendar.set(Calendar.YEAR, 2008); in testCalendarViewInSpinnerMode() 255 calendar.set(Calendar.MONTH, Calendar.SEPTEMBER); in testCalendarViewInSpinnerMode() 256 calendar.set(Calendar.DAY_OF_MONTH, 23); in testCalendarViewInSpinnerMode() 258 calendar.get(Calendar.YEAR), in testCalendarViewInSpinnerMode() 259 calendar.get(Calendar.MONTH), in testCalendarViewInSpinnerMode() 260 calendar.get(Calendar.DAY_OF_MONTH)); in testCalendarViewInSpinnerMode() 266 assertEquals(calendar.get(Calendar.YEAR), calendarFromSpinner.get(Calendar.YEAR)); in testCalendarViewInSpinnerMode() 267 assertEquals(calendar.get(Calendar.MONTH), calendarFromSpinner.get(Calendar.MONTH)); in testCalendarViewInSpinnerMode() 268 assertEquals(calendar.get(Calendar.DAY_OF_MONTH), in testCalendarViewInSpinnerMode() [all …]
|
D | CalendarViewTest.java | 228 final Calendar calendar = new GregorianCalendar(); in verifyOnDateChangeListener() local 229 calendar.set(Calendar.YEAR, 2008); in verifyOnDateChangeListener() 230 calendar.set(Calendar.MONTH, Calendar.SEPTEMBER); in verifyOnDateChangeListener() 231 calendar.set(Calendar.DAY_OF_MONTH, 16); in verifyOnDateChangeListener() 233 () -> calendarView.setDate(calendar.getTime().getTime(), false, true)); in verifyOnDateChangeListener() 236 calendar.set(Calendar.DAY_OF_MONTH, 7); in verifyOnDateChangeListener() 239 calendar.getTime().getTime(), dayBounds); in verifyOnDateChangeListener()
|
D | TimePickerTest.java | 155 final Calendar calendar = new GregorianCalendar(); in testAutofill() local 156 calendar.set(Calendar.HOUR_OF_DAY, 4); in testAutofill() 157 calendar.set(Calendar.MINUTE, 20); in testAutofill() 159 final AutofillValue autofilledValue = AutofillValue.forDate(calendar.getTimeInMillis()); in testAutofill() 185 calendar.setTimeInMillis(mTimePicker.getAutofillValue().getDateValue()); in testAutofill() 186 assertEquals(10, calendar.get(Calendar.HOUR)); in testAutofill() 189 calendar.setTimeInMillis(mTimePicker.getAutofillValue().getDateValue()); in testAutofill() 190 assertEquals(8, calendar.get(Calendar.MINUTE)); in testAutofill()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 209 Calendar calendar = new GregorianCalendar(YEAR, MONTH, DAY); in testFormatMethods() local 210 CharSequence actual = DateFormat.format(format, calendar); in testFormatMethods() 221 Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("GMT+00:00")); in test2038() local 223 calendar.setTimeInMillis(((long) Integer.MIN_VALUE + Integer.MIN_VALUE) * 1000L); in test2038() 225 DateFormat.format("EEE MMM dd HH:mm:ss zzz yyyy", calendar)); in test2038() 227 calendar.setTimeInMillis(Integer.MIN_VALUE * 1000L); in test2038() 229 DateFormat.format("EEE MMM dd HH:mm:ss zzz yyyy", calendar)); in test2038() 231 calendar.setTimeInMillis(0L); in test2038() 233 DateFormat.format("EEE MMM dd HH:mm:ss zzz yyyy", calendar)); in test2038() 235 calendar.setTimeInMillis(Integer.MAX_VALUE * 1000L); in test2038() [all …]
|
D | TimeTest.java | 2970 Calendar calendar = new GregorianCalendar(tz); in calculateExpectedMillis() local 2971 calendar.set( in calculateExpectedMillis() 2979 calendar.set(Calendar.MILLISECOND, 0); in calculateExpectedMillis() 2980 return calendar.getTimeInMillis(); in calculateExpectedMillis() 3013 Calendar calendar = new GregorianCalendar(timeZone); in test_toMillisAndNormalizeGenerallyWork() local 3016 calendar.setTimeInMillis(timeInMillis); in test_toMillisAndNormalizeGenerallyWork() 3019 Fields.setDateTime(time, calendar); in test_toMillisAndNormalizeGenerallyWork() 3024 + time, calendar.getTimeInMillis(), time.toMillis(true /* ignoreDst */)); in test_toMillisAndNormalizeGenerallyWork() 3029 + time, calendar.getTimeInMillis(), normalizedMillis); in test_toMillisAndNormalizeGenerallyWork() 3037 tzId, createLocalDateTime(calendar), timeInMillis); in test_toMillisAndNormalizeGenerallyWork() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | ProtectedConfirmationTest.java | 173 Calendar calendar = Calendar.getInstance(); in createKey() local 174 Date validityStart = calendar.getTime(); in createKey() 175 calendar.add(Calendar.YEAR, 1); in createKey() 176 Date validityEnd = calendar.getTime(); in createKey()
|
/cts/tests/tests/icu/resources/android/icu/cts/expectations/ |
D | icu-known-failures.txt | 16 description: "ICU4J has a bug when using ISO8601 calendar type.",
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | CheckoutActivityTest.java | 660 Calendar calendar = Calendar.getInstance( 663 calendar.set(year, month, day, hour, minute); 665 return calendar.getTimeInMillis();
|
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/ |
D | CalendarTest.java | 17 package android.provider.cts.calendar;
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | test-current.txt | 4050 …Property.EnumEntry(value=android.widget.DatePicker.MODE_CALENDAR, name="calendar")}) public int ge…
|
D | current.txt | 35433 …field public static final String ACTION_HANDLE_CUSTOM_EVENT = "android.provider.calendar.action.HA… 35434 …l String ACTION_VIEW_MANAGED_PROFILE_CALENDAR_EVENT = "android.provider.calendar.action.VIEW_MANAG… 35435 field public static final String AUTHORITY = "com.android.calendar";
|