HomeSort by relevance Sort by last modified time
    Searched refs:YEAR (Results 176 - 200 of 462) sorted by null

1 2 3 4 5 6 78 91011>>

  /libcore/ojluni/src/test/java/time/tck/java/time/format/
TCKSignStyle.java 121 DateTimeFormatter formatter = builder.appendValue(ChronoField.YEAR, 2, 4, style)
  /packages/apps/DeskClock/src/com/android/deskclock/provider/
AlarmInstance.java 60 YEAR,
96 values.put(YEAR, instance.mYear);
373 mYear = calendar.get(Calendar.YEAR);
387 calendar.set(Calendar.YEAR, mYear);
  /packages/apps/Settings/src/com/android/settings/datetime/
TimeFormatPreferenceController.java 69 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0);
  /libcore/ojluni/src/test/java/time/tck/java/time/temporal/
TCKWeekFields.java 66 import static java.time.temporal.ChronoField.YEAR;
295 "Range min should be same as WeekOfYear for first day of Year: "
298 "Range max should be same as WeekOfYear for last day of Year: "
322 assertEquals(result.get(woyField), woy, "Week of Year should not change");
386 .appendValue(YEAR).appendLiteral(':')
407 .appendValue(YEAR).appendLiteral(':')
428 .appendValue(YEAR).appendLiteral(':')
454 .appendValue(YEAR).appendLiteral(':')
476 .appendValue(YEAR).appendLiteral(':')
501 .appendValue(YEAR).appendLiteral(':'
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Audio_AlbumsTest.java 102 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.FIRST_YEAR)));
103 assertEquals(Audio1.YEAR, c.getInt(c.getColumnIndex(Albums.LAST_YEAR)));
  /external/icu/android_icu4j/src/main/java/android/icu/text/
RelativeDateTimeFormatter.java 205 * Year
207 YEAR,
261 * or "next year"
266 * Specifies that relative unit is year, e.g. "last year",
270 YEAR,
452 * @param unit the unit e.g day? month? year?
503 case YEAR: relunit = RelativeUnit.YEARS; break;
597 case YEAR: absunit = AbsoluteUnit.YEAR; break
    [all...]
  /external/icu/icu4c/source/tools/genren/
genren.pl 73 $YEAR = strftime "%Y",localtime;
78 * Copyright (C) 2002-$YEAR, International Business Machines
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
RelativeDateTimeFormatter.java 229 * Year
232 YEAR,
294 * or "next year"
300 * Specifies that relative unit is year, e.g. "last year",
305 YEAR,
507 * @param unit the unit e.g day? month? year?
560 case YEAR: relunit = RelativeUnit.YEARS; break;
656 case YEAR: absunit = AbsoluteUnit.YEAR; break
    [all...]
  /frameworks/base/core/java/android/widget/
