Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java260 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()
DWorkSourceHelper.java62 return mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in isPrivileged()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java861 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/
DWifiServiceImpl.java704 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 …]
DSavedNetworkNominator.java238 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(creatorUid) in isImsiProtectionApprovalNeeded()
DWifiConfigManager.java982 || 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()
DScanRequestProxy.java457 mWifiPermissionsUtil.checkNetworkSettingsPermission(callingUid) in startScan()
DWifiNetworkFactory.java637 if (mWifiPermissionsUtil.checkNetworkSettingsPermission(newRequest.getRequestorUid())) { in canNewRequestOverrideExistingRequest()
714 if (!mWifiPermissionsUtil.checkNetworkSettingsPermission( in acceptRequest()
DClientModeImpl.java3283 && mWifiPermissionsUtil.checkNetworkSettingsPermission(config.lastConnectUid);
3558 } else if (!mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) {
4832 mWifiPermissionsUtil.checkNetworkSettingsPermission(config.lastConnectUid);
DWifiNetworkSuggestionsManager.java927 } else if (mWifiPermissionsUtil.checkNetworkSettingsPermission(uid) in add()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java284 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 …]
DWifiServiceImplTest.java682 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 …]
DSavedNetworkNominatorTest.java340 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(anyInt())).thenReturn(true); in testIgnoreNetworksFromAppIfNoImsiProtection()
DScanRequestProxyTest.java251 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testStartScanSuccessFromAppWithNetworkSettings()
699 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID)).thenReturn(true); in testSuccessiveScanRequestFromSameAppWithNetworkSettingsPermissionNotThrottled()
DClientModeImplTest.java560 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()
DWifiNetworkFactoryTest.java393 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/
DWorkSourceHelperTest.java77 when(mWifiPermissionsUtil.checkNetworkSettingsPermission(TEST_UID_1)).thenReturn(true); in testHasAnyPrivilegedRequest()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java1886 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()