Home
last modified time | relevance | path

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

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java64 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 …]
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 …]
DWeakHashMapTest.java239 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()
DDateTest.java34 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/
DGregorianCalendarTest.java107 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/
DGregorianCalendar.java1585 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 …]
DDate.java1259 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/
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/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DPhantomReferenceTest.java53 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()
/libcore/metrictests/memory/apps/src/libcore/heapdumper/
DAbstractMetricInstrumentation.java87 runtime.gc(); in tryRemoveGarbage()
91 runtime.gc(); in tryRemoveGarbage()
/libcore/dalvik/src/main/java/dalvik/system/
DZygoteHooks.java98 System.gc(); in gcAndFinalize()
100 System.gc(); in gcAndFinalize()
/libcore/benchmarks/src/benchmarks/
DReferenceBenchmark.java82 Runtime.getRuntime().gc(); in timeAllocImplicitEnqueueAndRemove()
115 Runtime.getRuntime().gc(); in timeFinalization()
DReferenceGetBenchmark.java53 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
/libcore/support/src/test/java/libcore/java/lang/ref/
DFinalizationTester.java31 Runtime.getRuntime().gc(); in induceFinalization()
/libcore/luni/src/test/java/libcore/libcore/util/
DNativeAllocationRegistryTest.java58 Runtime.getRuntime().gc(); in testNativeAllocation()
171 Runtime.getRuntime().gc(); in testEarlyFree()
/libcore/benchmarks/src/benchmarks/regression/
DExpensiveObjectsBenchmark.java147 GregorianCalendar gc = new GregorianCalendar(); in timeClonedGregorianCalendar() local
149 gc.clone(); in timeClonedGregorianCalendar()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DRuntimeTest.java106 r.gc(); in test_runFinalization()
DProcessManagerTest.java175 rt.gc(); in stuff()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DFinalizeTest.java151 System.gc(); in createChainedFinalizer()
DReferenceQueueTest.java125 Runtime.getRuntime().gc(); in testCleanersCleaned()
/libcore/ojluni/annotations/mmodule/java/lang/
DSystem.annotated.java83 public static void gc() { throw new RuntimeException("Stub!"); } in gc() method in System
/libcore/luni/src/test/java/tests/targets/security/
DMessageDigestTest.java67 System.gc(); in tearDown()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DRuntime.java106 public void gc() { in gc() method in Runtime
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DSystem.annotated.java83 public static void gc() { throw new RuntimeException("Stub!"); } in gc() method in System
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1516 public static void gc() { in gc() method in System
1527 Runtime.getRuntime().gc(); in gc()
1556 Runtime.getRuntime().gc(); in runFinalization()

12