HomeSort by relevance Sort by last modified time
    Searched refs:Calendar (Results 1 - 25 of 328) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DosUtils.java 22 import java.util.Calendar;
42 final Calendar cal = Calendar.getInstance();
44 cal.set(Calendar.MILLISECOND, 0);
45 cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2);
46 cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f);
47 cal.set(Calendar.HOUR_OF_DAY, dosTime >> 11);
49 cal.set(Calendar.DATE, dosDate & 0x1f);
50 cal.set(Calendar.MONTH, ((dosDate >> 5) & 0x0f) - 1);
51 cal.set(Calendar.YEAR, 1980 + (dosDate >> 9))
    [all...]
  /external/nist-sip/java/javax/sip/header/
DateHeader.java 3 import java.util.Calendar;
8 Calendar getDate();
9 void setDate(Calendar date);
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
CalendarTest.java 22 import java.util.Calendar;
37 * @tests java.util.Calendar#set(int, int)
41 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("EST"));
44 cal.set(Calendar.YEAR, 2002);
49 cal.set(Calendar.YEAR, 2002);
50 cal.set(Calendar.MONTH, Calendar.MARCH);
55 cal.set(Calendar.YEAR, 2002);
56 cal.set(Calendar.DATE, 24)
570 Calendar calendar = Calendar.getInstance(); local
627 Calendar calendar = Calendar.getInstance(); local
687 Calendar calendar = Calendar.getInstance(Locale.JAPAN); local
695 Calendar calendar = Calendar.getInstance(); local
721 Calendar calendar = Calendar.getInstance(); local
734 Calendar calendar = Calendar.getInstance(); local
    [all...]
GregorianCalendarTest.java 21 import java.util.Calendar;
36 assertTrue("Constructed incorrect calendar", (new GregorianCalendar()
45 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, 13);
46 assertEquals("Incorrect calendar constructed 1",
47 1972, gc.get(Calendar.YEAR));
48 assertTrue("Incorrect calendar constructed 2",
49 gc.get(Calendar.MONTH) == Calendar.OCTOBER);
50 assertEquals("Incorrect calendar constructed 3", 13, gc
51 .get(Calendar.DAY_OF_MONTH))
    [all...]
SimpleTimeZoneTest.java 20 import java.util.Calendar;
53 SimpleTimeZone st = new SimpleTimeZone(1000, "TEST", Calendar.NOVEMBER,
54 1, Calendar.SUNDAY, 0, Calendar.NOVEMBER, -1, Calendar.SUNDAY,
57 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER,
60 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER,
74 SimpleTimeZone st = new SimpleTimeZone(1000, "TEST", Calendar.NOVEMBER,
75 1, Calendar.SUNDAY, 0, Calendar.NOVEMBER, -1, Calendar.SUNDAY
    [all...]
  /libcore/luni/src/test/java/tests/api/java/util/
CalendarTest.java 22 import java.util.Calendar;
37 * java.util.Calendar#set(int, int)
41 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("EST"));
44 cal.set(Calendar.YEAR, 2002);
49 cal.set(Calendar.YEAR, 2002);
50 cal.set(Calendar.MONTH, Calendar.MARCH);
55 cal.set(Calendar.YEAR, 2002);
56 cal.set(Calendar.DATE, 24)
570 Calendar calendar = Calendar.getInstance(); local
627 Calendar calendar = Calendar.getInstance(); local
687 Calendar calendar = Calendar.getInstance(Locale.JAPAN); local
695 Calendar calendar = Calendar.getInstance(); local
721 Calendar calendar = Calendar.getInstance(); local
734 Calendar calendar = Calendar.getInstance(); local
    [all...]
SimpleTimeZoneTest.java 20 import java.util.Calendar;
53 SimpleTimeZone st = new SimpleTimeZone(1000, "TEST", Calendar.NOVEMBER,
54 1, Calendar.SUNDAY, 0, Calendar.NOVEMBER, -1, Calendar.SUNDAY,
57 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER,
60 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER,
68 1, Calendar.SUNDAY, 0, Calendar.NOVEMBER, -1, Calendar.SUNDAY
    [all...]
  /cts/tests/tests/util/src/android/util/cts/
MonthDisplayHelperTest.java 19 import java.util.Calendar;
35 Calendar.DECEMBER, Calendar.MONDAY);
36 mHelper = new MonthDisplayHelper(2008, Calendar.DECEMBER);
43 Calendar.DECEMBER, Calendar.SUNDAY - 1);
49 Calendar.DECEMBER, Calendar.SATURDAY + 1);
54 mHelper = new MonthDisplayHelper(-1, Calendar.DECEMBER,
55 Calendar.SATURDAY + 1)
    [all...]
