Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/core/java/com/android/internal/content/om/
DOverlayScanner.java43 public final int targetSdkVersion; field in OverlayScanner.ParsedOverlayInfo
49 int targetSdkVersion, boolean isStatic, int priority, File path) { in ParsedOverlayInfo() argument
52 this.targetSdkVersion = targetSdkVersion; in ParsedOverlayInfo()
63 packageName, targetPackageName, targetSdkVersion, isStatic, priority, path); in toString()
131 apkLite.targetSdkVersion, apkLite.overlayIsStatic, in parseOverlayManifest()
/frameworks/base/core/java/android/content/pm/parsing/result/
DParseInput.java52 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.Q)
61 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.Q)
71 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.Q)
109 ParseResult<?> enableDeferredError(String packageName, int targetSdkVersion); in enableDeferredError() argument
161 boolean isChangeEnabled(long changeId, @NonNull String packageName, int targetSdkVersion); in isChangeEnabled() argument
DParseTypeImpl.java73 return new ParseTypeImpl((changeId, packageName, targetSdkVersion) -> { in forParsingWithoutPlatformCompat()
78 return targetSdkVersion > gateSdkVersion; in forParsingWithoutPlatformCompat()
90 return new ParseTypeImpl((changeId, packageName, targetSdkVersion) -> { in forDefaultParsing()
93 appInfo.targetSdkVersion = targetSdkVersion; in forDefaultParsing()
170 public ParseResult<?> enableDeferredError(String packageName, int targetSdkVersion) {
172 mTargetSdkVersion = targetSdkVersion;
/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
121 targetSdkVersion, in createClassLoader()
138 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/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/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java176 int targetSdkVersion = -1; in getMaxTargetSdkVersionForUid() local
181 targetSdkVersion = Math.max(targetSdkVersion, info.targetSdkVersion); in getMaxTargetSdkVersionForUid()
187 return targetSdkVersion; in getMaxTargetSdkVersionForUid()
DInstallStart.java89 final int targetSdkVersion = getMaxTargetSdkVersionForUid(this, originatingUid); in onCreate() local
90 if (targetSdkVersion < 0) { in onCreate()
94 } else if (targetSdkVersion >= Build.VERSION_CODES.O && !declaresAppOpPermission( in onCreate()
/frameworks/base/core/tests/coretests/src/com/android/internal/content/
DOverlayConfigIterationRule.java70 void addOverlay(File path, String packageName, String targetPackage, int targetSdkVersion, in addOverlay() argument
75 packageName, targetPackage, targetSdkVersion, isStatic, priority, in addOverlay()
90 void addOverlay(File path, String packageName, String targetPackage, int targetSdkVersion) { in addOverlay() argument
91 addOverlay(path, packageName, targetPackage, targetSdkVersion, false, 0); in addOverlay()
146 when(a.getTargetSdkVersion()).thenReturn(info.targetSdkVersion); in apply()
/frameworks/base/core/jni/
Dcom_android_internal_os_ClassLoaderFactory.cpp27 jint targetSdkVersion, in createClassloaderNamespace_native() argument
32 return android::CreateClassLoaderNamespace(env, targetSdkVersion, in createClassloaderNamespace_native()
/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/services/core/java/com/android/server/compat/
DCompatConfig.java322 int targetSdkVersion) in getAllowedChangesAfterTargetSdkForPackage() argument
329 if (change.getEnableAfterTargetSdk() != targetSdkVersion) { in getAllowedChangesAfterTargetSdkForPackage()
353 int enableTargetSdkChangesForPackage(String packageName, int targetSdkVersion) in enableTargetSdkChangesForPackage() argument
355 long[] changes = getAllowedChangesAfterTargetSdkForPackage(packageName, targetSdkVersion); in enableTargetSdkChangesForPackage()
369 int disableTargetSdkChangesForPackage(String packageName, int targetSdkVersion) in disableTargetSdkChangesForPackage() argument
371 long[] changes = getAllowedChangesAfterTargetSdkForPackage(packageName, targetSdkVersion); in disableTargetSdkChangesForPackage()
DPlatformCompat.java181 public int enableTargetSdkChanges(String packageName, int targetSdkVersion) in enableTargetSdkChanges() argument
185 targetSdkVersion); in enableTargetSdkChanges()
191 public int disableTargetSdkChanges(String packageName, int targetSdkVersion) in disableTargetSdkChanges() argument
195 targetSdkVersion); in disableTargetSdkChanges()
DCompatChange.java46 @EnabledAfter(targetSdkVersion = 1234) // Needs to be > test APK targetSdkVersion.
149 return app.targetSdkVersion > getEnableAfterTargetSdk(); in isEnabled()
/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/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/com/android/internal/view/
DActionBarPolicy.java82 final int targetSdk = mContext.getApplicationInfo().targetSdkVersion; in hasEmbeddedTabs()
114 return mContext.getApplicationInfo().targetSdkVersion < in enableHomeButtonByDefault()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageParser2.java126 ParseInput.Callback enforcementCallback = (changeId, packageName, targetSdkVersion) -> {
130 appInfo.targetSdkVersion = targetSdkVersion;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSELinuxMMACTest.java82 private AndroidPackage makePackage(int targetSdkVersion) { in makePackage() argument
84 .setTargetSdkVersion(targetSdkVersion) in makePackage()
/frameworks/base/services/core/java/com/android/server/pm/
DSELinuxMMAC.java88 @EnabledAfter(targetSdkVersion = android.os.Build.VERSION_CODES.Q)
373 final int targetSdkVersion = getTargetSdkVersionForSeInfo(pkg, sharedUserSetting, in getSeInfo() local
379 return getSeInfo(pkg, isPrivileged, targetSdkVersion); in getSeInfo()
396 int targetSdkVersion) { in getSeInfo() argument
421 seInfo += TARGETSDKVERSION_STR + targetSdkVersion; in getSeInfo()
/frameworks/base/tests/TouchLatency/app/
Dbuild.gradle10 targetSdkVersion 28
/frameworks/base/core/java/android/os/
DProcess.java632 int targetSdkVersion, in start() argument
650 runtimeFlags, mountExternal, targetSdkVersion, seInfo, in start()
663 int targetSdkVersion, in startWebView() argument
675 runtimeFlags, mountExternal, targetSdkVersion, seInfo, in startWebView()
/frameworks/base/core/java/android/nfc/
DNfcAdapter.java1215 int targetSdkVersion = getSdkVersion(); in setNdefPushMessage() local
1228 if (targetSdkVersion < android.os.Build.VERSION_CODES.JELLY_BEAN) { in setNdefPushMessage()
1334 int targetSdkVersion = getSdkVersion(); in setNdefPushMessageCallback() local
1347 if (targetSdkVersion < android.os.Build.VERSION_CODES.JELLY_BEAN) { in setNdefPushMessageCallback()
1421 int targetSdkVersion = getSdkVersion(); in setOnNdefPushCompleteCallback() local
1434 if (targetSdkVersion < android.os.Build.VERSION_CODES.JELLY_BEAN) { in setOnNdefPushCompleteCallback()
2104 return mContext.getApplicationInfo().targetSdkVersion; in getSdkVersion()
/frameworks/base/tests/HierarchyViewerTest/
Dbuild.gradle19 targetSdkVersion 21

1234567891011