Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/
DMultiInternetWifiNetworkFactory.java143 boolean isFromSetting = mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in acceptRequest()
169 boolean isFromSetting = mWifiPermissionsUtil.checkNetworkSettingsPermission( in needNetworkFor()
213 boolean isFromSetting = mWifiPermissionsUtil.checkNetworkSettingsPermission( in releaseNetworkFor()
DWifiServiceImpl.java1045 private boolean checkNetworkSettingsPermission(int pid, int uid) { in checkNetworkSettingsPermission() method in WifiServiceImpl
1081 return checkNetworkSettingsPermission(pid, uid) in isPrivileged()
1093 return checkNetworkSettingsPermission(pid, uid) in isSettingsOrSuw()
1157 if (checkNetworkSettingsPermission(Binder.getCallingPid(), Binder.getCallingUid())) { in enforceChangePermission()
1361 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(callingUid)) { in setWifiEnabledInternal()
2650 && !checkNetworkSettingsPermission(pid, uid) in registerSoftApCallback()
2682 && !checkNetworkSettingsPermission(pid, uid) in unregisterSoftApCallback()
2957 && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in getSoftApConfiguration()
2979 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in queryLastConfiguredTetheredApPassphraseSinceBoot()
3037 boolean privileged = mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in setSoftApConfiguration()
[all …]
DSavedNetworkNominator.java276 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(creatorUid) in isImsiProtectionApprovalNeeded()
DWifiConfigManager.java1078 || mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in canModifyNetwork()
1088 && (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in canModifyNetwork()
1475 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in addOrUpdateNetworkInternal()
1504 && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in addOrUpdateNetworkInternal()
1516 newInternalConfig) && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in addOrUpdateNetworkInternal()
1535 newInternalConfig) && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in addOrUpdateNetworkInternal()
3267 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in removeUserChoiceFromDisabledNetwork()
3920 mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in canModifyProxySettings()
DWifiNetworkFactory.java704 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(newRequest.getRequestorUid())) { in canNewRequestOverrideExistingRequest()
774 boolean isFromSetting = mWifiPermissionsUtil.checkNetworkSettingsPermission( in acceptRequest()
807 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in acceptRequest()
856 boolean isFromSetting = mWifiPermissionsUtil.checkNetworkSettingsPermission( in needNetworkFor()
DScanRequestProxy.java520 mWifiPermissionsUtil.checkNetworkSettingsPermission(callingUid) in startScan()
DClientModeImpl.java1469 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in connectToUserSelectNetwork()
4206 mWifiPermissionsUtil.checkNetworkSettingsPermission(config.lastConnectUid); in getNetworkAgentConfigInternal()
4782 } else if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in processMessageImpl()
DWifiNetworkSuggestionsManager.java945 } else if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in add()
DWifiShellCommand.java2169 .checkNetworkSettingsPermission(Binder.getCallingUid())) { in onCommand()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java224 if (checkNetworkSettingsPermission(uid) || checkNetworkSetupWizardPermission(uid) in enforceNearbyDevicesPermission()
573 if (checkNetworkSettingsPermission(uid) || checkNetworkSetupWizardPermission(uid) in enforceCanAccessScanResults()
647 if (checkNetworkSettingsPermission(uid) || checkNetworkSetupWizardPermission(uid)) { in enforceCanAccessScanResultsForWifiScanner()
694 if (checkNetworkSettingsPermission(uid)) { in checkCanAccessWifiDirect()
830 public boolean checkNetworkSettingsPermission(int uid) { in checkNetworkSettingsPermission() method in WifiPermissionsUtil
1195 || checkNetworkSettingsPermission(uid)) { in doesUidBelongToUser()
1229 if (checkNetworkSettingsPermission(uid) || checkNetworkSetupWizardPermission(uid)) { in getWifiCallerType()
DWorkSourceHelper.java142 return mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in isPrivileged()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DLocationPermissionChecker.java160 if (checkNetworkSettingsPermission(uid) || checkNetworkSetupWizardPermission(uid) in checkLocationPermissionInternal()
281 public boolean checkNetworkSettingsPermission(int uid) { in checkNetworkSettingsPermission() method in LocationPermissionChecker
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java888 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testSetWifiEnabledMetricsPrivilegedApp()
1734 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testGetBssidBlocklist()
1741 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetBssidBlocklist()
1748 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testGetBssidBlocklist()
1849 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testSetSoftApConfigurationSuccessWithSettingPermission()
1855 verify(mWifiPermissionsUtil).checkNetworkSettingsPermission(anyInt()); in testSetSoftApConfigurationSuccessWithSettingPermission()
2054 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testSetPnoScanEnabled()
3143 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(SETTINGS_WORKSOURCE.getUid(0))) in testConnectedIdsAreVisibleFromAppRequestingSecondaryCmmWIthPromotesSettingsWs()
5000 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testGetPasspointConfigurationsWithOutPrivilegedPermissions()
5015 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetPasspointConfigurationsWithPrivilegedPermissions()
[all …]
DWifiConfigManagerTest.java318 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUp()
735 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testAddOrUpdateNetworkRepeaterEnabled()
741 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testAddOrUpdateNetworkRepeaterEnabled()
867 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testOverrideWifiConfigModifyAllNetworks()
893 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testAddNetworkDoNotOverrideExistingNetwork()
914 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCannotUpdateMacRandomizationSettingWithoutPermissionDO()
945 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCanUpdateMacRandomizationSettingForAdminNetwork()
1014 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()
1045 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCanAddConfigWithDisabledMacRandomizationWhenInDemoMode()
1064 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCanUpdateMacRandomizationSettingWithPasspointCreatorUid()
[all …]
DMultiInternetWifiNetworkFactoryTest.java199 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testMultiInternetHandleNetworkRequestFromSettingsWithBssid()
DScanRequestProxyTest.java248 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testStartScanSuccessFromAppWithNetworkSettings()
727 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
DSavedNetworkNominatorTest.java368 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testIgnoreNetworksFromAppIfNoImsiProtection()
DClientModeImplTest.java719 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUp()
1152 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(Process.myUid())) in triggerConnectFromNonSettingsApp()
2379 verify(mWifiPermissionsUtil, atLeastOnce()).checkNetworkSettingsPermission(anyInt()); in triggerConnectWithNoNetworkRequestAndAlreadyConnected()
2402 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp()
2412 verify(mWifiPermissionsUtil, times(4)).checkNetworkSettingsPermission(anyInt()); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp()
5644 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testNonSettingsConnectionNotSetUserConnectChoice()
5658 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testNoSetUserConnectChoiceOnFirstConnection()
5667 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in verifyUserConnectChoice()
5697 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testConnectionSetUserConnectChoiceOnEphemeralConfig()
10562 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testConnectDisabledPskAllowedForNonUserSelectedNetwork()
[all …]
DWifiNetworkFactoryTest.java443 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)) in testHandleAcceptNetworkRequestFromWithInvalidWifiNetworkSpecifier()
458 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)).thenReturn(true); in testRejectNetworkRequestWithWifiNetworkSpecifierTofuEnabled()
530 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)) in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWorkSourceHelperTest.java109 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)).thenReturn(true); in testGetRequestorWsPriority()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java1456 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUpWifiP2pServiceImpl()
3028 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testDeletePersistentGroupFailureWhenNoPermissions()
3095 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())) in testPersistentGroupMetricWhenSendFactoryReset()
4593 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testSetChannelFailureWhenNoPermissions()
5017 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testSetDeviceNameFailureWhenNoPermissions()
5352 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testFactoryResetSuccessWhenP2pEnabled()
5365 verify(mWifiPermissionsUtil).checkNetworkSettingsPermission(anyInt()); in testFactoryResetSuccessWhenP2pEnabled()
5385 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testFactoryResetSuccessWhenP2pFromDisabledToEnabled()
5394 verify(mWifiPermissionsUtil).checkNetworkSettingsPermission(anyInt()); in testFactoryResetSuccessWhenP2pFromDisabledToEnabled()
5408 verify(mWifiPermissionsUtil, times(2)).checkNetworkSettingsPermission(anyInt()); in testFactoryResetSuccessWhenP2pFromDisabledToEnabled()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java7408 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) return false; in factoryReset()
7846 return mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in checkNetworkSettingsOrNetworkStackOrOverrideWifiConfigPermission()
7861 return mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in checkNetworkSettingsOrNetworkStackOrReadWifiCredentialPermission()
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java547 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(Binder.getCallingUid())) { in enableVerboseLogging()