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

/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DCalendarCacheTest.java31 private SQLiteOpenHelper mDbHelper; field in class:CalendarCacheTest
40 mDbHelper = CalendarDatabaseHelper.getInstance(getContext());
41 mCalendarCache = new CalendarCache(mDbHelper);
46 if (mDbHelper != null) {
47 mDbHelper.close();
48 mDbHelper = null;
/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.java997 mMimetypeId = mDbHelper.getMimeTypeId(mMimetype);
1739 long contactId = mDbHelper.getContactId(rawContactId);
1741 mDbHelper.updateContactVisible(contactId);
1823 private ContactsDatabaseHelper mDbHelper; field in class:ContactsProvider2
1874 mDbHelper = (ContactsDatabaseHelper)getDatabaseHelper();
1876 mLegacyApiSupport = new LegacyApiSupport(context, mDbHelper, this, mGlobalSearchSupport);
1877 mContactAggregator = new ContactAggregator(this, mDbHelper,
1881 mDb = mDbHelper.getWritableDatabase();
1987 mMimeTypeIdEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE);
1988 mMimeTypeIdIm = mDbHelper
[all...]
H A DContactAggregator.java94 private final ContactsDatabaseHelper mDbHelper; field in class:ContactAggregator
205 mDbHelper = contactsDatabaseHelper;
208 SQLiteDatabase db = mDbHelper.getReadableDatabase();
309 mMimeTypeIdEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE);
310 mMimeTypeIdPhoto = mDbHelper.getMimeTypeId(Photo.CONTENT_ITEM_TYPE);
311 mMimeTypeIdPhone = mDbHelper.getMimeTypeId(Phone.CONTENT_ITEM_TYPE);
440 mDbHelper.updateContactVisible(contactId);
498 final SQLiteDatabase db = mDbHelper.getWritableDatabase();
503 mDbHelper.updateContactVisible(contactId);
593 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();
H A DUserBigramDictionary.java304 private final DatabaseHelper mDbHelper; field in class:UserBigramDictionary.UpdateDbTask
311 mDbHelper = openHelper;
349 SQLiteDatabase db = mDbHelper.getWritableDatabase();
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarProvider2.java135 private CalendarDatabaseHelper mDbHelper; field in class:CalendarProvider2
405 mDbHelper = (CalendarDatabaseHelper)getDatabaseHelper();
423 mMetaData = new MetaData(mDbHelper);
424 mCalendarCache = new CalendarCache(mDbHelper);
498 mDb = mDbHelper.getWritableDatabase();
687 final SQLiteDatabase db = mDbHelper.getReadableDatabase();
697 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs,
1528 mDbHelper.instancesReplace(values);
1751 id = mDbHelper.getSyncState().insert(mDb, values);
1787 id = mDbHelper
[all...]

Completed in 136 milliseconds