Home
last modified time | relevance | path

Searched refs:isProfileOwner (Results 1 – 15 of 15) 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/modules/Connectivity/framework-t/src/android/net/
DNetworkStatsAccess.java149 final boolean isProfileOwner; in checkAccessLevel()
152 isProfileOwner = mDpm != null && mDpm.isProfileOwnerApp(callingPackage); in checkAccessLevel()
156 if (isProfileOwner) { in checkAccessLevel()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminAdd.java476 final boolean isProfileOwner = in updateInterface()
479 if (isProfileOwner && isManagedProfile) { in updateInterface()
491 } else if (isProfileOwner || mDeviceAdmin.getComponent().equals( in updateInterface()
494 if (isProfileOwner) { in updateInterface()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBtPermissionUtils.java176 private static boolean isProfileOwner(Context ctx, int uid, String packageName) { in isProfileOwner() method in BtPermissionUtils
353 && !isProfileOwner(ctx, callingUid, packageName)) { in checkCompatChangeRestriction()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java671 final boolean isProfileOwner = in updateInterface()
674 if (isProfileOwner && isManagedProfile) { in updateInterface()
690 } else if (isProfileOwner || mDeviceAdmin.getComponent().equals( in updateInterface()
693 if (isProfileOwner) { in updateInterface()
/packages/apps/Nfc/src/com/android/nfc/
DNfcPermissions.java197 public boolean isProfileOwner(int uid, @Nullable String packageName) { in isProfileOwner() method in NfcPermissions
DNfcService.java1648 || mNfcPermissions.isProfileOwner(uid, packageName); in isDeviceOrProfileOwner()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java997 assertTrue(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp()
1002 assertFalse(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp()
1008 assertFalse(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp()
1016 assertFalse(wifiPermissionsUtil.isProfileOwner( in testIsProfileOwnerApp()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java1077 public boolean isProfileOwner(int uid, @Nullable String packageName) { in isProfileOwner() method in WifiPermissionsUtil
1256 return isDeviceOwner(uid, packageName) || isProfileOwner(uid, packageName) in isAdmin()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java320 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(false); in setUp()
1418 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(true); in testUpdateIpConfiguration()
1565 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(true); in testAddUpdateRemoveMultipleNetworks()
5773 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())) in verifyAddOrUpdateNetworkWithProxySettingsAndPermissions()
7719 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(false); in testRemoveExcessAppAddedNetworksOnAdd()
7813 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), any())).thenReturn(false); in testFilterAtAppAddedLimit()
7831 .isProfileOwner(anyInt(), any()); in testFilterAtAppAddedLimit()
7843 .isProfileOwner(anyInt(), any()); in testFilterAtAppAddedLimit()
7854 .isProfileOwner(anyInt(), any()); in testFilterAtAppAddedLimit()
7880 when(mWifiPermissionsUtil.isProfileOwner(eq(1), anyString())).thenReturn(true); in testFilterNonAppAddedNetworks()
[all …]
DWifiServiceImplTest.java1521 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testSetWifiDisabledSuccessForPOAppsTargetingQSdk()
3257 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testGetCallerConfiguredNetworks_ThrowExceptionIfNotDoOrPO()
3280 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testGetCallerConfiguredNetworks_ReturnsCallerNetworks()
3310 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testGetConfiguredNetworksAdmin_ReturnsNetworksWithDefaultMac()
7014 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testAddOrUpdateNetworkIsAllowedForPOApp()
7498 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in testRemoveNonCallerConfiguredNetworks_CallerIsProfileOwner_ThrowsException()
8065 when(mWifiPermissionsUtil.isProfileOwner(Binder.getCallingUid(), TEST_PACKAGE_NAME)) in addOrUpdatePasspointConfigIsAllowedSystemAlertPOApp()
8423 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), anyString())).thenReturn(false); in testAllowAutojoinGlobalFailureNoPermission()
9861 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), anyString())).thenReturn(false); in testFlushPasspointAnqpCacheThrowsSecurityExceptionOnMissingPermissions()
9876 when(mWifiPermissionsUtil.isProfileOwner(anyInt(), in testFlushPasspointAnqpCacheWithDoPermissions()
[all …]
/packages/modules/NetworkStack/src/android/net/ip/
DIpClient.java2808 || isProfileOwner(mCreatorUid))) { in startDhcpClient()
2877 private boolean isProfileOwner(int uid) { in isProfileOwner() method in IpClient
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java1787 || mWifiPermissionsUtil.isProfileOwner(uid, packageName) in isDeviceOwnerProfileOwnerOrSystem()
DWifiServiceImpl.java1100 || mWifiPermissionsUtil.isProfileOwner(uid, packageName); in isDeviceOrProfileOwner()