Home
last modified time | relevance | path

Searched refs:gc (Results 1 – 22 of 22) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java48 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, 13); in test_ConstructorIII() local
50 1972, gc.get(Calendar.YEAR)); in test_ConstructorIII()
52 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIII()
53 assertEquals("Incorrect calendar constructed 3", 13, gc in test_ConstructorIII()
55 assertTrue("Incorrect calendar constructed 4", gc.getTimeZone().equals( in test_ConstructorIII()
65 GregorianCalendar gc = new GregorianCalendar(1972, Calendar.OCTOBER, in test_ConstructorIIIII() local
68 1972, gc.get(Calendar.YEAR)); in test_ConstructorIIIII()
70 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIIIII()
71 assertEquals("Incorrect calendar constructed", 13, gc in test_ConstructorIIIII()
73 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIII()
[all …]
DWeakHashMapTest.java242 System.gc(); in test_putLjava_lang_ObjectLjava_lang_Object()
243 System.gc(); in test_putLjava_lang_ObjectLjava_lang_Object()
317 System.gc(); in test_keySet()
318 System.gc(); in test_keySet()
343 System.gc(); in test_keySet_hasNext()
344 System.gc(); in test_keySet_hasNext()
395 System.gc(); in test_values()
396 System.gc(); in test_values()
DSimpleTimeZoneTest.java405 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 …]
DDateTest.java33 GregorianCalendar gc = new GregorianCalendar(1998, Calendar.OCTOBER, in test_Constructor() local
35 long oldTime = gc.getTime().getTime(); in test_Constructor()
/libcore/luni/src/main/java/javax/xml/datatype/
DXMLGregorianCalendar.java688 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/support/src/test/java/libcore/java/lang/ref/
DFinalizationTester.java31 Runtime.getRuntime().gc(); in induceFinalization()
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java145 GregorianCalendar gc = new GregorianCalendar(); in timeClonedGregorianCalendar() local
147 gc.clone(); in timeClonedGregorianCalendar()
/libcore/benchmarks/src/benchmarks/
DReferenceGetBenchmark.java55 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DRuntimeTest.java106 r.gc(); in test_runFinalization()
DProcessTest.java33 System.gc(); in test_55017()
DProcessManagerTest.java173 rt.gc(); in stuff()
DSystemTest.java273 System.gc(); in test_runFinalization()
/libcore/dalvik/src/test/java/dalvik/system/
DCloseGuardMonitor.java86 runtime.gc(); in run()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DFinalizeTest.java141 System.gc(); in createChainedFinalizer()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DPhantomReferenceTest.java61 Runtime.getRuntime().gc(); in test_gcInteraction()
DReferenceTest.java301 System.gc(); in test_finalizeReferenceInteraction()
/libcore/support/src/test/java/tests/security/
DMessageDigestTest.java68 System.gc(); in tearDown()
/libcore/luni/src/main/java/java/lang/
DSystem.java642 public static void gc() { in gc() method in System
653 Runtime.getRuntime().gc(); in gc()
1046 Runtime.getRuntime().gc(); in runFinalization()
DRuntime.java300 public native void gc(); in gc() method in Runtime
/libcore/luni/src/main/java/java/util/
DDate.java675 GregorianCalendar gc = new GregorianCalendar(gmtZone); in toGMTString() local
676 gc.setTimeInMillis(milliseconds); in toGMTString()
/libcore/luni/src/test/java/libcore/java/lang/
DOldSystemTest.java264 System.gc(); in test_gc()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DDeflaterTest.java192 System.gc(); in test_finalize()