TimeUtilsTest.java 20 import java.util.Calendar;
38 Calendar c = Calendar.getInstance(tz);
41 c.set(2008, Calendar.OCTOBER, 20, 12, 00, 00);
45 c.set(2009, Calendar.JANUARY, 20, 12, 00, 00);
59 Calendar c = Calendar.getInstance(tz);
62 c.set(2008, Calendar.OCTOBER, 20, 12, 00, 00);
75 Calendar c = Calendar.getInstance(tz)
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/parser/
HeaderParser.java 47 * @return an integer with the calendar content for wkday.
56 return Calendar.MONDAY;
58 return Calendar.TUESDAY;
60 return Calendar.WEDNESDAY;
62 return Calendar.THURSDAY;
64 return Calendar.FRIDAY;
66 return Calendar.SATURDAY;
68 return Calendar.SUNDAY;
81 protected Calendar date() throws ParseException {
83 Calendar retval = Calendar.getInstance(TimeZone.getTimeZone("GMT"))
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
CalendarTest.java 19 import java.util.Calendar;
44 // get(Calendar.ZONE_OFFSET) returns the zone offset of the time zone passed to setTimeZone.
45 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("UTC"), Locale.US);
46 assertEquals(0, cal.get(Calendar.ZONE_OFFSET));
49 assertEquals(25200000, cal.get(Calendar.ZONE_OFFSET));
53 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); local
54 calendar.set(2011, 9, 15, 1, 0); // 01:00 GMT-3
55 double hoursSinceEpoch = hoursSinceEpoch(calendar);
69 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); local
78 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); local
87 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); local
96 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); local
105 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); local
114 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); local
125 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); local
149 Calendar calendar = new GregorianCalendar(timeZone); local
188 Calendar calendar = new GregorianCalendar(1970, 1, 1, 0, 0, 0); local
    [all...]
DateTest.java 19 import java.util.Calendar;
37 Calendar c = Calendar.getInstance();
39 c.set(Calendar.YEAR, 21);
42 c.set(Calendar.YEAR, 321);
  /libcore/luni/src/main/java/org/apache/harmony/security/asn1/
ASN1Time.java 26 import java.util.Calendar;
45 c.set(Calendar.YEAR, in.times[0]);
46 c.set(Calendar.MONTH, in.times[1]-1);
47 c.set(Calendar.DAY_OF_MONTH, in.times[2]);
48 c.set(Calendar.HOUR_OF_DAY, in.times[3]);
49 c.set(Calendar.MINUTE, in.times[4]);
50 c.set(Calendar.SECOND, in.times[5]);
51 c.set(Calendar.MILLISECOND, in.times[6]);
  /frameworks/base/core/java/android/util/
MonthDisplayHelper.java 19 import java.util.Calendar;
23 * 6 row calendar grid format.
33 private Calendar mCalendar;
48 if (weekStartDay < Calendar.SUNDAY || weekStartDay > Calendar.SATURDAY) {
53 mCalendar = Calendar.getInstance();
54 mCalendar.set(Calendar.YEAR, year);
55 mCalendar.set(Calendar.MONTH, month);
56 mCalendar.set(Calendar.DAY_OF_MONTH, 1);
57 mCalendar.set(Calendar.HOUR_OF_DAY, 0)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
MonthDisplayHelperTest.java 21 import java.util.Calendar;
35 Calendar.WEDNESDAY,
36 new MonthDisplayHelper(2007, Calendar.AUGUST).getFirstDayOfMonth());
39 Calendar.SATURDAY,
40 new MonthDisplayHelper(2007, Calendar.SEPTEMBER).getFirstDayOfMonth());
46 new MonthDisplayHelper(2007, Calendar.SEPTEMBER).getNumberOfDaysInMonth());
51 MonthDisplayHelper helper = new MonthDisplayHelper(2007, Calendar.SEPTEMBER);
65 Calendar.SEPTEMBER, Calendar.MONDAY);
80 Calendar.SEPTEMBER, Calendar.SATURDAY)
    [all...]
DayOfMonthCursorTest.java 21 import java.util.Calendar;
32 Calendar.SEPTEMBER, 11, Calendar.SUNDAY);
45 Calendar.SEPTEMBER, 3, Calendar.SUNDAY);
47 assertEquals(Calendar.SEPTEMBER, mc.getMonth());
66 assertEquals(Calendar.AUGUST, mc.getMonth());
75 Calendar.SEPTEMBER, 28, Calendar.SUNDAY);
77 assertEquals(Calendar.SEPTEMBER, mc.getMonth())
    [all...]
TimeUtilsTest.java 21 import java.util.Calendar;
40 Calendar c = Calendar.getInstance(tz);
43 c.set(2008, Calendar.OCTOBER, 20, 12, 00, 00);
47 c.set(2009, Calendar.JANUARY, 20, 12, 00, 00);
61 Calendar c = Calendar.getInstance(tz);
64 c.set(2008, Calendar.OCTOBER, 20, 12, 00, 00);
77 Calendar c = Calendar.getInstance(tz)
    [all...]
  /external/icu4c/test/intltest/
