Home
last modified time | relevance | path

Searched refs:isProfileOwner (Results 1 – 10 of 10) sorted by relevance

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DE2eUiTestUtils.java53 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/
DDeviceAdminAddWarningPreferenceController.java46 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/
DDeviceAdminAdd.java469 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/
DDeviceAdminAdd.java653 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/
DWifiPermissionsUtilTest.java982 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/
DWifiConfigManager.java3438 final boolean isProfileOwner = mWifiPermissionsUtil.isProfileOwner(uid, packageName); in canModifyProxySettings()
3446 if (isProfileOwner || isDeviceOwner || hasNetworkSettingsPermission in canModifyProxySettings()
3455 + " ProfileOwner=" + isProfileOwner); in canModifyProxySettings()
DWifiServiceImpl.java759 || mWifiPermissionsUtil.isProfileOwner(uid, packageName); in isDeviceOrProfileOwner()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java689 public boolean isProfileOwner(int uid, @Nullable String packageName) { in isProfileOwner() method in WifiPermissionsUtil
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java1042 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 …]
DWifiConfigManagerTest.java286 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()