Home
last modified time | relevance | path

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

1234

/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/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java193 ident.targetSdkVersion = Build.VERSION_CODES.CUR_DEVELOPMENT; in fromSelfAsUser()
238 private volatile int targetSdkVersion; field in LocalCallingIdentity
243 targetSdkVersion = getTargetSdkVersionInternal(); in getTargetSdkVersion()
246 return targetSdkVersion; in getTargetSdkVersion()
254 return ai.targetSdkVersion; in getTargetSdkVersionInternal()
400 @EnabledAfter(targetSdkVersion = Build.VERSION_CODES.R)
408 @EnabledSince(targetSdkVersion = Build.VERSION_CODES.R)
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyManagerTest.java180 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.Q; in setUpTargetSdk()
182 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.R; in setUpTargetSdk()
184 getContext().getApplicationInfo().targetSdkVersion = Build.VERSION_CODES.S; in setUpTargetSdk()
266 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntArrayPropertyWithErrorStatusAfterR()
281 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetIntPropertyWithUnavailableStatusAfterR()
296 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetBooleanPropertyWithErrorStatusAfterR()
310 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetFloatPropertyWithUnavailableStatusAfterR()
447 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testSetterExceptionsInQ()
469 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testSetterExceptionsAfterQ()
491 Truth.assertThat(getContext().getApplicationInfo().targetSdkVersion) in testGetterExceptionsInQ()
[all …]
/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/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/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java108 final int targetSdkVersion; in isTargetSdkLessThan() local
113 targetSdkVersion = userContext.getPackageManager().getTargetSdkVersion(packageName); in isTargetSdkLessThan()
116 targetSdkVersion = mContext.getPackageManager().getApplicationInfoAsUser( in isTargetSdkLessThan()
118 UserHandle.getUserHandleForUid(callingUid)).targetSdkVersion; in isTargetSdkLessThan()
120 return targetSdkVersion < versionCode; in isTargetSdkLessThan()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPackageInfo.kt45 val targetSdkVersion: Int, in <lambda>() constant in com.android.permissioncontroller.permission.model.livedatatypes.LightPackageInfo
55 pI.applicationInfo.uid, pI.applicationInfo.targetSdkVersion, in <lambda>()
DLightAppPermGroup.kt117 val supportsRuntimePerms = packageInfo.targetSdkVersion >= Build.VERSION_CODES.M in <lambda>()
205 (packageInfo.targetSdkVersion >= Build.VERSION_CODES.M || hasPreRuntimePerm) in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityUtilTest.java108 info.getResolveInfo().serviceInfo.applicationInfo.targetSdkVersion = Build.VERSION_CODES.Q; in getAccessibilityServiceFragmentType_targetSdkQ_volumeShortcutType()
119 info.getResolveInfo().serviceInfo.applicationInfo.targetSdkVersion = Build.VERSION_CODES.R; in getAccessibilityServiceFragmentType_targetSdkR_HaveA11yButton_invisibleType()
130 info.getResolveInfo().serviceInfo.applicationInfo.targetSdkVersion = Build.VERSION_CODES.R; in getAccessibilityServiceFragmentType_targetSdkR_NoA11yButton_toggleType()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt179 packageInfo.targetSdkVersion < Build.VERSION_CODES.M) { in <lambda>()
305 if (groupState.group.packageInfo.targetSdkVersion >= Build.VERSION_CODES.R) { in <lambda>()
313 if (groupState.group.packageInfo.targetSdkVersion >= in <lambda>()
561 val requestingAppTargetSDK = packageInfo.targetSdkVersion in <lambda>()
971 packageInfoLiveData.value!!.targetSdkVersion >= Build.VERSION_CODES.M in <lambda>()
977 .getApplicationInfo(packageName, 0).targetSdkVersion >= Build.VERSION_CODES.M in <lambda>()
1136 packageInfo.targetSdkVersion, selectedLocations) in <lambda>()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java269 return info.targetSdkVersion; in getTargetSdkVersion()
280 public boolean isBackgroundRestrictionEnabled(final int targetSdkVersion, final int uid, in isBackgroundRestrictionEnabled() argument
282 if (targetSdkVersion >= Build.VERSION_CODES.O) { in isBackgroundRestrictionEnabled()
448 return info.targetSdkVersion < Build.VERSION_CODES.O; in isPreOApp()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java293 mMockApplInfo.targetSdkVersion = Build.VERSION_CODES.GINGERBREAD; in testLegacyForegroundAppWithOtherPermissionsDenied()
319 mMockApplInfo.targetSdkVersion = Build.VERSION_CODES.GINGERBREAD; in testLegacyAppHasLocationAndAllPermissions()
710 mMockApplInfo.targetSdkVersion = Build.VERSION_CODES.GINGERBREAD; in testEnforceCoarseLocationPermissionLegacyApp()
733 mMockApplInfo.targetSdkVersion = Build.VERSION_CODES.Q; in testEnforceFineLocationPermissionNewQApp()
754 mMockApplInfo.targetSdkVersion = Build.VERSION_CODES.Q; in testEnforceFailureFineLocationPermissionNewQApp()
1323 .thenReturn(mMockApplInfo.targetSdkVersion);
1360 mMockApplInfo.targetSdkVersion = Build.VERSION_CODES.M;
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DPermissionMonitorTest.java163 private boolean hasRestrictedNetworkPermission(String partition, int targetSdkVersion, int uid, in hasRestrictedNetworkPermission() argument
166 partition, targetSdkVersion, "" /* packageName */, uid, permissions); in hasRestrictedNetworkPermission()
169 private boolean hasRestrictedNetworkPermission(String partition, int targetSdkVersion, in hasRestrictedNetworkPermission() argument
174 packageInfo.applicationInfo.targetSdkVersion = targetSdkVersion; in hasRestrictedNetworkPermission()
369 private boolean wouldBeCarryoverPackage(String partition, int targetSdkVersion, int uid) { in wouldBeCarryoverPackage() argument
372 packageInfo.applicationInfo.targetSdkVersion = targetSdkVersion; in wouldBeCarryoverPackage()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DLightAppPermGroupLiveData.kt103 if (packageInfo.targetSdkVersion < Build.VERSION_CODES.M && in <lambda>()
171 if (packageInfo.targetSdkVersion < spi.targetSdk) { in <lambda>()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DUtilsTest.java445 private void setLauncherMock(int targetSdkVersion) throws Exception { in setLauncherMock() argument
447 appInfo.targetSdkVersion = targetSdkVersion; in setLauncherMock()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt370 liveDataValue.targetSdkVersion to liveDataValue.uid in <lambda>()
373 appInfo.targetSdkVersion to appInfo.uid in <lambda>()
549 val supportsRuntime = pkgInfo.targetSdkVersion >= Build.VERSION_CODES.M in <lambda>()
778 val supportsRuntime = group.packageInfo.targetSdkVersion >= Build.VERSION_CODES.M in <lambda>()
785 group.packageInfo.targetSdkVersion)) { in <lambda>()
DSoftRestrictedPermissionPolicy.java53 int targetSDK = pkg.applicationInfo.targetSdkVersion; in shouldShow()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBackgroundActivityPreferenceControllerTest.java107 mHighApplicationInfo.targetSdkVersion = Build.VERSION_CODES.O; in setUp()
108 mLowApplicationInfo.targetSdkVersion = Build.VERSION_CODES.L; in setUp()
DBatteryUtilsTest.java163 mHighApplicationInfo.targetSdkVersion = Build.VERSION_CODES.O; in setUp()
164 mLowApplicationInfo.targetSdkVersion = Build.VERSION_CODES.L; in setUp()
287 mApplicationInfo.targetSdkVersion = SDK_VERSION; in testGetTargetSdkVersion_packageExist_returnSdk()
/packages/apps/WallpaperPicker/
Dbuild.gradle18 targetSdkVersion 23
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareUtils.java96 .targetSdkVersion < minVersion) { in isLegacyVersion()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DAppWorkaroundsTests.java38 if (ai.targetSdkVersion < VERSION_CODES.JELLY_BEAN) { in setUp()
/packages/apps/Launcher3/src/com/android/launcher3/icons/
DLauncherActivityCachingLogic.java62 object.getUser(), object.getApplicationInfo().targetSdkVersion); in loadIcon()
/packages/apps/Settings/src/com/android/settings/applications/
DAppWithAdminGrantedPermissionsCounter.java54 if (info.targetSdkVersion >= Build.VERSION_CODES.M) { in includeInCount()

1234