callimts.h 17 * This test verifies the behavior of Calendar around the very earliest limits
27 virtual void test(UDate millis, Calendar *cal, DateFormat *fmt);
44 * @param cal The calendar instance to be tested.
45 * @param leapMonth true if the calendar system has leap months
47 void doTheoreticalLimitsTest(Calendar& cal, UBool leapMonth);
51 * test calendar 'cal' through 'numberOfDays' sequential days starting
67 * @param cal the calendar to be tested
76 void doLimitsTest(Calendar& cal, const int32_t* fieldsToTest, UDate startDate, int32_t testDuration);
81 void doLimitsTest(Calendar& cal, UDate startDate, int32_t endTime);
83 UnicodeString& ymdToString(const Calendar& cal, UnicodeString& str)
    [all...]
  /external/nist-sip/java/gov/nist/javax/sip/header/
SIPDate.java 31 import java.util.Calendar;
130 private java.util.Calendar javaCal;
173 wkday = javaCal.get(Calendar.DAY_OF_WEEK);
175 case Calendar.MONDAY :
178 case Calendar.TUESDAY :
181 case Calendar.WEDNESDAY :
184 case Calendar.THURSDAY :
187 case Calendar.FRIDAY :
190 case Calendar.SATURDAY :
193 case Calendar.SUNDAY
    [all...]
  /external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
XMPDateTimeImpl.java 12 import java.util.Calendar;
23 * The implementation of <code>XMPDateTime</code>. Internally a <code>calendar</code> is used
24 * plus an additional nano seconds field, because <code>Calendar</code> supports only milli
46 * The nano seconds take micro and nano seconds, while the milli seconds are in the calendar.
62 * Creates an <code>XMPDateTime</code>-instance from a calendar.
64 * @param calendar a <code>Calendar</code>
66 public XMPDateTimeImpl(Calendar calendar)
68 // extract the date and timezone from the calendar provide
100 GregorianCalendar calendar = new GregorianCalendar(timeZone); local
316 GregorianCalendar calendar = (GregorianCalendar) Calendar.getInstance(Locale.US); local
    [all...]
  /frameworks/opt/datetimepicker/src/com/android/datetimepicker/
Utils.java 27 import java.util.Calendar;
56 case Calendar.JANUARY:
57 case Calendar.MARCH:
58 case Calendar.MAY:
59 case Calendar.JULY:
60 case Calendar.AUGUST:
61 case Calendar.OCTOBER:
62 case Calendar.DECEMBER:
64 case Calendar.APRIL:
65 case Calendar.JUNE
    [all...]
  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DataFormatFieldTest.java 29 import java.util.Calendar;
37 MyField field = new MyField("day of month", Calendar.ERA);
40 assertEquals("field has wrong Calendar field number", Calendar.ERA,
44 .ofCalendarField(Calendar.ERA);
45 assertSame("Modified calendar field with the same field number",
49 .ofCalendarField(Calendar.DAY_OF_MONTH);
50 assertSame("Modified calendar field with the same field number",
70 MyField field = new MyField("a field", Calendar.DAY_OF_WEEK);
73 assertEquals("field has wrong Calendar field number"
    [all...]
  /frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DateUtils.java 19 import java.util.Calendar;
40 Calendar c = Calendar.getInstance(tz);
57 Calendar c = Calendar.getInstance();
  /packages/apps/Contacts/src/com/android/contacts/util/
DateUtils.java 26 import java.util.Calendar;
70 * @return A Calendar object corresponding to the date if the string is successfully parsed.
73 public static Calendar parseDate(String string, boolean mustContainYear) {
80 return getUtcDate(0, Calendar.FEBRUARY, 29);
105 private static final Calendar getUtcDate(Date date, boolean noYear) {
106 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); local
107 calendar.setTime(date);
109 calendar.set(Calendar.YEAR, 0)
115 final Calendar calendar = Calendar.getInstance(UTC_TIMEZONE, Locale.US); local
    [all...]
  /frameworks/base/core/java/android/webkit/
DateSorter.java 22 import java.util.Calendar;
55 Calendar c = Calendar.getInstance();
60 c.add(Calendar.DAY_OF_YEAR, -1);
62 c.add(Calendar.DAY_OF_YEAR, -(NUM_DAYS_AGO - 1));
64 c.add(Calendar.DAY_OF_YEAR, NUM_DAYS_AGO); // move back to today
65 c.add(Calendar.MONTH, -1);
87 * returned by Calendar.getTimeInMillis()
126 private void beginningOfDay(Calendar c) {
127 c.set(Calendar.HOUR_OF_DAY, 0)
    [all...]

Completed in 1340 milliseconds

1 2 3 4 5 6 7 8 91011>>