Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DUserUtilsTest.java27 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.java20 import static com.android.providers.contacts.ContactsActor.MockUserManager.CLONE_PROFILE_USER;
21 import static com.android.providers.contacts.ContactsActor.MockUserManager.PRIMARY_USER;
165 public MockUserManager mockUserManager;
167 public static class MockUserManager extends UserManager { class in ContactsActor
187 public MockUserManager(Context context) { in MockUserManager() method in ContactsActor.MockUserManager
454 mockUserManager = new MockUserManager(mProviderContext); in ContactsActor()
DCloneContactsProvider2Test.java19 import static com.android.providers.contacts.ContactsActor.MockUserManager.CLONE_PROFILE_USER;
20 import static com.android.providers.contacts.ContactsActor.MockUserManager.PRIMARY_USER;
73 mActor.mockUserManager.setUsers(ContactsActor.MockUserManager.PRIMARY_USER, in setUp()
75 mCloneContactsActor.mockUserManager.setUsers(ContactsActor.MockUserManager.PRIMARY_USER, in setUp()
DContactsProvider2Test.java90 import com.android.providers.contacts.ContactsActor.MockUserManager;
2333 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpCorpProvider()
2337 final int userId = MockUserManager.CORP_USER.id; in setUpCorpProvider()
2351 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpNullCorpProvider()
2355 "" + MockUserManager.CORP_USER.id + "@com.android.contacts", in setUpNullCorpProvider()
2356 new AlteringUserContext(mActor.getProviderContext(), MockUserManager.CORP_USER.id)); in setUpNullCorpProvider()
3073 final MockUserManager um = mActor.mockUserManager; in testQueryCorpContactsProvider()
3103 um.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in testQueryCorpContactsProvider()