Home
last modified time | relevance | path

Searched refs:admin1 (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java104 setUpPackageManagerForAdmin(admin1, DpmMockContext.CALLER_UID); in setUp()
197 dpm.setActiveAdmin(admin1, false); in testSetActiveAdmin_SecurityException()
205 dpm.setActiveAdmin(admin1, false, DpmMockContext.CALLER_USER_HANDLE + 1); in testSetActiveAdmin_SecurityException()
225 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin()
240 eq(admin1.getPackageName()), in testSetActiveAdmin()
249 assertTrue(dpm.isAdminActive(admin1)); in testSetActiveAdmin()
259 assertFalse(dpm.isAdminActiveAsUser(admin1, DpmMockContext.CALLER_USER_HANDLE + 1)); in testSetActiveAdmin()
272 assertTrue(dpm.isAdminActive(admin1)); in testSetActiveAdmin()
279 eq(admin1.getPackageName()), in testSetActiveAdmin()
287 dpm.setActiveAdmin(admin1, /* replace =*/ false); in testSetActiveAdmin()
[all …]
DDpmTestBase.java45 public ComponentName admin1; field in DpmTestBase
59 admin1 = new ComponentName(mRealTestContext, DummyDeviceAdmins.Admin1.class); in setUp()
DDevicePolicyManagerServiceMigrationTest.java62 setUpPackageManagerForAdmin(admin1, DpmMockContext.CALLER_SYSTEM_USER_UID); in testMigration()