Home
last modified time | relevance | path

Searched refs:targetSdkVersion (Results 1 – 22 of 22) sorted by relevance

/libcore/test-rules/src/main/java/libcore/junit/util/
DSwitchTargetSdkVersionRule.java93 TargetSdkVersion targetSdkVersion = description.getAnnotation(TargetSdkVersion.class); in apply() local
94 if (targetSdkVersion == null) { in apply()
98 return createStatement(statement, targetSdkVersion.value()); in apply()
108 protected abstract Statement createStatement(Statement statement, int targetSdkVersion); in createStatement() argument
132 protected Statement createStatement(Statement statement, int targetSdkVersion) { in createStatement() argument
138 targetSdkVersionSetter.invoke(runtime, targetSdkVersion); in createStatement()
156 protected Statement createStatement(Statement statement, int targetSdkVersion) {
/libcore/libart/src/main/java/dalvik/system/
DVMRuntime.java74 @EnabledSince(targetSdkVersion = VersionCodes.R)
82 @EnabledSince(targetSdkVersion = VersionCodes.Q)
89 @EnabledSince(targetSdkVersion = VersionCodes.R)
208 private int targetSdkVersion = SDK_VERSION_CUR_DEVELOPMENT; field in VMRuntime
380 public synchronized void setTargetSdkVersion(int targetSdkVersion) { in setTargetSdkVersion() argument
381 this.targetSdkVersion = targetSdkVersion; in setTargetSdkVersion()
382 setTargetSdkVersionNative(this.targetSdkVersion); in setTargetSdkVersion()
443 return targetSdkVersion; in getTargetSdkVersion()
446 private native void setTargetSdkVersionNative(int targetSdkVersion); in setTargetSdkVersionNative() argument
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java78 @EnabledAfter(targetSdkVersion=29 /* Android Q */)
167 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in getCompatibleLocaleForBug159514442() local
171 if (targetSdkVersion <= 29 /* Android Q */) { in getCompatibleLocaleForBug159514442()
/libcore/ojluni/src/main/java/java/util/regex/
DPattern.java1138 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in split() local
1139 if (targetSdkVersion > 28) { in split()
5798 @EnabledSince(targetSdkVersion = VersionCodes.UPSIDE_DOWN_CAKE)
DMatcher.java882 @EnabledSince(targetSdkVersion = VersionCodes.UPSIDE_DOWN_CAKE)
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java901 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in checkTargetSdkVersionForLoad() local
902 if (targetSdkVersion > 24) { in checkTargetSdkVersionForLoad()
904 targetSdkVersion); in checkTargetSdkVersionForLoad()
DSystem.java1604 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in gc() local
1605 if (targetSdkVersion > 34) { in gc()
1610 shouldRunGC = targetSdkVersion <= 34 ? justRanFinalization : true; in gc()
1642 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in runFinalization() local
1643 if (targetSdkVersion <= 34) { in runFinalization()
1654 if (targetSdkVersion <= 34) { in runFinalization()
DPackage.java366 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in toString() local
367 if (targetSdkVersion > 0 && targetSdkVersion <= 24) { in toString()
/libcore/ojluni/src/main/java/java/net/
DInMemoryCookieStore.java81 public InMemoryCookieStore(int targetSdkVersion) { in InMemoryCookieStore() argument
84 applyMCompatibility = (targetSdkVersion <= 23); in InMemoryCookieStore()
DNetworkInterface.java80 @EnabledSince(targetSdkVersion=VersionCodes.R)
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java2481 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in getConstructorId() local
2482 if (targetSdkVersion > 0 && targetSdkVersion <= 24) { in getConstructorId()
2499 "not supported on SDK " + targetSdkVersion); in getConstructorId()
2502 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in newInstance() local
2503 if (targetSdkVersion > 0 && targetSdkVersion <= 24) { in newInstance()
2510 "is not supported on SDK " + targetSdkVersion); in newInstance()
DFile.java627 @EnabledSince(targetSdkVersion = VersionCodes.VANILLA_ICE_CREAM)
/libcore/ojluni/src/test/java/lang/ref/
DCleanerTest.java300 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in gcEmphatically() local
301 if (targetSdkVersion <= 34) { in gcEmphatically()
/libcore/ojluni/src/main/java/java/util/
DUUID.java236 @EnabledSince(targetSdkVersion = VersionCodes.UPSIDE_DOWN_CAKE)
DRandom.java120 @EnabledSince(targetSdkVersion = VersionCodes.VANILLA_ICE_CREAM)
DPriorityQueue.java1003 @EnabledSince(targetSdkVersion = VersionCodes.UPSIDE_DOWN_CAKE)
DCollections.java205 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in sort() local
206 if (targetSdkVersion > 25) { in sort()
DFormatter.java2894 @EnabledSince(targetSdkVersion = VersionCodes.VANILLA_ICE_CREAM)
DArrays.java4187 @EnabledSince(targetSdkVersion = VersionCodes.VANILLA_ICE_CREAM)
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java116 @EnabledSince(targetSdkVersion = VersionCodes.VANILLA_ICE_CREAM)
/libcore/dalvik/src/main/java/dalvik/system/
DDexFile.java75 @EnabledAfter(targetSdkVersion = VersionCodes.TIRAMISU)
/libcore/benchmarks/src/benchmarks/regression/
DR.java2304 public static final int targetSdkVersion = 0; field in R