Home
last modified time | relevance | path

Searched refs:isTargetSdkLessThan (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DLocationPermissionChecker.java180 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/
DWifiPermissionsUtil.java127 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/
DWifiServiceImplTest.java553 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/
DWifiAwareDataPathStateManagerTest.java164 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/
DWifiServiceImpl.java883 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/
DWifiAwareDataPathStateManager.java1282 if (!allowNdpResponderFromAnyOverride && !wifiPermissionsUtil.isTargetSdkLessThan( in processNetworkSpecifier()