Home
last modified time | relevance | path

Searched refs:gc (Results 1 – 25 of 33) 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 …]
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()
DReferenceTest.java120 Runtime.getRuntime().gc(); in test_refersTo()
126 Runtime.getRuntime().gc(); in test_refersTo()
336 System.gc(); in test_finalizeReferenceInteraction()
/libcore/metrictests/memory/apps/src/libcore/heapdumper/
DAbstractMetricInstrumentation.java87 runtime.gc(); in tryRemoveGarbage()
91 runtime.gc(); in tryRemoveGarbage()
/libcore/support/src/test/java/libcore/java/lang/ref/
DFinalizationTester.java31 Runtime.getRuntime().gc(); in induceFinalization()
/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/luni/src/test/java/libcore/libcore/util/
DNativeAllocationRegistryTest.java58 Runtime.getRuntime().gc(); in testNativeAllocation()
181 Runtime.getRuntime().gc(); in testEarlyFree()
/libcore/dalvik/src/main/java/dalvik/system/
DZygoteHooks.java115 System.gc(); in gcAndFinalize()
117 System.gc(); in gcAndFinalize()
/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()
DProcessTest.java35 System.gc(); in test_55017()
DObjectTest.java103 Runtime.getRuntime().gc(); in test_hashCode()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DFinalizeTest.java151 System.gc(); in createChainedFinalizer()
DReferenceQueueTest.java131 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/sdk/nullability/java/lang/
DSystem.annotated.java83 public static void gc() { throw new RuntimeException("Stub!"); } in gc() method in System
/libcore/ojluni/annotations/hiddenapi/java/lang/
DRuntime.java106 public void gc() { in gc() method in Runtime
/libcore/ojluni/src/main/java/java/lang/
DSystem.java1504 public static void gc() { in gc() method in System
1515 Runtime.getRuntime().gc(); in gc()
1544 Runtime.getRuntime().gc(); in runFinalization()

12