Home
last modified time | relevance | path

Searched refs:Runtime (Results 1 – 25 of 59) sorted by relevance

123

/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()
/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()
/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/api/coverage/tools/
DExtractFlaggedApisTest.kt66 val process = Runtime.getRuntime().exec(createCommand()) in extractFlaggedApis_onlyMethodFlag_useMethodFlag()
97 val process = Runtime.getRuntime().exec(createCommand()) in extractFlaggedApis_onlyClassFlag_useClassFlag()
128 val process = Runtime.getRuntime().exec(createCommand()) in extractFlaggedApis_flaggedConstructorsAreFlaggedApis()
161 val process = Runtime.getRuntime().exec(createCommand()) in extractFlaggedApis_unflaggedNestedClassShouldUseOuterClassFlag()
200 val process = Runtime.getRuntime().exec(createCommand()) in extractFlaggedApis_unflaggedNestedClassShouldUseOuterClassFlag_deeplyNested()
/frameworks/base/tests/BrowserPowerTest/src/com/android/browserpowertest/
DPowerMeasurement.java68 Runtime fileRemoval = Runtime.getRuntime(); in testPageLoadStaticNYTimes()
/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/apct-tests/perftests/core/src/android/graphics/perftests/
DCanvasPerfTest.java126 Runtime.getRuntime().gc(); in testCreateScaledSrgbBitmap()
147 Runtime.getRuntime().gc(); in testCreateScaledP3Bitmap()
166 Runtime.getRuntime().gc(); in testCreateScaledBitmapWithGainmap()
/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/native/libs/binder/rust/binder_tokio/
Dlib.rs159 impl BinderAsyncRuntime for TokioRuntime<tokio::runtime::Runtime> {
165 impl BinderAsyncRuntime for TokioRuntime<std::sync::Arc<tokio::runtime::Runtime>> {
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java52 private final Runtime mRuntime = Runtime.getRuntime();
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
DRSTest_v14.java37 import java.lang.Runtime;
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
DRSTest_v16.java37 import java.lang.Runtime;
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DSysUICoroutinesModule.kt69 nThreads = Runtime.getRuntime().availableProcessors(), in bgApplicationScope()
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
DRSTest_v11.java38 import java.lang.Runtime;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DThreadUtils.java109 Runtime.getRuntime().availableProcessors())); in getBackgroundExecutor()
/frameworks/base/packages/SettingsLib/AvatarPicker/src/
DThreadUtils.java111 Runtime.getRuntime().availableProcessors())); in getBackgroundExecutor()
/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/packages/SettingsLib/src/com/android/settingslib/applications/
DAppIconCacheManager.java113 return Math.round(CACHE_RATIO * Runtime.getRuntime().maxMemory() / 1024); in getMaxCacheInKb()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaTestUtil.java93 Process p = Runtime.getRuntime().exec(cm); in captureMemInfo()
/frameworks/base/services/core/java/com/android/server/power/
DPreRebootLogger.java136 Runtime.getRuntime().exec(cmdline).waitFor(); in dumpLogsLocked()

123