Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java218 && !mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in enableInstantCommunicationMode()
242 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in setAwareParams()
335 if (forOffloading && !mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in connect()
445 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in setMasterPreference()
473 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in getMasterPreference()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java341 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in setUp()
785 when(mWifiPermissionsUtil.checkConfigOverridePermission(eq(systemAppUid))) in testMultipleNetworksSystemAppBackupRestore()
787 when(mWifiPermissionsUtil.checkConfigOverridePermission(eq(nonSystemAppUid))) in testMultipleNetworksSystemAppBackupRestore()
DWifiServiceImplTest.java1788 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(false); in testSetWifiApConfigurationNotSavedWithoutPermission()
1801 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in testSetWifiApConfigurationSuccess()
1816 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in testSetWifiApConfigurationNullConfigNotSaved()
1826 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in testSetWifiApConfigurationWithInvalidConfigNotSaved()
1863 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in testSetSoftApConfigurationSuccessWithOverridePermission()
1869 verify(mWifiPermissionsUtil).checkConfigOverridePermission(anyInt()); in testSetSoftApConfigurationSuccessWithOverridePermission()
1877 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in testSetSoftApConfigurationNullConfigNotSaved()
1881 verify(mWifiPermissionsUtil).checkConfigOverridePermission(anyInt()); in testSetSoftApConfigurationNullConfigNotSaved()
1889 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in testSetSoftApConfigurationWithInvalidConfigNotSaved()
1893 verify(mWifiPermissionsUtil).checkConfigOverridePermission(anyInt()); in testSetSoftApConfigurationWithInvalidConfigNotSaved()
[all …]
DWifiConfigManagerTest.java886 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in testOverrideWifiConfigModifyAllNetworks()
894 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in testAddNetworkDoNotOverrideExistingNetwork()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareServiceImplTest.java1018 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in attachOffload()
1033 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(false); in attachOffloadWithoutPermission()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java1080 || mWifiPermissionsUtil.checkConfigOverridePermission(uid); in canModifyNetwork()
1090 || mWifiPermissionsUtil.checkConfigOverridePermission(uid)); in canModifyNetwork()
1505 && !mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in addOrUpdateNetworkInternal()
1518 && !mWifiPermissionsUtil.checkConfigOverridePermission(uid) in addOrUpdateNetworkInternal()
3928 || mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in canModifyProxySettings()
DWifiBackupRestore.java218 if (!mWifiPermissionsUtil.checkConfigOverridePermission(configuration.creatorUid)) { in writeNetworkConfigurationsToXml()
DWifiServiceImpl.java2649 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid) in registerSoftApCallback()
2681 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid) in unregisterSoftApCallback()
2931 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in getWifiApConfiguration()
2956 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid) in getSoftApConfiguration()
3007 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in setWifiApConfiguration()
3038 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid) in setSoftApConfiguration()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java181 assertTrue(codeUnderTest.checkConfigOverridePermission(mUid)); in testCheckConfigOverridePermissionApproved()
196 assertFalse(codeUnderTest.checkConfigOverridePermission(mUid)); in testCheckConfigOverridePermissionDenied()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java155 public boolean checkConfigOverridePermission(int uid) { in checkConfigOverridePermission() method in WifiPermissionsUtil
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java1459 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(true); in setUpWifiP2pServiceImpl()
3030 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(false); in testDeletePersistentGroupFailureWhenNoPermissions()
4595 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(false); in testSetChannelFailureWhenNoPermissions()
5019 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())).thenReturn(false); in testSetDeviceNameFailureWhenNoPermissions()
6958 when(mWifiPermissionsUtil.checkConfigOverridePermission(anyInt())) in verifySetVendorElement()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java2575 if (!mWifiPermissionsUtil.checkConfigOverridePermission( in processMessageImpl()
7848 || mWifiPermissionsUtil.checkConfigOverridePermission(uid); in checkNetworkSettingsOrNetworkStackOrOverrideWifiConfigPermission()