Home
last modified time | relevance | path

Searched refs:targetSdkVersion (Results 1 – 8 of 8) 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
139 targetSdkVersionSetter.invoke(runtime, targetSdkVersion); in createStatement()
156 protected Statement createStatement(Statement statement, int targetSdkVersion) {
/libcore/libart/src/main/java/dalvik/system/
DVMRuntime.java142 private int targetSdkVersion = SDK_VERSION_CUR_DEVELOPMENT; field in VMRuntime
276 public synchronized void setTargetSdkVersion(int targetSdkVersion) { in setTargetSdkVersion() argument
277 this.targetSdkVersion = targetSdkVersion; in setTargetSdkVersion()
278 setTargetSdkVersionNative(this.targetSdkVersion); in setTargetSdkVersion()
287 return targetSdkVersion; in getTargetSdkVersion()
290 private native void setTargetSdkVersionNative(int targetSdkVersion); in setTargetSdkVersionNative() argument
/libcore/ojluni/src/main/java/java/lang/
DRuntime.java906 final int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in checkTargetSdkVersionForLoad() local
907 if (targetSdkVersion > 24) { in checkTargetSdkVersionForLoad()
909 targetSdkVersion); in checkTargetSdkVersionForLoad()
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()
/libcore/ojluni/src/main/java/java/util/regex/
DPattern.java1166 int targetSdkVersion = VMRuntime.getRuntime().getTargetSdkVersion(); in split() local
1167 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