Searched refs:FEATURE_DEVICE_ADMIN (Results 1 – 16 of 16) sorted by relevance
515 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testCanSuspendWhenProfileOwner()522 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testCanSuspendWhenDeviceOwner()529 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testPackageUnsuspendedOnAddingDeviceOwner()543 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)); in testPackageUnsuspendedOnAddingProfileOwner()
24 import static android.content.pm.PackageManager.FEATURE_DEVICE_ADMIN;300 return mContext.getPackageManager().hasSystemFeature(FEATURE_DEVICE_ADMIN); in supportsDeviceAdmin()
50 when(getServices().packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) in setUp()
185 when(getServices().packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) in setUp()287 when(getServices().packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) in testHasNoFeature()2766 when(getServices().packageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)) in setup_DeviceAdminFeatureOff()
136 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)) in checkIfDeviceAdminFeatureDisabled_noEnforceAdminForManagedProfile()
372 if (!pm.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN) || dpm == null) { in checkIfAccountManagementDisabled()
363 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)) { in testSettings()
1311 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)) { in waitForAdminData()
2549 public static final String FEATURE_DEVICE_ADMIN = "android.software.device_admin"; field in PackageManager
893 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN) in canModifyNetwork()
140 @RequiresFeature(PackageManager.FEATURE_DEVICE_ADMIN)
5383 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)) { in waitForAdminData()
1872 return getPackageManager().hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN); in hasFeature()
8792 … field public static final java.lang.String FEATURE_DEVICE_ADMIN = "android.software.device_admin";
11705 field public static final String FEATURE_DEVICE_ADMIN = "android.software.device_admin";