Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseVoicemailProviderTest.java50 mPackageManager.addPackage(Process.myUid(), mActor.packageName); in setUp()
70 mActor.removePermissions(READ_VOICEMAIL_PERMISSION); in setUpForOwnPermission()
71 mActor.removePermissions(WRITE_VOICEMAIL_PERMISSION); in setUpForOwnPermission()
72 mActor.addPermissions(ADD_VOICEMAIL_PERMISSION); in setUpForOwnPermission()
73 mActor.revokeCarrierPrivileges(); in setUpForOwnPermission()
78 mActor.removePermissions(READ_VOICEMAIL_PERMISSION); in setUpForOwnPermissionViaCarrierPrivileges()
79 mActor.removePermissions(WRITE_VOICEMAIL_PERMISSION); in setUpForOwnPermissionViaCarrierPrivileges()
80 mActor.removePermissions(ADD_VOICEMAIL_PERMISSION); in setUpForOwnPermissionViaCarrierPrivileges()
81 mActor.grantCarrierPrivileges(); in setUpForOwnPermissionViaCarrierPrivileges()
86 mActor.addPermissions(ADD_VOICEMAIL_PERMISSION); in setUpForFullPermission()
[all …]
DGroupsTest.java74 ((SynchronousContactsProvider2)mActor.provider).wipeData(); in testGroupSummary()
77 long groupGrey = mActor.createGroup(GROUP_GREY); in testGroupSummary()
78 long groupRed = mActor.createGroup(GROUP_RED); in testGroupSummary()
79 long groupGreen = mActor.createGroup(GROUP_GREEN); in testGroupSummary()
80 long groupBlue = mActor.createGroup(GROUP_BLUE); in testGroupSummary()
83 long contactAlpha = mActor.createRawContact(PERSON_ALPHA); in testGroupSummary()
84 long contactBravo = mActor.createRawContact(PERSON_BRAVO); in testGroupSummary()
85 long contactCharlie = mActor.createRawContact(PERSON_CHARLIE); in testGroupSummary()
86 long contactCharlieDupe = mActor.createRawContact(PERSON_CHARLIE); in testGroupSummary()
89 long contactDelta = mActor.createRawContact(PERSON_DELTA); in testGroupSummary()
[all …]
DVoicemailProviderTest.java99 Voicemails.buildSourceUri(mActor.packageName) : Voicemails.CONTENT_URI; in voicemailUri()
107 Status.buildSourceUri(mActor.packageName) : Status.CONTENT_URI; in statusUri()
338 mPackageManager.addPackage(Process.myUid(), mActor.packageName); in testUpdateAfterDelete_lastModifiedNotChanged()
422 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in testPermissions_InsertAndQuery()
464 mActor.addPermissions(WRITE_VOICEMAIL_PERMISSION); in testPermissions_UpdateAndDelete()
469 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in testPermissions_UpdateAndDelete()
471 mActor.removePermissions(READ_VOICEMAIL_PERMISSION); in testPermissions_UpdateAndDelete()
477 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in testPermissions_UpdateAndDelete()
506 mActor.packageName) in withSourcePackageParam()
520 mActor.addUriPermissions(uri1); in testUriPermissions()
[all …]
DCloneContactsProvider2Test.java73 mActor.mockUserManager.setUsers(ContactsActor.MockUserManager.PRIMARY_USER, in setUp()
92 Cursor primaryProfileCursor = mActor.provider.query(uri, in getCloneContactsProviderWithMockedCallToParent()
102 AssetFileDescriptor fileDescriptor = mActor.provider.openAssetFile(uri, "r"); in getCloneContactsProviderWithMockedOpenAssetFileCall()
154 Uri resultUri = mActor.resolver.insert(ContactsContract.RawContacts.CONTENT_URI, in insertRawContactsThroughPrimaryProvider()
192 Cursor cursor = mActor.resolver.query(ContentUris.withAppendedId( in testPrimaryContactsProviderInsert()
224 Cursor cursor = mActor.resolver.query(ContentUris.withAppendedId( in testCloneContactsProviderUpdate()
247 Cursor cursor = mActor.resolver.query(ContentUris.withAppendedId( in testCloneContactsProviderDelete()
390 Cursor primaryProfileCursor = mActor.provider.query(uri, in testContactsProviderReads_callerInAllowlist()
DCallLogProviderTest.java359 mActor.addPermissions(ADD_VOICEMAIL_PERMISSION); in setUpWithVoicemailPermissions()
360 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in setUpWithVoicemailPermissions()
361 mActor.addPermissions(WRITE_VOICEMAIL_PERMISSION); in setUpWithVoicemailPermissions()
668 mActor.addPermissions(WRITE_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Update()
670 mActor.removePermissions(WRITE_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Update()
686 mActor.addPermissions(READ_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Query()
688 mActor.removePermissions(READ_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Query()
704 mActor.addPermissions(WRITE_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Delete()
706 mActor.removePermissions(WRITE_VOICEMAIL_PERMISSION); in testVoicemailPermissions_Delete()
DPhotoStoreTest.java45 private ContactsActor mActor; field in PhotoStoreTest
55 mActor = new ContactsActor(getContext(), PACKAGE_GREY, SynchronousContactsProvider2.class, in setUp()
57 mProvider = ((SynchronousContactsProvider2) mActor.provider); in setUp()
DBaseContactsProvider2Test.java113 protected ContactsActor mActor; field in BaseContactsProvider2Test
149 mActor = new ContactsActor( in setUp()
151 mResolver = mActor.resolver; in setUp()
152 if (mActor.provider instanceof SynchronousContactsProvider2) { in setUp()
157 mActor.addPermissions( in setUp()
171 mActor.shutdown(); in tearDown()
177 return (SynchronousContactsProvider2) mActor.provider; in getContactsProvider()
181 return mActor.context; in getMockContext()
186 return mActor.addProvider(providerClass, authority); in addProvider()
190 return mActor.provider; in getProvider()
DVoicemailCleanupTest.java117 (VoicemailContentProvider) mActor.provider; in testRemoveStalePackagesAtStartUp()
DContactsProvider2Test.java2333 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpCorpProvider()
2338 SynchronousContactsProvider2 provider = mActor.addProvider( in setUpCorpProvider()
2341 new AlteringUserContext(mActor.getProviderContext(), userId)); in setUpCorpProvider()
2351 mActor.mockUserManager.setUsers(MockUserManager.PRIMARY_USER, MockUserManager.CORP_USER); in setUpNullCorpProvider()
2353 mActor.addProvider( in setUpNullCorpProvider()
2356 new AlteringUserContext(mActor.getProviderContext(), MockUserManager.CORP_USER.id)); in setUpNullCorpProvider()
2366 mActor.addPermissions("android.permission.INTERACT_ACROSS_USERS"); in testQueryMergedDataPhones()
2446 mActor.addPermissions("android.permission.INTERACT_ACROSS_USERS"); in testQueryMergedDataPhones_nullCorp()
2573 mActor.addPermissions("android.permission.INTERACT_ACROSS_USERS"); in testQueryRawContactEntitiesCorp_noCorpProfile()
2586 mActor.addPermissions("android.permission.INTERACT_ACROSS_USERS"); in testQueryRawContactEntitiesCorp_withCorpProfile()
[all …]
DContactDirectoryManagerTest.java512 mActor.setAccounts(accounts); in testAccountRemoval()
526 mActor.setAccounts(accounts); in testAccountRemoval()
/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()
98 final Context c = mActor.getProviderContext(); in testShouldUseParentsContacts()
99 final MockUserManager um = mActor.mockUserManager; in testShouldUseParentsContacts()
127 final Context c = mActor.getProviderContext(); in testIsParentUser()
128 final MockUserManager um = mActor.mockUserManager; in testIsParentUser()
145 final Context c = mActor.getProviderContext(); in testGetProfileParent()
146 final MockUserManager um = mActor.mockUserManager; in testGetProfileParent()