Home
last modified time | relevance | path

Searched refs:mContactsProvider (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java56 private MockContentProvider mContactsProvider; field in ContactLoaderTest
62 mContactsProvider = mMockContext.getContactsProvider(); in setUp()
84 mContactsProvider = null; in tearDown()
117 mContactsProvider.expectTypeQuery(baseUri, Contacts.CONTENT_ITEM_TYPE); in testLoadContactWithContactIdUri()
129 mContactsProvider.verify(); in testLoadContactWithContactIdUri()
161 mContactsProvider.verify(); in testLoadContactWithOldStyleUri()
175 mContactsProvider.expectTypeQuery(rawContactUri, RawContacts.CONTENT_ITEM_TYPE); in testLoadContactWithRawContactIdUri()
188 mContactsProvider.verify(); in testLoadContactWithRawContactIdUri()
200 mContactsProvider.expectTypeQuery(lookupNoIdUri, Contacts.CONTENT_ITEM_TYPE); in testLoadContactWithContactLookupUri()
212 mContactsProvider.verify(); in testLoadContactWithContactLookupUri()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DPeopleActivityTest.java65 private MockContentProvider mContactsProvider; field in PeopleActivityTest
75 mContactsProvider = mContext.getContactsProvider(); in setUp()
78 mContactsProvider.expectTypeQuery(ContentUris.withAppendedId(Contacts.CONTENT_URI, 1), in setUp()
108 mContactsProvider in expectProviderStatusQueryAndReturnNormal()
116 mContactsProvider in expectGroupsQueryAndReturnEmpty()
131 Query query = mContactsProvider in expectContactListQuery()
148 mContactsProvider.expectTypeQuery(uri, Contacts.CONTENT_ITEM_TYPE); in expectContactLookupQuery()
149 mContactsProvider in expectContactLookupQuery()
165 mContactsProvider in expectContactEntityQuery()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DContactsMockContext.java36 private MockContentProvider mContactsProvider; field in ContactsMockContext
48 mContactsProvider = new MockContentProvider(); in ContactsMockContext()
49 mContentResolver.addProvider(authority, mContactsProvider); in ContactsMockContext()
60 return mContactsProvider; in getContactsProvider()
91 mContactsProvider.verify(); in verify()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java470 private final ContactsProvider2 mContactsProvider; field in LegacyApiSupport
491 mContactsProvider = contactsProvider; in LegacyApiSupport()
517 mAccount = mContactsProvider.getDefaultAccount(); in ensureDefaultAccount()
833 Uri contactUri = mContactsProvider.insertInTransaction(RawContacts.CONTENT_URI, mValues); in insertPeople()
838 mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues2); in insertPeople()
842 mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues3); in insertPeople()
853 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertOrganization()
862 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertPhone()
876 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertContactMethod()
888 Uri uri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in insertExtension()
[all …]
DGlobalSearchSupport.java165 private final ContactsProvider2 mContactsProvider; field in GlobalSearchSupport
169 mContactsProvider = contactsProvider; in GlobalSearchSupport()
172 mContactsProvider.getContext().getSystemService(Context.TELEPHONY_SERVICE); in GlobalSearchSupport()
213 contactId = mContactsProvider.lookupContactIdByLookupKey(db, lookupKey); in handleSearchShortcutRefresh()
243 mContactsProvider.appendSearchIndexJoin(sb, filter, true, in addSearchSuggestionsBasedOnFilter()
DSearchIndexManager.java243 private final ContactsProvider2 mContactsProvider; field in SearchIndexManager
251 this.mContactsProvider = contactsProvider; in SearchIndexManager()
252 mDbHelper = (ContactsDatabaseHelper) mContactsProvider.getDatabaseHelper(); in SearchIndexManager()
279 mContactsProvider.setProviderStatus(ContactsProvider2.STATUS_UPGRADING); in rebuildIndex()
286 mContactsProvider.setProviderStatus(ContactsProvider2.STATUS_NORMAL); in rebuildIndex()
382 DataRowHandler dataRowHandler = mContactsProvider.getDataRowHandler(mimetype); in buildAndInsertIndex()
DContactDirectoryManager.java103 private final ContactsProvider2 mContactsProvider; field in ContactDirectoryManager
110 mContactsProvider = contactsProvider; in ContactDirectoryManager()
116 return (ContactsDatabaseHelper) mContactsProvider.getDatabaseHelper(); in getDbHelper()
248 mContactsProvider.notifyChange(/* syncToNetwork =*/false); in scanAllPackagesIfNeeded()
253 mContactsProvider.scheduleRescanDirectories(); in scanAllPackagesIfNeeded()
467 mContactsProvider.resetDirectoryCache(); in updateDirectoriesForPackage()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DContactDeletionInteractionTest.java60 private MockContentProvider mContactsProvider; field in ContactDeletionInteractionTest
99 mContactsProvider = mContext.getContactsProvider(); in setUp()
134 return mContactsProvider.expectQuery(ENTITY_URI).withProjection( in expectQuery()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DAbstractContactAggregator.java145 protected final ContactsProvider2 mContactsProvider; field in AbstractContactAggregator
279 mContactsProvider = contactsProvider; in AbstractContactAggregator()
1437 mContactsProvider.isWritableAccountWithDataSet(accountWithDataSet), in computeAggregateData()
1730 int thumbDim = mContactsProvider.getMaxThumbnailDim(); in getPhotoMetadata()
1803 mContactsProvider.isWritableAccountWithDataSet(accountTypeAndDataSet), in updateDisplayNameForContact()
2011 mContactsProvider.appendContactFilterAsNestedQuery(sb, filter); in queryMatchingContacts()