Searched refs:calendar (Results 1 – 8 of 8) sorted by relevance
/cts/tests/tests/widget/src/android/widget/cts/ |
D | DatePickerTest.java | 243 final Calendar calendar = new GregorianCalendar(); in testCalendarViewInSpinnerMode() local 244 calendar.set(Calendar.YEAR, 2008); in testCalendarViewInSpinnerMode() 245 calendar.set(Calendar.MONTH, Calendar.SEPTEMBER); in testCalendarViewInSpinnerMode() 246 calendar.set(Calendar.DAY_OF_MONTH, 23); in testCalendarViewInSpinnerMode() 248 calendar.get(Calendar.YEAR), in testCalendarViewInSpinnerMode() 249 calendar.get(Calendar.MONTH), in testCalendarViewInSpinnerMode() 250 calendar.get(Calendar.DAY_OF_MONTH)); in testCalendarViewInSpinnerMode() 256 assertEquals(calendar.get(Calendar.YEAR), calendarFromSpinner.get(Calendar.YEAR)); in testCalendarViewInSpinnerMode() 257 assertEquals(calendar.get(Calendar.MONTH), calendarFromSpinner.get(Calendar.MONTH)); in testCalendarViewInSpinnerMode() 258 assertEquals(calendar.get(Calendar.DAY_OF_MONTH), in testCalendarViewInSpinnerMode() [all …]
|
D | CalendarViewTest.java | 217 final Calendar calendar = new GregorianCalendar(); in verifyOnDateChangeListener() local 218 calendar.set(Calendar.YEAR, 2008); in verifyOnDateChangeListener() 219 calendar.set(Calendar.MONTH, Calendar.SEPTEMBER); in verifyOnDateChangeListener() 220 calendar.set(Calendar.DAY_OF_MONTH, 16); in verifyOnDateChangeListener() 222 () -> calendarView.setDate(calendar.getTime().getTime(), false, true)); in verifyOnDateChangeListener() 225 calendar.set(Calendar.DAY_OF_MONTH, 7); in verifyOnDateChangeListener() 228 calendar.getTime().getTime(), dayBounds); in verifyOnDateChangeListener()
|
D | TimePickerTest.java | 143 final Calendar calendar = new GregorianCalendar(); in testAutofill() local 144 calendar.set(Calendar.HOUR_OF_DAY, 4); in testAutofill() 145 calendar.set(Calendar.MINUTE, 20); in testAutofill() 147 final AutofillValue autofilledValue = AutofillValue.forDate(calendar.getTimeInMillis()); in testAutofill() 173 calendar.setTimeInMillis(mTimePicker.getAutofillValue().getDateValue()); in testAutofill() 174 assertEquals(10, calendar.get(Calendar.HOUR)); in testAutofill() 177 calendar.setTimeInMillis(mTimePicker.getAutofillValue().getDateValue()); in testAutofill() 178 assertEquals(8, calendar.get(Calendar.MINUTE)); in testAutofill()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateFormatTest.java | 208 Calendar calendar = new GregorianCalendar(YEAR, MONTH, DAY); in testFormatMethods() local 209 CharSequence actual = DateFormat.format(format, calendar); in testFormatMethods() 220 Calendar calendar = new GregorianCalendar(TimeZone.getTimeZone("GMT+00:00")); in test2038() local 222 calendar.setTimeInMillis(((long) Integer.MIN_VALUE + Integer.MIN_VALUE) * 1000L); in test2038() 224 DateFormat.format("EEE MMM dd HH:mm:ss zzz yyyy", calendar)); in test2038() 226 calendar.setTimeInMillis(Integer.MIN_VALUE * 1000L); in test2038() 228 DateFormat.format("EEE MMM dd HH:mm:ss zzz yyyy", calendar)); in test2038() 230 calendar.setTimeInMillis(0L); in test2038() 232 DateFormat.format("EEE MMM dd HH:mm:ss zzz yyyy", calendar)); in test2038() 234 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 | 129 Calendar calendar = Calendar.getInstance(); in createKey() local 130 Date validityStart = calendar.getTime(); in createKey() 131 calendar.add(Calendar.YEAR, 1); in createKey() 132 Date validityEnd = calendar.getTime(); in createKey()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | CheckoutActivityTest.java | 649 Calendar calendar = Calendar.getInstance( 652 calendar.set(year, month, day, hour, minute); 654 return calendar.getTimeInMillis();
|
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/ |
D | CalendarTest.java | 17 package android.provider.cts.calendar;
|