Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationsUtilsTest.java86 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, um)).isTrue(); in isProfileOrDeviceOwner_profileOwner_returnsTrue()
94 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, in isProfileOrDeviceOwner_deviceOwner_returnsTrue()
100 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, in isProfileOrDeviceOwner_returnsFalse()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DUtilsTest.java175 assertThat(Utils.isProfileOrDeviceOwner(mUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_deviceOwnerApp_returnTrue()
188 assertThat(Utils.isProfileOrDeviceOwner(mUserManager, mDevicePolicyManager, PACKAGE_NAME)) in isProfileOrDeviceOwner_profileOwnerApp_returnTrue()
/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.java891 public static boolean isProfileOrDeviceOwner(UserManager userManager, in isProfileOrDeviceOwner() method in Utils
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DTrustedCredentialsDialogBuilder.java231 final boolean isProfileOrDeviceOwner = RestrictedLockUtils.getProfileOrDeviceOwner( in updatePositiveButton()
235 CharSequence displayText = mActivity.getText(!isProfileOrDeviceOwner && mNeedsApproval in updatePositiveButton()
DUtils.java896 public static boolean isProfileOrDeviceOwner(UserManager userManager, in isProfileOrDeviceOwner() method in Utils
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationDetailsFragment.java22 import static com.android.car.settings.applications.ApplicationsUtils.isProfileOrDeviceOwner;
291 if (isProfileOrDeviceOwner(mPackageName, mDpm, mCarUserManagerHelper)) { in shouldDisableUninstallButton()
DApplicationsUtils.java63 public static boolean isProfileOrDeviceOwner(String packageName, DevicePolicyManager dpm, in isProfileOrDeviceOwner() method in ApplicationsUtils
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBackgroundActivityPreferenceController.java89 || Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mTargetPackage)) { in updateState()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBackgroundActivityPreferenceController.java89 || Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mTargetPackage)) { in updateState()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppButtonsPreferenceController.java398 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DAppButtonsPreferenceController.java399 if (Utils.isProfileOrDeviceOwner(mUserManager, mDpm, mPackageInfo.packageName)) { in updateUninstallButton()