/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/ |
D | ApplicationTestUtils.java | 37 int targetSdkVersion) { in buildInfo() argument 42 info.targetSdkVersion = targetSdkVersion; in buildInfo()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | ApplicationTestUtils.java | 36 int targetSdkVersion) { in buildInfo() argument 41 info.targetSdkVersion = targetSdkVersion; in buildInfo()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | LocalCallingIdentity.java | 193 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/ |
D | CarPropertyManagerTest.java | 180 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/ |
D | VideoProviderProxy.java | 325 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/ |
D | AppWorkaroundsUtils.java | 43 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/ |
D | WifiPermissionsUtil.java | 108 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/ |
D | LightPackageInfo.kt | 45 val targetSdkVersion: Int, in <lambda>() constant in com.android.permissioncontroller.permission.model.livedatatypes.LightPackageInfo 55 pI.applicationInfo.uid, pI.applicationInfo.targetSdkVersion, in <lambda>()
|
D | LightAppPermGroup.kt | 117 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/ |
D | AccessibilityUtilTest.java | 108 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/ |
D | GrantPermissionsViewModel.kt | 179 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/ |
D | BatteryUtils.java | 269 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/ |
D | WifiPermissionsUtilTest.java | 293 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/ |
D | PermissionMonitorTest.java | 163 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/ |
D | LightAppPermGroupLiveData.kt | 103 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/ |
D | UtilsTest.java | 445 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/ |
D | KotlinUtils.kt | 370 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>()
|
D | SoftRestrictedPermissionPolicy.java | 53 int targetSDK = pkg.applicationInfo.targetSdkVersion; in shouldShow()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BackgroundActivityPreferenceControllerTest.java | 107 mHighApplicationInfo.targetSdkVersion = Build.VERSION_CODES.O; in setUp() 108 mLowApplicationInfo.targetSdkVersion = Build.VERSION_CODES.L; in setUp()
|
D | BatteryUtilsTest.java | 163 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/ |
D | build.gradle | 18 targetSdkVersion 23
|
/packages/modules/Wifi/framework/java/android/net/wifi/aware/ |
D | WifiAwareUtils.java | 96 .targetSdkVersion < minVersion) { in isLegacyVersion()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | AppWorkaroundsTests.java | 38 if (ai.targetSdkVersion < VERSION_CODES.JELLY_BEAN) { in setUp()
|
/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | LauncherActivityCachingLogic.java | 62 object.getUser(), object.getApplicationInfo().targetSdkVersion); in loadIcon()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppWithAdminGrantedPermissionsCounter.java | 54 if (info.targetSdkVersion >= Build.VERSION_CODES.M) { in includeInCount()
|