Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/com/android/internal/util/
DGcUtils.java36 Runtime.getRuntime().gc(); in runGcAndFinalizersSync()
37 Runtime.getRuntime().runFinalization(); in runGcAndFinalizersSync()
43 Runtime.getRuntime().gc(); in runGcAndFinalizersSync()
44 Runtime.getRuntime().runFinalization(); in runGcAndFinalizersSync()
DArrayUtils.java53 return (byte[])VMRuntime.getRuntime().newUnpaddedArray(byte.class, minLen); in newUnpaddedByteArray()
57 return (char[])VMRuntime.getRuntime().newUnpaddedArray(char.class, minLen); in newUnpaddedCharArray()
62 return (int[])VMRuntime.getRuntime().newUnpaddedArray(int.class, minLen); in newUnpaddedIntArray()
66 return (boolean[])VMRuntime.getRuntime().newUnpaddedArray(boolean.class, minLen); in newUnpaddedBooleanArray()
70 return (long[])VMRuntime.getRuntime().newUnpaddedArray(long.class, minLen); in newUnpaddedLongArray()
74 return (float[])VMRuntime.getRuntime().newUnpaddedArray(float.class, minLen); in newUnpaddedFloatArray()
78 return (Object[])VMRuntime.getRuntime().newUnpaddedArray(Object.class, minLen); in newUnpaddedObjectArray()
84 return (T[])VMRuntime.getRuntime().newUnpaddedArray(clazz, minLen); in newUnpaddedArray()
/frameworks/base/apct-tests/perftests/core/src/android/util/
DCharsetUtilsPerfTest.java68 final byte[] dest = (byte[]) VMRuntime.getRuntime().newNonMovableArray(byte.class, 64); in timeLocal_SmallBuffer()
69 final long destPtr = VMRuntime.getRuntime().addressOf(dest); in timeLocal_SmallBuffer()
83 final byte[] dest = (byte[]) VMRuntime.getRuntime().newNonMovableArray(byte.class, 1024); in timeLocal_LargeBuffer()
84 final long destPtr = VMRuntime.getRuntime().addressOf(dest); in timeLocal_LargeBuffer()
/frameworks/base/core/java/android/os/
DPerformanceCollector.java502 Runtime runtime = Runtime.getRuntime(); in endPerformanceSnapshot()
550 Runtime.getRuntime().gc(); in startAllocCounting()
551 Runtime.getRuntime().runFinalization(); in startAllocCounting()
552 Runtime.getRuntime().gc(); in startAllocCounting()
564 Runtime.getRuntime().gc(); in stopAllocCounting()
565 Runtime.getRuntime().runFinalization(); in stopAllocCounting()
566 Runtime.getRuntime().gc(); in stopAllocCounting()
DSharedMemory.java384 VMRuntime.getRuntime().registerNativeAllocation(mSize); in MemoryRegistration()
395 VMRuntime.getRuntime().registerNativeFree(mSize); in release()
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintNativeInstanceTest.kt39 Runtime.getRuntime().gc() in <lambda>()
40 Runtime.getRuntime().runFinalization() in <lambda>()
48 Runtime.getRuntime().gc() in <lambda>()
49 Runtime.getRuntime().runFinalization() in <lambda>()
/frameworks/base/core/java/android/webkit/
DWebViewLibraryLoader.java64 boolean is64Bit = VMRuntime.getRuntime().is64Bit(); in main()
182 if (VMRuntime.getRuntime().is64Bit()) { in reserveAddressSpaceInZygote()
185 } else if (VMRuntime.getRuntime().vmInstructionSet().equals("arm")) { in reserveAddressSpaceInZygote()
223 String relroPath = VMRuntime.getRuntime().is64Bit() ? CHROMIUM_WEBVIEW_NATIVE_RELRO_64 : in loadNativeLibrary()
/frameworks/base/core/tests/coretests/src/android/util/
DCharsetUtilsTest.java38 dest = (byte[]) VMRuntime.getRuntime().newNonMovableArray(byte.class, 8); in setUp()
39 destPtr = VMRuntime.getRuntime().addressOf(dest); in setUp()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DReferencePerfTest.java112 Runtime.getRuntime().gc(); in timeFinalization()
115 Runtime.getRuntime().runFinalization(); in timeFinalization()
DReferenceGetPerfTest.java73 Runtime.getRuntime().gc(); in timeNonPreservedWeakReferenceGet()
/frameworks/base/test-base/src/android/test/
DInstrumentationTestCase.java364 Runtime.getRuntime().gc(); in tearDown()
365 Runtime.getRuntime().runFinalization(); in tearDown()
366 Runtime.getRuntime().gc(); in tearDown()
/frameworks/base/core/java/android/ddm/
DDdmHandleExit.java73 Runtime.getRuntime().halt(statusCode); in handleChunk()
DDdmHandleHeap.java80 Runtime.getRuntime().gc(); in handleHPGC()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DReferenceTestUtils.java37 Runtime.getRuntime().gc(); in createCollectionWaiter()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DThreadUtils.java97 Runtime.getRuntime().availableProcessors()); in getThreadExecutor()
/frameworks/base/tools/preload/loadclass/
DLoadClass.java49 Runtime.getRuntime().gc(); in main()
/frameworks/base/startop/apps/test/src/
DInitCheckOverheadBenchmarks.java99 Runtime.getRuntime().gc(); in doGC()
/frameworks/base/core/jni/include/android_runtime/
DAndroidRuntime.h73 static AndroidRuntime* getRuntime();
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
DPowerMeasurement.java68 Runtime fileRemoval = Runtime.getRuntime(); in testPageLoadStaticNYTimes()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppIconCacheManager.java113 return Math.round(CACHE_RATIO * Runtime.getRuntime().maxMemory() / 1024); in getMaxCacheInKb()
/frameworks/base/core/java/android/app/
DDexLoadReporter.java108 classLoaderContextMap, VMRuntime.getRuntime().vmInstructionSet()); in notifyPackageManager()
/frameworks/base/core/java/com/android/internal/os/
DBinderInternal.java196 VMRuntime.getRuntime().requestConcurrentGC(); in forceGc()
DRuntimeInit.java373 VMRuntime.getRuntime().setTargetSdkVersion(targetSdkVersion); in applicationInit()
374 VMRuntime.getRuntime().setDisabledCompatChanges(disabledCompatChanges); in applicationInit()
DZygoteInit.java271 final VMRuntime runtime = VMRuntime.getRuntime(); in preloadClasses()
678 VMRuntime.getRuntime().setHiddenApiExemptions(exemptions); in setApiDenylistExemptions()
682 VMRuntime.getRuntime().setHiddenApiAccessLogSamplingRate(percent); in setHiddenApiAccessLogSampleRate()
690 VMRuntime.getRuntime().setHiddenApiUsageLogger(logger); in setHiddenApiUsageLogger()
/frameworks/base/graphics/java/android/graphics/
DPathIterator.java83 final VMRuntime runtime = VMRuntime.getRuntime(); in PathIterator()

1234