Searched refs:checkNetworkSettingsPermission (Results 1 – 13 of 13) sorted by relevance
242 if (checkNetworkSettingsPermission(uid) || checkNetworkSetupWizardPermission(uid) in enforceCanAccessScanResults()335 if (checkNetworkSettingsPermission(uid)) { in checkCanAccessWifiDirect()447 public boolean checkNetworkSettingsPermission(int uid) { in checkNetworkSettingsPermission() method in WifiPermissionsUtil
1550 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()3086 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testFactoryResetSuccessWhenP2pEnabled()3094 verify(mWifiPermissionsUtil).checkNetworkSettingsPermission(anyInt()); in testFactoryResetSuccessWhenP2pEnabled()[all …]
718 private boolean checkNetworkSettingsPermission(int pid, int uid) { in checkNetworkSettingsPermission() method in WifiServiceImpl741 return checkNetworkSettingsPermission(pid, uid) in isPrivileged()750 return checkNetworkSettingsPermission(pid, uid) in isSettingsOrSuw()835 if (checkNetworkSettingsPermission(Binder.getCallingPid(), Binder.getCallingUid())) { in enforceChangePermission()2340 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in removePasspointConfiguration()2362 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in getPasspointConfigurations()3400 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in getFactoryMacAddresses()
462 mWifiPermissionsUtil.checkNetworkSettingsPermission(callingUid) in startScan()
454 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(newRequest.requestorUid)) { in canNewRequestOverrideExistingRequest()521 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(wns.requestorUid) in acceptRequest()
903 return isCreator || mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in canModifyNetwork()910 && mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in canModifyNetwork()1226 newInternalConfig) && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in addOrUpdateNetworkInternal()3344 mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in canModifyProxySettings()
1183 } else if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in connectToUserSelectNetwork()4269 } else if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in processMessage()4977 mWifiPermissionsUtil.checkNetworkSettingsPermission(config.lastConnectUid); in enter()
2808 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testGetPasspointConfigurationsWithOutPrivilegedPermissions()2822 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetPasspointConfigurationsWithPrivilegedPermissions()2835 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testRemovePasspointConfigurationWithOutPrivilegedPermissions()3653 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testFactoryReset()4002 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetFactoryMacAddresses()4018 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetFactoryMacAddressesPostFail()4030 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetFactoryMacAddressesFail()4043 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testGetFactoryMacAddressesFailNoNetworkSettingsPermission()
200 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testStartScanSuccessFromAppWithNetworkSettings()585 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
221 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUp()534 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCannotUpdateMacRandomizationSettingWithoutPermission()589 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()750 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied()1226 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testEnableNetworkFailedDueToPermissionDenied()1255 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testDisableNetworkFailedDueToPermissionDenied()4643 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())) in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions()
501 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUp()967 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(Process.myUid())) in triggerConnectFromNonSettingsApp()1349 verify(mWifiPermissionsUtil, atLeastOnce()).checkNetworkSettingsPermission(anyInt()); in triggerConnectWithNoNetworkRequestAndAlreadyConnected()1370 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp()1381 verify(mWifiPermissionsUtil, times(4)).checkNetworkSettingsPermission(anyInt()); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp()
280 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)) in testHandleAcceptNetworkRequestFromWithInvalidSpecifier()350 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)) in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier()
1687 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage()1703 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage()2002 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage()2018 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage()4140 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) return false; in factoryReset()