Home
last modified time | relevance | path

Searched refs:checkNetworkSettingsPermission (Results 1 – 13 of 13) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java241 if (checkNetworkSettingsPermission(uid) || checkNetworkSetupWizardPermission(uid) in enforceCanAccessScanResults()
334 if (checkNetworkSettingsPermission(uid)) { in checkCanAccessWifiDirect()
446 public boolean checkNetworkSettingsPermission(int uid) { in checkNetworkSettingsPermission() method in WifiPermissionsUtil
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java1550 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testStartListenFailureWhenPermissionDenied()
1564 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testStartListenFailureWhenNativeCallFailure()
1580 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testStartListenSuccess()
1595 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testStopListenFailureWhenPermissionDenied()
1607 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testStopListenFailureWhenNativeCallFailure()
1620 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testStopListenSuccess()
1736 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())) in testPersistentGroupMetricWhenSendFactoryReset()
1904 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())) in testStartLocalConnectionWhenCreateGroup()
3105 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testFactoryResetSuccessWhenP2pEnabled()
3113 verify(mWifiPermissionsUtil).checkNetworkSettingsPermission(anyInt()); in testFactoryResetSuccessWhenP2pEnabled()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java2654 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testGetPasspointConfigurationsWithOutPermissions()
2668 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetPasspointConfigurationWithInvalidPackage()
2680 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testGetPasspointConfigurationForAppsTargetingBelowQSDK()
2698 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testRemovePasspointConfigurationWithOutPermissions()
2712 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testRemovePasspointConfigurationForAppsTargetingBelowQSDK()
3499 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testFactoryReset()
3845 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetFactoryMacAddresses()
3861 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetFactoryMacAddressesPostFail()
3873 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetFactoryMacAddressesFail()
3886 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testGetFactoryMacAddressesFailNoNetworkSettingsPermission()
DScanRequestProxyTest.java188 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testStartScanSuccessFromAppWithNetworkSettings()
570 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
DWifiConfigManagerTest.java208 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUp()
481 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCannotUpdateMacRandomizationSettingWithoutPermission()
536 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()
693 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied()
1169 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testEnableNetworkFailedDueToPermissionDenied()
1198 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testDisableNetworkFailedDueToPermissionDenied()
4548 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())) in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions()
DClientModeImplTest.java492 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUp()
956 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(Process.myUid())) in triggerConnectFromNonSettingsApp()
1229 verify(mWifiPermissionsUtil, atLeastOnce()).checkNetworkSettingsPermission(anyInt()); in triggerConnectWithNoNetworkRequestAndAlreadyConnected()
1250 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp()
1261 verify(mWifiPermissionsUtil, times(4)).checkNetworkSettingsPermission(anyInt()); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp()
DWifiNetworkFactoryTest.java269 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)) in testHandleAcceptNetworkRequestFromWithInvalidSpecifier()
339 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)) in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java721 private boolean checkNetworkSettingsPermission(int pid, int uid) { in checkNetworkSettingsPermission() method in WifiServiceImpl
744 return checkNetworkSettingsPermission(pid, uid) in isPrivileged()
753 return checkNetworkSettingsPermission(pid, uid) in isSettingsOrSuw()
808 if (checkNetworkSettingsPermission(Binder.getCallingPid(), Binder.getCallingUid())) { in enforceChangePermission()
2292 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in removePasspointConfiguration()
2317 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in getPasspointConfigurations()
3340 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in getFactoryMacAddresses()
DScanRequestProxy.java462 mWifiPermissionsUtil.checkNetworkSettingsPermission(callingUid) in startScan()
DWifiNetworkFactory.java468 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(newRequest.requestorUid)) { in canNewRequestOverrideExistingRequest()
535 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(wns.requestorUid) in acceptRequest()
DWifiConfigManager.java817 return isCreator || mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in canModifyNetwork()
824 && mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in canModifyNetwork()
1163 newInternalConfig) && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in addOrUpdateNetworkInternal()
3263 mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in canModifyProxySettings()
DClientModeImpl.java1166 } else if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in connectToUserSelectNetwork()
4248 } else if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in processMessage()
5428 mWifiPermissionsUtil.checkNetworkSettingsPermission(config.lastConnectUid); in sendConnectedState()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java1668 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage()
1684 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage()
1984 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage()
2000 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage()
4105 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) return false; in factoryReset()