Home
last modified time | relevance | path

Searched refs:getRuntime (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/tests/CoreTests/android/core/
DHeapTest.java105 Runtime.getRuntime().gc(); in testGcSoftRefs()
114 VMRuntime.getRuntime().gcSoftReferences(); in testGcSoftRefs()
115 Runtime.getRuntime().runFinalization(); in testGcSoftRefs()
124 VMRuntime.getRuntime().gcSoftReferences(); in testGcSoftRefs()
125 Runtime.getRuntime().runFinalization(); in testGcSoftRefs()
133 VMRuntime.getRuntime().gcSoftReferences(); in testGcSoftRefs()
134 Runtime.getRuntime().runFinalization(); in testGcSoftRefs()
148 Runtime.getRuntime().gc(); in xxtestSoftRefPartialClean()
209 Runtime.getRuntime().gc(); in testWeakRefs()
217 Runtime.getRuntime().gc(); in testWeakRefs()
[all …]
/frameworks/base/core/java/android/os/
DPerformanceCollector.java495 Runtime runtime = Runtime.getRuntime(); in endPerformanceSnapshot()
543 Runtime.getRuntime().gc(); in startAllocCounting()
544 Runtime.getRuntime().runFinalization(); in startAllocCounting()
545 Runtime.getRuntime().gc(); in startAllocCounting()
557 Runtime.getRuntime().gc(); in stopAllocCounting()
558 Runtime.getRuntime().runFinalization(); in stopAllocCounting()
559 Runtime.getRuntime().gc(); in stopAllocCounting()
/frameworks/base/core/java/com/android/internal/util/
DArrayUtils.java46 return (byte[])VMRuntime.getRuntime().newUnpaddedArray(byte.class, minLen); in newUnpaddedByteArray()
50 return (char[])VMRuntime.getRuntime().newUnpaddedArray(char.class, minLen); in newUnpaddedCharArray()
54 return (int[])VMRuntime.getRuntime().newUnpaddedArray(int.class, minLen); in newUnpaddedIntArray()
58 return (boolean[])VMRuntime.getRuntime().newUnpaddedArray(boolean.class, minLen); in newUnpaddedBooleanArray()
62 return (long[])VMRuntime.getRuntime().newUnpaddedArray(long.class, minLen); in newUnpaddedLongArray()
66 return (float[])VMRuntime.getRuntime().newUnpaddedArray(float.class, minLen); in newUnpaddedFloatArray()
70 return (Object[])VMRuntime.getRuntime().newUnpaddedArray(Object.class, minLen); in newUnpaddedObjectArray()
75 return (T[])VMRuntime.getRuntime().newUnpaddedArray(clazz, minLen); in newUnpaddedArray()
/frameworks/base/legacy-test/src/android/test/
DInstrumentationTestCase.java364 Runtime.getRuntime().gc(); in tearDown()
365 Runtime.getRuntime().runFinalization(); in tearDown()
366 Runtime.getRuntime().gc(); in tearDown()
/frameworks/support/fragment/tests/java/android/support/v4/app/
DFragmentTestUtil.java234 Runtime.getRuntime().gc(); in forceGC()
235 Runtime.getRuntime().gc(); in forceGC()
236 Runtime.getRuntime().runFinalization(); in forceGC()
/frameworks/base/core/java/android/ddm/
DDdmHandleExit.java71 Runtime.getRuntime().halt(statusCode); in handleChunk()
DDdmHandleHeap.java222 Runtime.getRuntime().gc(); in handleHPGC()
DDdmHandleHello.java130 VMRuntime vmRuntime = VMRuntime.getRuntime(); in handleHELO()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DReferenceTestUtils.java37 Runtime.getRuntime().gc(); in createCollectionWaiter()
/frameworks/base/core/java/com/android/internal/os/
DBinderInternal.java103 VMRuntime.getRuntime().requestConcurrentGC(); in forceGc()
DZygoteInit.java237 final VMRuntime runtime = VMRuntime.getRuntime(); in preloadClasses()
350 final VMRuntime runtime = VMRuntime.getRuntime(); in preloadResources()
436 final VMRuntime runtime = VMRuntime.getRuntime(); in gcAndFinalize()
539 final String instructionSet = VMRuntime.getRuntime().vmInstructionSet(); in performSystemServerDexOpt()
DRuntimeInit.java300 VMRuntime.getRuntime().setTargetHeapUtilization(0.75f); in applicationInit()
301 VMRuntime.getRuntime().setTargetSdkVersion(targetSdkVersion); in applicationInit()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DGarbageMonitor.java62 Runtime.getRuntime().gc(); in inspectGarbage()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
DImageLoader.java35 Math.round(Runtime.getRuntime().maxMemory() / 10));
/frameworks/base/core/jni/include/android_runtime/
DAndroidRuntime.h75 static AndroidRuntime* getRuntime();
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
DPowerMeasurement.java68 Runtime fileRemoval = Runtime.getRuntime(); in testPageLoadStaticNYTimes()
/frameworks/base/core/java/android/app/
DDexLoadReporter.java105 packageName, dexPaths, VMRuntime.getRuntime().vmInstructionSet()); in notifyPackageManager()
DInstrumentation.java1431 Runtime.getRuntime().gc(); in startAllocCounting()
1432 Runtime.getRuntime().runFinalization(); in startAllocCounting()
1433 Runtime.getRuntime().gc(); in startAllocCounting()
1448 Runtime.getRuntime().gc(); in stopAllocCounting()
1449 Runtime.getRuntime().runFinalization(); in stopAllocCounting()
1450 Runtime.getRuntime().gc(); in stopAllocCounting()
/frameworks/base/media/java/android/media/
DImageWriter.java202 VMRuntime.getRuntime().registerNativeAllocation(mEstimatedNativeAllocBytes); in ImageWriter()
495 VMRuntime.getRuntime().registerNativeFree(mEstimatedNativeAllocBytes); in close()
DImageReader.java264 VMRuntime.getRuntime().registerNativeAllocation(mEstimatedNativeAllocBytes); in ImageReader()
620 VMRuntime.getRuntime().registerNativeFree(mEstimatedNativeAllocBytes); in close()
/frameworks/base/test-runner/src/android/test/
DInstrumentationCoreTestRunner.java145 Runtime runtime = Runtime.getRuntime(); in getAndroidTestRunner()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DAlbumArtCache.java61 (int) (Math.min(Integer.MAX_VALUE, Runtime.getRuntime().maxMemory()/4))); in AlbumArtCache()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaTestUtil.java93 Process p = Runtime.getRuntime().exec(cm); in captureMemInfo()
/frameworks/base/graphics/java/android/graphics/drawable/
DVectorDrawable.java361 VMRuntime.getRuntime().registerNativeAllocation(deltaInBytes); in draw()
363 VMRuntime.getRuntime().registerNativeFree(-deltaInBytes); in draw()
612 VMRuntime.getRuntime().registerNativeFree(mVectorState.mRootGroup.getNativeSize()); in inflate()
620 VMRuntime.getRuntime().registerNativeFree(mVectorState.NATIVE_ALLOCATION_SIZE); in inflate()
903 VMRuntime.getRuntime().registerNativeAllocation(NATIVE_ALLOCATION_SIZE); in createNativeTree()
912 VMRuntime.getRuntime().registerNativeAllocation(NATIVE_ALLOCATION_SIZE); in createNativeTreeFromCopy()
920 VMRuntime.getRuntime().registerNativeAllocation(mAllocationOfAllNodes); in onTreeConstructionFinished()
1030 VMRuntime.getRuntime().registerNativeFree(NATIVE_ALLOCATION_SIZE in finalize()
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java52 private final Runtime mRuntime = Runtime.getRuntime();

123