Home
last modified time | relevance | path

Searched refs:enforceNearbyDevicesPermission (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java519 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()
DWifiAwareStateManagerTest.java4047 .enforceNearbyDevicesPermission(eq(attributionSource), eq(true), anyString()); in testEnableDisableOnLocationModeChanges()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java1519 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/
DWifiPermissionsUtil.java181 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/
DWifiServiceImpl.java2762 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/
DWifiAwareServiceImpl.java846 mWifiPermissionsUtil.enforceNearbyDevicesPermission(extras.getParcelable( in enforceNearbyOrLocationPermission()
DWifiAwareStateManager.java5713 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in handleLocationModeDisabled()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java3345 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/
DWifiScanningServiceImpl.java153 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in getAvailableChannels()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java3818 .when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in getAvailableChannels_noPermission_throwsException_After_U()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java1118 mWifiPermissionsUtil.enforceNearbyDevicesPermission( in registerWifiP2pListener()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java8134 doThrow(new SecurityException()).when(mWifiPermissionsUtil).enforceNearbyDevicesPermission( in testWifiP2pListener()