Home
last modified time | relevance | path

Searched refs:mActor (Results 1 – 10 of 10) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DGroupsTest.java73 ((SynchronousContactsProvider2)mActor.provider).wipeData(); in testGroupSummary()
76 long groupGrey = mActor.createGroup(GROUP_GREY); in testGroupSummary()
77 long groupRed = mActor.createGroup(GROUP_RED); in testGroupSummary()
78 long groupGreen = mActor.createGroup(GROUP_GREEN); in testGroupSummary()
79 long groupBlue = mActor.createGroup(GROUP_BLUE); in testGroupSummary()
82 long contactAlpha = mActor.createRawContact(PERSON_ALPHA); in testGroupSummary()
83 long contactBravo = mActor.createRawContact(PERSON_BRAVO); in testGroupSummary()
84 long contactCharlie = mActor.createRawContact(PERSON_CHARLIE); in testGroupSummary()
85 long contactCharlieDupe = mActor.createRawContact(PERSON_CHARLIE); in testGroupSummary()
88 long contactDelta = mActor.createRawContact(PERSON_DELTA); in testGroupSummary()
[all …]
DBaseVoicemailProviderTest.java51 mPackageManager.addPackage(Process.myUid(), mActor.packageName); in setUp()
71 mActor.removePermissions(READ_VOICEMAIL_PERMISSION); in setUpForOwnPermission()
72 mActor.removePermissions(WRITE_VOICEMAIL_PERMISSION); in setUpForOwnPermission()
73 mActor.addPermissions(ADD_VOICEMAIL_PERMISSION); in setUpForOwnPermission()
78 mActor.addPermissions(ADD_VOICEMAIL_PERMISSION); in setUpForFullPermission()
79 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in setUpForFullPermission()
80 mActor.addPermissions(WRITE_VOICEMAIL_PERMISSION); in setUpForFullPermission()
85 mActor.removePermissions(ADD_VOICEMAIL_PERMISSION); in setUpForNoPermission()
86 mActor.removePermissions(READ_VOICEMAIL_PERMISSION); in setUpForNoPermission()
87 mActor.removePermissions(WRITE_VOICEMAIL_PERMISSION); in setUpForNoPermission()
[all …]
DVoicemailProviderTest.java74 Voicemails.buildSourceUri(mActor.packageName) : Voicemails.CONTENT_URI; in voicemailUri()
80 Status.buildSourceUri(mActor.packageName) : Status.CONTENT_URI; in statusUri()
282 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in testPermissions_InsertAndQuery()
325 mActor.addPermissions(WRITE_VOICEMAIL_PERMISSION); in testPermissions_UpdateAndDelete()
330 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in testPermissions_UpdateAndDelete()
332 mActor.removePermissions(READ_VOICEMAIL_PERMISSION); in testPermissions_UpdateAndDelete()
338 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in testPermissions_UpdateAndDelete()
345 .appendQueryParameter(VoicemailContract.PARAM_KEY_SOURCE_PACKAGE, mActor.packageName) in withSourcePackageParam()
359 mActor.addUriPermissions(uri1); in testUriPermissions()
364 mActor.removeUriPermissions(uri1); in testUriPermissions()
[all …]
DCallLogProviderTest.java101 mActor.addPermissions(ADD_VOICEMAIL_PERMISSION); in setUpWithVoicemailPermissions()
102 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in setUpWithVoicemailPermissions()
103 mActor.addPermissions(WRITE_VOICEMAIL_PERMISSION); in setUpWithVoicemailPermissions()
359 mActor.addPermissions(WRITE_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Update()
361 mActor.removePermissions(WRITE_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Update()
377 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Query()
379 mActor.removePermissions(READ_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Query()
395 mActor.addPermissions(WRITE_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Delete()
397 mActor.removePermissions(WRITE_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Delete()
DPhotoStoreTest.java44 private ContactsActor mActor; field in PhotoStoreTest
54 mActor = new ContactsActor(getContext(), PACKAGE_GREY, SynchronousContactsProvider2.class, in setUp()
56 mProvider = ((SynchronousContactsProvider2) mActor.provider); in setUp()
DBaseContactsProvider2Test.java102 protected ContactsActor mActor; field in BaseContactsProvider2Test
129 mActor = new ContactsActor(getContext(), PACKAGE_GREY, getProviderClass(), getAuthority()); in setUp()
130 mResolver = mActor.resolver; in setUp()
131 if (mActor.provider instanceof SynchronousContactsProvider2) { in setUp()
136 mActor.addPermissions( in setUp()
151 return (SynchronousContactsProvider2) mActor.provider; in getContactsProvider()
155 return mActor.context; in getMockContext()
160 return mActor.addProvider(providerClass, authority); in addProvider()
164 return mActor.provider; in getProvider()
DContactDirectoryManagerTest.java443 mActor.setAccounts(accounts); in testAccountRemoval()
457 mActor.setAccounts(accounts); in testAccountRemoval()
DContactsProvider2Test.java2054 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpCorpProvider()
2058 SynchronousContactsProvider2 provider = mActor.addProvider( 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()
2073 mActor.addProvider( in setUpNullCorpProvider()
2076 new AlteringUserContext(mActor.getProviderContext(), MockUserManager.CORP_USER.id)); in setUpNullCorpProvider()
2086 mActor.addPermissions("android.permission.INTERACT_ACROSS_USERS"); in testQueryMergedDataPhones()
2166 mActor.addPermissions("android.permission.INTERACT_ACROSS_USERS"); in testQueryMergedDataPhones_nullCorp()
2293 mActor.addPermissions("android.permission.INTERACT_ACROSS_USERS"); in testQueryRawContactEntitiesCorp_noCorpProfile()
2306 mActor.addPermissions("android.permission.INTERACT_ACROSS_USERS"); in testQueryRawContactEntitiesCorp_withCorpProfile()
[all …]
DContactMetadataProviderTest.java107 mActor.provider).getDatabaseHelper(getContext())); in setUp()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DUserUtilsTest.java34 protected ContactsActor mActor; field in UserUtilsTest
40 mActor = new ContactsActor(getContext(), PACKAGE_GREY, in setUp()
46 final Context c = mActor.getProviderContext(); in testGetCorpUser()
47 final MockUserManager um = mActor.mockUserManager; in testGetCorpUser()