Home
last modified time | relevance | path

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

123

/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DSimpleMonthAdapter.java54 int year; field in SimpleMonthAdapter.CalendarDay
67 year = calendar.get(Calendar.YEAR); in CalendarDay()
72 public CalendarDay(int year, int month, int day) { in CalendarDay() argument
73 setDay(year, month, day); in CalendarDay()
77 year = date.year; in set()
82 public void setDay(int year, int month, int day) { in setDay() argument
83 this.year = year; in setDay()
102 year = calendar.get(Calendar.YEAR); in setTime()
181 final int year = position / MONTHS_IN_YEAR + mController.getMinYear(); in getView() local
182 Log.d(TAG, "Year: " + year + ", Month: " + month); in getView()
[all …]
DYearPickerView.java75 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()
DDatePickerDialog.java123 void onDateSet(DatePickerDialog dialog, int year, int monthOfYear, int dayOfMonth); in onDateSet() argument
145 public static DatePickerDialog newInstance(OnDateSetListener callBack, int year, in newInstance() argument
149 ret.initialize(callBack, year, monthOfYear, dayOfMonth); in newInstance()
153 public void initialize(OnDateSetListener callBack, int year, int monthOfYear, int dayOfMonth) { in initialize() argument
155 mCalendar.set(Calendar.YEAR, year); in initialize()
387 private void adjustDayInMonthIfNeeded(int month, int year) { in adjustDayInMonthIfNeeded() argument
389 int daysInMonth = Utils.getDaysInMonth(month, year); in adjustDayInMonthIfNeeded()
406 public void onYearSelected(int year) { in onYearSelected() argument
407 adjustDayInMonthIfNeeded(mCalendar.get(Calendar.MONTH), year); in onYearSelected() local
408 mCalendar.set(Calendar.YEAR, year); in onYearSelected()
[all …]
DDatePickerController.java27 void onYearSelected(int year); in onYearSelected() argument
29 void onDayOfMonthSelected(int year, int month, int day); in onDayOfMonthSelected() argument
DDayPickerView.java186 final int position = (day.year - mController.getMinYear()) in goTo()
442 cal.set(day.year, day.month, day.day); in getMonthAndYearString()
476 int year = firstVisiblePosition / 12 + mController.getMinYear(); in performAccessibilityAction() local
477 CalendarDay day = new CalendarDay(year, month, 1); in performAccessibilityAction()
484 day.year++; in performAccessibilityAction()
496 day.year--; in performAccessibilityAction()
/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/calendarcommon2/
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()
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/
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/java/android/text/format/
DTime.java86 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()
DDateFormat.java255 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()
582 private static String getYearString(int year, int count) { in getYearString() argument
583 return (count <= 2) ? zeroPad(year % 100, 2) in getYearString()
584 : String.format(Locale.getDefault(), "%d", year); in getYearString()
DDateUtils.java596 int thenYear = time.year; in isToday()
601 return (thenYear == time.year) in isToday()
920 } else if (sNowTime.year != sThenTime.year) { in getRelativeTimeSpanString()
/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/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/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/core/java/android/widget/
DDatePicker.java141 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); in onDateChanged() argument
218 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { in DatePicker()
219 setDate(year, month, monthDay); in DatePicker()
242 mYearSpinner = (NumberPicker) findViewById(R.id.year); in DatePicker()
560 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
561 if (!isNewDate(year, month, dayOfMonth)) { in updateDate()
564 setDate(year, month, dayOfMonth); in updateDate()
601 public void init(int year, int monthOfYear, int dayOfMonth, in init() argument
603 setDate(year, monthOfYear, dayOfMonth); in init()
625 private boolean isNewDate(int year, int month, int dayOfMonth) { in isNewDate() argument
[all …]
/frameworks/opt/telephony/src/java/android/telephony/
DSmsCbEtwsInfo.java136 int year = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[0]); in getPrimaryNotificationTimestamp() local
158 time.year = year + 2000; in getPrimaryNotificationTimestamp()
/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/opt/datetimepicker/src/com/android/datetimepicker/
DUtils.java61 public static int getDaysInMonth(int month, int year) { in getDaysInMonth() argument
77 return (year % 4 == 0) ? 29 : 28; in getDaysInMonth()
/frameworks/base/docs/html/guide/topics/renderscript/
Dindex.jd16 <p>It’s been a year since the last blog post on RenderScript, and with the release
18 since then. One of the major goals of this past year was to improve the performance
/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/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/helpers/
DDatePickerHelper.java189 private static int getDaysInMonth(int year, int month) { in getDaysInMonth() argument
191 cal.set(Calendar.YEAR, year); in getDaysInMonth()

123