Searched refs:enforceNearbyDevicesPermission (Results 1 – 12 of 12) sorted by relevance
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareServiceImplTest.java | 519 verify(mWifiPermissionsUtil).enforceNearbyDevicesPermission(any(), eq(true), any()); in testPublishPostT() 528 .enforceNearbyDevicesPermission(any(), anyBoolean(), any()); in testPublishExceptionPostT() 653 verify(mWifiPermissionsUtil).enforceNearbyDevicesPermission(any(), eq(true), any()); in testSubscribePostT() 662 .enforceNearbyDevicesPermission(any(), anyBoolean(), any()); in testSubscribeExceptionPostT()
|
D | WifiAwareStateManagerTest.java | 4047 .enforceNearbyDevicesPermission(eq(attributionSource), eq(true), anyString()); in testEnableDisableOnLocationModeChanges()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 1519 codeUnderTest.enforceNearbyDevicesPermission(attributionSource, false, ""); in testEnforceNearbyDevicesPermission_InvalidAttributionSourceFail() 1534 codeUnderTest.enforceNearbyDevicesPermission(attributionSource, false, ""); in testEnforceNearbyDevicesPermission_NearbyDevicesNotGrantedFail() 1561 codeUnderTest.enforceNearbyDevicesPermission(attributionSource, true, ""); in testEnforceNearbyDevicesPermission_LocationCheckFail() 1599 codeUnderTest.enforceNearbyDevicesPermission(attributionSource, true, ""); in testEnforceNearbyDevicesPermission_RenounceLocationBypassLocationCheck() 1631 codeUnderTest.enforceNearbyDevicesPermission(attributionSource, true, ""); in testEnforceNearbyDevicesPermission_LocationCheckDisavowPass() 1707 codeUnderTest.enforceNearbyDevicesPermission(attributionSource, true, ""); in testEnforceNearbyDevicesPermission_BypassCheckWithPrivilegedPermission()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 181 enforceNearbyDevicesPermission(attributionSource, checkForLocation, message); in checkNearbyDevicesPermission() 200 public void enforceNearbyDevicesPermission(AttributionSource attributionSource, in enforceNearbyDevicesPermission() method in WifiPermissionsUtil
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 2762 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in startLocalOnlyHotspot() 2772 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in startLocalOnlyHotspot() 2849 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in registerLocalOnlyHotspotSoftApCallback() 2875 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in unregisterLocalOnlyHotspotSoftApCallback() 3366 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in getPrivilegedConfiguredNetworks() 3399 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in getPrivilegedConnectedNetwork() 4623 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in getChannelData() 7553 mWifiPermissionsUtil.enforceNearbyDevicesPermission(
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 846 mWifiPermissionsUtil.enforceNearbyDevicesPermission(extras.getParcelable( in enforceNearbyOrLocationPermission()
|
D | WifiAwareStateManager.java | 5713 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in handleLocationModeDisabled()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 3345 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in testPrivilegedConfiguredNetworkListNullOnSecurityExceptionPostT() 3608 .when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in testStartLocalOnlyHotspotThrowsExceptionWithoutNearbyDevicesPermissionOnT() 3626 verify(mWifiPermissionsUtil, never()).enforceNearbyDevicesPermission(any(), anyBoolean(), in testStartLocalOnlyHotspotDoesNotCheckNearbyPermissionIfTargetPreT() 9963 .when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in testGetUsableChannelsThrowsSecurityExceptionOnMissingPermissionsAfterU() 10309 .when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in testGetPrivilegedConnectedNetworkNoPermission() 10331 verify(mWifiPermissionsUtil).enforceNearbyDevicesPermission(any(), eq(true), any()); in testGetPrivilegedConnectedNetworkNotConnected() 10356 verify(mWifiPermissionsUtil).enforceNearbyDevicesPermission(any(), eq(true), any()); in testGetPrivilegedConnectedNetworkSuccess() 10906 .when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in testRegisterLocalOnlyHotspotSoftApCallbackThrowsExceptionWithoutPermissionOnT() 10921 .when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in testUnregisterLocalOnlyHotspotSoftApCallbackThrowsExceptionWithoutPermissionOnT() 11715 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in testChannelDataThrowsExceptionsAndOnResult()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | WifiScanningServiceImpl.java | 153 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in getAvailableChannels()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WifiScanningServiceTest.java | 3818 .when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in getAvailableChannels_noPermission_throwsException_After_U()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 1118 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in registerWifiP2pListener()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 8134 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in testWifiP2pListener()
|