Searched refs:isDeviceOwner (Results 1 – 6 of 6) sorted by relevance
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 876 assertTrue(wifiPermissionsUtil.isDeviceOwner( in testIsDeviceOwnerByPackageName() 885 assertFalse(wifiPermissionsUtil.isDeviceOwner( in testIsDeviceOwnerByPackageName() 893 assertFalse(wifiPermissionsUtil.isDeviceOwner( in testIsDeviceOwnerByPackageName() 899 assertFalse(wifiPermissionsUtil.isDeviceOwner( in testIsDeviceOwnerByPackageName() 905 assertFalse(wifiPermissionsUtil.isDeviceOwner( in testIsDeviceOwnerByPackageName() 928 assertTrue(wifiPermissionsUtil.isDeviceOwner(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByUid() 935 assertFalse(wifiPermissionsUtil.isDeviceOwner(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByUid() 944 assertFalse(wifiPermissionsUtil.isDeviceOwner(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByUid() 952 assertFalse(wifiPermissionsUtil.isDeviceOwner(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByUid() 957 assertFalse(wifiPermissionsUtil.isDeviceOwner(MANAGED_PROFILE_UID)); in testIsDeviceOwnerByUid() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 639 public boolean isDeviceOwner(int uid, @Nullable String packageName) { in isDeviceOwner() method in WifiPermissionsUtil 659 public boolean isDeviceOwner(int uid) { in isDeviceOwner() method in WifiPermissionsUtil 744 return isCurrentProfile || isDeviceOwner(uid); in doesUidBelongToCurrentUser()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiConfigManager.java | 964 final boolean isDeviceOwner = packageName == null in canModifyNetwork() 965 ? mWifiPermissionsUtil.isDeviceOwner(uid) in canModifyNetwork() 966 : mWifiPermissionsUtil.isDeviceOwner(uid, packageName); in canModifyNetwork() 969 if (isDeviceOwner) { in canModifyNetwork() 977 mWifiPermissionsUtil.isDeviceOwner(config.creatorUid, config.creatorName); in canModifyNetwork() 3437 final boolean isDeviceOwner = mWifiPermissionsUtil.isDeviceOwner(uid, packageName); in canModifyProxySettings() 3446 if (isProfileOwner || isDeviceOwner || hasNetworkSettingsPermission in canModifyProxySettings() 3454 + " DeviceOwner=" + isDeviceOwner in canModifyProxySettings()
|
D | WifiServiceImpl.java | 758 return mWifiPermissionsUtil.isDeviceOwner(uid, packageName) in isDeviceOrProfileOwner() 2844 if (!mWifiPermissionsUtil.isDeviceOwner(callingUid, packageName)) { in removeNonCallerConfiguredNetworks()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 774 when(mWifiPermissionsUtil.isDeviceOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testSetWifiEnabledSuccessForDOAppsTargetingQSdk() 2548 when(mWifiPermissionsUtil.isDeviceOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testGetCallerConfiguredNetworks_ThrowExceptionIfNotDoOrPO() 5788 when(mWifiPermissionsUtil.isDeviceOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testAddOrUpdateNetworkIsAllowedForDOApp() 5878 when(mWifiPermissionsUtil.isDeviceOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testAddOrUpdateNetworkPrivilegedIsAllowedForDOApp() 6110 when(mWifiPermissionsUtil.isDeviceOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testRemoveNonCallerConfiguredNetworks_NetworksRemoved() 6626 when(mWifiPermissionsUtil.isDeviceOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in addOrUpdatePasspointConfigIsAllowedSystemAlertDOApp() 7924 when(mWifiPermissionsUtil.isDeviceOwner(anyInt(), anyString())).thenReturn(false); in testFlushPasspointAnqpCacheThrowsSecurityExceptionOnMissingPermissions() 7939 when(mWifiPermissionsUtil.isDeviceOwner(anyInt(), eq(TEST_PACKAGE_NAME))).thenReturn(true); in testFlushPasspointAnqpCacheWithDoPermissions() 7956 when(mWifiPermissionsUtil.isDeviceOwner(anyInt(), eq(TEST_PACKAGE_NAME))).thenReturn(false); in testFlushPasspointAnqpCacheWithPoPermissions() 7971 when(mWifiPermissionsUtil.isDeviceOwner(anyInt(), eq(TEST_PACKAGE_NAME))).thenReturn(false); in testFlushPasspointAnqpCache()
|
D | WifiConfigManagerTest.java | 323 when(mWifiPermissionsUtil.isDeviceOwner(anyInt(), any())).thenReturn(result); in mockIsDeviceOwner() 324 when(mWifiPermissionsUtil.isDeviceOwner(anyInt())).thenReturn(result); in mockIsDeviceOwner()
|