/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 260 if (checkNetworkSettingsPermission(uid) || checkNetworkSetupWizardPermission(uid) in enforceCanAccessScanResults() 375 if (checkNetworkSettingsPermission(uid)) { in checkCanAccessWifiDirect() 486 public boolean checkNetworkSettingsPermission(int uid) { in checkNetworkSettingsPermission() method in WifiPermissionsUtil 735 || checkNetworkSettingsPermission(uid)) { in doesUidBelongToCurrentUser()
|
D | WorkSourceHelper.java | 62 return mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in isPrivileged()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 861 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUpWifiP2pServiceImpl() 1713 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testStartListenFailureWhenPermissionDenied() 1727 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testStartListenFailureWhenNativeCallFailure() 1743 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testStartListenSuccess() 1758 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testStopListenFailureWhenPermissionDenied() 1770 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testStopListenFailureWhenNativeCallFailure() 1783 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testStopListenSuccess() 1862 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testDeletePersistentGroupFailureWhenNoPermissions() 1916 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())) in testPersistentGroupMetricWhenSendFactoryReset() 2078 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())) in testStartLocalConnectionWhenCreateGroup() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 704 private boolean checkNetworkSettingsPermission(int pid, int uid) { in checkNetworkSettingsPermission() method in WifiServiceImpl 734 return checkNetworkSettingsPermission(pid, uid) in isPrivileged() 752 return checkNetworkSettingsPermission(pid, uid) in isSettingsOrSuw() 816 if (checkNetworkSettingsPermission(Binder.getCallingPid(), Binder.getCallingUid())) { in enforceChangePermission() 926 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(Binder.getCallingUid())) { in setWifiEnabled() 1916 && !checkNetworkSettingsPermission(pid, uid) in registerSoftApCallback() 1958 && !checkNetworkSettingsPermission(pid, uid) in unregisterSoftApCallback() 2174 && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in getSoftApConfiguration() 2232 boolean privileged = mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in setSoftApConfiguration() 3171 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in getConnectionInfo() [all …]
|
D | SavedNetworkNominator.java | 238 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(creatorUid) in isImsiProtectionApprovalNeeded()
|
D | WifiConfigManager.java | 982 || mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in canModifyNetwork() 991 && (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in canModifyNetwork() 1291 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in addOrUpdateNetworkInternal() 1314 newInternalConfig) && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in addOrUpdateNetworkInternal() 2825 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { in removeUserChoiceFromDisabledNetwork() 3440 mWifiPermissionsUtil.checkNetworkSettingsPermission(uid); in canModifyProxySettings()
|
D | ScanRequestProxy.java | 457 mWifiPermissionsUtil.checkNetworkSettingsPermission(callingUid) in startScan()
|
D | WifiNetworkFactory.java | 637 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(newRequest.getRequestorUid())) { in canNewRequestOverrideExistingRequest() 714 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in acceptRequest()
|
D | ClientModeImpl.java | 3283 && mWifiPermissionsUtil.checkNetworkSettingsPermission(config.lastConnectUid); 3558 } else if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) { 4832 mWifiPermissionsUtil.checkNetworkSettingsPermission(config.lastConnectUid);
|
D | WifiNetworkSuggestionsManager.java | 927 } else if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in add()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 284 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUp() 761 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCannotUpdateMacRandomizationSettingWithoutPermission() 825 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission() 857 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCanUpdateMacRandomizationSettingWithPasspointCreatorUid() 888 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testCanUpdateMacRandomizationSettingForSuggestions() 1079 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied() 1508 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testEnableNetworkFailedDueToPermissionDenied() 1537 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testDisableNetworkFailedDueToPermissionDenied() 3348 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(user1Network.creatorUid)) in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore() 3354 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(user2Network.creatorUid)) in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore() [all …]
|
D | WifiServiceImplTest.java | 682 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testSetWifiEnabledMetricsPrivilegedApp() 1281 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testSetSoftApConfigurationSuccessWithSettingPermission() 1288 verify(mWifiPermissionsUtil).checkNetworkSettingsPermission(anyInt()); in testSetSoftApConfigurationSuccessWithSettingPermission() 4250 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testGetPasspointConfigurationsWithOutPrivilegedPermissions() 4265 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetPasspointConfigurationsWithPrivilegedPermissions() 4279 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testGetPasspointConfigurations() 4309 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testRemovePasspointConfigurationWithOutPrivilegedPermissions() 4643 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testConnectNetworkWithPrivilegedPermission() 4717 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in connectToExistingNetwork() 4738 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in connectToSimBasedNetworkWhenSimPresent() [all …]
|
D | SavedNetworkNominatorTest.java | 340 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testIgnoreNetworksFromAppIfNoImsiProtection()
|
D | ScanRequestProxyTest.java | 251 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testStartScanSuccessFromAppWithNetworkSettings() 699 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
|
D | ClientModeImplTest.java | 560 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in setUp() 874 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(Process.myUid())) in triggerConnectFromNonSettingsApp() 1604 verify(mWifiPermissionsUtil, atLeastOnce()).checkNetworkSettingsPermission(anyInt()); in triggerConnectWithNoNetworkRequestAndAlreadyConnected() 1626 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp() 1635 verify(mWifiPermissionsUtil, times(2)).checkNetworkSettingsPermission(anyInt()); in triggerConnectWithNoNetworkRequestAndAlreadyConnectedButNonPrivilegedApp() 4194 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(false); in testNonSettingsConnectionNotSetUserConnectChoice() 4206 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testNoSetUserConnectChoiceOnFirstConnection() 4218 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testConnectionSetUserConnectChoiceOnSecondConnection()
|
D | WifiNetworkFactoryTest.java | 393 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)) in testHandleAcceptNetworkRequestFromWithInvalidWifiNetworkSpecifier() 459 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)) in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WorkSourceHelperTest.java | 77 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)).thenReturn(true); in testHasAnyPrivilegedRequest()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 1886 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage() 1902 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage() 2240 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage() 2256 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in processMessage() 4511 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) return false; in factoryReset() 4665 return mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in checkNetworkSettingsOrNetworkStackOrOverrideWifiConfigPermission() 4680 return mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in checkNetworkSettingsOrNetworkStackOrReadWifiCredentialPermission()
|