/developers/build/prebuilts/gradle/SpeedTracker/Shared/src/main/java/com/example/android/wearable/speedtracker/common/ |
Utils.java | 27 * Builds a simple hash for a day by concatenating year and day of year together. Note that two 32 return day.get(Calendar.YEAR) + "-" + day.get(Calendar.DAY_OF_YEAR);
|
/developers/samples/android/wearable/wear/SpeedTracker/Shared/src/main/java/com/example/android/wearable/speedtracker/common/ |
Utils.java | 27 * Builds a simple hash for a day by concatenating year and day of year together. Note that two 32 return day.get(Calendar.YEAR) + "-" + day.get(Calendar.DAY_OF_YEAR);
|
/development/samples/browseable/SpeedTracker/Shared/src/com.example.android.wearable.speedtracker.common/ |
Utils.java | 27 * Builds a simple hash for a day by concatenating year and day of year together. Note that two 32 return day.get(Calendar.YEAR) + "-" + day.get(Calendar.DAY_OF_YEAR);
|
/libcore/luni/src/test/java/libcore/java/util/ |
DateTest.java | 49 c.set(Calendar.YEAR, 21); 52 c.set(Calendar.YEAR, 321); 63 c.set(Calendar.YEAR, 21); 66 c.set(Calendar.YEAR, 321);
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/picker/ |
MonthPicker.java | 34 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), null); 41 int year = (int) Math.min(value / 12 + 1970, Integer.MAX_VALUE); local 45 cal.set(year, month, 1); 55 protected void setCurrentDate(int year, int month) { 57 date.set(year, month, 1); 93 return getMaxDate().get(Calendar.YEAR); 98 return getMinDate().get(Calendar.YEAR); 103 protected int getMaxPositionInYear(int year) { 104 if (year == getMaxDate().get(Calendar.YEAR)) { [all...] |
DateDialogNormalizer.java | 30 picker.updateDate(maxCal.get(Calendar.YEAR), 34 picker.updateDate(minCal.get(Calendar.YEAR), 50 result.set(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), 60 int year, int month, int day, int hour, int minute, long minMillis, long maxMillis) { 63 calendar.set(year, month, day, hour, minute, 0); 72 calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH),
|
WeekPicker.java | 32 * Creates a date object from the |year| and |week|. 34 public static Calendar createDateFromWeek(int year, int week) { 40 date.set(Calendar.YEAR, year); 63 int year = date.get(Calendar.YEAR); local 67 year--; 69 year++; 71 return year; 79 protected void setCurrentDate(int year, int week) [all...] |
/frameworks/base/core/tests/coretests/src/android/text/format/ |
DateFormatTest.java | 37 assertFalse(DateFormat.hasDesignator("hh:mm 'yyyy'", DateFormat.YEAR));
|
/libcore/luni/src/main/java/java/util/ |
GregorianCalendar.java | 42 * the Julian calendar is the leap year rule. The Julian calendar specifies leap 54 * date, leap year rules were applied irregularly, and before 45 BC the Julian 58 * Prior to the institution of the Gregorian calendar, New Year's Day was March 65 * 53. Week 1 for a year is the earliest seven day period starting on 67 * {@code getMinimalDaysInFirstWeek()} days from that year. It thus 70 * Weeks between week 1 of one year and week 1 of the following year are 89 * {@code getFirstDayOfWeek()}. Unlike week 1 of a year, week 1 of a 132 * System.out.println("YEAR: " + calendar.get(Calendar.YEAR)); 681 int year = isSet[YEAR] ? fields[YEAR] : 1970; local 823 int year = 1970; local 1059 int year = 1970; local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
CalendarTest.java | 44 cal.set(Calendar.YEAR, 2002); 49 cal.set(Calendar.YEAR, 2002); 55 cal.set(Calendar.YEAR, 2002); 73 cal.set(Calendar.YEAR, 2002); 79 cal.set(Calendar.YEAR, 2002); 85 cal.set(Calendar.YEAR, 2002); 91 cal.set(Calendar.YEAR, 2002); 97 cal.set(Calendar.YEAR, 2002); 103 cal.set(Calendar.YEAR, 2002); 109 cal.set(Calendar.YEAR, 2002) 467 int year = Integer.MIN_VALUE + 71; local [all...] |
GregorianCalendarTest.java | 50 1972, gc.get(Calendar.YEAR)); 68 1972, gc.get(Calendar.YEAR)); 84 5983, gc.get(Calendar.YEAR)); 97 1972, gc.get(Calendar.YEAR)); 151 c1.set(Calendar.YEAR, 1999); 190 gc1.add(GregorianCalendar.YEAR, 1); 192 1999, gc1.get(GregorianCalendar.YEAR)); 196 assertEquals("Wrong result year 1", 2000, gc1.get(Calendar.YEAR)); 201 gc1.add(Calendar.YEAR, -1) [all...] |
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
DosUtils.java | 51 cal.set(Calendar.YEAR, 1980 + (dosDate >> 9)); 78 return 512 * (cal.get(Calendar.YEAR) - 1980) + 32 * (cal.get(Calendar.MONTH) + 1) +
|
/frameworks/base/core/java/android/widget/ |
SimpleMonthAdapter.java | 111 final int diffYear = mMaxDate.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR); 153 final int minYear = mMinDate.get(Calendar.YEAR); 156 final int year = currentMonth / 12 + minYear; local 158 if (isSelectedDayInMonth(year, month)) { 169 if (minMonth == month && minYear == year) { 176 if (mMaxDate.get(Calendar.MONTH) == month && mMaxDate.get(Calendar.YEAR) == year) { 182 v.setMonthParams(selectedDay, month, year, mFirstDayOfWeek, 189 private boolean isSelectedDayInMonth(int year, int month) [all...] |
YearPickerView.java | 114 final int maxYear = mMaxDate.get(Calendar.YEAR); 115 for (int year = mMinDate.get(Calendar.YEAR); year <= maxYear; year++) { 116 mAdapter.add(year); 147 int year = getItem(position); local 148 boolean selected = mController.getSelectedDay().get(Calendar.YEAR) == year; 189 mController.getSelectedDay().get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR)) [all...] |
/external/libmtp/ |
hotplug.sh.in | 160 YEAR=`echo ${DATE} | awk 'BEGIN { FS="/"} {print $1; }'` 163 if [ "${YEAR}" -gt "2002" ]; then 166 if [ "${YEAR}" -eq "2002" ]; then
|
/libcore/luni/src/test/java/libcore/icu/ |
DateIntervalFormatTest.java | 29 private static final long YEAR = 12 * MONTH; 44 c.set(Calendar.YEAR, 2009); 81 assertEquals("1/19/2009 ? 2/9/2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 86 assertEquals("19.01.2009 - 09.02.2012", formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 91 assertEquals("19/1/2009?9/2/2012", formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 96 assertEquals("19/1/2009?9/2/2012", formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_YEAR | FORMAT_NUMERIC_DATE)); 110 assertEquals("Jan 19, 2009 ? Feb 9, 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_DATE | FORMAT_ABBREV_ALL)); 111 assertEquals("Jan 2009 ? Feb 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_NO_MONTH_DAY | FORMAT_ABBREV_ALL)); 112 assertEquals("January 19, 2009 ? February 9, 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, 0)); 113 assertEquals("Monday, January 19, 2009 ? Thursday, February 9, 2012", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * YEAR, FORMAT_SHOW_WEEKDAY)) [all...] |
/frameworks/base/core/java/android/app/ |
DatePickerDialog.java | 45 private static final String YEAR = "year"; 62 * @param year The year that was set. 67 void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth); 73 * @param year The initial year of the dialog. 79 int year, 82 this(context, 0, callBack, year, monthOfYear, dayOfMonth); 99 * @param year The initial year of the dialog 198 final int year = savedInstanceState.getInt(YEAR); local [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
ASN1Time.java | 45 c.set(Calendar.YEAR, in.times[0]);
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
ContactInteractionUtil.java | 95 * Compares the day and year of two calendars. 98 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR) &&
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreAudioTestHelper.java | 89 public static final int YEAR = 1992; 134 values.put(Media.YEAR, YEAR); 165 public static final int YEAR = 1992; 213 values.put(Media.YEAR, YEAR);
|
/libcore/luni/src/main/java/libcore/icu/ |
DateIntervalFormat.java | 167 // If we've been asked to show the date, work out whether we think we should show the year. 170 // The caller explicitly wants us to show the year. 172 // The caller explicitly doesn't want us to show the year, even if we otherwise would. 209 return c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR) || 219 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR); 224 return c.get(Calendar.YEAR) == now.get(Calendar.YEAR);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
DateUtils.java | 39 * When parsing a date without a year, the system assumes 1970, which wasn't a leap-year. 40 * Let's add a one-off hack for that day of the year 68 * @param mustContainYear If true, the string is parsed as a date containing a year. If false, 69 * the string is parsed into a valid date even if the year field is missing. 109 calendar.set(Calendar.YEAR, 0); 114 private static final Calendar getUtcDate(int year, int month, int dayOfMonth) { 117 calendar.set(Calendar.YEAR, year); 124 // use the Calendar.YEAR field to track whether or not the year is set instead o [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
XMPDateTimeImpl.java | 32 private int year = 0; field in class:XMPDateTimeImpl 80 this.year = intCalendar.get(Calendar.YEAR); 102 this.year = calendar.get(Calendar.YEAR); 130 return year; 137 public void setYear(int year) 139 this.year = Math.min(Math.abs(year), 9999); 319 calendar.set(Calendar.YEAR, year) [all...] |
/frameworks/base/core/java/android/util/ |
MonthDisplayHelper.java | 32 // holds current month, year, helps compute display 42 * @param year The year. 46 public MonthDisplayHelper(int year, int month, int weekStartDay) { 54 mCalendar.set(Calendar.YEAR, year); 66 public MonthDisplayHelper(int year, int month) { 67 this(year, month, Calendar.SUNDAY); 72 return mCalendar.get(Calendar.YEAR); 197 // helper method that recalculates cached values based on current month / year [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
FormattedDateBuilder.java | 46 * Times not today, but within the same calendar year will display absolute date, e.g. Nov 6 47 * Times not in the same year display a numeric absolute date, e.g. 11/18/12 67 * Times more than two weeks ago but within the same calendar year will display 69 * Times not in the same year display a numeric absolute date, e.g. 11/18/12 120 return (nowCal.get(Calendar.YEAR) == whenCal.get(Calendar.YEAR));
|