/frameworks/base/core/java/android/widget/ |
D | YearPickerView.java | 62 final int year = mAdapter.getYearForPosition(position); in YearPickerView() 63 mAdapter.setSelection(year); in YearPickerView() 66 mOnYearSelectedListener.onYearChanged(YearPickerView.this, year); in YearPickerView() 84 public void setYear(final int year) { in setYear() argument 85 mAdapter.setSelection(year); in setYear() 90 final int position = mAdapter.getPositionForYear(year); in setYear() 135 public boolean setSelection(int year) { in setSelection() argument 136 if (mActivatedYear != year) { in setSelection() 137 mActivatedYear = year; in setSelection() 159 public int getPositionForYear(int year) { in getPositionForYear() argument [all …]
|
D | DatePickerCalendarDelegate.java | 249 public void onYearChanged(YearPickerView view, int year) { 257 final int daysInMonth = getDaysInMonth(month, year); 262 mCurrentDate.set(Calendar.YEAR, year); 323 final String year = mYearFormat.format(mCurrentDate.getTime()); in onCurrentDateChanged() local 324 mHeaderYear.setText(year); in onCurrentDateChanged() 350 final int year = mCurrentDate.get(Calendar.YEAR); in setCurrentView() local 351 mYearPickerView.setYear(year); in setCurrentView() 373 public void init(int year, int month, int dayOfMonth, in init() argument 375 setDate(year, month, dayOfMonth); in init() 382 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument [all …]
|
D | DatePicker.java | 139 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); in onDateChanged() argument 238 public void init(int year, int monthOfYear, int dayOfMonth, in init() argument 240 mDelegate.init(year, monthOfYear, dayOfMonth, onDateChangedListener); in init() 260 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument 261 mDelegate.updateDate(year, month, dayOfMonth); in updateDate() 541 void init(int year, int monthOfYear, int dayOfMonth, in init() argument 547 void updateDate(int year, int month, int dayOfMonth); in updateDate() argument 711 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument 713 this(superState, year, month, day, minDate, maxDate, 0, 0, 0); in SavedState() 719 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument [all …]
|
D | DatePickerSpinnerDelegate.java | 162 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { in DatePickerSpinnerDelegate() 163 setDate(year, month, monthDay); in DatePickerSpinnerDelegate() 186 mYearSpinner = (NumberPicker) mDelegator.findViewById(com.android.internal.R.id.year); in DatePickerSpinnerDelegate() 240 public void init(int year, int monthOfYear, int dayOfMonth, in init() argument 242 setDate(year, monthOfYear, dayOfMonth); in init() 250 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument 251 if (!isNewDate(year, month, dayOfMonth)) { in updateDate() 254 setDate(year, month, dayOfMonth); in updateDate() 499 private boolean isNewDate(int year, int month, int dayOfMonth) { in isNewDate() argument 500 return (mCurrentDate.get(Calendar.YEAR) != year in isNewDate() [all …]
|
D | DayPickerPagerAdapter.java | 249 final int year = getYearForPosition(position); in instantiateItem() local 253 Calendar.YEAR) == year) { in instantiateItem() 260 if (mMinDate.get(Calendar.MONTH) == month && mMinDate.get(Calendar.YEAR) == year) { in instantiateItem() 267 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) { in instantiateItem() 273 v.setMonthParams(selectedDay, month, year, mFirstDayOfWeek, in instantiateItem()
|
D | CalendarViewMaterialDelegate.java | 136 final int year = day.get(Calendar.YEAR); 139 mOnDateChangeListener.onSelectedDayChange(mDelegator, year, month, dayOfMonth);
|
D | DatePickerController.java | 28 void onYearSelected(int year); in onYearSelected() argument
|
/frameworks/base/core/java/android/app/ |
D | DatePickerDialog.java | 91 int year, int month, int dayOfMonth) { in DatePickerDialog() argument 92 this(context, 0, listener, null, year, month, dayOfMonth); in DatePickerDialog() 110 @Nullable OnDateSetListener listener, int year, int monthOfYear, int dayOfMonth) { in DatePickerDialog() argument 111 this(context, themeResId, listener, null, year, monthOfYear, dayOfMonth); in DatePickerDialog() 115 @Nullable OnDateSetListener listener, @Nullable Calendar calendar, int year, in DatePickerDialog() argument 129 year = calendar.get(Calendar.YEAR); in DatePickerDialog() 135 mDatePicker.init(year, monthOfYear, dayOfMonth, this); in DatePickerDialog() 152 public void onDateChanged(@NonNull DatePicker view, int year, int month, int dayOfMonth) { in onDateChanged() argument 153 mDatePicker.init(year, month, dayOfMonth, this); in onDateChanged() 201 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument [all …]
|
/frameworks/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.java | 90 int year = 1970; in parse() local 97 year = getYear(rfcMatcher.group(3)); in parse() 105 year = getYear(ansicMatcher.group(4)); in parse() 113 calendar.set(Calendar.YEAR, year); in parse() 182 int year = (yearString.charAt(0) - '0') * 10 in getYear() local 184 if (year >= 70) { in getYear() 185 return year + 1900; in getYear() 187 return year + 2000; in getYear() 191 int year = (yearString.charAt(0) - '0') * 100 in getYear() local 194 return year + 1900; in getYear()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | DatePicker.java | 83 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); in onDateChanged() argument 149 mYearPicker = findViewById(R.id.year); in DatePicker() 271 public void updateDate(int year, int monthOfYear, int dayOfMonth) { in updateDate() argument 272 if (mYear != year || mMonth != monthOfYear || mDay != dayOfMonth) { in updateDate() 273 mYear = (mYearOptional && year == 0) ? getCurrentYear() : year; in updateDate() 297 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, in SavedState() argument 300 mYear = year; in SavedState() 398 public void init(int year, int monthOfYear, int dayOfMonth, in init() argument 400 init(year, monthOfYear, dayOfMonth, false, onDateChangedListener); in init() 411 public void init(int year, int monthOfYear, int dayOfMonth, boolean yearOptional, in init() argument [all …]
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | RecurrenceProcessor.java | 1128 int year = date.getYear(); in unsafeNormalize() local 1151 int days = month > 1 ? yearLength(year) : yearLength(year - 1); in unsafeNormalize() 1153 year -= 1; in unsafeNormalize() 1158 year += years; in unsafeNormalize() 1162 year += years; in unsafeNormalize() 1170 int yearLength = yearLength(year); in unsafeNormalize() 1172 year++; in unsafeNormalize() 1176 int monthLength = monthLength(year, month); in unsafeNormalize() 1182 year++; in unsafeNormalize() 1194 date.setYear(year); in unsafeNormalize() [all …]
|
D | Time.java | 64 private int year; field in Time 116 year = mCalendar.get(Calendar.YEAR); in readFieldsFromCalendar() 126 mCalendar.set(year, month, monthDay, hour, minute, second); in writeFieldsToCalendar() 156 public void set(int day, int month, int year) { in set() argument 158 mCalendar.set(year, month, day); in set() 162 public void set(int second, int minute, int hour, int day, int month, int year) { in set() argument 164 mCalendar.set(year, month, day, hour, minute, second); in set() 301 public void setYear(int year) { in setYear() argument 302 this.year = year; in setYear() 303 mCalendar.set(Calendar.YEAR, year); in setYear() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | MissedIncomingCallSmsFilter.java | 128 private long getEpochTime(String year, String month, String day, String hour, String minute) { in getEpochTime() argument 130 if (TextUtils.isEmpty(year)) { in getEpochTime() 132 year = Integer.toString(now.getYear()); in getEpochTime() 141 time = LocalDateTime.parse(year + month + day + hour + minute, formatter); in getEpochTime() 142 year = Integer.toString(Integer.parseInt(year) - 1); in getEpochTime() 181 String year = null, month = null, day = null, hour = null, minute = null; in processSms() local 202 year = matcher.group(SMS_YEAR_TAG); in processSms() 209 missedCallTime = getEpochTime(year, month, day, hour, minute); in processSms()
|
D | NitzData.java | 78 int year = Integer.parseInt(nitzSubs[0]); in parse() local 79 if (year < 1 || year > 99) { in parse() 97 year += 2000; in parse() 109 long epochMillis = LocalDateTime.of(year, month, date, hour, minute, second) in parse()
|
/frameworks/base/core/java/android/text/format/ |
D | Time.java | 109 public int year; field in Time 201 this.year = 1970; in initialize() 273 int y = this.year; in getActualMaximum() 284 int y = this.year; in getActualMaximum() 311 this.year = 0; in clear() 436 year = n; in parseInternal() 565 year = n; in parse3339Internal() 791 this.year = that.year; in set() 802 public void set(int second, int minute, int hour, int monthDay, int month, int year) { in set() argument 809 this.year = year; in set() [all …]
|
D | TimeFormatter.java | 369 int year = wallTime.getYear(); in handleToken() local 374 int len = isLeap(year) ? DAYSPERLYEAR : DAYSPERNYEAR; in handleToken() 384 ++year; in handleToken() 392 --year; in handleToken() 393 yday += isLeap(year) ? DAYSPERLYEAR : DAYSPERNYEAR; in handleToken() 398 outputYear(year, false, true, modifier); in handleToken() 400 outputYear(year, true, true, modifier); in handleToken() 536 private static boolean isLeap(int year) { in isLeap() argument 537 return (((year) % 4) == 0 && (((year) % 100) != 0 || ((year) % 400) == 0)); in isLeap()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 200 if (local.year != test.year2 || local.month != test.month2 in testNormalize1() 206 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1() 218 if (local.year != test.year2 || local.month != test.month2 in testNormalize1() 224 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1() 241 if (local.year != test.year2 || local.month != test.month2 in testNormalize1() 248 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1() 263 if (local.year != test.year2 || local.month != test.month2 in testNormalize1() 270 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1() 372 if (!t.allDay || t.year != 1980 || t.month != 04 || t.monthDay != 23) { in testParse33390() 377 if (t.allDay || t.year != 1980 || t.month != 04 || t.monthDay != 23 || in testParse33390() [all …]
|
/frameworks/native/libs/ui/ |
D | DeviceProductInfo.cpp | 35 StringAppendF(&result, "modelYear=%u, ", model.year); in to_string() 39 StringAppendF(&result, "manufactureYear=%d, ", manufacture.year); in to_string() 42 StringAppendF(&result, "manufactureYear=%d, ", manufacture.year); in to_string()
|
D | DisplayIdentification.cpp | 78 const auto year = edid.manufactureOrModelYear + kYearOffset; in buildDeviceProductInfo() local 80 info.manufactureOrModelDate = DeviceProductInfo::ModelYear{.year = year}; in buildDeviceProductInfo() 83 date.year = year; in buildDeviceProductInfo() 87 date.year = year; in buildDeviceProductInfo()
|
/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 47 public MonthDisplayHelper(int year, int month, int weekStartDay) { in MonthDisplayHelper() argument 55 mCalendar.set(Calendar.YEAR, year); in MonthDisplayHelper() 67 public MonthDisplayHelper(int year, int month) { in MonthDisplayHelper() argument 68 this(year, month, Calendar.SUNDAY); in MonthDisplayHelper()
|
D | DayOfMonthCursor.java | 49 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { in DayOfMonthCursor() argument 50 super(year, month, weekStartDay); in DayOfMonthCursor()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | DatePickerFocusTest.java | 127 View year = mDatePicker. in testYearChoice() 129 assertTrue(year.requestFocus()); in testYearChoice() 149 View year = mDatePicker. in testYearChoice() 151 assertTrue(year.hasFocus()); in testYearChoice() 232 private void assertDateIs(int month, final int day, final int year) throws Throwable { in assertDateIs() argument 238 assertEquals(year, mDatePicker.getYear()); in assertDateIs()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineTestSupport.java | 185 Builder setActualTimeUtc(int year, int monthInYear, int day, int hourOfDay, in setActualTimeUtc() argument 187 mActualTimeMillis = createUnixEpochTime(year, monthInYear, day, hourOfDay, minute, in setActualTimeUtc() 282 private static long createUnixEpochTime(int year, int monthInYear, int day, int hourOfDay, in createUnixEpochTime() argument 286 cal.set(year, monthInYear - 1, day, hourOfDay, minute, second); in createUnixEpochTime()
|
/frameworks/native/libs/ui/tests/ |
D | DisplayIdentification_test.cpp | 339 EXPECT_EQ(2011, std::get<ManufactureYear>(info.manufactureOrModelDate).year); in TEST() 352 EXPECT_EQ(2012, date.year); in TEST() 366 EXPECT_EQ(2011, date.year); in TEST() 380 EXPECT_EQ(2019, date.year); in TEST() 393 EXPECT_EQ(2019, date.year); in TEST() 406 EXPECT_EQ(2013, std::get<ModelYear>(info.manufactureOrModelDate).year); in TEST()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 57 int year, month, day, hour, minute, second; in parseDateTime() local 59 &year, &month, &day, &hour, &minute, &second) != 6) in parseDateTime() 84 tm.tm_year = year - 1900; in parseDateTime()
|