Home
last modified time | relevance | path

Searched refs:isProfileOrDeviceOwner (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationsUtilsTest.java90 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, profileHelper)) in isProfileOrDeviceOwner_profileOwner_returnsTrue()
99 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, in isProfileOrDeviceOwner_deviceOwner_returnsTrue()
105 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, in isProfileOrDeviceOwner_returnsFalse()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppInfoSettingsMoreOptions.kt150 val isProfileOrDeviceOwner = in getMoreOptionsState() constant
151 Utils.isProfileOrDeviceOwner(context.userManager, context.devicePolicyManager, packageName) in getMoreOptionsState()
155 shownUninstallUpdates = !isProfileOrDeviceOwner && shownUninstallUpdatesDeferred.await(), in getMoreOptionsState()
158 !isProfileOrDeviceOwner && shownUninstallForAllUsersDeferred.await(), in getMoreOptionsState()
DAppDisableButton.kt83 Utils.isProfileOrDeviceOwner(userManager, devicePolicyManager, packageName) -> false in canBeDisabled()
DAppButtonRepository.kt93 com.android.settings.Utils.isProfileOrDeviceOwner( in <lambda>()
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DBaseDeviceAdminAddPreferenceController.java58 final boolean isProfileOrDeviceOwner() { in isProfileOrDeviceOwner() method in BaseDeviceAdminAddPreferenceController
60 ? false : isProfileOrDeviceOwner(mDeviceAdminInfo.getComponent()); in isProfileOrDeviceOwner()
DDeviceAdminAddPoliciesPreferenceController.java46 return isProfileOrDeviceOwner() ? DISABLED_FOR_PROFILE : AVAILABLE; in getDefaultAvailabilityStatus()
DBaseEnterprisePreferenceController.java73 final boolean isProfileOrDeviceOwner(ComponentName admin) { in isProfileOrDeviceOwner() method in BaseEnterprisePreferenceController
DDeviceAdminAddHeaderPreferenceController.java133 if (isProfileOrDeviceOwner(componentName)) { in setCurrentStatus()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppDisableButtonTest.kt89 whenever(Utils.isProfileOrDeviceOwner(userManager, devicePolicyManager, PACKAGE_NAME)) in setUp()
145 whenever(Utils.isProfileOrDeviceOwner(userManager, devicePolicyManager, PACKAGE_NAME)) in getActionButton_isProfileOrDeviceOwner_cannotDisable()
DAppInfoSettingsMoreOptionsTest.kt121 whenever(Utils.isProfileOrDeviceOwner(userManager, devicePolicyManager, PACKAGE_NAME)) in setUp()
132 whenever(Utils.isProfileOrDeviceOwner(userManager, devicePolicyManager, PACKAGE_NAME)) in whenProfileOrDeviceOwner_notDisplayed()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationsUtils.java69 public static boolean isProfileOrDeviceOwner(String packageName, DevicePolicyManager dpm, in isProfileOrDeviceOwner() method in ApplicationsUtils
DApplicationActionButtonsPreferenceController.java23 import static com.android.car.settings.applications.ApplicationsUtils.isProfileOrDeviceOwner;
432 if (isProfileOrDeviceOwner(mPackageName, mDpm, mProfileHelper)) { in shouldDisableUninstallButton()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsDialogBuilder.java231 final boolean isProfileOrDeviceOwner = RestrictedLockUtils.getProfileOrDeviceOwner( in updatePositiveButton()
235 CharSequence displayText = mActivity.getText(!isProfileOrDeviceOwner && mNeedsApproval in updatePositiveButton()
DUtils.java1010 public static boolean isProfileOrDeviceOwner(UserManager userManager, in isProfileOrDeviceOwner() method in Utils
1034 public static boolean isProfileOrDeviceOwner(DevicePolicyManager devicePolicyManager, in isProfileOrDeviceOwner() method in Utils
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java180 Utils.isProfileOrDeviceOwner(mMockUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_deviceOwnerApp_returnTrue()
194 Utils.isProfileOrDeviceOwner(mMockUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_profileOwnerApp_returnTrue()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java400 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton()
406 if (Utils.isProfileOrDeviceOwner(mDpm, mPackageInfo.packageName, mUserId)) { in updateUninstallButton()