/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | MultiInternetWifiNetworkFactory.java | 143 boolean isFromSetting = mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in acceptRequest() 169 boolean isFromSetting = mWifiPermissionsUtil.checkNetworkSettingsPermission( in needNetworkFor() 213 boolean isFromSetting = mWifiPermissionsUtil.checkNetworkSettingsPermission( in releaseNetworkFor()
|
D | WifiServiceImpl.java | 1045 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 …]
|
D | SavedNetworkNominator.java | 276 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(creatorUid) in isImsiProtectionApprovalNeeded()
|
D | WifiConfigManager.java | 1078 || 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()
|
D | WifiNetworkFactory.java | 704 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()
|
D | ScanRequestProxy.java | 520 mWifiPermissionsUtil.checkNetworkSettingsPermission(callingUid) in startScan()
|
D | ClientModeImpl.java | 1469 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in connectToUserSelectNetwork() 4206 mWifiPermissionsUtil.checkNetworkSettingsPermission(config.lastConnectUid); in getNetworkAgentConfigInternal() 4782 } else if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in processMessageImpl()
|
D | WifiNetworkSuggestionsManager.java | 945 } else if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in add()
|
D | WifiShellCommand.java | 2169 .checkNetworkSettingsPermission(Binder.getCallingUid())) { in onCommand()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 224 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()
|
D | WorkSourceHelper.java | 142 return mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in isPrivileged()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | LocationPermissionChecker.java | 160 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/ |
D | WifiServiceImplTest.java | 888 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 …]
|
D | WifiConfigManagerTest.java | 318 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 …]
|
D | MultiInternetWifiNetworkFactoryTest.java | 199 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testMultiInternetHandleNetworkRequestFromSettingsWithBssid()
|
D | ScanRequestProxyTest.java | 248 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testStartScanSuccessFromAppWithNetworkSettings() 727 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
|
D | SavedNetworkNominatorTest.java | 368 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testIgnoreNetworksFromAppIfNoImsiProtection()
|
D | ClientModeImplTest.java | 719 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 …]
|
D | WifiNetworkFactoryTest.java | 443 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/ |
D | WorkSourceHelperTest.java | 109 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)).thenReturn(true); in testGetRequestorWsPriority()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 1456 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/ |
D | WifiP2pServiceImpl.java | 7408 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/ |
D | WifiScanningServiceImpl.java | 547 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(Binder.getCallingUid())) { in enableVerboseLogging()
|