Searched refs:admin2 (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 105 setUpPackageManagerForAdmin(admin2, DpmMockContext.CALLER_UID); in setUp() 250 assertFalse(dpm.isAdminActive(admin2)); in testSetActiveAdmin() 260 assertFalse(dpm.isAdminActiveAsUser(admin2, DpmMockContext.CALLER_USER_HANDLE + 1)); in testSetActiveAdmin() 266 setUpPackageManagerForAdmin(admin2, DpmMockContext.CALLER_UID, in testSetActiveAdmin() 269 dpm.setActiveAdmin(admin2, /* replace =*/ false); in testSetActiveAdmin() 273 assertTrue(dpm.isAdminActive(admin2)); in testSetActiveAdmin() 301 assertEquals(admin2, admins.get(1)); in testSetActiveAdmin() 320 setUpPackageManagerForAdmin(admin2, ANOTHER_ADMIN_UID); in testSetActiveAdmin_multiUsers() 327 dpm.setActiveAdmin(admin2, /* replace =*/ false); in testSetActiveAdmin_multiUsers() 332 assertFalse(dpm.isAdminActive(admin2)); in testSetActiveAdmin_multiUsers() [all …]
|
D | DpmTestBase.java | 46 public ComponentName admin2; field in DpmTestBase 60 admin2 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin2.class); in setUp()
|
D | DevicePolicyManagerServiceMigrationTest.java | 63 setUpPackageManagerForAdmin(admin2, UserHandle.getUid(10, 123)); in testMigration() 204 setUpPackageManagerForAdmin(admin2, DpmMockContext.CALLER_SYSTEM_USER_UID); in testMigration2_profileOwnerOnUser0()
|