Home
last modified time | relevance | path

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

123

/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()
DSharedMemory.java344 VMRuntime.getRuntime().registerNativeAllocation(mSize); in MemoryRegistration()
355 VMRuntime.getRuntime().registerNativeFree(mSize); in release()
/frameworks/base/core/java/com/android/internal/util/
DArrayUtils.java47 return (byte[])VMRuntime.getRuntime().newUnpaddedArray(byte.class, minLen); in newUnpaddedByteArray()
51 return (char[])VMRuntime.getRuntime().newUnpaddedArray(char.class, minLen); in newUnpaddedCharArray()
55 return (int[])VMRuntime.getRuntime().newUnpaddedArray(int.class, minLen); in newUnpaddedIntArray()
59 return (boolean[])VMRuntime.getRuntime().newUnpaddedArray(boolean.class, minLen); in newUnpaddedBooleanArray()
63 return (long[])VMRuntime.getRuntime().newUnpaddedArray(long.class, minLen); in newUnpaddedLongArray()
67 return (float[])VMRuntime.getRuntime().newUnpaddedArray(float.class, minLen); in newUnpaddedFloatArray()
71 return (Object[])VMRuntime.getRuntime().newUnpaddedArray(Object.class, minLen); in newUnpaddedObjectArray()
76 return (T[])VMRuntime.getRuntime().newUnpaddedArray(clazz, minLen); in newUnpaddedArray()
/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/support/fragment/src/androidTest/java/androidx/fragment/app/
DFragmentTestUtil.java228 Runtime.getRuntime().gc(); in forceGC()
229 Runtime.getRuntime().gc(); in forceGC()
230 Runtime.getRuntime().runFinalization(); in forceGC()
/frameworks/base/core/java/android/ddm/
DDdmHandleExit.java71 Runtime.getRuntime().halt(statusCode); in handleChunk()
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java241 final VMRuntime runtime = VMRuntime.getRuntime(); in preloadClasses()
354 final VMRuntime runtime = VMRuntime.getRuntime(); in preloadResources()
440 final VMRuntime runtime = VMRuntime.getRuntime(); in gcAndFinalize()
544 VMRuntime.getRuntime().setHiddenApiExemptions(exemptions); in setApiBlacklistExemptions()
548 VMRuntime.getRuntime().setHiddenApiAccessLogSamplingRate(percent); in setHiddenApiAccessLogSampleRate()
572 final String instructionSet = VMRuntime.getRuntime().vmInstructionSet(); in performSystemServerDexOpt()
DBinderInternal.java112 VMRuntime.getRuntime().requestConcurrentGC(); in forceGc()
DRuntimeInit.java356 VMRuntime.getRuntime().setTargetHeapUtilization(0.75f); in applicationInit()
357 VMRuntime.getRuntime().setTargetSdkVersion(targetSdkVersion); in applicationInit()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DReferenceTestUtils.java37 Runtime.getRuntime().gc(); in createCollectionWaiter()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DLiveDataQueryTest.java356 Runtime.getRuntime().gc(); in forceGc()
357 Runtime.getRuntime().runFinalization(); in forceGc()
358 Runtime.getRuntime().gc(); in forceGc()
359 Runtime.getRuntime().runFinalization(); in forceGc()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/graphics/
DImageLoader.java36 Math.round(Runtime.getRuntime().maxMemory() / 10));
/frameworks/base/core/jni/include/android_runtime/
DAndroidRuntime.h75 static AndroidRuntime* getRuntime();
/frameworks/support/work/workmanager/src/main/java/androidx/work/
DConfiguration.java109 Math.max(2, Math.min(Runtime.getRuntime().availableProcessors() - 1, 4))); in createDefaultExecutor()
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
DPowerMeasurement.java68 Runtime fileRemoval = Runtime.getRuntime(); in testPageLoadStaticNYTimes()
/frameworks/base/core/java/android/webkit/
DWebViewLibraryLoader.java70 boolean is64Bit = VMRuntime.getRuntime().is64Bit(); in main()
245 String relroPath = VMRuntime.getRuntime().is64Bit() ? CHROMIUM_WEBVIEW_NATIVE_RELRO_64 : in loadNativeLibrary()
/frameworks/support/lifecycle/runtime/src/test/java/androidx/lifecycle/
DLifecycleRegistryTest.java570 Runtime.getRuntime().gc(); in forceGc()
571 Runtime.getRuntime().runFinalization(); in forceGc()
572 Runtime.getRuntime().gc(); in forceGc()
573 Runtime.getRuntime().runFinalization(); in forceGc()
/frameworks/base/core/java/android/app/
DInstrumentation.java1489 Runtime.getRuntime().gc(); in startAllocCounting()
1490 Runtime.getRuntime().runFinalization(); in startAllocCounting()
1491 Runtime.getRuntime().gc(); in startAllocCounting()
1506 Runtime.getRuntime().gc(); in stopAllocCounting()
1507 Runtime.getRuntime().runFinalization(); in stopAllocCounting()
1508 Runtime.getRuntime().gc(); in stopAllocCounting()
DDexLoadReporter.java127 VMRuntime.getRuntime().vmInstructionSet()); in notifyPackageManager()
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
DAlbumArtCache.java62 (int) (Math.min(Integer.MAX_VALUE, Runtime.getRuntime().maxMemory()/4))); in AlbumArtCache()
/frameworks/base/media/java/android/media/
DImageWriter.java208 VMRuntime.getRuntime().registerNativeAllocation(mEstimatedNativeAllocBytes); in ImageWriter()
498 VMRuntime.getRuntime().registerNativeFree(mEstimatedNativeAllocBytes); in close()
DImageReader.java264 VMRuntime.getRuntime().registerNativeAllocation(mEstimatedNativeAllocBytes); in ImageReader()
620 VMRuntime.getRuntime().registerNativeFree(mEstimatedNativeAllocBytes); in close()
/frameworks/base/tests/DexLoggerIntegrationTests/src/com/android/server/pm/dex/
DDexLoggerIntegrationTests.java121 Process process = Runtime.getRuntime().exec( in testDexLoggerReconcileGeneratesEvents()
/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.java440 VMRuntime.getRuntime().registerNativeAllocation(deltaInBytes); in draw()
442 VMRuntime.getRuntime().registerNativeFree(-deltaInBytes); in draw()
693 VMRuntime.getRuntime().registerNativeFree( in inflate()
702 VMRuntime.getRuntime().registerNativeFree(mVectorState.NATIVE_ALLOCATION_SIZE); in inflate()
995 VMRuntime.getRuntime().registerNativeAllocation(NATIVE_ALLOCATION_SIZE); in createNativeTree()
1004 VMRuntime.getRuntime().registerNativeAllocation(NATIVE_ALLOCATION_SIZE); in createNativeTreeFromCopy()
1012 VMRuntime.getRuntime().registerNativeAllocation(mAllocationOfAllNodes); in onTreeConstructionFinished()
1122 VMRuntime.getRuntime().registerNativeFree(NATIVE_ALLOCATION_SIZE in finalize()

123