Home
last modified time | relevance | path

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

1234567

/packages/modules/Connectivity/framework/src/android/net/connectivity/
DConnectivityCompatChanges.java40 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.S_V2)
61 @EnabledSince(targetSdkVersion = android.os.Build.VERSION_CODES.S)
73 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.TIRAMISU)
85 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.TIRAMISU)
99 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
121 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM)
135 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
/packages/services/Car/service/src/com/android/car/pm/
DCarVersionParser.java51 major = info.targetSdkVersion; in getTargetCarVersion()
59 info.targetSdkVersion); in getTargetCarVersion()
63 static CarVersion parse(String pkgName, @Nullable String value, int targetSdkVersion) { in parse() argument
65 return CarVersion.forMajorAndMinorVersions(targetSdkVersion, 0); in parse()
71 pkgName, value, targetSdkVersion); in parse()
73 return CarVersion.forMajorAndMinorVersions(targetSdkVersion, 0); in parse()
84 targetSdkVersion); in parse()
85 return CarVersion.forMajorAndMinorVersions(targetSdkVersion, 0); in parse()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxRestrictionManager.java111 int targetSdkVersion = mInjector.getCurrentSdkLevel(); in getEffectiveTargetSdkVersion() local
119 targetSdkVersion = Integer.min(targetSdkVersion, applicationInfo.targetSdkVersion); in getEffectiveTargetSdkVersion()
122 if (targetSdkVersion == DEFAULT_TARGET_SDK_VERSION) { in getEffectiveTargetSdkVersion()
130 callingInfo, Integer.max(targetSdkVersion, DEFAULT_TARGET_SDK_VERSION)); in getEffectiveTargetSdkVersion()
DSdkSandboxVerifierReceiver.java107 int targetSdkVersion = in verifySdkHandler() local
109 ? packageInfo.applicationInfo.targetSdkVersion in verifySdkHandler()
116 targetSdkVersion, in verifySdkHandler()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/verification/
DSdkDexVerifier.java112 long targetSdkVersion, in startDexVerification() argument
120 initAllowlist(targetSdkVersion); in startDexVerification()
255 private void initAllowlist(long targetSdkVersion) in initAllowlist() argument
262 if (!mPlatformApiAllowTries.containsKey(targetSdkVersion)) { in initAllowlist()
263 buildAllowTrie(targetSdkVersion, mPlatformApiAllowlists.get(targetSdkVersion)); in initAllowlist()
269 private void buildAllowTrie(long targetSdkVersion, AllowedApisList allowedApisList) { in buildAllowTrie() argument
271 Log.w(TAG, "No allowlist found for targetSdk " + targetSdkVersion); in buildAllowTrie()
295 mPlatformApiAllowTries.put(targetSdkVersion, allowTrie); in buildAllowTrie()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt151 ApplicationInfo().apply { targetSdkVersion = pkg.targetSdkVersion } in <lambda>()
553 targetSdkVersion = 33 in <lambda>()
575 targetSdkVersion = 33 in <lambda>()
595 targetSdkVersion = 33 in <lambda>()
615 targetSdkVersion = 33 in <lambda>()
643 targetSdkVersion = 30 in <lambda>()
663 targetSdkVersion = 30 in <lambda>()
683 targetSdkVersion = 33 in <lambda>()
703 targetSdkVersion = 33 in <lambda>()
722 targetSdkVersion = 33 in <lambda>()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DApplicationTestUtils.java37 int targetSdkVersion) { in buildInfo() argument
42 info.targetSdkVersion = targetSdkVersion; in buildInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DApplicationTestUtils.java36 int targetSdkVersion) { in buildInfo() argument
41 info.targetSdkVersion = targetSdkVersion; in buildInfo()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DSdkSandboxRestrictionManagerUnitTest.java107 applicationInfo.targetSdkVersion = 35; in testGetEffectiveTargetSdkVersion_currentSdkVersionUsed()
124 applicationInfo1.targetSdkVersion = 35; in testGetEffectiveTargetSdkVersion_withDifferentTargetSdkVersionForSdk()
126 applicationInfo2.targetSdkVersion = 36; in testGetEffectiveTargetSdkVersion_withDifferentTargetSdkVersionForSdk()
182 applicationInfo1.targetSdkVersion = 35; in testGetEffectiveTargetSdkVersion_sharedUid()
184 applicationInfo2.targetSdkVersion = 36; in testGetEffectiveTargetSdkVersion_sharedUid()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/grantPermissions/
DStorageGrantBehavior.kt55 if (group.packageInfo.targetSdkVersion < Build.VERSION_CODES.Q) { in getPrompt()
119 SdkLevel.isAtLeastT() && group.packageInfo.targetSdkVersion >= Build.VERSION_CODES.TIRAMISU in appSupportsSplitStoragePermissions()
124 (group.packageInfo.targetSdkVersion >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE || in appSupportsSplitStoragePermissions()
128 group.packageInfo.targetSdkVersion >= Build.VERSION_CODES.TIRAMISU && in appSupportsSplitStoragePermissions()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyManagerTest.java258 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in setUpTargetSdk()
260 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.Q; in setUpTargetSdk()
263 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.R; in setUpTargetSdk()
265 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.S; in setUpTargetSdk()
267 getContext().getApplicationInfo().targetSdkVersion = in setUpTargetSdk()
363 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntArrayPropertyWithErrorStatusBeforeS()
375 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntArrayPropertyWithErrorStatusEqualAfterS()
387 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntArrayPropertyWithUnknownStatusBeforeS()
399 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntArrayPropertyWithUnknownStatusEqualAfterS()
411 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntPropertyWithUnavailableStatusBeforeS()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java203 ident.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in fromSelfAsUser()
227 ident.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in forTest()
293 private volatile int targetSdkVersion; field in LocalCallingIdentity
298 targetSdkVersion = getTargetSdkVersionInternal(); in getTargetSdkVersion()
301 return targetSdkVersion; in getTargetSdkVersion()
309 return ai.targetSdkVersion; in getTargetSdkVersionInternal()
474 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.R)
482 @EnabledSince(targetSdkVersion = Build.VERSION_CODES.R)
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DAppWorkaroundsUtils.java43 return mPackageInfo.applicationInfo.targetSdkVersion < VERSION_CODES.JELLY_BEAN; in isBeforeJellyBean()
57 .append(mPackageInfo.applicationInfo.targetSdkVersion); in toString()
/packages/apps/TV/interactive/SampleTvInteractiveAppService/
Dbuild.gradle13 targetSdkVersion rootProject.ext.targetSdkVersion
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DCarVersionParserTest.java35 info.targetSdkVersion = 42; in testGetTargetCarApiVersion_noMetadata()
48 info.targetSdkVersion = 666; // Set to make sure it's not used in testGetTargetCarApiVersion_simpleCase()
/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java325 int callingPid, int targetSdkVersion) { in onSetCamera() argument
336 callingPackage, callingUid, callingPid, targetSdkVersion); in onSetCamera()
340 if (targetSdkVersion > Build.VERSION_CODES.N_MR1) { in onSetCamera()
358 targetSdkVersion); in onSetCamera()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DNotificationsPreferenceControllerTest.java97 mPackageInfo.applicationInfo.targetSdkVersion = Build.VERSION_CODES.TIRAMISU; in setUp()
199 mPackageInfo.applicationInfo.targetSdkVersion = Build.VERSION_CODES.S; in onCreate_targetSdkBelow33_systemFixedFlag_isNotEnabled()
218 mPackageInfo.applicationInfo.targetSdkVersion = Build.VERSION_CODES.S; in onCreate_targetSdkBelow33_policyFixedFlag_isNotEnabled()
237 mPackageInfo.applicationInfo.targetSdkVersion = Build.VERSION_CODES.S; in onCreate_targetSdkBelow33_doesNotHavePermission_isEnabled()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/location/
DLocationInfotainmentAppsPreferenceControllerTest.java150 appInfo.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in refreshUi_permissionNotGranted_hideApp()
170 appInfo.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in refreshUi_appDisabled_hideApp()
183 appInfo.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in initializePreference()
/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/
DSdkSandboxConfigurationTest.java111 int targetSdkVersion = info.applicationInfo.targetSdkVersion; in testCorrectSdkVersion() local
112 assertThat(targetSdkVersion).isAtLeast(33); in testCorrectSdkVersion()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPackageInfo.kt50 val targetSdkVersion: Int, in <lambda>() constant in com.android.permissioncontroller.permission.model.livedatatypes.LightPackageInfo
68 pI.applicationInfo!!.targetSdkVersion, in <lambda>()
DLightAppPermGroup.kt115 val supportsRuntimePerms = packageInfo.targetSdkVersion >= Build.VERSION_CODES.M in <lambda>()
230 (packageInfo.targetSdkVersion >= Build.VERSION_CODES.M || hasPreRuntimePerm) in <lambda>()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/notifications/
DNotificationsAppListPreferenceControllerTest.java113 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.TIRAMISU; in setUp()
236 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.S; in onCreate_targetSdkBelow33_systemFixedFlag_isNotEnabled()
256 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.S; in onCreate_targetSdkBelow33_policyFixedFlag_isNotEnabled()
276 mApplicationInfo.targetSdkVersion = Build.VERSION_CODES.S; in onCreate_targetSdkBelow33_doesNotHavePermission_isEnabled()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/notification/
DAppNotificationRepositoryTest.kt175 targetSdkVersion = Build.VERSION_CODES.S in isChangeable_appTargetS()
186 targetSdkVersion = Build.VERSION_CODES.TIRAMISU in isChangeable_appTargetTiramisuWithoutNotificationPermission()
201 targetSdkVersion = Build.VERSION_CODES.TIRAMISU in isChangeable_appTargetTiramisuWithNotificationPermission()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DLocationPermissionCheckerTest.java156 mMockApplInfo.targetSdkVersion = Build.VERSION_CODES.M; in initTestVars()
218 mMockApplInfo.targetSdkVersion = Build.VERSION_CODES.Q;
262 mMockApplInfo.targetSdkVersion = Build.VERSION_CODES.Q;
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DLightAppPermGroupLiveData.kt109 packageInfo.targetSdkVersion < Build.VERSION_CODES.M && in <lambda>()
186 if (packageInfo.targetSdkVersion < spi.targetSdk) { in <lambda>()

1234567