Home
last modified time | relevance | path

Searched refs:enforceCanAccessScanResults (Results 1 – 8 of 8) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java195 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/
DScoredNetworkEvaluatorTest.java238 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()
DWifiNetworkSuggestionsManagerTest.java827 .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()
DWifiServiceImplTest.java1141 .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/
DWifiPermissionsUtil.java236 public void enforceCanAccessScanResults(String pkgName, int uid) throws SecurityException { in enforceCanAccessScanResults() method in WifiPermissionsUtil
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScoredNetworkEvaluator.java119 mWifiPermissionsUtil.enforceCanAccessScanResults(packageName, uid); in activeScorerAllowedtoSeeScanResults()
DWifiServiceImpl.java641 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()
DWifiNetworkSuggestionsManager.java936 mWifiPermissionsUtil.enforceCanAccessScanResults( in sendPostConnectionBroadcastIfAllowed()