Searched refs:CALLER_USER_HANDLE (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 161 mContext.addUser(DpmMockContext.CALLER_USER_HANDLE, 0); in setUpUserManager() 172 assertTrue(dpm.setProfileOwner(admin, "owner-name", DpmMockContext.CALLER_USER_HANDLE)); in setAsProfileOwner() 175 assertEquals(admin, dpm.getProfileOwnerAsUser(DpmMockContext.CALLER_USER_HANDLE)); in setAsProfileOwner() 205 dpm.setActiveAdmin(admin1, false, DpmMockContext.CALLER_USER_HANDLE + 1); in testSetActiveAdmin_SecurityException() 233 MockUtils.checkUserHandle(DpmMockContext.CALLER_USER_HANDLE)); in testSetActiveAdmin() 237 MockUtils.checkUserHandle(DpmMockContext.CALLER_USER_HANDLE)); in testSetActiveAdmin() 243 eq(DpmMockContext.CALLER_USER_HANDLE), in testSetActiveAdmin() 259 assertFalse(dpm.isAdminActiveAsUser(admin1, DpmMockContext.CALLER_USER_HANDLE + 1)); in testSetActiveAdmin() 260 assertFalse(dpm.isAdminActiveAsUser(admin2, DpmMockContext.CALLER_USER_HANDLE + 1)); in testSetActiveAdmin() 282 eq(DpmMockContext.CALLER_USER_HANDLE), in testSetActiveAdmin() [all …]
|
D | DpmMockContext.java | 69 public static final int CALLER_USER_HANDLE = 20; field in DpmMockContext 74 public static final int CALLER_UID = UserHandle.getUid(CALLER_USER_HANDLE, 20123);
|