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
178 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in tearDown()
219 .setAdminPackageName(DEVICE_ADMIN_PKG) in testInstallCaCertLogged()
223 .setAdminPackageName(DEVICE_ADMIN_PKG) in testInstallCaCertLogged()
235 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, ".ApplicationRestrictionsIsCallerDelegateHelper", in testApplicationRestrictionIsRestricted()
283 .setAdminPackageName(DEVICE_ADMIN_PKG) in testApplicationRestrictions()
550 .setAdminPackageName(DEVICE_ADMIN_PKG) in testAlwaysOnVpnPackageLogged()
641 .setAdminPackageName(DEVICE_ADMIN_PKG) in testPersistentIntentResolving()
642 .setStrings(DEVICE_ADMIN_PKG, in testPersistentIntentResolving()
660 .setAdminPackageName(DEVICE_ADMIN_PKG) in testScreenCaptureDisabled()
[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()
100 DEVICE_ADMIN_PKG, in testScreenCaptureDisabled_assist_allowedPrimaryUser()
180 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, CLEAR_PROFILE_OWNER_NEGATIVE_TEST_CLASS, mUserId); in testCannotClearProfileOwner()
186 mUserId, DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS)); in grantProfileOwnerDeviceIdsAccess()
213 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, ".DeviceIdAttestationTest", in testDeviceIdAttestationForProfileOwner()
219 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, ".DeviceIdAttestationTest", in testDeviceIdAttestationForProfileOwner()
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()
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()
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()
263 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setPoAsUser()
275 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()
DMixedDeviceOwnerTest.java50 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId, in setUp()
52 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp()
53 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in setUp()
63 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
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()