Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DUserUtilsTest.java25 import com.android.providers.contacts.ContactsActor.MockUserManager;
45 final MockUserManager um = mActor.mockUserManager; in testGetCorpUser()
51 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testGetCorpUser()
53 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser()
54 assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c)); in testGetCorpUser()
56 um.myUser = MockUserManager.CORP_USER.id; in testGetCorpUser()
60 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.SECONDARY_USER, in testGetCorpUser()
61 MockUserManager.CORP_USER); in testGetCorpUser()
63 um.myUser = MockUserManager.PRIMARY_USER.id; in testGetCorpUser()
64 assertEquals(MockUserManager.CORP_USER.id, UserUtils.getCorpUserId(c)); in testGetCorpUser()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java157 public MockUserManager mockUserManager;
159 public static class MockUserManager extends UserManager { class in ContactsActor
180 public MockUserManager(Context context) { in MockUserManager() method in ContactsActor.MockUserManager
417 mockUserManager = new MockUserManager(mProviderContext); in ContactsActor()
DContactsProvider2Test.java81 import com.android.providers.contacts.ContactsActor.MockUserManager;
2114 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpCorpProvider()
2118 final int userId = MockUserManager.CORP_USER.id; in setUpCorpProvider()
2132 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpNullCorpProvider()
2136 "" + MockUserManager.CORP_USER.id + "@com.android.contacts", in setUpNullCorpProvider()
2137 new AlteringUserContext(mActor.getProviderContext(), MockUserManager.CORP_USER.id)); in setUpNullCorpProvider()
2854 final MockUserManager um = mActor.mockUserManager; in testQueryCorpContactsProvider()
2884 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testQueryCorpContactsProvider()