Searched refs:MockUserManager (Results 1 – 3 of 3) sorted by relevance
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
D | UserUtilsTest.java | 19 import com.android.providers.contacts.ContactsActor.MockUserManager; 47 final MockUserManager um = mActor.mockUserManager; in testGetCorpUser() 53 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testGetCorpUser() 55 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser() 56 assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c)); in testGetCorpUser() 58 um.myUser = MockUserManager.CORP_USER.id; in testGetCorpUser() 62 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.SECONDARY_USER, in testGetCorpUser() 63 MockUserManager.CORP_USER); in testGetCorpUser() 65 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser() 66 assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c)); in testGetCorpUser() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 150 public MockUserManager mockUserManager; 152 public static class MockUserManager extends UserManager { class in ContactsActor 173 public MockUserManager(Context context) { in MockUserManager() method in ContactsActor.MockUserManager 359 mockUserManager = new MockUserManager(mProviderContext); in ContactsActor()
|
D | ContactsProvider2Test.java | 79 import com.android.providers.contacts.ContactsActor.MockUserManager; 2054 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpCorpProvider() 2060 "" + MockUserManager.CORP_USER.id + "@com.android.contacts", in setUpCorpProvider() 2061 new AlteringUserContext(mActor.getProviderContext(), MockUserManager.CORP_USER.id)); in setUpCorpProvider() 2071 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpNullCorpProvider() 2075 "" + MockUserManager.CORP_USER.id + "@com.android.contacts", in setUpNullCorpProvider() 2076 new AlteringUserContext(mActor.getProviderContext(), MockUserManager.CORP_USER.id)); in setUpNullCorpProvider() 2800 final MockUserManager um = mActor.mockUserManager; in testQueryCorpContactsProvider() 2830 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testQueryCorpContactsProvider()
|