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/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 127 public boolean isTargetSdkLessThan(String packageName, int versionCode, int callingUid) { in isTargetSdkLessThan() method in WifiPermissionsUtil 157 boolean isTargetSdkLessThanQ = isTargetSdkLessThan(pkgName, Build.VERSION_CODES.Q, uid); in checkCallersLocationPermission()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 553 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledMetricsNormalAppBelowQSDK() 572 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledMetricsNormalAppTargetingQSDKNoIncrement() 616 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledSuccessForDOAppsTargetingQSDK() 636 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledSuccessForSystemAppsTargetingQSDK() 654 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledSuccessForAppsTargetingBelowQSDK() 685 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledFailureForAppsTargetingQSDK() 702 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnableAppOpsRejected() 722 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnableAppOpsIgnored() 754 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledFromAppFailsWhenInAirplaneMode() 798 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), in testSetWifiEnabledFromAppFailsWhenApEnabled() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManagerTest.java | 164 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in setUp() 1020 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in testDataPathResonderMacPassphraseNoPeerIdSuccessNonLegacy() 1032 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in testDataPathResonderMacOpenNoPeerIdNoPmkPassphraseSuccessNonLegacy() 1079 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in testDataPathResonderDirectNoMacPassphraseSuccessNonLegacy() 1090 when(mWifiPermissionsUtil.isTargetSdkLessThan(anyString(), anyInt(), anyInt())) in testDataPathResonderDirectNoMacNoPmkPassphraseSuccessNonLegacy() 1479 boolean isLegacy = mWifiPermissionsUtil.isTargetSdkLessThan("anything", in testDataPathResponderUtility()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 883 return mWifiPermissionsUtil.isTargetSdkLessThan(packageName, Build.VERSION_CODES.Q, uid) in isTargetSdkLessThanQOrPrivileged() 905 && !mWifiPermissionsUtil.isTargetSdkLessThan(packageName, Build.VERSION_CODES.Q, in setWifiEnabled()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareDataPathStateManager.java | 1282 if (!allowNdpResponderFromAnyOverride && !wifiPermissionsUtil.isTargetSdkLessThan( in processNetworkSpecifier()
|