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()
164 if (mWifiPermissionsWrapper.getUidPermission(permissionType, uid) in checkCallersLocationPermission()
203 if (mWifiPermissionsWrapper.getUidPermission( in checkCallersFineLocationPermission()
227 return mWifiPermissionsWrapper.getUidPermission(Manifest.permission.LOCATION_HARDWARE, uid) in checkCallersHardwareLocationPermission()
374 return mWifiPermissionsWrapper.getUidPermission( in checkCallerHasPeersMacAddressPermission()
391 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.java135 private final WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiInjector
182 mWifiPermissionsWrapper = new WifiPermissionsWrapper(mContext); in WifiInjector()
187 mWifiPermissionsUtil = new WifiPermissionsUtil(mWifiPermissionsWrapper, mContext, in WifiInjector()
257 mWifiPermissionsWrapper, this, new NetworkListSharedStoreData(mContext), in WifiInjector()
686 return mWifiPermissionsWrapper; in getWifiPermissionsWrapper()
DWifiConfigManager.java276 private final WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiConfigManager
408 mWifiPermissionsWrapper = wifiPermissionsWrapper; in WifiConfigManager()
879 mWifiPermissionsWrapper.getDevicePolicyManagerInternal(); in canModifyNetwork()
3338 mWifiPermissionsWrapper.getDevicePolicyManagerInternal(); in canModifyProxySettings()
DClientModeImpl.java176 private final WifiPermissionsWrapper mWifiPermissionsWrapper; field in ClientModeImpl
820 mWifiPermissionsWrapper = mWifiInjector.getWifiPermissionsWrapper(); in ClientModeImpl()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java382 @Mock WifiPermissionsWrapper mWifiPermissionsWrapper; field in ClientModeImplTest
439 when(mWifiInjector.getWifiPermissionsWrapper()).thenReturn(mWifiPermissionsWrapper); in setUp()
502 when(mWifiPermissionsWrapper.getLocalMacAddressPermission(anyInt())) in setUp()
DWifiServiceImplTest.java238 @Mock WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiServiceImplTest
372 when(mWifiPermissionsWrapper.getDevicePolicyManagerInternal()) in setUp()
382 when(mWifiInjector.getWifiPermissionsWrapper()).thenReturn(mWifiPermissionsWrapper); in setUp()
DWifiConfigManagerTest.java131 @Mock private WifiPermissionsWrapper mWifiPermissionsWrapper; field in WifiConfigManagerTest
222 when(mWifiPermissionsWrapper.getDevicePolicyManagerInternal()) in setUp()
4660 mWifiPermissionsUtil, mWifiPermissionsWrapper, mWifiInjector, in createWifiConfigManager()