YearPickerView.java 62 final int year = mAdapter.getYearForPosition(position);
63 mAdapter.setSelection(year);
66 mOnYearSelectedListener.onYearChanged(YearPickerView.this, year);
80 * Sets the currently selected year. Jumps immediately to the new year.
82 * @param year the target year
84 public void setYear(final int year) {
85 mAdapter.setSelection(year);
90 final int position = mAdapter.getPositionForYear(year);
182 final int year = getYearForPosition(position); local
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
MediaMetadataTest.java 40 YEAR, DURATION, NUM_TRACKS, WRITER
115 Log.v(TAG, "Year : "+ value);
116 assertEquals(TAG, meta_data_file[fileIndex][meta.YEAR.ordinal()], value);
  /frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
MonthAdapter.java 53 int year; field in class:MonthAdapter.CalendarDay
66 year = calendar.get(Calendar.YEAR);
71 public CalendarDay(int year, int month, int day) {
72 setDay(year, month, day);
76 year = date.year;
81 public void setDay(int year, int month, int day) {
82 this.year = year;
192 final int year = position \/ MONTHS_IN_YEAR + mController.getMinYear(); local
    [all...]
MonthView.java 76 public static final String VIEW_PARAMS_YEAR = "year";
343 throw new InvalidParameterException("You must specify month and year for this view");
368 mCalendar.set(Calendar.YEAR, mYear);
409 return mYear == today.year &&
507 * @param year The year of this month day
517 public abstract void drawMonthDay(Canvas canvas, int year, int month, int day,
586 * @return true if the specified year/month/day are within the range set by minDate and maxDate.
590 protected boolean isOutOfRange(int year, int month, int day) {
591 if (isBeforeMin(year, month, day))
    [all...]
  /libcore/ojluni/src/main/java/java/text/
DateFormat.java 176 * Useful constant for YEAR field alignment.
    [all...]
  /libcore/ojluni/src/main/java/java/time/chrono/
ChronoLocalDate.java 66 import static java.time.temporal.ChronoField.YEAR;
134 * returns the proleptic year. That decision ensures that developers can think of
135 * {@code LocalDate} instances as consisting of three fields - year, month-of-year and day-of-month.
137 * era, year-of-era, month-of-year and day-of-month. The extra era field is frequently
140 * Whenever one reign ends and another starts, the year-of-era is reset to one.
161 * Code that adds 12 months to a date and assumes that a year has been added is invalid.
164 * Code that adds one month to a date and assumes that the month-of-year value will increase
165 * by one or wrap to the next year is invalid. Some calendar systems have a variable numbe
    [all...]
  /libcore/ojluni/src/test/java/time/tck/java/time/
TestIsoChronology.java 65 import static java.time.temporal.ChronoField.YEAR;
179 public void test_badDates(int year, int month, int dom) {
180 IsoChronology.INSTANCE.date(year, month, dom);
185 int year = 5; local
188 LocalDate test = IsoChronology.INSTANCE.date(IsoEra.BCE, year, month, dayOfMonth);
190 assertEquals(test.get(ChronoField.YEAR_OF_ERA), year); local
194 assertEquals(test.get(YEAR), 1 + (-1 * year));
196 assertEquals(test.get(YEAR_OF_ERA), year); local
271 public void test_isLeapYear(int year, boolean isLeapYear)
    [all...]
  /libcore/ojluni/src/test/java/time/test/java/time/chrono/
TestExampleCode.java 93 int year = now1.get(ChronoField.YEAR); local
95 dow, day, month, year);
104 // Print today's date and the last day of the year for the Thai Buddhist Calendar.
111 System.out.printf(" %s: 1st of year: %s; end of year: %s%n", last.getChronology().getId(),
153 int year = now1.get(ChronoField.YEAR); local
155 dow, day, month, year);
157 // Print today's date and the last day of the year for the Thai Buddhist Calendar
    [all...]
  /libcore/ojluni/src/test/java/time/test/java/time/format/
TestDateTimeFormatterBuilder.java 66 import static java.time.temporal.ChronoField.YEAR;
256 .appendValue(YEAR, 4, 10, SignStyle.EXCEEDS_PAD)
260 assertEquals(f.toString(), "Value(Year,4,10,EXCEEDS_PAD)Value(MonthOfYear,2)Value(DayOfMonth,2)");
262 assertEquals(parsed.getLong(YEAR), 2009L);
275 builder.appendValueReduced(YEAR, 2, 2, 2000);
277 assertEquals(f.toString(), "ReducedValue(Year,2,2,2000)");
279 assertEquals(parsed.getLong(YEAR), 2012L);
284 builder.appendValue(MONTH_OF_YEAR, 1, 2, SignStyle.NORMAL).appendValueReduced(YEAR, 2, 2, 2000);
286 assertEquals(f.toString(), "Value(MonthOfYear,1,2,NORMAL)ReducedValue(Year,2,2,2000)");
291 assertEquals(parsed.getLong(YEAR), 2023L)
    [all...]
  /packages/apps/ExactCalculator/src/com/android/calculator2/
HistoryAdapter.java 164 final int year = mCalendar.get(Calendar.YEAR); local
167 final int prevYear = mCalendar.get(Calendar.YEAR);
169 return year != prevYear || day != prevDay;
  /libcore/ojluni/src/test/java/time/tck/java/time/chrono/
TCKJapaneseChronology.java 64 import static java.time.temporal.ChronoField.YEAR;
78 import java.time.Year;
358 public void test_badDates(int year, int month, int dom) {
359 JapaneseChronology.INSTANCE.date(year, month, dom);
393 assertEquals(JapaneseChronology.INSTANCE.isLeapYear(expectedProlepticYear), Year.of(expectedProlepticYear).isLeap());
396 jdate = jdate.with(ChronoField.YEAR, expectedProlepticYear).with(ChronoField.MONTH_OF_YEAR, 2);
446 int year = JapaneseChronology.INSTANCE.prolepticYear(era, 1); local
463 assertEquals(base.getLong(YEAR), 1988L);
475 JapaneseDate test = base.with(YEAR, 1987);
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/util/
IslamicCalendar.java 30 * The Islamic calendar is strictly lunar, and thus an Islamic year of twelve
31 * lunar months does not correspond to the solar year used by most other
32 * calendar systems, including the Gregorian. An Islamic year is, on average,
33 * about 354 days long, so each successive Islamic year starts about 11 days
34 * earlier in the corresponding Gregorian year.
94 * Constant for Muharram, the 1st month of the Islamic year.
99 * Constant for Safar, the 2nd month of the Islamic year.
104 * Constant for Rabi' al-awwal (or Rabi' I), the 3rd month of the Islamic year.
109 * Constant for Rabi' al-thani or (Rabi' II), the 4th month of the Islamic year.
114 * Constant for Jumada al-awwal or (Jumada I), the 5th month of the Islamic year
786 int year; local
812 int year =0, month=0, dayOfMonth=0, dayOfYear=0; local
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
IslamicCalendar.java 29 * The Islamic calendar is strictly lunar, and thus an Islamic year of twelve
30 * lunar months does not correspond to the solar year used by most other
31 * calendar systems, including the Gregorian. An Islamic year is, on average,
32 * about 354 days long, so each successive Islamic year starts about 11 days
33 * earlier in the corresponding Gregorian year.
99 * Constant for Muharram, the 1st month of the Islamic year.
105 * Constant for Safar, the 2nd month of the Islamic year.
111 * Constant for Rabi' al-awwal (or Rabi' I), the 3rd month of the Islamic year.
117 * Constant for Rabi' al-thani or (Rabi' II), the 4th month of the Islamic year.
123 * Constant for Jumada al-awwal or (Jumada I), the 5th month of the Islamic year
818 int year; local
845 int year =0, month=0, dayOfMonth=0, dayOfYear=0; local
    [all...]
  /libcore/ojluni/src/main/java/java/time/format/
DateTimeFormatter.java 72 import static java.time.temporal.ChronoField.YEAR;
238 * <td> Year and day of year </td>
243 * <td> Year and Week </td>
281 * u year year 2004; 04
282 * y year-of-era year 2004; 04
283 * D day-of-year number 189
284 * M/L month-of-year number/text 7; 07; Jul; July;
    [all...]
  /libcore/ojluni/src/main/java/java/util/
Calendar.java 60 * #fields calendar fields} such as <code>YEAR</code>, <code>MONTH</code>,
131 * first week of the month or year as a reference point. The first week of a
132 * month or year is defined as the earliest seven day period beginning on
134 * <code>getMinimalDaysInFirstWeek()</code> days of that month or year. Weeks
138 * designate the week before week 1 of a year as week <code><i>n</i></code> of
139 * the previous year.
145 * year and month with no day of month), or there may be inconsistent
160 * YEAR + MONTH + DAY_OF_MONTH
161 * YEAR + MONTH + WEEK_OF_MONTH + DAY_OF_WEEK
162 * YEAR + MONTH + DAY_OF_WEEK_IN_MONTH + DAY_OF_WEE
    [all...]
  /external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
SimpleDateFormatICU.java 249 private static final int JAPANESE_YEAR = 12; // Japanese calendar year @ SAMPLE_TIME
250 private static final int THAI_YEAR = 2543; // Thai Buddhist calendar year @ SAMPLE_TIME
268 int year = newCalendar.get(Calendar.YEAR); local
269 if (year == JAPANESE_YEAR) {
271 } else if (year == THAI_YEAR) {
353 } else if (icuAttribute == DateFormat.Field.YEAR) {
354 jdkAttribute = java.text.DateFormat.Field.YEAR;
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DatePicker.java 41 * A view for selecting a month / year / day based on a calendar like layout.
78 * @param year The year that was set.
83 void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth);
149 mYearPicker = findViewById(R.id.year);
187 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null);
252 } else if (c == DateFormat.YEAR && !didYear) {
271 public void updateDate(int year, int monthOfYear, int dayOfMonth) {
272 if (mYear != year || mMonth != monthOfYear || mDay != dayOfMonth) {
273 mYear = (mYearOptional && year == 0) ? getCurrentYear() : year
470 int year = (mYearOptional && !mHasYear) ? 0 : mYear; local
    [all...]

Completed in 2127 milliseconds

1 2 3 4 5 6 78 91011>>