/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
H A D | CalendarCacheTest.java | 31 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 D | SynchronousContactsProvider2.java | 33 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 D | LegacyContactImporterPerformanceTest.java | 112 private static ContactsDatabaseHelper mDbHelper; field in class:LegacyContactImporterPerformanceTest.TestCallLogProvider 116 if (mDbHelper == null) { 117 mDbHelper = new ContactsDatabaseHelper(context); 119 return mDbHelper;
|
H A D | CallLogProviderTest.java | 152 private static ContactsDatabaseHelper mDbHelper; field in class:CallLogProviderTest.TestCallLogProvider 156 if (mDbHelper == null) { 157 mDbHelper = new ContactsDatabaseHelper(context); 159 return mDbHelper;
|
H A D | LegacyContactImporterTest.java | 285 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 D | CallLogProvider.java | 70 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 D | SocialProvider.java | 125 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 D | ContactsProvider2.java | 997 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 D | ContactAggregator.java | 94 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 D | LegacyContactImporter.java | 77 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 D | LegacyApiSupport.java | 495 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 D | AutoDictionary.java | 224 private final DatabaseHelper mDbHelper; field in class:AutoDictionary.UpdateDbTask 231 mDbHelper = openHelper; 236 SQLiteDatabase db = mDbHelper.getWritableDatabase();
|
H A D | UserBigramDictionary.java | 304 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 D | CalendarProvider2.java | 135 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...] |