Home
last modified time | relevance | path

Searched refs:getTargetSdkVersion (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/applications/appinfo/
DHibernationSwitchPreferenceControllerTest.java78 when(mPackageManager.getTargetSdkVersion(eq(EXEMPTED_PACKAGE_NAME))) in setUp()
80 when(mPackageManager.getTargetSdkVersion(eq(UNEXEMPTED_PACKAGE_NAME))) in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/appinfo/
DHibernationSwitchPreferenceControllerTest.java94 when(mPackageManager.getTargetSdkVersion(eq(EXEMPTED_PACKAGE_NAME))) in setUp()
96 when(mPackageManager.getTargetSdkVersion(eq(UNEXEMPTED_PACKAGE_NAME))) in setUp()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DSoftRestrictedPermissionPolicy.java79 return isWhiteListed || pkg.getTargetSdkVersion() >= Build.VERSION_CODES.Q; in shouldShow()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/appinfo/
DHibernationSwitchPreferenceController.java95 mIsPackageExemptByDefault = packageManager.getTargetSdkVersion(packageName) in setPackageName()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DHibernationSwitchPreferenceController.java102 : packageManager.getTargetSdkVersion(packageName) in setPackage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java289 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo(SDK_VERSION); in testGetTargetSdkVersion_packageExist_returnSdk()
298 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo( in testGetTargetSdkVersion_packageNotExist_returnSdkNull()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/notificationaccess/
DNotificationAccessDetails.java97 listenerTargetSdk = mPm.getTargetSdkVersion(mComponentName.getPackageName()); in onAttach()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java241 public int getTargetSdkVersion() { in getTargetSdkVersion() method in LocalCallingIdentity
DMediaProvider.java9732 return mCallingIdentity.get().getTargetSdkVersion();
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java264 public int getTargetSdkVersion(final String packageName) { in getTargetSdkVersion() method in BatteryUtils
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java113 targetSdkVersion = userContext.getPackageManager().getTargetSdkVersion(packageName); in isTargetSdkLessThan()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java1322 when(mMockPkgMgr.getTargetSdkVersion(TEST_PACKAGE_NAME))
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java1663 when(mPackageManager.getTargetSdkVersion(anyString())) in setUp()
9652 when(mPackageManager.getTargetSdkVersion(any())).thenReturn(targetSdk); in setupLocationPermissions()
9984 when(mPackageManager.getTargetSdkVersion(anyString())).thenReturn(Build.VERSION_CODES.S); in verifyNetworkCallbackLocationDataInclusionUsingTransportInfoAndOwnerUidInNetCaps()
/packages/modules/Connectivity/service/src/com/android/server/
DConnectivityService.java6019 final int callingVersion = pm.getTargetSdkVersion(callingPackageName); in isTargetSdkAtleast()