Searched refs:getTargetSdkVersion (Results 1 – 14 of 14) sorted by relevance
78 when(mPackageManager.getTargetSdkVersion(eq(EXEMPTED_PACKAGE_NAME))) in setUp()80 when(mPackageManager.getTargetSdkVersion(eq(UNEXEMPTED_PACKAGE_NAME))) in setUp()
94 when(mPackageManager.getTargetSdkVersion(eq(EXEMPTED_PACKAGE_NAME))) in setUp()96 when(mPackageManager.getTargetSdkVersion(eq(UNEXEMPTED_PACKAGE_NAME))) in setUp()
79 return isWhiteListed || pkg.getTargetSdkVersion() >= Build.VERSION_CODES.Q; in shouldShow()
95 mIsPackageExemptByDefault = packageManager.getTargetSdkVersion(packageName) in setPackageName()
102 : packageManager.getTargetSdkVersion(packageName) in setPackage()
289 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo(SDK_VERSION); in testGetTargetSdkVersion_packageExist_returnSdk()298 assertThat(mBatteryUtils.getTargetSdkVersion(PACKAGE_NAME)).isEqualTo( in testGetTargetSdkVersion_packageNotExist_returnSdkNull()
97 listenerTargetSdk = mPm.getTargetSdkVersion(mComponentName.getPackageName()); in onAttach()
241 public int getTargetSdkVersion() { in getTargetSdkVersion() method in LocalCallingIdentity
9732 return mCallingIdentity.get().getTargetSdkVersion();
264 public int getTargetSdkVersion(final String packageName) { in getTargetSdkVersion() method in BatteryUtils
113 targetSdkVersion = userContext.getPackageManager().getTargetSdkVersion(packageName); in isTargetSdkLessThan()
1322 when(mMockPkgMgr.getTargetSdkVersion(TEST_PACKAGE_NAME))
1663 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()
6019 final int callingVersion = pm.getTargetSdkVersion(callingPackageName); in isTargetSdkAtleast()