Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/widget/
DYearPickerView.java62 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 …]
DDatePickerCalendarDelegate.java248 public void onYearChanged(YearPickerView view, int year) {
256 final int daysInMonth = getDaysInMonth(month, year);
261 mCurrentDate.set(Calendar.YEAR, year);
313 final String year = mYearFormat.format(mCurrentDate.getTime()); in onCurrentDateChanged() local
314 mHeaderYear.setText(year); in onCurrentDateChanged()
340 final int year = mCurrentDate.get(Calendar.YEAR); in setCurrentView() local
341 mYearPickerView.setYear(year); in setCurrentView()
363 public void init(int year, int month, int dayOfMonth, in init() argument
365 setDate(year, month, dayOfMonth); in init()
372 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
[all …]
DDatePicker.java139 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 …]
DDatePickerSpinnerDelegate.java161 public void onSelectedDayChange(CalendarView view, int year, int month, int monthDay) { in DatePickerSpinnerDelegate()
162 setDate(year, month, monthDay); in DatePickerSpinnerDelegate()
185 mYearSpinner = (NumberPicker) mDelegator.findViewById(com.android.internal.R.id.year); in DatePickerSpinnerDelegate()
239 public void init(int year, int monthOfYear, int dayOfMonth, in init() argument
241 setDate(year, monthOfYear, dayOfMonth); in init()
249 public void updateDate(int year, int month, int dayOfMonth) { in updateDate() argument
250 if (!isNewDate(year, month, dayOfMonth)) { in updateDate()
253 setDate(year, month, dayOfMonth); in updateDate()
498 private boolean isNewDate(int year, int month, int dayOfMonth) { in isNewDate() argument
499 return (mCurrentDate.get(Calendar.YEAR) != year in isNewDate()
[all …]
DDayPickerPagerAdapter.java249 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()
DCalendarViewMaterialDelegate.java136 final int year = day.get(Calendar.YEAR);
139 mOnDateChangeListener.onSelectedDayChange(mDelegator, year, month, dayOfMonth);
DDatePickerController.java28 void onYearSelected(int year); in onYearSelected() argument
/frameworks/base/core/java/android/app/
DDatePickerDialog.java91 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/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/ex/common/java/com/android/common/
DLegacyHttpDateTime.java90 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/HwAccelerationTest/src/com/android/test/hwui/
DDatePicker.java83 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/telephony/src/java/com/android/internal/telephony/
DMissedIncomingCallSmsFilter.java122 private long getEpochTime(String year, String month, String day, String hour, String minute) { in getEpochTime() argument
124 if (TextUtils.isEmpty(year)) { in getEpochTime()
126 year = Integer.toString(now.getYear()); in getEpochTime()
135 time = LocalDateTime.parse(year + month + day + hour + minute, formatter); in getEpochTime()
136 year = Integer.toString(Integer.parseInt(year) - 1); in getEpochTime()
172 String year = null, month = null, day = null, hour = null, minute = null; in processSms() local
193 year = matcher.group(SMS_YEAR_TAG); in processSms()
200 missedCallTime = getEpochTime(year, month, day, hour, minute); in processSms()
DNitzData.java81 int year = 2000 + Integer.parseInt(nitzSubs[0]); in parse() local
82 if (year > MAX_NITZ_YEAR) { in parse()
84 Rlog.e(LOG_TAG, "NITZ year: " + year + " exceeds limit, skip NITZ time update"); in parse()
88 c.set(Calendar.YEAR, year); in parse()
/frameworks/base/core/java/android/text/format/
DTime.java108 public int year; field in Time
200 this.year = 1970; in initialize()
272 int y = this.year; in getActualMaximum()
283 int y = this.year; in getActualMaximum()
310 this.year = 0; in clear()
435 year = n; in parseInternal()
564 year = n; in parse3339Internal()
790 this.year = that.year; in set()
801 public void set(int second, int minute, int hour, int monthDay, int month, int year) { in set() argument
808 this.year = year; in set()
[all …]
DTimeFormatter.java368 int year = wallTime.getYear(); in handleToken() local
373 int len = isLeap(year) ? DAYSPERLYEAR : DAYSPERNYEAR; in handleToken()
383 ++year; in handleToken()
391 --year; in handleToken()
392 yday += isLeap(year) ? DAYSPERLYEAR : DAYSPERNYEAR; in handleToken()
397 outputYear(year, false, true, modifier); in handleToken()
399 outputYear(year, true, true, modifier); in handleToken()
535 private static boolean isLeap(int year) { in isLeap() argument
536 return (((year) % 4) == 0 && (((year) % 100) != 0 || ((year) % 400) == 0)); in isLeap()
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java200 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/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/tests/coretests/src/android/widget/
DDatePickerFocusTest.java127 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/
DNitzStateMachineTestSupport.java180 Builder setActualTimeUtc(int year, int monthInYear, int day, int hourOfDay, in setActualTimeUtc() argument
182 mActualTimeMillis = createUtcTime(year, monthInYear, day, hourOfDay, minute, in setActualTimeUtc()
257 private static long createUtcTime(int year, int monthInYear, int day, int hourOfDay, int minute, in createUtcTime() argument
261 cal.set(year, monthInYear - 1, day, hourOfDay, minute, second); in createUtcTime()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java752 int year = localDateTime.getYear(); in getDeliverPdu()
759 year = year > 2000 ? year - 2000 : year - 1900; in getDeliverPdu()
760 scts[0] = (byte) ((((year % 10) & 0x0F) << 4) | ((year / 10) & 0x0F)); in getDeliverPdu()
865 int year = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis() local
887 int fullYear = year >= 90 ? year + 1900 : year + 2000; in getSCTimestampMillis()
/frameworks/av/media/mtp/
DMtpUtils.cpp57 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()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java258 public int year; field in BearerData.TimeStamp
270 int year = IccUtils.cdmaBcdByteToInt(data[0]); in fromByteArray() local
271 if (year > 99 || year < 0) return null; in fromByteArray()
272 ts.year = year >= 96 ? year + 1900 : year + 2000; in fromByteArray()
295 int year = localDateTime.getYear(); in fromMillis() local
296 if (year < 1996 || year > 2095) return null; in fromMillis()
297 ts.year = year; in fromMillis()
307 int year = this.year % 100; // 00 - 99 in toByteArray() local
309 outStream.write((((year / 10) & 0x0F) << 4) | ((year % 10) & 0x0F)); in toByteArray()
321 LocalDateTime.of(year, monthOrdinal, monthDay, hour, minute, second); in toMillis()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzDataTest.java107 int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minute, int second) { in createUtcTime() argument
110 calendar.set(year, monthOfYear - 1, dayOfMonth, hourOfDay, minute, second); in createUtcTime()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java1159 Integer year) { in DateBuilder() argument
1170 if (year != null) { in DateBuilder()
1171 setYear(year); in DateBuilder()
1212 public DateBuilder setYear(int year) { in setYear() argument
1213 return setIntArgument(TtsSpan.ARG_YEAR, year); in setYear()

12