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.java159 public MockUserManager mockUserManager;
161 public static class MockUserManager extends UserManager { class in ContactsActor
179 public MockUserManager(Context context) { in MockUserManager() method in ContactsActor.MockUserManager
425 mockUserManager = new MockUserManager(mProviderContext); in ContactsActor()
DContactsProvider2Test.java79 import com.android.providers.contacts.ContactsActor.MockUserManager;
2107 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpCorpProvider()
2111 final int userId = MockUserManager.CORP_USER.id; in setUpCorpProvider()
2125 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpNullCorpProvider()
2129 "" + MockUserManager.CORP_USER.id + "@com.android.contacts", in setUpNullCorpProvider()
2130 new AlteringUserContext(mActor.getProviderContext(), MockUserManager.CORP_USER.id)); in setUpNullCorpProvider()
2847 final MockUserManager um = mActor.mockUserManager; in testQueryCorpContactsProvider()
2877 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testQueryCorpContactsProvider()