Searched refs:mDbHelper (Results 1 - 12 of 12) sorted by relevance

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DSynchronousContactsProvider2.java33 private static ContactsDatabaseHelper mDbHelper; field in class:SynchronousContactsProvider2
40 if (mDbHelper == null) {
41 mDbHelper = new ContactsDatabaseHelper(context);
43 return mDbHelper;
47 mDbHelper = null;
H A DLegacyContactImporterPerformanceTest.java112 private static ContactsDatabaseHelper mDbHelper; field in class:LegacyContactImporterPerformanceTest.TestCallLogProvider
116 if (mDbHelper == null) {
117 mDbHelper = new ContactsDatabaseHelper(context);
119 return mDbHelper;
H A DCallLogProviderTest.java152 private static ContactsDatabaseHelper mDbHelper; field in class:CallLogProviderTest.TestCallLogProvider
156 if (mDbHelper == null) {
157 mDbHelper = new ContactsDatabaseHelper(context);
159 return mDbHelper;
H A DLegacyContactImporterTest.java285 private static ContactsDatabaseHelper mDbHelper; field in class:LegacyContactImporterTest.TestCallLogProvider
289 if (mDbHelper == null) {
290 mDbHelper = new ContactsDatabaseHelper(context);
292 return mDbHelper;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DCallLogProvider.java70 private ContactsDatabaseHelper mDbHelper; field in class:CallLogProvider
78 mDbHelper = getDatabaseHelper(context);
79 SQLiteDatabase db = mDbHelper.getWritableDatabase();
128 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
163 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
189 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
H A DSocialProvider.java125 private ContactsDatabaseHelper mDbHelper; field in class:SocialProvider
131 mDbHelper = ContactsDatabaseHelper.getInstance(context);
180 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
190 values.put(ActivitiesColumns.PACKAGE_ID, mDbHelper.getPackageId(packageName));
195 values.put(ActivitiesColumns.MIMETYPE_ID, mDbHelper.getMimeTypeId(mimeType));
296 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
325 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
395 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
397 return mDbHelper.getActivityMimeType(activityId);
H A DContactsProvider2.java982 mMimetypeId = mDbHelper.getMimeTypeId(mMimetype);
1724 long contactId = mDbHelper.getContactId(rawContactId);
1726 mDbHelper.updateContactVisible(contactId);
1808 private ContactsDatabaseHelper mDbHelper; field in class:ContactsProvider2
1859 mDbHelper = (ContactsDatabaseHelper)getDatabaseHelper();
1861 mLegacyApiSupport = new LegacyApiSupport(context, mDbHelper, this, mGlobalSearchSupport);
1862 mContactAggregator = new ContactAggregator(this, mDbHelper,
1866 mDb = mDbHelper.getWritableDatabase();
1972 mMimeTypeIdEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE);
1973 mMimeTypeIdIm = mDbHelper
[all...]
H A DContactAggregator.java94 private final ContactsDatabaseHelper mDbHelper; field in class:ContactAggregator
205 mDbHelper = contactsDatabaseHelper;
208 SQLiteDatabase db = mDbHelper.getReadableDatabase();
295 mMimeTypeIdEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE);
296 mMimeTypeIdPhoto = mDbHelper.getMimeTypeId(Photo.CONTENT_ITEM_TYPE);
297 mMimeTypeIdPhone = mDbHelper.getMimeTypeId(Phone.CONTENT_ITEM_TYPE);
418 mDbHelper.updateContactVisible(contactId);
441 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
446 mDbHelper.updateContactVisible(contactId);
512 mDbHelper
[all...]
H A DLegacyContactImporter.java77 private ContactsDatabaseHelper mDbHelper; field in class:LegacyContactImporter
167 mDbHelper = (ContactsDatabaseHelper)mContactsProvider.getDatabaseHelper();
168 mTargetDb = mDbHelper.getWritableDatabase();
170 mStructuredNameMimetypeId = mDbHelper.getMimeTypeId(StructuredName.CONTENT_ITEM_TYPE);
171 mNoteMimetypeId = mDbHelper.getMimeTypeId(Note.CONTENT_ITEM_TYPE);
172 mOrganizationMimetypeId = mDbHelper.getMimeTypeId(Organization.CONTENT_ITEM_TYPE);
173 mPhoneMimetypeId = mDbHelper.getMimeTypeId(Phone.CONTENT_ITEM_TYPE);
174 mEmailMimetypeId = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE);
175 mImMimetypeId = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE);
176 mPostalMimetypeId = mDbHelper
[all...]
H A DLegacyApiSupport.java495 private final ContactsDatabaseHelper mDbHelper; field in class:LegacyApiSupport
518 mDbHelper = contactsDatabaseHelper;
525 SQLiteDatabase db = mDbHelper.getReadableDatabase();
536 mMimetypeEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE);
537 mMimetypeIm = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE);
538 mMimetypePostal = mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE);
839 throw new UnsupportedOperationException(mDbHelper.exceptionMessage(uri));
967 throw new UnsupportedOperationException(mDbHelper.exceptionMessage(uri));
1161 long contactId = mDbHelper.getContactId(rawContactId);
1162 SQLiteDatabase mDb = mDbHelper
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DAutoDictionary.java224 private final DatabaseHelper mDbHelper; field in class:AutoDictionary.UpdateDbTask
231 mDbHelper = openHelper;
236 SQLiteDatabase db = mDbHelper.getWritableDatabase();
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarProvider2.java131 private CalendarDatabaseHelper mDbHelper; field in class:CalendarProvider2
331 mDbHelper = (CalendarDatabaseHelper)getDatabaseHelper();
349 mMetaData = new MetaData(mDbHelper);
350 mCalendarCache = new CalendarCache(mDbHelper);
407 mDb = mDbHelper.getWritableDatabase();
599 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
608 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs,
1359 mDbHelper.instancesReplace(values);
1580 id = mDbHelper.getSyncState().insert(mDb, values);
1614 id = mDbHelper
[all...]

Completed in 87 milliseconds