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.java19 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/
DContactsActor.java148 public MockUserManager mockUserManager;
150 public static class MockUserManager extends UserManager { class in ContactsActor
171 public MockUserManager(Context context) { in MockUserManager() method in ContactsActor.MockUserManager
369 mockUserManager = new MockUserManager(mProviderContext); in ContactsActor()
DContactsProvider2Test.java81 import com.android.providers.contacts.ContactsActor.MockUserManager;
2079 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpCorpProvider()
2083 final int userId = MockUserManager.CORP_USER.id; in setUpCorpProvider()
2097 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpNullCorpProvider()
2101 "" + MockUserManager.CORP_USER.id + "@com.android.contacts", in setUpNullCorpProvider()
2102 new AlteringUserContext(mActor.getProviderContext(), MockUserManager.CORP_USER.id)); in setUpNullCorpProvider()
2826 final MockUserManager um = mActor.mockUserManager; in testQueryCorpContactsProvider()
2856 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testQueryCorpContactsProvider()