Searched refs:isTargetSdkLessThan (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/com/android/internal/util/ |
D | LocationPermissionChecker.java | 180 boolean isTargetSdkLessThanQ = isTargetSdkLessThan(pkgName, Build.VERSION_CODES.Q, uid); in checkCallersLocationPermission() 220 private boolean isTargetSdkLessThan(String packageName, int versionCode, int callingUid) { in isTargetSdkLessThan() method in LocationPermissionChecker
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 495 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testRemoveNetworkFailureAppBelowQSdk() 585 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledMetricsNormalAppBelowQSdk() 604 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement() 648 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledSuccessForDOAppsTargetingQSdk() 667 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledSuccessForSystemAppsTargetingQSdk() 685 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledSuccessForAppsTargetingBelowQSdk() 702 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledFailureForAppsTargetingQSdk() 719 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnableAppOpsRejected() 739 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnableAppOpsIgnored() 771 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledFromAppFailsWhenInAirplaneMode() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 95 public boolean isTargetSdkLessThan(String packageName, int versionCode, int callingUid) { in isTargetSdkLessThan() method in WifiPermissionsUtil 129 boolean isTargetSdkLessThanQ = isTargetSdkLessThan(pkgName, Build.VERSION_CODES.Q, uid); in checkCallersLocationPermission()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManagerTest.java | 161 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in setUp() 979 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in testDataPathResonderMacPassphraseNoPeerIdSuccessNonLegacy() 991 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in testDataPathResonderMacOpenNoPeerIdNoPmkPassphraseSuccessNonLegacy() 1038 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in testDataPathResonderDirectNoMacPassphraseSuccessNonLegacy() 1049 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in testDataPathResonderDirectNoMacNoPmkPassphraseSuccessNonLegacy() 1515 boolean isLegacy = mWifiPermissionsUtil.isTargetSdkLessThan("anything", in testDataPathResponderUtility()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 741 return mWifiPermissionsUtil.isTargetSdkLessThan(packageName, Build.VERSION_CODES.Q, uid) in isTargetSdkLessThanQOrPrivileged() 755 return mWifiPermissionsUtil.isTargetSdkLessThan(packageName, Build.VERSION_CODES.R, uid) in isTargetSdkLessThanROrPrivileged() 774 && !mWifiPermissionsUtil.isTargetSdkLessThan(packageName, Build.VERSION_CODES.Q, in setWifiEnabled()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManager.java | 1289 if (!allowNdpResponderFromAnyOverride && !wifiPermissionsUtil.isTargetSdkLessThan( in processNetworkSpecifier()
|