Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java216 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testCanReadPeersMacAddressCurrentUserAndAllPermissions()
238 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions()
255 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResult_AppNotAllowed()
283 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testenforceCanAccessScanResults_UserOrProfileNotCurrent()
304 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission()
329 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testLegacyForegroundAppWithOtherPermissionsDenied()
356 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testLegacyAppHasLocationAndAllPermissions()
377 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_NoCoarseLocationPermission()
406 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_LocationModeDisabled()
439 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testEnforceCannotAccessScanResults_LocationModeDisabledHasChangeWifiState()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiNetworkSuggestionsManagerTest.java1443 mInorder.verify(mWifiPermissionsUtil).enforceCanAccessScanResults(eq(TEST_PACKAGE_1), in testOnNetworkConnectionSuccessWithOneMatch()
1483 mInorder.verify(mWifiPermissionsUtil).enforceCanAccessScanResults(eq(TEST_PACKAGE_1), in testOnNetworkConnectionSuccessWithOneMatchFromCarrierPrivilegedApp()
1541 mInorder.verify(mWifiPermissionsUtil).enforceCanAccessScanResults(eq(TEST_PACKAGE_1), in testOnSavedOpenNetworkConnectionSuccessWithMultipleMatch()
1585 mInorder.verify(mWifiPermissionsUtil, never()).enforceCanAccessScanResults( in testOnNetworkConnectionFailureWithOneMatchButCallbackOnBinderDied()
1629 mInorder.verify(mWifiPermissionsUtil).enforceCanAccessScanResults(eq(TEST_PACKAGE_1), in testOnNetworkConnectionFailureWithOneMatch()
1692 mInorder.verify(mWifiPermissionsUtil).enforceCanAccessScanResults( in testOnNetworkConnectionSuccessWithMultipleMatch()
1754 mInorder.verify(mWifiPermissionsUtil).enforceCanAccessScanResults( in testOnNetworkConnectionSuccessWithBssidMultipleMatch()
1818 mInorder.verify(mWifiPermissionsUtil).enforceCanAccessScanResults( in testOnNetworkConnectionSuccessWithBssidAndWithoutBssidMultipleMatch()
1867 mInorder.verify(mWifiPermissionsUtil, never()).enforceCanAccessScanResults( in testOnNetworkConnectionWhenAppNotApproved()
1909 mInorder.verify(mWifiPermissionsUtil, never()).enforceCanAccessScanResults( in testOnNetworkConnectionWhenIsAppInteractionRequiredNotSet()
[all …]
DWifiServiceImplTest.java2644 .enforceCanAccessScanResults(SCAN_PACKAGE_NAME, TEST_FEATURE_ID, Process.myUid(), in testStartScanFailureInCanAccessScanResultsPermission()
2705 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testConnectedIdsAreHiddenFromAppWithoutPermission()
2735 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testConnectedIdsAreHiddenOnSecurityException()
2855 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testConfiguredNetworkListAreEmptyOnSecurityException()
2912 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testGetCallerConfiguredNetworks_ReturnsCallerNetworks()
3000 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceCanAccessScanResults( in testPrivilegedConfiguredNetworkListAreEmptyOnSecurityException()
9417 .enforceCanAccessScanResults(any(), any(), anyInt(), any()); in testGetPrivilegedConnectedNetworkNoPermission()
9437 verify(mWifiPermissionsUtil).enforceCanAccessScanResults(any(), any(), anyInt(), any()); in testGetPrivilegedConnectedNetworkNotConnected()
9462 verify(mWifiPermissionsUtil).enforceCanAccessScanResults(any(), any(), anyInt(), any()); in testGetPrivilegedConnectedNetworkSuccess()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java852 mWifiPermissionsUtil.enforceCanAccessScanResults(packageName, featureId, callingUid, in startScan()
2961 mWifiPermissionsUtil.enforceCanAccessScanResults(packageName, featureId, in getConfiguredNetworks()
3040 mWifiPermissionsUtil.enforceCanAccessScanResults(packageName, featureId, callingUid, in getPrivilegedConfiguredNetworks()
3082 mWifiPermissionsUtil.enforceCanAccessScanResults(packageName, featureId, callingUid, in getPrivilegedConnectedNetwork()
3999 mWifiPermissionsUtil.enforceCanAccessScanResults(callingPackage, callingFeatureId, in getConnectionInfo()
4031 mWifiPermissionsUtil.enforceCanAccessScanResults(callingPackage, callingFeatureId, in getScanResults()
4061 mWifiPermissionsUtil.enforceCanAccessScanResults(callingPackage, callingFeatureId, in getMatchingScanResults()
DWifiNetworkSuggestionsManager.java2020 mWifiPermissionsUtil.enforceCanAccessScanResults( in sendPostConnectionBroadcastIfAllowed()
2202 mWifiPermissionsUtil.enforceCanAccessScanResults( in sendConnectionFailureIfAllowed()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java533 public void enforceCanAccessScanResults(String pkgName, @Nullable String featureId, int uid, in enforceCanAccessScanResults() method in WifiPermissionsUtil