Home
last modified time | relevance | path

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

/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java60 private MockContentProvider mContactsProvider; field in ContactLoaderTest
66 mContactsProvider = mMockContext.getContactsProvider(); in setUp()
88 mContactsProvider = null; in tearDown()
121 mContactsProvider.expectTypeQuery(baseUri, Contacts.CONTENT_ITEM_TYPE); in testLoadContactWithContactIdUri()
133 mContactsProvider.verify(); in testLoadContactWithContactIdUri()
165 mContactsProvider.verify(); in testLoadContactWithOldStyleUri()
179 mContactsProvider.expectTypeQuery(rawContactUri, RawContacts.CONTENT_ITEM_TYPE); in testLoadContactWithRawContactIdUri()
192 mContactsProvider.verify(); in testLoadContactWithRawContactIdUri()
204 mContactsProvider.expectTypeQuery(lookupNoIdUri, Contacts.CONTENT_ITEM_TYPE); in testLoadContactWithContactLookupUri()
216 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/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 …]
DSearchIndexManager.java238 private final ContactsProvider2 mContactsProvider; field in SearchIndexManager
246 this.mContactsProvider = contactsProvider; in SearchIndexManager()
247 mDbHelper = (ContactsDatabaseHelper) mContactsProvider.getDatabaseHelper(); in SearchIndexManager()
274 mContactsProvider.setProviderStatus(ContactsProvider2.STATUS_UPGRADING); in rebuildIndex()
281 mContactsProvider.setProviderStatus(ContactsProvider2.STATUS_NORMAL); in rebuildIndex()
377 DataRowHandler dataRowHandler = mContactsProvider.getDataRowHandler(mimetype); in buildAndInsertIndex()
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()
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()
254 mContactsProvider.scheduleRescanDirectories(); in scanAllPackagesIfNeeded()
468 mContactsProvider.resetDirectoryCache(); in updateDirectoriesForPackage()
DContactMetadataProvider.java91 private ContactsProvider2 mContactsProvider; field in ContactMetadataProvider
103 mContactsProvider = (ContactsProvider2) provider; in onCreate()
397 mContactsProvider.updateFromMetaDataEntry(db, metadataEntry); in updateOrInsertDataToMetadataSync()
/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/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
278 mContactsProvider = contactsProvider; in AbstractContactAggregator()
1430 mContactsProvider.isWritableAccountWithDataSet(accountWithDataSet), in computeAggregateData()
1723 int thumbDim = mContactsProvider.getMaxThumbnailDim(); in getPhotoMetadata()
1796 mContactsProvider.isWritableAccountWithDataSet(accountTypeAndDataSet), in updateDisplayNameForContact()
2004 mContactsProvider.appendContactFilterAsNestedQuery(sb, filter); in queryMatchingContacts()