/packages/apps/TV/tests/unit/src/com/android/tv/util/ |
UtilsTest_IsInGivenDay.java | 23 import java.util.GregorianCalendar; 33 new GregorianCalendar(2015, Calendar.JANUARY, 1).getTimeInMillis(), 34 new GregorianCalendar(2015, Calendar.JANUARY, 1, 0, 30).getTimeInMillis())); 39 new GregorianCalendar(2015, Calendar.JANUARY, 1).getTimeInMillis(), 40 new GregorianCalendar(2015, Calendar.JANUARY, 2).getTimeInMillis())); 50 new GregorianCalendar(2015, Calendar.JANUARY, 1).getTimeInMillis(); 54 new GregorianCalendar(2015, Calendar.JANUARY, 1, 10, 0).getTimeInMillis();
|
/libcore/luni/src/test/java/libcore/java/util/ |
OldGregorianCalendarTest.java | 22 import java.util.GregorianCalendar; 30 // Test for method java.util.GregorianCalendar(java.util.TimeZone, java.util.Locale) 33 GregorianCalendar gc1 = new GregorianCalendar(TimeZone.getTimeZone("GMT+1"), Locale.FRANCE); 35 GregorianCalendar gc2 = new GregorianCalendar(TimeZone.getTimeZone("GMT+2"), Locale.US); 42 GregorianCalendar g1 = new GregorianCalendar(TimeZone.getTimeZone("Europe/Moscow")); 55 GregorianCalendar g = new GregorianCalendar( [all...] |
CalendarTest.java | 21 import java.util.GregorianCalendar; 54 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); 70 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); 79 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); 88 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); 97 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); 106 Calendar calendar = new GregorianCalendar(AMERICA_SAO_PAULO); 115 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); 126 Calendar calendar = new GregorianCalendar(AUSTRALIA_LORD_HOWE); 150 Calendar calendar = new GregorianCalendar(timeZone) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
GregorianCalendarTest.java | 23 import java.util.GregorianCalendar; 51 * java.util.GregorianCalendar#GregorianCalendar() 54 // Test for method java.util.GregorianCalendar() 55 assertTrue("Constructed incorrect calendar", (new GregorianCalendar() 60 * java.util.GregorianCalendar#GregorianCalendar(int, int, int) 63 // Test for method java.util.GregorianCalendar(int, int, int) 64 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, 13) [all...] |
DateTest.java | 23 import java.util.GregorianCalendar; 34 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.OCTOBER, 55 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 22); 203 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) 213 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) 223 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) 233 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) 243 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9) 253 Date d = new GregorianCalendar(1998, Calendar.OCTOBER, 13, 19, 9 [all...] |
SimpleTimeZoneTest.java | 22 import java.util.GregorianCalendar; 57 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER, 60 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER, 114 .inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER, 117 .inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER, 301 GregorianCalendar.AD, 1998, Calendar.NOVEMBER, 11, 306 .getOffset(GregorianCalendar.AD, 1998, Calendar.JUNE, 11, 405 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.JUNE, 11); 409 gc = new GregorianCalendar(1998, Calendar.NOVEMBER, 11) [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
gregocal.h | 72 * <p>Example for using GregorianCalendar: 93 * // create a GregorianCalendar with the Pacific Daylight time zone 95 * Calendar* calendar = new GregorianCalendar( pdt, success ); 149 class U_I18N_API GregorianCalendar: public Calendar { 153 * Useful constants for GregorianCalendar and TimeZone. 162 * Constructs a default GregorianCalendar using the current time in the default time 165 * @param success Indicates the status of GregorianCalendar object construction. 169 GregorianCalendar(UErrorCode& success); 172 * Constructs a GregorianCalendar based on the current time in the given time zone 177 * @param success Indicates the status of GregorianCalendar object construction [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_TimeZone.java | 21 import java.util.GregorianCalendar; 54 GregorianCalendar cal = new GregorianCalendar();
|
/libcore/support/src/test/java/tests/support/ |
Support_TimeZone.java | 21 import java.util.GregorianCalendar; 54 GregorianCalendar cal = new GregorianCalendar();
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/ |
XMPDateTimeFactory.java | 14 import java.util.GregorianCalendar; 100 return new XMPDateTimeImpl(new GregorianCalendar()); 131 GregorianCalendar cal = new GregorianCalendar(UTC); 149 GregorianCalendar cal = new GregorianCalendar();
|
/external/icu/icu4c/source/i18n/ |
buddhcal.cpp | 34 : GregorianCalendar(aLocale, success) 44 : GregorianCalendar(source) 50 GregorianCalendar::operator=(right); 83 return GregorianCalendar::handleComputeMonthStart(eyear, month, useMonth); 88 GregorianCalendar::handleComputeFields(julianDay, status); 99 return GregorianCalendar::handleGetLimit(field,limitType); 111 if(era == GregorianCalendar::BC) { 114 } else if(era == GregorianCalendar::AD) {
|
gregocal.cpp | 51 // class GregorianCalendar 138 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(GregorianCalendar) 145 //const UDate GregorianCalendar::kPapalCutover = -12219292800000L; 152 GregorianCalendar::GregorianCalendar(UErrorCode& status) 163 GregorianCalendar::GregorianCalendar(TimeZone* zone, UErrorCode& status) 174 GregorianCalendar::GregorianCalendar(const TimeZone& zone, UErrorCode& status) 185 GregorianCalendar::GregorianCalendar(const Locale& aLocale, UErrorCode& status [all...] |
taiwncal.cpp | 34 : GregorianCalendar(aLocale, success) 44 : GregorianCalendar(source) 50 GregorianCalendar::operator=(right); 86 GregorianCalendar::handleComputeFields(julianDay, status); 106 return GregorianCalendar::handleGetLimit(field,limitType); 118 if(era == GregorianCalendar::BC) { 121 } else if(era == GregorianCalendar::AD) {
|
/external/javassist/sample/evolve/ |
WebPage.java | 13 Calendar c = new GregorianCalendar();
|
/external/javassist/sample/evolve/sample/evolve/ |
WebPage.java | 14 Calendar c = new GregorianCalendar();
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
SmsProviderTest.java | 28 import java.util.GregorianCalendar; 44 Long.toString(new GregorianCalendar(1970, 1, 1, 0, 0, 0).getTimeInMillis()), 45 Long.toString(new GregorianCalendar(1971, 2, 13, 16, 35, 3).getTimeInMillis()), 46 Long.toString(new GregorianCalendar(1978, 10, 22, 0, 1, 0).getTimeInMillis()), 47 Long.toString(new GregorianCalendar(1980, 1, 11, 10, 22, 30).getTimeInMillis()),
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
SimpleDateFormatTest.java | 27 import java.util.GregorianCalendar; 257 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); 261 assertFormat(format, " G", new GregorianCalendar(-1999, Calendar.JUNE, 2), " BC", 268 assertFormat(format, " yy", new GregorianCalendar(2001, Calendar.JUNE, 2), " 01", 270 assertFormat(format, " yy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 00", 272 assertFormat(format, " yyy", new GregorianCalendar(2000, Calendar.JUNE, 2), " 2000", 279 assertFormat(format, " M", new GregorianCalendar(1999, Calendar.NOVEMBER, 2), " 11", 287 assertFormat(format, " d", new GregorianCalendar(1999, Calendar.NOVEMBER, 12), " 12", 293 assertFormat(format, " h", new GregorianCalendar(1999, Calendar.NOVEMBER, 12), " 12", 299 assertFormat(format, " H", new GregorianCalendar(1999, Calendar.NOVEMBER, 12, 4, 0), " 4" [all...] |
/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
RssService.java | 38 import java.util.GregorianCalendar; 51 private GregorianCalendar mLastCheckedTime; // Time we last checked our feeds. 79 mLastCheckedTime = new GregorianCalendar(); 123 GregorianCalendar nextCheckTime = new GregorianCalendar(); 124 nextCheckTime = (GregorianCalendar) mLastCheckedTime.clone(); 125 nextCheckTime.add(GregorianCalendar.MINUTE, UPDATE_FREQUENCY_IN_MINUTES); 132 long timeTillNextUpdate = mLastCheckedTime.getTimeInMillis() - GregorianCalendar.getInstance().getTimeInMillis(); 176 GregorianCalendar feedPubDate = parseRssDocPubDate(rssFeed); 177 GregorianCalendar lastUpdated = new GregorianCalendar() [all...] |
/cts/tests/tests/hardware/src/android/hardware/cts/ |
GeomagneticFieldTest.java | 23 import java.util.GregorianCalendar; 30 private static final long TEST_TIME = new GregorianCalendar(2010, 5, 1).getTimeInMillis();
|
/external/icu/android_icu4j/src/samples/java/android/icu/samples/text/dateintervalformat/ |
DateIntervalFormatSample.java | 19 import android.icu.util.GregorianCalendar; 41 new GregorianCalendar(2007,10,10,10,10,10).getTime(), 42 new GregorianCalendar(2008,10,10,10,10,10).getTime(), 43 new GregorianCalendar(2008,11,10,10,10,10).getTime(), 44 new GregorianCalendar(2008,11,10,15,10,10).getTime(), 84 new GregorianCalendar(2007,9,10,10,10,10).getTime(), 85 new GregorianCalendar(2007,10,10,10,10,10).getTime(), 86 new GregorianCalendar(2007,10,10,22,10,10).getTime(),
|
/external/icu/icu4c/source/samples/datecal/ |
cal.cpp | 20 GregorianCalendar* gc = new GregorianCalendar(status); 22 puts("Couldn't create GregorianCalendar");
|
/external/icu/icu4j/samples/src/com/ibm/icu/samples/text/dateintervalformat/ |
DateIntervalFormatSample.java | 18 import com.ibm.icu.util.GregorianCalendar; 40 new GregorianCalendar(2007,10,10,10,10,10).getTime(), 41 new GregorianCalendar(2008,10,10,10,10,10).getTime(), 42 new GregorianCalendar(2008,11,10,10,10,10).getTime(), 43 new GregorianCalendar(2008,11,10,15,10,10).getTime(), 83 new GregorianCalendar(2007,9,10,10,10,10).getTime(), 84 new GregorianCalendar(2007,10,10,10,10,10).getTime(), 85 new GregorianCalendar(2007,10,10,22,10,10).getTime(),
|
/libcore/benchmarks/src/benchmarks/regression/ |
DateToStringBenchmark.java | 24 import java.util.GregorianCalendar; 34 calendar = new GregorianCalendar();
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
EasterHoliday.java | 229 private Date computeInYear(Date date, GregorianCalendar cal) 260 cal.set(Calendar.ERA, GregorianCalendar.AD); 271 private static GregorianCalendar gregorian = new GregorianCalendar(/* new SimpleTimeZone(0, "UTC") */); 272 private static GregorianCalendar orthodox = new GregorianCalendar(/* new SimpleTimeZone(0, "UTC") */); 275 private GregorianCalendar calendar = gregorian;
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
EasterHoliday.java | 243 private Date computeInYear(Date date, GregorianCalendar cal) 274 cal.set(Calendar.ERA, GregorianCalendar.AD); 285 private static GregorianCalendar gregorian = new GregorianCalendar(/* new SimpleTimeZone(0, "UTC") */); 286 private static GregorianCalendar orthodox = new GregorianCalendar(/* new SimpleTimeZone(0, "UTC") */); 289 private GregorianCalendar calendar = gregorian;
|