Searched refs:isProfileOwner (Results 1 – 10 of 10) sorted by relevance
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/ |
D | E2eUiTestUtils.java | 53 final boolean isProfileOwner = dpm.isProfileOwnerApp(context.getPackageName()); in verifyProfile() 54 Log.i(TAG, "isProfileOwner: " + isProfileOwner); in verifyProfile() 57 return isProfileOwner && verifyProvisioningExtras; in verifyProfile()
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | DeviceAdminAddWarningPreferenceController.java | 46 boolean isProfileOwner = admin.equals(mDpm.getProfileOwner()); in updateState() 47 if (isProfileOwner || admin.equals(mDpm.getDeviceOwnerComponentOnCallingUser())) { in updateState() 49 if (isProfileOwner) { in updateState()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/ |
D | DeviceAdminAdd.java | 469 final boolean isProfileOwner = in updateInterface() 472 if (isProfileOwner && isManagedProfile) { in updateInterface() 484 } else if (isProfileOwner || mDeviceAdmin.getComponent().equals( in updateInterface() 487 if (isProfileOwner) { in updateInterface()
|
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 653 final boolean isProfileOwner = in updateInterface() 656 if (isProfileOwner && isManagedProfile) { in updateInterface() 668 } else if (isProfileOwner || mDeviceAdmin.getComponent().equals( in updateInterface() 671 if (isProfileOwner) { in updateInterface()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 982 assertTrue(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp() 987 assertFalse(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp() 993 assertFalse(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp() 1001 assertFalse(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiConfigManager.java | 3438 final boolean isProfileOwner = mWifiPermissionsUtil.isProfileOwner(uid, packageName); in canModifyProxySettings() 3446 if (isProfileOwner || isDeviceOwner || hasNetworkSettingsPermission in canModifyProxySettings() 3455 + " ProfileOwner=" + isProfileOwner); in canModifyProxySettings()
|
D | WifiServiceImpl.java | 759 || mWifiPermissionsUtil.isProfileOwner(uid, packageName); in isDeviceOrProfileOwner()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 689 public boolean isProfileOwner(int uid, @Nullable String packageName) { in isProfileOwner() method in WifiPermissionsUtil
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 1042 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testSetWifiDisabledSuccessForPOAppsTargetingQSdk() 2550 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testGetCallerConfiguredNetworks_ThrowExceptionIfNotDoOrPO() 2573 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testGetCallerConfiguredNetworks_ReturnsCallerNetworks() 5811 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testAddOrUpdateNetworkIsAllowedForPOApp() 5888 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testAddOrUpdateNetworkPrivilegedIsAllowedForPOApp() 6102 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testRemoveNonCallerConfiguredNetworks_CallerIsProfileOwner_ThrowsException() 6652 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in addOrUpdatePasspointConfigIsAllowedSystemAlertPOApp() 7925 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), anyString())).thenReturn(false); in testFlushPasspointAnqpCacheThrowsSecurityExceptionOnMissingPermissions() 7940 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), in testFlushPasspointAnqpCacheWithDoPermissions() 7957 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), eq(TEST_PACKAGE_NAME))).thenReturn(true); in testFlushPasspointAnqpCacheWithPoPermissions() [all …]
|
D | WifiConfigManagerTest.java | 286 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(false); in setUp() 1187 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(true); in testUpdateIpConfiguration() 1333 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(true); in testAddUpdateRemoveMultipleNetworks() 5305 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())) in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions()
|