Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java51 public static final String DEVICE_ADMIN_PKG = "com.android.cts.deviceandprofileowner"; field in DeviceAndProfileOwnerTest
56 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS;
180 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in tearDown()
221 .setAdminPackageName(DEVICE_ADMIN_PKG) in testInstallCaCertLogged()
225 .setAdminPackageName(DEVICE_ADMIN_PKG) in testInstallCaCertLogged()
237 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, ".ApplicationRestrictionsIsCallerDelegateHelper", in testApplicationRestrictionIsRestricted()
285 .setAdminPackageName(DEVICE_ADMIN_PKG) in testApplicationRestrictions()
555 .setAdminPackageName(DEVICE_ADMIN_PKG) in testAlwaysOnVpnPackageLogged()
646 .setAdminPackageName(DEVICE_ADMIN_PKG) in testPersistentIntentResolving()
647 .setStrings(DEVICE_ADMIN_PKG, in testPersistentIntentResolving()
[all …]
DProfileOwnerTestApi23.java23 protected static final String DEVICE_ADMIN_PKG = "com.android.cts.deviceandprofileowner"; field in ProfileOwnerTestApi23
38 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId, in setUp()
40 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp()
41 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in setUp()
51 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
52 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in tearDown()
61 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, in testDelegatedCertInstaller()
DAdbProvisioningTests.java20 import static com.android.cts.devicepolicy.DeviceAndProfileOwnerTest.DEVICE_ADMIN_PKG;
46 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in tearDown()
54 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mPrimaryUserId, in testAdbDeviceOwnerLogged()
57 .setAdminPackageName(DEVICE_ADMIN_PKG) in testAdbDeviceOwnerLogged()
68 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mPrimaryUserId, in testAdbProfileOwnerLogged()
71 .setAdminPackageName(DEVICE_ADMIN_PKG) in testAdbProfileOwnerLogged()
DMixedManagedProfileOwnerTest.java28 DEVICE_ADMIN_PKG + ".ClearProfileOwnerNegativeTest";
52 setProfileOwnerOrFail(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in createManagedProfile()
102 DEVICE_ADMIN_PKG, in testScreenCaptureDisabled_assist_allowedPrimaryUser()
182 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, CLEAR_PROFILE_OWNER_NEGATIVE_TEST_CLASS, mUserId); in testCannotClearProfileOwner()
188 mUserId, DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS)); in grantProfileOwnerDeviceIdsAccess()
215 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, ".DeviceIdAttestationTest", in testDeviceIdAttestationForProfileOwner()
221 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, ".DeviceIdAttestationTest", in testDeviceIdAttestationForProfileOwner()
DMixedDeviceOwnerTest.java47 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in setUp()
69 DEVICE_ADMIN_PKG, ".AffiliationTest", in testLockTask_unaffiliatedUser()
74 DEVICE_ADMIN_PKG, in testLockTask_unaffiliatedUser()
87 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, ".LockTaskTest", userId); in testLockTask_affiliatedSecondaryUser()
148 DEVICE_ADMIN_PKG, ".AffiliationTest", "testSetAffiliationId1", mPrimaryUserId); in setUserAsAffiliatedUserToPrimary()
150 DEVICE_ADMIN_PKG, ".AffiliationTest", "testSetAffiliationId1", userId); in setUserAsAffiliatedUserToPrimary()
DMixedProfileOwnerTestApi25.java34 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId, in setUp()
36 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp()
37 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in setUp()
47 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
DMixedProfileOwnerTest.java34 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId, in setUp()
36 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp()
37 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in setUp()
47 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
DMixedDeviceOwnerTestApi25.java42 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId, in setUp()
44 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp()
45 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in setUp()
55 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
DUserRestrictionsTest.java24 private static final String DEVICE_ADMIN_PKG = "com.android.cts.deviceandprofileowner"; field in UserRestrictionsTest
58 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in tearDown()
66 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in tearDown()
73 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, "." + className, method, userId); in runTests()
264 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setPoAsUser()
276 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setDo()
DDeviceAndProfileOwnerTestApi25.java37 protected static final String DEVICE_ADMIN_PKG = "com.android.cts.deviceandprofileowner"; field in DeviceAndProfileOwnerTestApi25
55 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in tearDown()
99 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, mUserId); in executeDeviceTestClass()
103 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId); in executeDeviceTestMethod()
DMixedManagedProfileOwnerTestApi25.java47 setProfileOwnerOrFail(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in createManagedProfile()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DClearApplicationDataTest.java29 private static final String DEVICE_ADMIN_PKG = "com.android.cts.deviceandprofileowner"; field in ClearApplicationDataTest
46 clearApplicationDataTest(DEVICE_ADMIN_PKG, /* shouldSucceed */ false); in testClearApplicationData_activeAdmin()