Home
last modified time | relevance | path

Searched refs:year (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/core/java/android/app/
DDatePickerDialog.java64 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/
DHttpDateTime.java90 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/calendarcommon/
DRecurrenceProcessor.java432 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()
877 int iteratorYear = iterator.year; in expand()
887 if (SPEW) Log.i(TAG, "year=" + generated.year); in expand()
1088 iterator.year += value; in expand()
1142 int year = date.year; in unsafeNormalize() local
1165 int days = month > 1 ? yearLength(year) : yearLength(year - 1); in unsafeNormalize()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DDatePicker.java83 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 …]
DDatePickerActivity.java32 public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) { in onCreate()
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java190 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/include/parser/
Dparser_rel.h43 #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/java/android/text/format/
DTime.java84 public int year; field in Time
165 this.year = 1970; in Time()
238 int y = this.year; in getActualMaximum()
249 int y = this.year; in getActualMaximum()
276 this.year = 0; in clear()
586 this.year = that.year; in set()
597 public void set(int second, int minute, int hour, int monthDay, int month, int year) { in set() argument
604 this.year = year; in set()
620 public void set(int monthDay, int month, int year) { in set() argument
627 this.year = year; in set()
DDateFormat.java296 int year = value.indexOf('y'); in getDateFormatStringForSetting() local
298 if (month >= 0 && day >= 0 && year >= 0) { in getDateFormatStringForSetting()
300 if (year < month && year < day) { in getDateFormatStringForSetting()
307 if (day < year) { in getDateFormatStringForSetting()
313 if (month < year) { in getDateFormatStringForSetting()
576 int year = inDate.get(Calendar.YEAR); in getYearString() local
577 return (count <= 2) ? zeroPad(year % 100, 2) : String.valueOf(year); in getYearString()
/frameworks/base/media/libdrm/mobile1/src/parser/
Dparser_rel.c25 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/
DMonthDisplayHelper.java46 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()
DDayOfMonthCursor.java48 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { in DayOfMonthCursor() argument
49 super(year, month, weekStartDay); in DayOfMonthCursor()
/frameworks/base/core/java/android/widget/
DDatePicker.java137 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/av/media/mtp/
DMtpUtils.cpp37 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/telephony/java/android/telephony/
DSmsCbEtwsInfo.java136 int year = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[0]); in getPrimaryNotificationTimestamp() local
158 time.year = year + 2000; in getPrimaryNotificationTimestamp()
/frameworks/base/media/libdrm/mobile1/src/jni/
Ddrm1_jni.c315 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/core/jni/
DTimeUtils.h69 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()
DTime.cpp69 static inline int days_this_month(int year, int month) in days_this_month() argument
75 int y = year; in days_this_month()
/frameworks/base/media/libdrm/mobile1/include/objmng/
Ddrm_inner.h26 #define INT_2_YMD_HMS(year, mon, day, date, hour, min, sec, time) do{\ argument
27 year = date / 10000;\
Ddrm_time.h45 uint16_t year; member
/frameworks/base/tools/aapt/
DZipEntry.cpp377 int year; in setModWhen() local
378 year = ptm->tm_year; in setModWhen()
379 if (year < 80) in setModWhen()
380 year = 80; in setModWhen()
382 zdate = (year - 80) << 9 | (ptm->tm_mon+1) << 5 | ptm->tm_mday; in setModWhen()
/frameworks/base/media/libdrm/mobile1/src/objmng/
Ddrm_time.c46 time_ptr->year = tm_t->tm_year + 1900; in DRM_time_getSysTime()
Ddrm_api.c347 if (-1 == drm_checkDate(curDateTime.year, curDateTime.month, curDateTime.day, in drm_startConsumeRights()
351 YMD_HMS_2_INT(curDateTime.year, curDateTime.month, curDateTime.day, in drm_startConsumeRights()
390 int32_t year, mon, day, hour, min, sec, date, time; in drm_startConsumeRights() local
403 INT_2_YMD_HMS(year, mon, day, date, hour, min, sec, time); in drm_startConsumeRights()
422 year += mon / 12; in drm_startConsumeRights()
425 if (day > (ret = drm_monthDays(year, mon))) { in drm_startConsumeRights()
430 year++; in drm_startConsumeRights()
433 YMD_HMS_2_INT(year, mon, day, XXConstraint->EndTime.date, hour, in drm_startConsumeRights()
461 if (-1 == drm_checkDate(curDateTime.year, curDateTime.month, curDateTime.day, in drm_startCheckRights()
465 YMD_HMS_2_INT(curDateTime.year, curDateTime.month, curDateTime.day, in drm_startCheckRights()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java574 int year = IccUtils.gsmBcdByteToInt(pdu[cur++]); in getSCTimestampMillis() local
596 time.year = year >= 90 ? year + 1900 : year + 2000; in getSCTimestampMillis()
/frameworks/rs/scriptc/
Drs_time.rsh55 int tm_year; ///< year
57 int tm_yday; ///< day of the year

12