/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/ |
D | DateTime.java | 34 private final int year; field in DateTime 43 this.year = convertToYear(yearString); in DateTime() 44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone); in DateTime() 54 int year = Integer.parseInt(yearString); in convertToYear() local 58 if (year >= 0 && year < 50) in convertToYear() 59 return 2000 + year; in convertToYear() 61 return 1900 + year; in convertToYear() 63 return 1900 + year; in convertToYear() 65 return year; in convertToYear() 69 …public static Date convertToDate(int year, int month, int day, int hour, int minute, int second, i… in convertToDate() argument [all …]
|
/packages/apps/Contacts/src/com/android/contacts/datepicker/ |
D | DatePickerDialog.java | 75 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth); in onDateSet() argument 89 int year, in DatePickerDialog() argument 94 this(context, /* themeId = */ 0, callBack, year, monthOfYear, dayOfMonth, in DatePickerDialog() 111 int year, in DatePickerDialog() argument 118 mInitialYear = year; in DatePickerDialog() 149 public void onDateChanged(DatePicker view, int year, int month, int day) { in onDateChanged() argument 150 updateTitle(year, month, day); in onDateChanged() 153 private void updateTitle(int year, int month, int day) { in updateTitle() argument 155 calendar.set(Calendar.YEAR, year); in updateTitle() 159 year == NO_YEAR ? mTitleNoYearDateFormat : mTitleDateFormat; in updateTitle() [all …]
|
D | DatePicker.java | 91 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth); in onDateChanged() argument 157 mYearPicker = (NumberPicker) findViewById(R.id.year); in DatePicker() 229 public void updateDate(int year, int monthOfYear, int dayOfMonth) { in updateDate() argument 230 if (mYear != year || mMonth != monthOfYear || mDay != dayOfMonth) { in updateDate() 231 mYear = (mYearOptional && year == NO_YEAR) ? getCurrentYear() : year; in updateDate() 255 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, in SavedState() argument 258 mYear = year; in SavedState() 358 public void init(int year, int monthOfYear, int dayOfMonth, in init() argument 360 init(year, monthOfYear, dayOfMonth, false, onDateChangedListener); in init() 371 public void init(int year, int monthOfYear, int dayOfMonth, boolean yearOptional, in init() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | SimpleDate.java | 32 public int year; // YYYY field in SimpleDate 51 this.year = sCalendarInstance.get(Calendar.YEAR); in setTimestamp() 64 result = prime * result + year; in hashCode() 80 if (year != other.year) { in equals() 94 int yearDiff = this.year - other.getYear(); in compareTo() 116 return year; in getYear()
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlertServiceTest.java | 623 int year = now.year; in testGenerateAlerts_refreshTime() local 628 long allDayStart = Utils.createTimeInMillis(0, 0, 0, day, month, year, Time.TIMEZONE_UTC); in testGenerateAlerts_refreshTime() 632 Utils.createTimeInMillis(0, 0, 10, day, month, year, Time.getCurrentTimezone()), in testGenerateAlerts_refreshTime() 633 Utils.createTimeInMillis(0, 30, 10, day, month, year, Time.getCurrentTimezone()), in testGenerateAlerts_refreshTime() 637 Utils.createTimeInMillis(0, 0, 6, day, month, year, Time.getCurrentTimezone()), in testGenerateAlerts_refreshTime() 638 Utils.createTimeInMillis(0, 0, 6, day, month, year, Time.getCurrentTimezone()), 0); in testGenerateAlerts_refreshTime() 645 yesterday.year, Time.getCurrentTimezone()), in testGenerateAlerts_refreshTime() 646 Utils.createTimeInMillis(0, 0, 7, day, month, year, Time.getCurrentTimezone()), 0); in testGenerateAlerts_refreshTime() 650 long currentTime = Utils.createTimeInMillis(0, 0, 0, day, month, year, in testGenerateAlerts_refreshTime() 662 currentTime = Utils.createTimeInMillis(0, 30, 0, day, month, year, in testGenerateAlerts_refreshTime() [all …]
|
D | Utils.java | 23 int month, int year, String timezone) { in createTimeInMillis() argument 25 t.set(second, minute, hour, monthDay, month, year); in createTimeInMillis()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/ |
D | DateTimeParser.java | 100 private String year; field in DateTimeParser.Date 104 public Date(String year, int month, int day) { in Date() argument 105 this.year = year; in Date() 110 public String getYear() { return year; } in getYear() 206 y = year(); in date() 276 final public String year() throws ParseException { in year() method in DateTimeParser
|
/packages/apps/Settings/src/com/android/settings/datetime/ |
D | DatePreferenceController.java | 82 public void onDateSet(DatePicker view, int year, int month, int day) { in onDateSet() argument 83 setDate(year, month, day); in onDateSet() 106 void setDate(int year, int month, int day) { in setDate() argument 109 c.set(Calendar.YEAR, year); in setDate()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | EventFieldEditorView.java | 233 public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { in createDatePickerDialog() 234 if (year == 0 && !isYearOptional) throw new IllegalStateException(); in createDatePickerDialog() 242 outCalendar.set(year == DatePickerDialog.NO_YEAR ? 2000 : year, monthOfYear, in createDatePickerDialog() 246 if (year == 0) { in createDatePickerDialog()
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | UtilityTest.java | 36 private void testParseDateTimesHelper(String date, int year, int month, in testParseDateTimesHelper() argument 39 assertEquals(year, cal.get(Calendar.YEAR)); in testParseDateTimesHelper() 59 private void testParseEmailDateTimeHelper(String date, int year, int month, in testParseEmailDateTimeHelper() argument 61 GregorianCalendar cal = new GregorianCalendar(year, month - 1, day, in testParseEmailDateTimeHelper()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
D | DateTileView.java | 91 public void setDate(int date, int month, int year) { in setDate() argument 106 if (year != mYear) { in setDate() 107 mYear = year; in setDate()
|
/packages/services/Car/tools/emulator/ |
D | vhal_const_generate.py | 31 year = datetime.datetime.now().year 32 print("# Copyright (C) %s The Android Open Source Project" % year, file=dest)
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | WeekNumberTest.java | 37 public DateAndWeekNumber(int year, int month, int day, int expectedWeekNumber) { in DateAndWeekNumber() argument 41 date.set(0, 0, 0, day, month, year); in DateAndWeekNumber() 44 allDayDate.set(day, month, year); in DateAndWeekNumber()
|
D | UtilsTests.java | 141 int month, int year) { in createTimeInMillis() argument 142 return createTimeInMillis(second, minute, hour, monthDay, month, year, in createTimeInMillis() 147 int month, int year, String timezone) { in createTimeInMillis() argument 149 t.set(second, minute, hour, monthDay, month, year); in createTimeInMillis()
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
D | EditEventView.java | 338 public void onDateSet(DatePickerDialog view, int year, int month, int monthDay) { in onDateSet() argument 339 Log.d(TAG, "onDateSet: " + year + " " + month + " " + monthDay); in onDateSet() 351 int yearDuration = endTime.year - startTime.year; in onDateSet() 355 startTime.year = year; in onDateSet() 361 endTime.year = year + yearDuration; in onDateSet() 374 endTime.year = year; in onDateSet() 520 mTime.year, mTime.month, mTime.monthDay); in onClick()
|
/packages/apps/Calendar/src/com/android/calendar/recurrencepicker/ |
D | RecurrencePickerDialog.java | 205 dest.writeInt(endDate.year); in writeToParcel() 739 mModel.endDate.year += 3; in onCreateView() 1105 public void onDateSet(DatePickerDialog view, int year, int monthOfYear, int dayOfMonth) { 1110 mModel.endDate.year = year; 1152 mDatePickerDialog = DatePickerDialog.newInstance(this, mModel.endDate.year,
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayOfMonthCursor.java | 50 public DayOfMonthCursor(int year, int month, int dayOfMonth, int weekStartDay) { in DayOfMonthCursor() argument 51 super(year, month, weekStartDay); in DayOfMonthCursor()
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | HistoryAdapter.java | 164 final int year = mCalendar.get(Calendar.YEAR); in shouldShowHeader() local 169 return year != prevYear || day != prevDay; in shouldShowHeader()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | Shared.java | 148 if (then.year != now.year) { in formatTime()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | HelpFragment.java | 174 final int year = Calendar.getInstance().get(Calendar.YEAR); in onCreateDialog() local 175 final String copyright = getString(R.string.copyright, year); in onCreateDialog()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | DateUtils.java | 112 private static final Calendar getUtcDate(int year, int month, int dayOfMonth) { in getUtcDate() argument 115 calendar.set(Calendar.YEAR, year); in getUtcDate()
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | SimpleWeekView.java | 296 if (time.year == today.year && time.yearDay == today.yearDay) { in setWeekParams()
|
D | SimpleDayPickerFragment.java | 150 if (day.year != mSelectedDay.year || day.yearDay != mSelectedDay.yearDay) {
|
D | MonthByWeekFragment.java | 460 if (time.year == mDesiredDay.year && time.month == mDesiredDay.month) { in setMonthDisplayed()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 537 if (time.year != time2.year || time.yearDay != time2.yearDay) {
|