/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
D | Asn1UTCTime.java | 35 private int year; field in Asn1UTCTime 52 year = other.year; in assignTo() 61 return year; in getYear() 65 year = newYear; in setYear() 110 builder.append(twoDigit.format(year % 100)); in encodeToIA5String() 125 builder.append(fourDigit.format(year)); in toHumanReadableString() 197 year = Integer.parseInt(result.substring(0, yearLength)); in retrieveResult() 200 if (year > 53) { in retrieveResult() 201 year += 1900; in retrieveResult() 203 year += 2000; in retrieveResult()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | AbstractDatePickerActivity.java | 76 private void updateOutputWithDate(int year, int month, int day) { in updateOutputWithDate() argument 77 final String date = year + "/" + month + "/" + day; in updateOutputWithDate() 96 void expectAutoFill(String output, int year, int month, int day) { in expectAutoFill() argument 97 mExpectation = new FillExpectation(output, year, month, day); in expectAutoFill() 125 void setDate(int year, int month, int day) { in setDate() argument 126 syncRunOnUiThread(() -> mDatePicker.updateDate(year, month, day)); in setDate() 147 private FillExpectation(String output, int year, int month, int day) { in FillExpectation() argument 150 dateListener = new OneTimeDateListener("datePicker", mDatePicker, year, month, day); in FillExpectation()
|
D | OneTimeDateListener.java | 49 public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) { in onDateChanged() argument
|
D | Helper.java | 614 public static void assertDateValue(Object object, AutofillValue value, int year, int month, in assertDateValue() argument 623 .that(cal.get(Calendar.YEAR)).isEqualTo(year); in assertDateValue() 633 public static void assertDateValue(ViewNode node, int year, int month, int day) { in assertDateValue() argument 634 assertDateValue(node, node.getAutofillValue(), year, month, day); in assertDateValue() 640 public static void assertDateValue(View view, int year, int month, int day) { in assertDateValue() argument 641 assertDateValue(view, view.getAutofillValue(), year, month, day); in assertDateValue()
|
D | AutofillValueTest.java | 384 private long getDateAsMillis(int year, int month, int day, int hour, int minute) { 388 calendar.set(year, month, day, hour, minute);
|
/cts/tests/tests/location/src/android/location/cts/psedorange/ |
D | GpsTime.java | 56 private static ZonedDateTime getZonedDateTimeUTC(int year, int month, int day) { in getZonedDateTimeUTC() argument 57 return getZonedDateTimeUTC(year, month, day, 0, 0, 0, 0); in getZonedDateTimeUTC() 60 private static ZonedDateTime getZonedDateTimeUTC(int year, int month, int day, in getZonedDateTimeUTC() argument 63 ZonedDateTime zdt = ZonedDateTime.of(year, month, day, hour, minute, sec, nanoSec, zone); in getZonedDateTimeUTC() 79 public GpsTime(int year, int month, int day, int hour, int minute, double second) { in GpsTime() argument 80 ZonedDateTime utcDateTime = getZonedDateTimeUTC(year, month, day, hour, minute, in GpsTime()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | DialogStubActivity.java | 103 public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { 104 updatedYear = year; 414 public MockDatePickerDialog(Context context, OnDateSetListener callBack, int year, in MockDatePickerDialog() argument 416 super(context, callBack, year, monthOfYear, dayOfMonth); in MockDatePickerDialog() 420 int year, int monthOfYear, int dayOfMonth) { in MockDatePickerDialog() argument 421 super(context, theme, callBack, year, monthOfYear, dayOfMonth); in MockDatePickerDialog() 431 public void onDateChanged(DatePicker view, int year, int month, int day) { in onDateChanged() argument 433 super.onDateChanged(view, year, month, day); in onDateChanged()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | GeomagneticFieldTest.java | 90 TestDataPoint(float lat, float lng, float alt, int year, int month, int day, in TestDataPoint() argument 95 epochTimeMillis = new GregorianCalendar(year, month, day).getTimeInMillis(); in TestDataPoint()
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | TimeTest.java | 92 time.year = 2008; in testNormalize() 124 final int year = 2008; in testSet() local 128 time.set(date, month, year); in testSet() 129 assertEquals(year, time.year); in testSet() 146 assertEquals(time.year, anotherTime.year); in verifyTime() 167 assertEquals(time.year, anotherTime.year); in testGetWeekNumber() 595 t.year = 2000; in testGetActualMaximum() 611 t.year = 2001; in testGetActualMaximum() 617 t.year = 2000; in testGetActualMaximum() 640 assertEquals(0, t.year); in testClear0() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | DatePickerTest.java | 351 private void assertValues(DatePicker datePicker, int year, int month, int dayOfMonth) { in assertValues() argument 352 assertEquals(year, datePicker.getYear()); in assertValues()
|