Home
last modified time | relevance | path

Searched refs:VMRuntime (Results 1 – 25 of 58) sorted by relevance

123

/libcore/luni/src/test/java/libcore/dalvik/system/
DVMRuntimeTest.java22 import dalvik.system.VMRuntime;
32 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, -1); in doTestNewNonMovableArray()
38 … Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, Integer.MIN_VALUE); in doTestNewNonMovableArray()
45 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, i); in doTestNewNonMovableArray()
55 Object array = VMRuntime.getRuntime().newNonMovableArray(null, 0); in testNewNonMovableArray()
62 Object array = VMRuntime.getRuntime().newNonMovableArray(void.class, 0); in testNewNonMovableArray()
86 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, -1); in doTestNewUnpaddedArray()
92 … Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, Integer.MIN_VALUE); in doTestNewUnpaddedArray()
99 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, i); in doTestNewUnpaddedArray()
109 Object array = VMRuntime.getRuntime().newUnpaddedArray(null, 0); in testNewUnpaddedArray()
[all …]
/libcore/test-rules/src/test/java/libcore/junit/util/
DSwitchTargetSdkVersionRuleTest.java21 import dalvik.system.VMRuntime;
41 assertEquals(23, VMRuntime.getRuntime().getTargetSdkVersion()); in testRunningAsIfTargetedAtSDKVersion23()
46 assertNotEquals(23, VMRuntime.getRuntime().getTargetSdkVersion()); in testRunningAsIfTargetedAtCurrentSDKVersion()
DEnableDeprecatedBouncyCastleAlgorithmsRuleTest.java18 import dalvik.system.VMRuntime;
53 assertEquals(VMRuntime.getRuntime().getTargetSdkVersion(), in testRunningAsIfTargetedAtCurrentSDKVersion()
/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryTest.java20 import dalvik.system.VMRuntime;
35 VMRuntime runtime = VMRuntime.getRuntime(); in testSetIntArray()
76 VMRuntime runtime = VMRuntime.getRuntime(); in testSetLongArray()
114 VMRuntime runtime = VMRuntime.getRuntime(); in testSetShortArray()
/libcore/ojluni/src/main/java/java/security/
DAlgorithmParameterGenerator.java29 import dalvik.system.VMRuntime;
182 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in getInstance()
239 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in getInstance()
289 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in getInstance()
DAlgorithmParameters.java29 import dalvik.system.VMRuntime;
240 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in getInstance()
296 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in getInstance()
348 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in getInstance()
DKeyFactory.java29 import dalvik.system.VMRuntime;
197 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in getInstance()
239 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in getInstance()
282 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in getInstance()
/libcore/libart/src/main/java/dalvik/system/
DVMRuntime.java45 public final class VMRuntime { class
50 private static final VMRuntime THE_ONE = new VMRuntime();
180 VMRuntime.hiddenApiUsageLogger = hiddenApiUsageLogger; in setHiddenApiUsageLogger()
190 if (VMRuntime.hiddenApiUsageLogger != null) { in hiddenApiUsed()
191 VMRuntime.hiddenApiUsageLogger.hiddenApiUsed(sampledValue, appPackageName, in hiddenApiUsed()
222 private VMRuntime() { in VMRuntime() method in VMRuntime
234 public static VMRuntime getRuntime() { in getRuntime()
/libcore/ojluni/src/main/java/java/nio/channels/
DFileLock.java29 import dalvik.system.VMRuntime;
156 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in FileLock()
199 if (VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE) { in FileLock()
/libcore/luni/src/main/java/libcore/util/
DNativeAllocationRegistry.java23 import dalvik.system.VMRuntime;
325 VMRuntime runtime = VMRuntime.getRuntime(); in registerNativeAllocation()
341 VMRuntime.getRuntime().registerNativeFree(size); in registerNativeFree()
/libcore/libart/src/main/java/java/lang/
DDaemons.java34 import dalvik.system.VMRuntime;
127 VMRuntime.getRuntime().setSystemDaemonThreadPriority(); in run()
541 NANOS_PER_MILLI * VMRuntime.getRuntime().getFinalizerTimeoutMs(); in waitForProgress()
637 .append(VMRuntime.getRuntime().getFinalizerTimeoutMs() / 1000) in finalizerTimeoutException()
702 VMRuntime.getRuntime().requestHeapTrim(); in requestHeapTrim()
708 VMRuntime.getRuntime().requestConcurrentGC(); in requestGC()
720 VMRuntime.getRuntime().stopHeapTaskProcessor(); in interrupt()
730 VMRuntime.getRuntime().startHeapTaskProcessor(); in runInternal()
734 VMRuntime.getRuntime().runHeapTasks(); in runInternal()
/libcore/test-rules/src/main/java/libcore/junit/util/
DEnableDeprecatedBouncyCastleAlgorithmsRule.java18 import dalvik.system.VMRuntime;
62 int newMaximum = VMRuntime.getRuntime().getTargetSdkVersion(); in apply()
/libcore/ojluni/src/test/java/security/Provider/
DProvidersTest.java21 import dalvik.system.VMRuntime;
329 VMRuntime.getRuntime().getTargetSdkVersion() + 1); in testBeforeLimit()
349 VMRuntime.getRuntime().getTargetSdkVersion()); in testAtLimit()
370 VMRuntime.getRuntime().getTargetSdkVersion() - 1); in testPastLimit()
410 VMRuntime.getRuntime().getTargetSdkVersion() - 1); in testCustomProvider()
/libcore/luni/src/test/java/libcore/java/util/
DLegacyLocalesTest.java24 import dalvik.system.VMRuntime;
65 var msg = "Test should run on V+ only, current SDK level=" + VMRuntime.getSdkVersion(); in obsoleteLocales_withFlagEnabled()
66 assumeTrue(msg, VMRuntime.getSdkVersion() >= VersionCodes.VANILLA_ICE_CREAM); in obsoleteLocales_withFlagEnabled()
DFormatterTest.java31 import dalvik.system.VMRuntime;
394 var msg = "Checks are done only starting from V. Current SDK=" + VMRuntime.getSdkVersion(); in invalidIndicesThrowsException_afterU_whenChecksAreEnabled()
395 assumeTrue(msg, VMRuntime.getSdkVersion() >= VersionCodes.VANILLA_ICE_CREAM); in invalidIndicesThrowsException_afterU_whenChecksAreEnabled()
412 var msg = "Checks are done only starting from V. Current SDK=" + VMRuntime.getSdkVersion(); in invalidIndicesDontThrow_beforeV_whenChecksAreEnabled()
413 assumeTrue(msg, VMRuntime.getSdkVersion() < VersionCodes.VANILLA_ICE_CREAM); in invalidIndicesDontThrow_beforeV_whenChecksAreEnabled()
/libcore/support/src/test/java/libcore/java/security/
DCpuFeatures.java26 import dalvik.system.VMRuntime;
86 String instructionSet = VMRuntime.getCurrentInstructionSet(); in currentInstructionSet()
/libcore/ojluni/src/main/java/java/util/
DRandom.java42 import dalvik.system.VMRuntime;
670 if (VMRuntime.getSdkVersion() >= VersionCodes.VANILLA_ICE_CREAM && in ints()
729 if (VMRuntime.getSdkVersion() >= VersionCodes.VANILLA_ICE_CREAM && in ints()
779 if (VMRuntime.getSdkVersion() >= VersionCodes.VANILLA_ICE_CREAM && in ints()
/libcore/dalvik/src/main/java/dalvik/system/
DApplicationRuntime.java32 return VMRuntime.getBaseApkOptimizationInfo(); in getBaseApkOptimizationInfo()
DZygoteHooks.java130 final VMRuntime runtime = VMRuntime.getRuntime(); in gcAndFinalize()
/libcore/luni/src/test/java/libcore/java/util/regex/
DMatcherTest.java25 import dalvik.system.VMRuntime;
93 Assume.assumeTrue(VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE); in testAppendReplacement()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileLockTest.java20 import dalvik.system.VMRuntime;
75 assertTrue(VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE); in assertUpsideDownCakeOrGreater()
/libcore/ojluni/src/main/java/sun/security/jca/
DProviders.java29 import dalvik.system.VMRuntime;
375 if (VMRuntime.getRuntime().getTargetSdkVersion() in checkBouncyCastleDeprecation()
/libcore/luni/src/test/java/libcore/java/time/
DTimeApisConsistencyTest.java22 import dalvik.system.VMRuntime;
67 if (VMRuntime.getRuntime().is64Bit()) {
/libcore/ojluni/src/main/java/java/util/regex/
DPattern.java36 import dalvik.system.VMRuntime;
1138 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in split()
5743 && VMRuntime.getSdkVersion() >= VersionCodes.UPSIDE_DOWN_CAKE in splitAsStream()
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java49 import dalvik.system.VMRuntime;
815 VMRuntime.runFinalization(0); in runFinalization()
901 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in checkTargetSdkVersionForLoad()

123