/frameworks/base/core/java/android/widget/ |
DayPickerView.java | 383 final int diffYears = end.get(Calendar.YEAR) - start.get(Calendar.YEAR);
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
TestLocalDate.java | 62 import static java.time.temporal.ChronoField.YEAR; 122 LocalDate t = TEST_2007_07_15.with(YEAR, 2007);
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
PhoneCallDetailsHelper.java | 273 * <p>If created today, DATE is 'Today' If created this year, DATE is 'MMM dd' Otherwise, DATE is 304 * Determines whether the year should be shown for the given date 306 * @return {@code true} if date is within the current year, {@code false} otherwise 310 int currentYear = mCalendar.get(Calendar.YEAR); 312 return currentYear != mCalendar.get(Calendar.YEAR);
|
/developers/build/prebuilts/gradle/AppUsageStatistics/Application/src/main/java/com/example/android/appusagestatistics/ |
AppUsageStatisticsFragment.java | 137 // Get the app statistics since one year ago from the current time. 139 cal.add(Calendar.YEAR, -1);
|
/developers/samples/android/system/AppUsageStatistics/Application/src/main/java/com/example/android/appusagestatistics/ |
AppUsageStatisticsFragment.java | 137 // Get the app statistics since one year ago from the current time. 139 cal.add(Calendar.YEAR, -1);
|
/development/apps/Development/src/com/android/development/ |
MediaScannerActivity.java | 190 map.put(Audio.Media.YEAR, baseYear + mRandom.nextInt(10));
|
/development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/ |
AppUsageStatisticsFragment.java | 137 // Get the app statistics since one year ago from the current time. 139 cal.add(Calendar.YEAR, -1);
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
DateFormat.java | 53 * combinations of fields, like Month and Year, but have it to be formatted appropriate to a given locale. This is done 171 * corresponding to the {@link Calendar#YEAR} field. 377 * corresponding to the {@link Calendar#YEAR} field. 378 * This displays the cyclic year name, if available. 650 * calendar, while the year within the current 60-year cycle is specified, 731 * calendar, while the year within the current 60-year cycle is specified, [all...] |
SimpleDateFormat.java | 106 * <th rowspan="6">year</th> 110 * <td>Year. Normally the length specifies the padding, but for two letters it also specifies the maximum 115 * <th>Year</th> 170 * <td>Year (in "Week of Year" based calendars). Normally the length specifies the padding, 171 * but for two letters it also specifies the maximum length. This year designation is used in ISO 172 * year-week calendar as defined by ISO 8601, but can be used in non-Gregorian based calendar systems 173 * where week date processing is desired. May not always be the same value as calendar year.</td> 179 * <td>Extended year. This is a single number designating the year of this calendar system, encompassin [all...] |
/external/icu/icu4c/source/i18n/ |
reldatefmt.cpp | 204 YEAR, 233 case YEAR: 253 case YEAR: 374 } else if (uprv_strncmp(keyword, "year", length) == 0) { 375 return YEAR; [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
DateFormat.java | 52 * combinations of fields, like Month and Year, but have it to be formatted appropriate to a given locale. This is done 174 * corresponding to the {@link Calendar#YEAR} field. 410 * corresponding to the {@link Calendar#YEAR} field. 411 * This displays the cyclic year name, if available. 698 * calendar, while the year within the current 60-year cycle is specified, 781 * calendar, while the year within the current 60-year cycle is specified, [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/ |
Chapter2_4Test.java | 91 cal.set(Calendar.YEAR, 2001);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
ResponseData.java | 236 // Fill year byte 237 data[1] = byteToBCD(mCalendar.get(java.util.Calendar.YEAR) % 100);
|
/libcore/ojluni/src/main/java/java/util/logging/ |
XMLFormatter.java | 61 sb.append(cal.get(Calendar.YEAR));
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
TestJapaneseChronology.java | 87 { ChronoField.YEAR, 1873, 1873, 999999999, 999999999}, 108 { JapaneseEra.HEISEI, Year.MAX_VALUE, 12, 31 }, 127 { JapaneseEra.HEISEI, Year.MAX_VALUE }, 186 int year = JAPANESE.prolepticYear(era, yearOfEra); local 187 System.out.printf("No DateTimeException with era=%s, year=%d%n", era, yearOfEra); 193 System.out.printf("No DateTimeException with era=%s, year=%d, dayOfYear=%d%n", era, yearOfEra, dayOfYear);
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
ClockDatabaseHelper.java | 90 ClockContract.InstancesColumns.YEAR + " INTEGER NOT NULL, " +
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
UtilityTest.java | 36 private void testParseDateTimesHelper(String date, int year, int month, 39 assertEquals(year, cal.get(Calendar.YEAR)); 59 private void testParseEmailDateTimeHelper(String date, int year, int month, 61 GregorianCalendar cal = new GregorianCalendar(year, month - 1, day,
|
/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
UtilsTest_GetDurationString.java | 52 * Return time in millis assuming that whose year is this year and month is Jan. 64 * Return time in millis assuming that whose year is this year and month is Feb. 76 return new GregorianCalendar().get(GregorianCalendar.YEAR);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
DateTimeFragment.java | 140 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
HelpFragment.java | 174 final int year = Calendar.getInstance().get(Calendar.YEAR); local 175 final String copyright = getString(R.string.copyright, year);
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
Calendar.java | 38 * <code>YEAR</code>, <code>MONTH</code>, <code>DAY</code>, <code>HOUR</code>, 72 * as well as their meaning. For example, the first month of the year has value 75 * <code>YEAR</code>. See individual field documentation and subclass 96 * first week of the month or year as a reference point. The first week of a 97 * month or year is defined as the earliest seven day period beginning on 99 * <code>getMinimalDaysInFirstWeek()</code> days of that month or year. Weeks 103 * designate the week before week 1 of a year as week <em>n</em> of the previous 104 * year. 108 * <code>Date</code> (such as only year and month but no day in the month), 116 * start of the epoch: i.e., YEAR = 1970, MONTH = JANUARY, DATE = 1, etc 2101 int year = get(EXTENDED_YEAR); local 4944 int year, month, dayOfMonth, dayOfYear; local 5714 int year; local [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
Calendar.java | 37 * <code>YEAR</code>, <code>MONTH</code>, <code>DAY</code>, <code>HOUR</code>, 71 * as well as their meaning. For example, the first month of the year has value 74 * <code>YEAR</code>. See individual field documentation and subclass 95 * first week of the month or year as a reference point. The first week of a 96 * month or year is defined as the earliest seven day period beginning on 98 * <code>getMinimalDaysInFirstWeek()</code> days of that month or year. Weeks 102 * designate the week before week 1 of a year as week <em>n</em> of the previous 103 * year. 107 * <code>Date</code> (such as only year and month but no day in the month), 115 * start of the epoch: i.e., YEAR = 1970, MONTH = JANUARY, DATE = 1, etc 2185 int year = get(EXTENDED_YEAR); local 5106 int year, month, dayOfMonth, dayOfYear; local 5891 int year; local [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
TCKDateTimeFormatters.java | 72 import static java.time.temporal.ChronoField.YEAR; 82 import java.time.Year; 227 Integer year, Integer month, Integer day, String offsetId, String zoneId, 229 TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId); 244 Integer year, Integer month, Integer day, String offsetId, String zoneId, 247 Expected expected = createDate(year, month, day); 321 Integer year, Integer month, Integer day, String offsetId, String zoneId, 323 TemporalAccessor test = buildAccessor(year, month, day, null, null, null, null, offsetId, zoneId); 338 Integer year, Integer month, Integer day, String offsetId, String zoneId, 341 Expected expected = createDate(year, month, day) [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
TimeZoneRegressionTest.java | 251 testCal.get(Calendar.YEAR), 326 int year = cal.get(Calendar.YEAR); local 336 long offset = tz.getOffset(era, year, month, day, dayOfWeek, millis); 776 cal.get(Calendar.YEAR), 805 * TimeZone broken in last hour of year [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
TimeZoneRegressionTest.java | 250 testCal.get(Calendar.YEAR), 325 int year = cal.get(Calendar.YEAR); local 335 long offset = tz.getOffset(era, year, month, day, dayOfWeek, millis); 775 cal.get(Calendar.YEAR), 804 * TimeZone broken in last hour of year [all...] |