/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | GregorianCalendarTest.java | 64 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, 13); in test_ConstructorIII() local 66 1972, gc.get(Calendar.YEAR)); in test_ConstructorIII() 68 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIII() 69 assertEquals("Incorrect calendar constructed 3", 13, gc in test_ConstructorIII() 71 assertTrue("Incorrect calendar constructed 4", gc.getTimeZone().equals( in test_ConstructorIII() 81 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, in test_ConstructorIIIII() local 84 1972, gc.get(Calendar.YEAR)); in test_ConstructorIIIII() 86 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIIIII() 87 assertEquals("Incorrect calendar constructed", 13, gc in test_ConstructorIIIII() 89 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIII() [all …]
|
D | SimpleTimeZoneTest.java | 405 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.JUNE, 11); in test_inDaylightTimeLjava_util_Date() local 407 assertTrue("Returned incorrect daylight value1", zone.inDaylightTime(gc in test_inDaylightTimeLjava_util_Date() 409 gc = new GregorianCalendar(1998, Calendar.NOVEMBER, 11); in test_inDaylightTimeLjava_util_Date() 411 .inDaylightTime(gc.getTime()))); in test_inDaylightTimeLjava_util_Date() 412 gc = new GregorianCalendar(zone); in test_inDaylightTimeLjava_util_Date() 413 gc.set(1999, Calendar.APRIL, 4, 1, 59, 59); in test_inDaylightTimeLjava_util_Date() 415 .inDaylightTime(gc.getTime()))); in test_inDaylightTimeLjava_util_Date() 416 Date date = new Date(gc.getTime().getTime() + 1000); in test_inDaylightTimeLjava_util_Date() 419 gc.set(1999, Calendar.OCTOBER, 31, 1, 0, 0); in test_inDaylightTimeLjava_util_Date() 421 .inDaylightTime(gc.getTime()))); in test_inDaylightTimeLjava_util_Date() [all …]
|
D | WeakHashMapTest.java | 239 System.gc(); in test_putLjava_lang_ObjectLjava_lang_Object() 240 System.gc(); in test_putLjava_lang_ObjectLjava_lang_Object() 347 System.gc(); in test_keySet_hasNext() 348 System.gc(); in test_keySet_hasNext()
|
D | DateTest.java | 34 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.OCTOBER, in test_Constructor() local 36 long oldTime = gc.getTime().getTime(); in test_Constructor()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | GregorianCalendarTest.java | 107 GregorianCalendar gc; in test_fieldsAffectedByGregorianCutOver() local 110 gc = new GregorianCalendar(LOS_ANGELES, Locale.ENGLISH); in test_fieldsAffectedByGregorianCutOver() 111 gc.setGregorianChange(date); in test_fieldsAffectedByGregorianCutOver() 112 gc.setTime(date); in test_fieldsAffectedByGregorianCutOver() 124 assertEquals(1999, gc.get(Calendar.YEAR)); in test_fieldsAffectedByGregorianCutOver() 125 assertEquals(Calendar.DECEMBER, gc.get(Calendar.MONTH)); in test_fieldsAffectedByGregorianCutOver() 126 assertEquals(18, gc.get(Calendar.DAY_OF_MONTH)); in test_fieldsAffectedByGregorianCutOver() 128 assertEquals(50, gc.getActualMaximum(Calendar.WEEK_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver() 129 assertEquals(50, gc.getLeastMaximum(Calendar.WEEK_OF_YEAR)); in test_fieldsAffectedByGregorianCutOver() 130 assertEquals(3, gc.getActualMaximum(Calendar.WEEK_OF_MONTH)); in test_fieldsAffectedByGregorianCutOver() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 1585 GregorianCalendar gc = (GregorianCalendar) clone(); in getMaximum() local 1586 gc.setLenient(true); in getMaximum() 1587 gc.setTimeInMillis(gregorianCutover); in getMaximum() 1588 int v1 = gc.getActualMaximum(field); in getMaximum() 1589 gc.setTimeInMillis(gregorianCutover-1); in getMaximum() 1590 int v2 = gc.getActualMaximum(field); in getMaximum() 1657 GregorianCalendar gc = (GregorianCalendar) clone(); in getLeastMaximum() local 1658 gc.setLenient(true); in getLeastMaximum() 1659 gc.setTimeInMillis(gregorianCutover); in getLeastMaximum() 1660 int v1 = gc.getActualMaximum(field); in getLeastMaximum() [all …]
|
D | Date.java | 1259 GregorianCalendar gc = new GregorianCalendar(tz); in normalize() local 1260 gc.clear(); in normalize() 1261 gc.set(GregorianCalendar.MILLISECOND, ms); in normalize() 1262 gc.set(y, m-1, d, hh, mm, ss); in normalize() 1263 fastTime = gc.getTimeInMillis(); in normalize()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | XMLGregorianCalendar.java | 688 XMLGregorianCalendar gc = this; in hashCode() local 690 gc = this.normalize(); in hashCode() 692 return gc.getYear() in hashCode() 693 + gc.getMonth() in hashCode() 694 + gc.getDay() in hashCode() 695 + gc.getHour() in hashCode() 696 + gc.getMinute() in hashCode() 697 + gc.getSecond(); in hashCode()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
D | PhantomReferenceTest.java | 53 check_gcInteraction(() -> { Runtime.getRuntime().gc(); } ); in test_gcInteraction_Runtime() 64 System.gc(); in test_gcInteraction_System() 69 private void check_gcInteraction(Runnable gc) { in check_gcInteraction() argument 78 gc.run(); in check_gcInteraction()
|
D | ReferenceTest.java | 279 System.gc(); in test_finalizeReferenceInteraction()
|
/libcore/support/src/test/java/libcore/java/lang/ref/ |
D | FinalizationTester.java | 31 Runtime.getRuntime().gc(); in induceFinalization()
|
/libcore/benchmarks/src/benchmarks/ |
D | ReferenceBenchmark.java | 82 Runtime.getRuntime().gc(); in timeAllocImplicitEnqueueAndRemove() 115 Runtime.getRuntime().gc(); in timeFinalization()
|
D | ReferenceGetBenchmark.java | 53 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
|
/libcore/luni/src/test/java/libcore/util/ |
D | NativeAllocationRegistryTest.java | 47 Runtime.getRuntime().gc(); in testNativeAllocation() 139 Runtime.getRuntime().gc(); in testEarlyFree()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ExpensiveObjectsBenchmark.java | 147 GregorianCalendar gc = new GregorianCalendar(); in timeClonedGregorianCalendar() local 149 gc.clone(); in timeClonedGregorianCalendar()
|
/libcore/ojluni/src/main/native/ |
D | Runtime.c | 87 NATIVE_METHOD(Runtime, gc, "()V"),
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | RuntimeTest.java | 106 r.gc(); in test_runFinalization()
|
D | ProcessManagerTest.java | 173 rt.gc(); in stuff()
|
D | ProcessTest.java | 35 System.gc(); in test_55017()
|
D | SystemTest.java | 273 System.gc(); in test_runFinalization()
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | FinalizeTest.java | 151 System.gc(); in createChainedFinalizer()
|
D | ReferenceQueueTest.java | 109 Runtime.getRuntime().gc(); in testCleanersCleaned()
|
/libcore/support/src/test/java/tests/security/ |
D | MessageDigestTest.java | 68 System.gc(); in tearDown()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | System.java | 1505 public static void gc() { in gc() method in System 1516 Runtime.getRuntime().gc(); in gc() 1545 Runtime.getRuntime().gc(); in runFinalization()
|
D | Runtime.java | 768 public native void gc(); in gc() method in Runtime
|