Home
last modified time | relevance | path

Searched refs:targetSdkVersion (Results 1 – 10 of 10) 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.java73 @EnabledAfter(targetSdkVersion = VersionCodes.Q)
81 @EnabledAfter(targetSdkVersion = VersionCodes.P)
88 @EnabledAfter(targetSdkVersion = VersionCodes.Q)
175 private int targetSdkVersion = SDK_VERSION_CUR_DEVELOPMENT; field in VMRuntime
312 public synchronized void setTargetSdkVersion(int targetSdkVersion) { in setTargetSdkVersion() argument
313 this.targetSdkVersion = targetSdkVersion; in setTargetSdkVersion()
314 setTargetSdkVersionNative(this.targetSdkVersion); in setTargetSdkVersion()
335 return targetSdkVersion; in getTargetSdkVersion()
338 private native void setTargetSdkVersionNative(int targetSdkVersion); in setTargetSdkVersionNative() argument
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java907 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in checkTargetSdkVersionForLoad() local
908 if (targetSdkVersion > 24) { in checkTargetSdkVersionForLoad()
910 targetSdkVersion); in checkTargetSdkVersionForLoad()
DPackage.java366 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in toString() local
367 if (targetSdkVersion > 0 && targetSdkVersion <= 24) { in toString()
/libcore/luni/src/main/java/libcore/icu/
DLocaleData.java86 @EnabledAfter(targetSdkVersion=29 /* Android Q */)
204 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in getCompatibleLocaleForBug159514442() local
208 if (targetSdkVersion <= 29 /* Android Q */) { in getCompatibleLocaleForBug159514442()
/libcore/ojluni/src/main/java/java/net/
DInMemoryCookieStore.java81 public InMemoryCookieStore(int targetSdkVersion) { in InMemoryCookieStore() argument
84 applyMCompatibility = (targetSdkVersion <= 23); in InMemoryCookieStore()
/libcore/ojluni/src/main/java/java/util/regex/
DPattern.java1159 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in split() local
1160 if (targetSdkVersion > 28) { in split()
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java2404 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in getConstructorId() local
2405 if (targetSdkVersion > 0 && targetSdkVersion <= 24) { in getConstructorId()
2422 "not supported on SDK " + targetSdkVersion); in getConstructorId()
2425 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in newInstance() local
2426 if (targetSdkVersion > 0 && targetSdkVersion <= 24) { in newInstance()
2433 "is not supported on SDK " + targetSdkVersion); in newInstance()
/libcore/benchmarks/src/benchmarks/regression/
DR.java2304 public static final int targetSdkVersion = 0; field in R
/libcore/ojluni/src/main/java/java/util/
DCollections.java204 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in sort() local
205 if (targetSdkVersion > 25) { in sort()