Home
last modified time | relevance | path

Searched refs:AdminReceiver (Results 1 – 11 of 11) sorted by relevance

/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DManagementTest.java41 AdminReceiver.getComponentName(getContext()))); in testIsManagedProfile()
44 AdminReceiver.getComponentName(getContext()))); in testIsManagedProfile()
50 AdminReceiver.getComponentName(getContext()))); in testIsDeviceOwner()
53 AdminReceiver.getComponentName(getContext()))); in testIsDeviceOwner()
65 AdminReceiver.getComponentName(mContext)); in testOtherProfilesEqualsBindTargetUsers()
87 assertTrue(mDevicePolicyManager.removeUser(AdminReceiver.getComponentName(mContext), in testCanRemoveManagedProfile()
92 ComponentName admin = AdminReceiver.getComponentName(mContext); in testCreateSecondaryUser()
99 AdminReceiver.getComponentName(mContext))); in testNoBindDeviceAdminTargetUsers()
106 mDevicePolicyManager.startUserInBackground(AdminReceiver.getComponentName(mContext), in testCannotStartManagedProfileInBackground()
114 mDevicePolicyManager.stopUser(AdminReceiver.getComponentName(mContext), in testCannotStopManagedProfile()
[all …]
DBindDeviceAdminServiceFailsTest.java54 AdminReceiver.getComponentName(mContext)); in testNoBindDeviceAdminTargetUsers()
61 checkCannotBind(AdminReceiver.COMP_DPC_PACKAGE_NAME, otherProfile); in testCannotBind()
62 checkCannotBind(AdminReceiver.COMP_DPC_2_PACKAGE_NAME, otherProfile); in testCannotBind()
80 return mDpm.bindDeviceAdminServiceAsUser(AdminReceiver.getComponentName(mContext), in bind()
DBindDeviceAdminServiceGoodSetupTest.java52 private static final String NON_MANAGING_PACKAGE = AdminReceiver.COMP_DPC_2_PACKAGE_NAME;
69 assertEquals(AdminReceiver.COMP_DPC_PACKAGE_NAME, mContext.getPackageName()); in setUp()
71 mTargetUsers = mDpm.getBindDeviceAdminTargetUsers(AdminReceiver.getComponentName(mContext)); in setUp()
76 if (!mDpm.isDeviceOwnerApp(AdminReceiver.getComponentName(mContext).getPackageName())) { in testOnlyDeviceOwnerCanHaveMoreThanOneTargetUser()
219 return mDpm.bindDeviceAdminServiceAsUser(AdminReceiver.getComponentName(mContext), in bind()
DAdminReceiver.java25 public class AdminReceiver extends DeviceAdminReceiver { class
32 return new ComponentName(context, AdminReceiver.class); in getComponentName()
DDeviceWideLoggingFeaturesTest.java41 mAdminComponent = AdminReceiver.getComponentName(mContext); in setUp()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/
DManagedProfileProvisioningTest.java26 import com.android.cts.comp.AdminReceiver;
34 AdminReceiver.getComponentName(getContext())) in testProvisioningCorpOwnedManagedProfile()
49 dpm.setProfileEnabled(AdminReceiver.getComponentName(getContext())); in testEnableProfile()
DAffiliationTest.java25 import com.android.cts.comp.AdminReceiver;
41 ComponentName admin = AdminReceiver.getComponentName(getContext()); in setAffiliationId()
DUserRestrictionTest.java24 import com.android.cts.comp.AdminReceiver;
54 ComponentName admin = AdminReceiver.getComponentName(getContext()); in setUserRestriction()
/cts/hostsidetests/devicepolicy/app/SingleAdminApp/src/com/android/cts/devicepolicy/singleadmin/
DProvisioningSingleAdminTest.java40 private static final String ADMIN_RECEIVER_PACKAGE = AdminReceiver.class.getPackage().getName();
41 private static final String ADMIN_RECEIVER_NAME = AdminReceiver.class.getName();
48 public static class AdminReceiver extends DeviceAdminReceiver { class in ProvisioningSingleAdminTest
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DBaseDeviceAdminTest.java27 public static class AdminReceiver extends DeviceAdminReceiver { class in BaseDeviceAdminTest
42 mAdminComponent = new ComponentName(mContext, AdminReceiver.class); in setUp()
/cts/hostsidetests/devicepolicy/app/AccountCheck/src-owner/com/android/cts/devicepolicy/accountcheck/owner/
DAdminReceiver.java20 public class AdminReceiver extends DeviceAdminReceiver { class