Home
last modified time | relevance | path

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

12345678910

/frameworks/base/core/tests/coretests/src/android/content/pm/
DAndroidHidlUpdaterTest.java43 .targetSdkVersion(Build.VERSION_CODES.P); in targeted_at_P()
52 .targetSdkVersion(Build.VERSION_CODES.P); in targeted_at_P_system()
56 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_system()
65 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_not_empty_usesLibraries()
75 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_not_empty_usesLibraries_system()
81 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_not_empty_usesLibraries_system()
90 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_in_usesLibraries()
94 .targetSdkVersion(Build.VERSION_CODES.P); in targeted_at_P_in_usesLibraries()
103 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_in_usesLibraries_system()
DAndroidTestBaseUpdaterTest.java42 .targetSdkVersion(Build.VERSION_CODES.P); in targeted_at_P()
46 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P()
55 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_not_empty_usesLibraries()
61 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_not_empty_usesLibraries()
70 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_in_usesLibraries()
81 .targetSdkVersion(Build.VERSION_CODES.P) in targeted_at_P_in_usesOptionalLibraries()
DOrgApacheHttpLegacyUpdaterTest.java42 .targetSdkVersion(Build.VERSION_CODES.O); in targeted_at_O()
46 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O()
55 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_not_empty_usesLibraries()
61 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_not_empty_usesLibraries()
70 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_in_usesLibraries()
81 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_in_usesOptionalLibraries()
DRemoveUnnecessaryAndroidTestBaseLibraryTest.java44 .targetSdkVersion(Build.VERSION_CODES.O); in targeted_at_O()
53 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_not_empty_usesLibraries()
63 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_in_usesLibraries()
69 .targetSdkVersion(Build.VERSION_CODES.O); in targeted_at_O_in_usesLibraries()
77 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_in_usesOptionalLibraries()
83 .targetSdkVersion(Build.VERSION_CODES.O); in targeted_at_O_in_usesOptionalLibraries()
DRemoveUnnecessaryOrgApacheHttpLegacyLibraryTest.java44 .targetSdkVersion(Build.VERSION_CODES.O); in targeted_at_O()
53 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_not_empty_usesLibraries()
63 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_in_usesLibraries()
69 .targetSdkVersion(Build.VERSION_CODES.O); in targeted_at_O_in_usesLibraries()
77 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O_in_usesOptionalLibraries()
83 .targetSdkVersion(Build.VERSION_CODES.O); in targeted_at_O_in_usesOptionalLibraries()
DPackageBuilder.java46 pkg.applicationInfo.targetSdkVersion = mTargetSdkVersion; in build()
53 PackageBuilder targetSdkVersion(int version) { in targetSdkVersion() method in PackageBuilder
86 pkg.applicationInfo.targetSdkVersion); in check()
DPackageBackwardCompatibilityTest.java72 .targetSdkVersion(Build.VERSION_CODES.O); in targeted_at_O()
81 .targetSdkVersion(Build.VERSION_CODES.O) in targeted_at_O()
/frameworks/base/core/java/com/android/internal/os/
DWrapperInit.java67 int targetSdkVersion = Integer.parseInt(args[1], 10); in main() local
91 Runnable r = wrapperInit(targetSdkVersion, runtimeArgs); in main()
107 int targetSdkVersion, String instructionSet, FileDescriptor pipeFd, in execApplication() argument
135 command.append(targetSdkVersion); in execApplication()
152 private static Runnable wrapperInit(int targetSdkVersion, String[] argv) { in wrapperInit() argument
161 classLoader = ZygoteInit.createPathClassLoader(argv[1], targetSdkVersion); in wrapperInit()
173 return RuntimeInit.applicationInit(targetSdkVersion, /*disabledCompatChanges*/ null, in wrapperInit()
DClassLoaderFactory.java102 int targetSdkVersion, boolean isNamespaceShared, String classLoaderName) { in createClassLoader() argument
104 parent, targetSdkVersion, isNamespaceShared, classLoaderName, null); in createClassLoader()
113 int targetSdkVersion, boolean isNamespaceShared, String classLoaderName, in createClassLoader() argument
124 targetSdkVersion, in createClassLoader()
142 int targetSdkVersion, in createClassloaderNamespace() argument
/frameworks/base/core/java/android/app/
DApplicationLoaders.java46 ClassLoader getClassLoader(String zip, int targetSdkVersion, boolean isBundled, in getClassLoader() argument
49 return getClassLoaderWithSharedLibraries(zip, targetSdkVersion, isBundled, in getClassLoader()
55 String zip, int targetSdkVersion, boolean isBundled, in getClassLoaderWithSharedLibraries() argument
60 return getClassLoader(zip, targetSdkVersion, isBundled, librarySearchPath, in getClassLoaderWithSharedLibraries()
71 ClassLoader getSharedLibraryClassLoaderWithSharedLibraries(String zip, int targetSdkVersion, in getSharedLibraryClassLoaderWithSharedLibraries() argument
80 return getClassLoaderWithSharedLibraries(zip, targetSdkVersion, isBundled, in getSharedLibraryClassLoaderWithSharedLibraries()
84 private ClassLoader getClassLoader(String zip, int targetSdkVersion, boolean isBundled, in getClassLoader() argument
116 targetSdkVersion, isBundled, classLoaderName, sharedLibraries); in getClassLoader()
/frameworks/base/core/java/android/content/pm/
DOrgApacheHttpLegacyUpdater.java35 int targetSdkVersion = pkg.applicationInfo.targetSdkVersion; in apkTargetsApiLevelLessThanOrEqualToOMR1() local
36 return targetSdkVersion < Build.VERSION_CODES.P; in apkTargetsApiLevelLessThanOrEqualToOMR1()
DAndroidTestBaseUpdater.java42 int targetSdkVersion = pkg.applicationInfo.targetSdkVersion; in apkTargetsApiLevelLessThanOrEqualToP() local
43 return targetSdkVersion <= Build.VERSION_CODES.P; in apkTargetsApiLevelLessThanOrEqualToP()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java177 int targetSdkVersion = -1; in getMaxTargetSdkVersionForUid() local
182 targetSdkVersion = Math.max(targetSdkVersion, info.targetSdkVersion); in getMaxTargetSdkVersionForUid()
188 return targetSdkVersion; in getMaxTargetSdkVersionForUid()
DInstallStart.java80 final int targetSdkVersion = getMaxTargetSdkVersionForUid(this, originatingUid); in onCreate() local
81 if (targetSdkVersion < 0) { in onCreate()
85 } else if (targetSdkVersion >= Build.VERSION_CODES.O && !declaresAppOpPermission( in onCreate()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestUtils.java85 info.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in makeApplicationInfo()
90 public static ApplicationInfo makeApplicationInfo(int targetSdkVersion) { in makeApplicationInfo() argument
92 info.targetSdkVersion = targetSdkVersion; in makeApplicationInfo()
/frameworks/base/core/jni/
Dcom_android_internal_os_ClassLoaderFactory.cpp27 jint targetSdkVersion, in createClassloaderNamespace_native() argument
33 return android::CreateClassLoaderNamespace(env, targetSdkVersion, in createClassloaderNamespace_native()
/frameworks/base/services/core/java/com/android/server/compat/
DCompatConfig.java314 int targetSdkVersion) in getAllowedChangesAfterTargetSdkForPackage() argument
321 if (change.getEnableAfterTargetSdk() != targetSdkVersion) { in getAllowedChangesAfterTargetSdkForPackage()
345 int enableTargetSdkChangesForPackage(String packageName, int targetSdkVersion) in enableTargetSdkChangesForPackage() argument
347 long[] changes = getAllowedChangesAfterTargetSdkForPackage(packageName, targetSdkVersion); in enableTargetSdkChangesForPackage()
361 int disableTargetSdkChangesForPackage(String packageName, int targetSdkVersion) in disableTargetSdkChangesForPackage() argument
363 long[] changes = getAllowedChangesAfterTargetSdkForPackage(packageName, targetSdkVersion); in disableTargetSdkChangesForPackage()
DPlatformCompat.java174 public int enableTargetSdkChanges(String packageName, int targetSdkVersion) in enableTargetSdkChanges() argument
178 targetSdkVersion); in enableTargetSdkChanges()
184 public int disableTargetSdkChanges(String packageName, int targetSdkVersion) in disableTargetSdkChanges() argument
188 targetSdkVersion); in disableTargetSdkChanges()
DOverrideValidatorImpl.java78 int appTargetSdk = applicationInfo.targetSdkVersion; in getOverrideAllowedState()
92 if (disabled || applicationInfo.targetSdkVersion < minTargetSdk) { in getOverrideAllowedState()
/frameworks/base/core/java/com/android/internal/compat/
DIPlatformCompat.aidl176 int enableTargetSdkChanges(in String packageName, int targetSdkVersion); in enableTargetSdkChanges() argument
188 int disableTargetSdkChanges(in String packageName, int targetSdkVersion); in disableTargetSdkChanges() argument
/frameworks/base/tools/aapt2/link/
DManifestFixer_test.cpp122 <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="21" /> in TEST_F()
137 attr = el->FindAttribute(xml::kSchemaAndroid, "targetSdkVersion"); in TEST_F()
144 <uses-sdk android:targetSdkVersion="21" /> in TEST_F()
156 attr = el->FindAttribute(xml::kSchemaAndroid, "targetSdkVersion"); in TEST_F()
175 attr = el->FindAttribute(xml::kSchemaAndroid, "targetSdkVersion"); in TEST_F()
192 attr = el->FindAttribute(xml::kSchemaAndroid, "targetSdkVersion"); in TEST_F()
/frameworks/base/core/java/android/view/
DScaleGestureDetector.java207 final int targetSdkVersion = context.getApplicationInfo().targetSdkVersion; in ScaleGestureDetector() local
208 if (targetSdkVersion > Build.VERSION_CODES.JELLY_BEAN_MR2) { in ScaleGestureDetector()
212 if (targetSdkVersion > Build.VERSION_CODES.LOLLIPOP_MR1) { in ScaleGestureDetector()
/frameworks/base/services/core/java/com/android/server/pm/
DSharedUserSetting.java101 seInfoTargetSdkVersion = packageSetting.pkg.applicationInfo.targetSdkVersion; in addPackage()
140 if (pkg.applicationInfo.targetSdkVersion < seInfoTargetSdkVersion) { in fixSeInfoLocked()
141 seInfoTargetSdkVersion = pkg.applicationInfo.targetSdkVersion; in fixSeInfoLocked()
/frameworks/base/core/java/android/os/
DProcess.java584 int targetSdkVersion, in start() argument
596 runtimeFlags, mountExternal, targetSdkVersion, seInfo, in start()
607 int targetSdkVersion, in startWebView() argument
617 runtimeFlags, mountExternal, targetSdkVersion, seInfo, in startWebView()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java82 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs()
114 return mContext.getApplicationInfo().targetSdkVersion < in enableHomeButtonByDefault()

12345678910