/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/ |
D | ApplicationsUtilsTest.java | 90 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/ |
D | AppInfoSettingsMoreOptions.kt | 150 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()
|
D | AppDisableButton.kt | 83 Utils.isProfileOrDeviceOwner(userManager, devicePolicyManager, packageName) -> false in canBeDisabled()
|
D | AppButtonRepository.kt | 93 com.android.settings.Utils.isProfileOrDeviceOwner( in <lambda>()
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | BaseDeviceAdminAddPreferenceController.java | 58 final boolean isProfileOrDeviceOwner() { in isProfileOrDeviceOwner() method in BaseDeviceAdminAddPreferenceController 60 ? false : isProfileOrDeviceOwner(mDeviceAdminInfo.getComponent()); in isProfileOrDeviceOwner()
|
D | DeviceAdminAddPoliciesPreferenceController.java | 46 return isProfileOrDeviceOwner() ? DISABLED_FOR_PROFILE : AVAILABLE; in getDefaultAvailabilityStatus()
|
D | BaseEnterprisePreferenceController.java | 73 final boolean isProfileOrDeviceOwner(ComponentName admin) { in isProfileOrDeviceOwner() method in BaseEnterprisePreferenceController
|
D | DeviceAdminAddHeaderPreferenceController.java | 133 if (isProfileOrDeviceOwner(componentName)) { in setCurrentStatus()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/ |
D | AppDisableButtonTest.kt | 89 whenever(Utils.isProfileOrDeviceOwner(userManager, devicePolicyManager, PACKAGE_NAME)) in setUp() 145 whenever(Utils.isProfileOrDeviceOwner(userManager, devicePolicyManager, PACKAGE_NAME)) in getActionButton_isProfileOrDeviceOwner_cannotDisable()
|
D | AppInfoSettingsMoreOptionsTest.kt | 121 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/ |
D | ApplicationsUtils.java | 69 public static boolean isProfileOrDeviceOwner(String packageName, DevicePolicyManager dpm, in isProfileOrDeviceOwner() method in ApplicationsUtils
|
D | ApplicationActionButtonsPreferenceController.java | 23 import static com.android.car.settings.applications.ApplicationsUtils.isProfileOrDeviceOwner; 432 if (isProfileOrDeviceOwner(mPackageName, mDpm, mProfileHelper)) { in shouldDisableUninstallButton()
|
/packages/apps/Settings/src/com/android/settings/ |
D | TrustedCredentialsDialogBuilder.java | 231 final boolean isProfileOrDeviceOwner = RestrictedLockUtils.getProfileOrDeviceOwner( in updatePositiveButton() 235 CharSequence displayText = mActivity.getText(!isProfileOrDeviceOwner && mNeedsApproval in updatePositiveButton()
|
D | Utils.java | 1010 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/ |
D | UtilsTest.java | 180 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/ |
D | AppButtonsPreferenceController.java | 400 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton() 406 if (Utils.isProfileOrDeviceOwner(mDpm, mPackageInfo.packageName, mUserId)) { in updateUninstallButton()
|