/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
D | SimpleMonthAdapter.java | 53 int year; field in SimpleMonthAdapter.CalendarDay 66 year = calendar.get(Calendar.YEAR); in CalendarDay() 71 public CalendarDay(int year, int month, int day) { in CalendarDay() argument 72 setDay(year, month, day); in CalendarDay() 76 year = date.year; in set() 81 public void setDay(int year, int month, int day) { in setDay() argument 82 this.year = year; in setDay() 93 year = calendar.get(Calendar.YEAR); in setTime() 167 final int year = position / MONTHS_IN_YEAR + mController.getMinYear(); in getView() local 168 Log.d(TAG, "Year: " + year + ", Month: " + month); in getView() [all …]
|
D | YearPickerView.java | 75 for (int year = mController.getMinYear(); year <= mController.getMaxYear(); year++) { in init() 76 years.add(String.format("%d", year)); in init() 116 int year = getYearFromTextView(v); in getView() local 117 boolean selected = mController.getSelectedDay().year == year; in getView() 152 postSetSelectionCentered(mController.getSelectedDay().year - mController.getMinYear()); in onDateChanged()
|
D | DatePickerDialog.java | 131 void onDateSet(DatePickerDialog dialog, int year, int monthOfYear, int dayOfMonth); in onDateSet() argument 153 public static DatePickerDialog newInstance(OnDateSetListener callBack, int year, in newInstance() argument 157 ret.initialize(callBack, year, monthOfYear, dayOfMonth); in newInstance() 161 public void initialize(OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth) { in initialize() argument 163 mCalendar.set(Calendar.YEAR, year); in initialize() 382 private void adjustDayInMonthIfNeeded(int month, int year) { in adjustDayInMonthIfNeeded() argument 384 int daysInMonth = Utils.getDaysInMonth(month, year); in adjustDayInMonthIfNeeded() 401 public void onYearSelected(int year) { in onYearSelected() argument 402 adjustDayInMonthIfNeeded(mCalendar.get(Calendar.MONTH), year); in onYearSelected() local 403 mCalendar.set(Calendar.YEAR, year); in onYearSelected() [all …]
|
D | DatePickerController.java | 27 void onYearSelected(int year); in onYearSelected() argument 29 void onDayOfMonthSelected(int year, int month, int day); in onDayOfMonthSelected() argument
|
D | DayPickerView.java | 174 final int position = (day.year - mController.getMinYear()) in goTo() 428 cal.set(day.year, day.month, day.day); in getMonthAndYearString() 462 int year = firstVisiblePosition / 12 + mController.getMinYear(); in performAccessibilityAction() local 463 CalendarDay day = new CalendarDay(year, month, 1); in performAccessibilityAction() 470 day.year++; in performAccessibilityAction() 482 day.year--; in performAccessibilityAction()
|
/frameworks/base/core/java/android/app/ |
D | DatePickerDialog.java | 64 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth); in onDateSet() argument 76 int year, in DatePickerDialog() argument 79 this(context, 0, callBack, year, monthOfYear, dayOfMonth); in DatePickerDialog() 93 int year, in DatePickerDialog() argument 111 mDatePicker.init(year, monthOfYear, dayOfMonth, this); in DatePickerDialog() 112 updateTitle(year, monthOfYear, dayOfMonth); in DatePickerDialog() 119 public void onDateChanged(DatePicker view, int year, in onDateChanged() argument 121 mDatePicker.init(year, month, day, this); in onDateChanged() 122 updateTitle(year, month, day); in onDateChanged() 141 public void updateDate(int year, int monthOfYear, int dayOfMonth) { in updateDate() argument [all …]
|
/frameworks/base/core/java/com/android/internal/http/ |
D | HttpDateTime.java | 90 int year = 1970; in parse() local 97 year = getYear(rfcMatcher.group(3)); in parse() 105 year = getYear(ansicMatcher.group(4)); in parse() 112 if (year >= 2038) { in parse() 113 year = 2038; in parse() 120 month, year); in parse() 183 int year = (yearString.charAt(0) - '0') * 10 in getYear() local 185 if (year >= 70) { in getYear() 186 return year + 1900; in getYear() 188 return year + 2000; in getYear() [all …]
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | RecurrenceProcessor.java | 432 int realYear = iterator.year; in get() 441 + "/" + iterator.year + " day=" + day); in get() 448 realYear = t.year; in get() 454 + "/" + t.year); in get() 471 + "/" + t.year in get() 879 int iteratorYear = iterator.year; in expand() 889 if (SPEW) Log.i(TAG, "year=" + generated.year); in expand() 1090 iterator.year += value; in expand() 1144 int year = date.year; in unsafeNormalize() local 1167 int days = month > 1 ? yearLength(year) : yearLength(year - 1); in unsafeNormalize() [all …]
|
/frameworks/base/tests/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 = (NumberPicker) 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 …]
|
D | DatePickerActivity.java | 32 public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) { in onCreate()
|
/frameworks/base/core/java/android/text/format/ |
D | Time.java | 86 public int year; field in Time 170 this.year = 1970; in Time() 243 int y = this.year; in getActualMaximum() 254 int y = this.year; in getActualMaximum() 281 this.year = 0; in clear() 563 this.year = that.year; in set() 574 public void set(int second, int minute, int hour, int monthDay, int month, int year) { in set() argument 581 this.year = year; in set() 597 public void set(int monthDay, int month, int year) { in set() argument 604 this.year = year; in set()
|
D | DateFormat.java | 255 int year = value.indexOf('y'); in getDateFormatStringForSetting() local 257 if (month >= 0 && day >= 0 && year >= 0) { in getDateFormatStringForSetting() 259 if (year < month && year < day) { in getDateFormatStringForSetting() 266 if (day < year) { in getDateFormatStringForSetting() 272 if (month < year) { in getDateFormatStringForSetting() 612 private static String getYearString(int year, int count) { in getYearString() argument 613 return (count <= 2) ? zeroPad(year % 100, 2) in getYearString() 614 : String.format(Locale.getDefault(), "%d", year); in getYearString()
|
/frameworks/base/media/libdrm/mobile1/include/parser/ |
D | parser_rel.h | 43 #define YMD_HMS_2_INT(year, mon, day, date, hour, min, sec, time) do{\ argument 44 date = year * 10000 + mon * 100 + day;\ 89 int32_t drm_monthDays(int32_t year, int32_t month); 103 int32_t drm_checkDate(int32_t year, int32_t month, int32_t day, int32_t hour, int32_t min, int32_t …
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 190 if (local.year != test.year2 || local.month != test.month2 in testNormalize1() 196 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1() 208 if (local.year != test.year2 || local.month != test.month2 in testNormalize1() 214 local.year, local.month, local.monthDay, local.hour, local.minute); in testNormalize1() 231 if (local.year != test.year2 || local.month != test.month2 in testNormalize1() 238 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1() 253 if (local.year != test.year2 || local.month != test.month2 in testNormalize1() 260 local.year, local.month, local.monthDay, local.hour, local.minute, in testNormalize1() 362 if (!t.allDay || t.year != 1980 || t.month != 04 || t.monthDay != 23) { in testParse33390() 367 if (t.allDay || t.year != 1980 || t.month != 04 || t.monthDay != 23 || in testParse33390() [all …]
|
/frameworks/base/media/libdrm/mobile1/src/parser/ |
D | parser_rel.c | 25 int32_t drm_monthDays(int32_t year, int32_t month) in drm_monthDays() argument 42 if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) in drm_monthDays() 51 int32_t drm_checkDate(int32_t year, int32_t month, int32_t day, in drm_checkDate() argument 55 day >= 1 && day <= drm_monthDays(year, month) && in drm_checkDate() 66 int32_t year, mon, day, hour, min, sec; in drm_getStartEndTime() local 81 year = atoi((char *)pHead); in drm_getStartEndTime() 128 if (0 != drm_checkDate(year, mon, day, hour, min, sec)) in drm_getStartEndTime() 131 YMD_HMS_2_INT(year, mon, day, dateTime->date, hour, min, sec, in drm_getStartEndTime() 238 int32_t year, mon, day, hour, min, sec; in drm_getRightValue() local 350 year = atoi((char *)pHead); in drm_getRightValue() [all …]
|
/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 46 public MonthDisplayHelper(int year, int month, int weekStartDay) { in MonthDisplayHelper() argument 54 mCalendar.set(Calendar.YEAR, year); in MonthDisplayHelper() 66 public MonthDisplayHelper(int year, int month) { in MonthDisplayHelper() argument 67 this(year, month, Calendar.SUNDAY); in MonthDisplayHelper()
|
D | DayOfMonthCursor.java | 48 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { in DayOfMonthCursor() argument 49 super(year, month, weekStartDay); in DayOfMonthCursor()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 37 int year, month, day, hour, minute, second; in parseDateTime() local 41 &year, &month, &day, &hour, &minute, &second) != 6) in parseDateTime() 59 tm.tm_year = year - 1900; in parseDateTime()
|
/frameworks/base/core/java/android/widget/ |
D | DatePicker.java | 137 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); in onDateChanged() argument 214 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { in DatePicker() 215 setDate(year, month, monthDay); in DatePicker() 238 mYearSpinner = (NumberPicker) findViewById(R.id.year); in DatePicker() 540 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument 541 if (!isNewDate(year, month, dayOfMonth)) { in updateDate() 544 setDate(year, month, dayOfMonth); in updateDate() 581 public void init(int year, int monthOfYear, int dayOfMonth, in init() argument 583 setDate(year, monthOfYear, dayOfMonth); in init() 605 private boolean isNewDate(int year, int month, int dayOfMonth) { in isNewDate() argument [all …]
|
/frameworks/opt/telephony/src/java/android/telephony/ |
D | SmsCbEtwsInfo.java | 136 int year = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[0]); in getPrimaryNotificationTimestamp() local 158 time.year = year + 2000; in getPrimaryNotificationTimestamp()
|
/frameworks/base/core/jni/ |
D | TimeUtils.h | 69 inline void set(int sec, int min, int hour, int mday, int mon, int year, in set() argument 77 this->t.tm_year = year; in set()
|
/frameworks/base/media/libdrm/mobile1/src/jni/ |
D | drm1_jni.c | 315 uint32_t year, uint32_t month, uint32_t day, in mkgmtime() argument 324 assert(year >= 1970 in mkgmtime() 331 day += ydays[month - 1] + (month > 2 && leap (year)) - 1; in mkgmtime() 334 day = day + 365 * (year - 1970) + nleap(year); in mkgmtime() 356 int32_t year, month, day, hour, minute, second; in computeTime() local 358 year = date / 10000; in computeTime() 366 if (year < 1970) year = 1970; in computeTime() 378 return mkgmtime(year, month, day, hour, minute, second) * 1000; in computeTime() 399 int32_t year, month, day, hour, minute, second; in computeInterval() local 402 year = date / 10000; in computeInterval() [all …]
|
/frameworks/base/media/libdrm/mobile1/include/objmng/ |
D | drm_inner.h | 26 #define INT_2_YMD_HMS(year, mon, day, date, hour, min, sec, time) do{\ argument 27 year = date / 10000;\
|
D | drm_time.h | 45 uint16_t year; member
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/ |
D | Utils.java | 54 public static int getDaysInMonth(int month, int year) { in getDaysInMonth() argument 70 return (year % 4 == 0) ? 29 : 28; in getDaysInMonth()
|