Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java45 private final WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiPermissionsUtil
56 mWifiPermissionsWrapper = wifiPermissionsWrapper; in WifiPermissionsUtil()
71 int permission = mWifiPermissionsWrapper.getOverrideWifiConfigPermission(uid); in checkConfigOverridePermission()
87 int permission = mWifiPermissionsWrapper.getChangeWifiConfigPermission(uid); in checkChangePermission()
103 int permission = mWifiPermissionsWrapper.getAccessWifiStatePermission(uid); in checkWifiAccessPermission()
163 if (mWifiPermissionsWrapper.getUidPermission(permissionType, uid) in checkCallersLocationPermission()
202 if (mWifiPermissionsWrapper.getUidPermission( in checkCallersFineLocationPermission()
226 return mWifiPermissionsWrapper.getUidPermission(Manifest.permission.LOCATION_HARDWARE, uid) in checkCallersHardwareLocationPermission()
373 return mWifiPermissionsWrapper.getUidPermission( in checkCallerHasPeersMacAddressPermission()
390 return mWifiPermissionsWrapper.getUidPermission( in checkInteractAcrossUsersFull()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java142 @Mock WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiP2pServiceImplTest
2769 when(mWifiInjector.getWifiPermissionsWrapper()).thenReturn(mWifiPermissionsWrapper); in testSetWfdInfoSuccessWithWfdEnabled()
2770 when(mWifiPermissionsWrapper.getUidPermission(anyString(), anyInt())) in testSetWfdInfoSuccessWithWfdEnabled()
2777 verify(mWifiPermissionsWrapper).getUidPermission( in testSetWfdInfoSuccessWithWfdEnabled()
2798 when(mWifiInjector.getWifiPermissionsWrapper()).thenReturn(mWifiPermissionsWrapper); in testSetWfdInfoSuccessWithWfdDisabled()
2799 when(mWifiPermissionsWrapper.getUidPermission(anyString(), anyInt())) in testSetWfdInfoSuccessWithWfdDisabled()
2805 verify(mWifiPermissionsWrapper).getUidPermission( in testSetWfdInfoSuccessWithWfdDisabled()
2824 when(mWifiInjector.getWifiPermissionsWrapper()).thenReturn(mWifiPermissionsWrapper); in testSetWfdInfoFailureWhenWfdPermissionDenied()
2825 when(mWifiPermissionsWrapper.getUidPermission(anyString(), anyInt())) in testSetWfdInfoFailureWhenWfdPermissionDenied()
2829 verify(mWifiPermissionsWrapper).getUidPermission( in testSetWfdInfoFailureWhenWfdPermissionDenied()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiInjector.java133 private final WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiInjector
174 mWifiPermissionsWrapper = new WifiPermissionsWrapper(mContext); in WifiInjector()
179 mWifiPermissionsUtil = new WifiPermissionsUtil(mWifiPermissionsWrapper, mContext, in WifiInjector()
249 mWifiPermissionsWrapper, this, new NetworkListSharedStoreData(mContext), in WifiInjector()
665 return mWifiPermissionsWrapper; in getWifiPermissionsWrapper()
DWifiConfigManager.java275 private final WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiConfigManager
402 mWifiPermissionsWrapper = wifiPermissionsWrapper; in WifiConfigManager()
859 mWifiPermissionsWrapper.getDevicePolicyManagerInternal(); in canModifyNetwork()
3304 mWifiPermissionsWrapper.getDevicePolicyManagerInternal(); in canModifyProxySettings()
DClientModeImpl.java169 private final WifiPermissionsWrapper mWifiPermissionsWrapper; field in ClientModeImpl
807 mWifiPermissionsWrapper = mWifiInjector.getWifiPermissionsWrapper(); in ClientModeImpl()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java232 @Mock WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiServiceImplTest
365 when(mWifiPermissionsWrapper.getDevicePolicyManagerInternal()) in setUp()
375 when(mWifiInjector.getWifiPermissionsWrapper()).thenReturn(mWifiPermissionsWrapper); in setUp()
DClientModeImplTest.java375 @Mock WifiPermissionsWrapper mWifiPermissionsWrapper; field in ClientModeImplTest
432 when(mWifiInjector.getWifiPermissionsWrapper()).thenReturn(mWifiPermissionsWrapper); in setUp()
493 when(mWifiPermissionsWrapper.getLocalMacAddressPermission(anyInt())) in setUp()
DWifiConfigManagerTest.java128 @Mock private WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiConfigManagerTest
212 when(mWifiPermissionsWrapper.getDevicePolicyManagerInternal()) in setUp()
4607 mWifiPermissionsUtil, mWifiPermissionsWrapper, mWifiInjector, in createWifiConfigManager()