Searched refs:enforceCanAccessScanResults (Results 1 – 8 of 8) sorted by relevance
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 195 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCanReadPeersMacAddressCurrentUserAndAllPermissions() 218 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions() 235 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResult_AppNotAllowed() 262 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testenforceCanAccessScanResults_UserOrProfileNotCurrent() 283 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission() 308 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testLegacyForegroundAppWithOtherPermissionsDenied() 335 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testLegacyAppHasLocationAndAllPermissions() 356 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResults_NoCoarseLocationPermission() 386 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testCannotAccessScanResults_LocationModeDisabled() 420 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, mUid); in testEnforceCannotAccessScanResults_LocationModeDisabledHasChangeWifiState() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScoredNetworkEvaluatorTest.java | 238 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testUpdate_externalScorerNotPermittedToSeeScanResults() 248 verify(mWifiPermissionsUtil).enforceCanAccessScanResults( in testUpdate_externalScorerNotPermittedToSeeScanResults() 261 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testUpdate_externalScorerNotPermittedToSeeScanResultsWithException() 271 verify(mWifiPermissionsUtil).enforceCanAccessScanResults( in testUpdate_externalScorerNotPermittedToSeeScanResultsWithException()
|
D | WifiNetworkSuggestionsManagerTest.java | 827 .enforceCanAccessScanResults(TEST_PACKAGE_1, TEST_UID_1); in testOnNetworkConnectionSuccessWithOneMatch() 908 .enforceCanAccessScanResults(packageNameCaptor.capture(), uidCaptor.capture()); in testOnNetworkConnectionSuccessWithMultipleMatch() 970 .enforceCanAccessScanResults(packageNameCaptor.capture(), uidCaptor.capture()); in testOnNetworkConnectionSuccessWithBssidMultipleMatch() 1033 .enforceCanAccessScanResults(packageNameCaptor.capture(), uidCaptor.capture()); in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch() 1135 .when(mWifiPermissionsUtil).enforceCanAccessScanResults(TEST_PACKAGE_1, TEST_UID_1); in testOnNetworkConnectionWhenAppDoesNotHoldLocationPermission() 1143 .enforceCanAccessScanResults(TEST_PACKAGE_1, TEST_UID_1); in testOnNetworkConnectionWhenAppDoesNotHoldLocationPermission()
|
D | WifiServiceImplTest.java | 1141 .enforceCanAccessScanResults(SCAN_PACKAGE_NAME, Process.myUid()); in testStartScanFailureInCanAccessScanResultsPermission() 1191 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testConnectedIdsAreHiddenFromAppWithoutPermission() 1209 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testConnectedIdsAreHiddenOnSecurityException() 1262 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testConfiguredNetworkListAreEmptyOnSecurityException() 1305 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testPrivilegedConfiguredNetworkListAreEmptyFromAppWithoutPermission() 1323 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testPrivilegedConfiguredNetworkListAreEmptyOnSecurityException()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 236 public void enforceCanAccessScanResults(String pkgName, int uid) throws SecurityException { in enforceCanAccessScanResults() method in WifiPermissionsUtil
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScoredNetworkEvaluator.java | 119 mWifiPermissionsUtil.enforceCanAccessScanResults(packageName, uid); in activeScorerAllowedtoSeeScanResults()
|
D | WifiServiceImpl.java | 641 mWifiPermissionsUtil.enforceCanAccessScanResults(packageName, callingUid); in startScan() 1816 mWifiPermissionsUtil.enforceCanAccessScanResults(packageName, callingUid); in getConfiguredNetworks() 1882 mWifiPermissionsUtil.enforceCanAccessScanResults(packageName, callingUid); in getPrivilegedConfiguredNetworks() 2203 mWifiPermissionsUtil.enforceCanAccessScanResults(callingPackage, uid); in getConnectionInfo() 2243 mWifiPermissionsUtil.enforceCanAccessScanResults(callingPackage, uid); in getScanResults()
|
D | WifiNetworkSuggestionsManager.java | 936 mWifiPermissionsUtil.enforceCanAccessScanResults( in sendPostConnectionBroadcastIfAllowed()
|