Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DSynchronousContactsProvider2.java29 private static ContactsDatabaseHelper mDbHelper; field in SynchronousContactsProvider2
44 if (mDbHelper == null) { in getDatabaseHelper()
45 mDbHelper = new ContactsDatabaseHelper(context); in getDatabaseHelper()
47 return mDbHelper; in getDatabaseHelper()
51 mDbHelper = null; in resetOpenHelper()
DLegacyContactImporterPerformanceTest.java113 private static ContactsDatabaseHelper mDbHelper; field in LegacyContactImporterPerformanceTest.TestCallLogProvider
117 if (mDbHelper == null) { in getDatabaseHelper()
118 mDbHelper = new ContactsDatabaseHelper(context); in getDatabaseHelper()
120 return mDbHelper; in getDatabaseHelper()
DCallLogProviderTest.java158 private static ContactsDatabaseHelper mDbHelper; field in CallLogProviderTest.TestCallLogProvider
162 if (mDbHelper == null) { in getDatabaseHelper()
163 mDbHelper = new ContactsDatabaseHelper(context); in getDatabaseHelper()
165 return mDbHelper; in getDatabaseHelper()
DLegacyContactImporterTest.java246 private static ContactsDatabaseHelper mDbHelper; field in LegacyContactImporterTest.TestCallLogProvider
250 if (mDbHelper == null) { in getDatabaseHelper()
251 mDbHelper = new ContactsDatabaseHelper(context); in getDatabaseHelper()
253 return mDbHelper; in getDatabaseHelper()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DSocialProvider.java124 private ContactsDatabaseHelper mDbHelper; field in SocialProvider
130 mDbHelper = ContactsDatabaseHelper.getInstance(context); in onCreate()
133 mDbHelper.getReadableDatabase(); in onCreate()
183 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insertActivity()
193 values.put(ActivitiesColumns.PACKAGE_ID, mDbHelper.getPackageId(packageName)); in insertActivity()
198 values.put(ActivitiesColumns.MIMETYPE_ID, mDbHelper.getMimeTypeId(mimeType)); in insertActivity()
299 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
328 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query()
398 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in getType()
400 return mDbHelper.getActivityMimeType(activityId); in getType()
DCallLogProvider.java70 private ContactsDatabaseHelper mDbHelper; field in CallLogProvider
78 mDbHelper = getDatabaseHelper(context); in onCreate()
79 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in onCreate()
128 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query()
163 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
187 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
DContactAggregator.java169 private final ContactsDatabaseHelper mDbHelper; field in ContactAggregator
265 mDbHelper = contactsDatabaseHelper; in ContactAggregator()
267 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in ContactAggregator()
420 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in run()
604 mDbHelper.updateContactVisible(contactId); in insertContact()
627 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateAggregateData()
632 mDbHelper.updateContactVisible(contactId); in updateAggregateData()
684 mDbHelper.updateContactVisible(contactId); in aggregateContact()
707 mDbHelper.updateContactVisible(contactId); in aggregateContact()
1069 mDbHelper.buildPhoneLookupAndRawContactQuery(qb, phoneNumber); in lookupPhoneMatches()
[all …]
DContactsProvider2.java892 mMimetypeId = mDbHelper.getMimeTypeId(mMimetype); in getMimeTypeId()
1548 long contactId = mDbHelper.getContactId(rawContactId); in updateVisibility()
1550 mDbHelper.updateContactVisible(contactId); in updateVisibility()
1628 private ContactsDatabaseHelper mDbHelper; field in ContactsProvider2
1677 mDbHelper = (ContactsDatabaseHelper)getDatabaseHelper(); in initialize()
1679 mLegacyApiSupport = new LegacyApiSupport(context, mDbHelper, this, mGlobalSearchSupport); in initialize()
1680 mContactAggregator = new ContactAggregator(this, mDbHelper, mAggregationScheduler); in initialize()
1683 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in initialize()
1811 mMimeTypeIdEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE); in initialize()
1812 mMimeTypeIdIm = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE); in initialize()
[all …]
DLegacyContactImporter.java68 private ContactsDatabaseHelper mDbHelper; field in LegacyContactImporter
144 mDbHelper = (ContactsDatabaseHelper)mContactsProvider.getDatabaseHelper(); in importContactsFromLegacyDb()
145 mTargetDb = mDbHelper.getWritableDatabase(); in importContactsFromLegacyDb()
155 mStructuredNameMimetypeId = mDbHelper.getMimeTypeId(StructuredName.CONTENT_ITEM_TYPE); in importContactsFromLegacyDb()
156 mNoteMimetypeId = mDbHelper.getMimeTypeId(Note.CONTENT_ITEM_TYPE); in importContactsFromLegacyDb()
157 mOrganizationMimetypeId = mDbHelper.getMimeTypeId(Organization.CONTENT_ITEM_TYPE); in importContactsFromLegacyDb()
158 mPhoneMimetypeId = mDbHelper.getMimeTypeId(Phone.CONTENT_ITEM_TYPE); in importContactsFromLegacyDb()
159 mEmailMimetypeId = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE); in importContactsFromLegacyDb()
160 mImMimetypeId = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE); in importContactsFromLegacyDb()
161 mPostalMimetypeId = mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE); in importContactsFromLegacyDb()
[all …]
DLegacyApiSupport.java482 private final ContactsDatabaseHelper mDbHelper; field in LegacyApiSupport
507 mDbHelper = contactsDatabaseHelper; in LegacyApiSupport()
514 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in LegacyApiSupport()
529 mMimetypeEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE); in LegacyApiSupport()
530 mMimetypeIm = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE); in LegacyApiSupport()
531 mMimetypePostal = mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE); in LegacyApiSupport()
1146 long contactId = mDbHelper.getContactId(rawContactId); in updateContactTime()
1235 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateSettings()
1312 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in copySettingsToLegacySettings()
1589 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query()
[all …]