/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelperTest.java | 33 private ContactsDatabaseHelper mDbHelper; field in ContactsDatabaseHelperTest 39 mDbHelper = getContactsProvider().getDatabaseHelper(getContext()); in setUp() 40 mDb = mDbHelper.getWritableDatabase(); in setUp() 51 assertNull(mDbHelper.getAccountIdOrNull(a1)); in testGetOrCreateAccountId() 52 assertNull(mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId() 53 assertNull(mDbHelper.getAccountIdOrNull(a3)); in testGetOrCreateAccountId() 54 assertNull(mDbHelper.getAccountIdOrNull(a4)); in testGetOrCreateAccountId() 55 assertNull(mDbHelper.getAccountIdOrNull(a5)); in testGetOrCreateAccountId() 58 final long a1id = mDbHelper.getOrCreateAccountIdInTransaction(a1); in testGetOrCreateAccountId() 59 final long a2id = mDbHelper.getOrCreateAccountIdInTransaction(a2); in testGetOrCreateAccountId() [all …]
|
D | StandaloneContactsProvider2.java | 24 private static ContactsDatabaseHelper mDbHelper; field in StandaloneContactsProvider2 33 if (mDbHelper == null) { in getDatabaseHelper() 34 mDbHelper = ContactsDatabaseHelper.getNewInstanceForTest(context); in getDatabaseHelper() 36 return mDbHelper; in getDatabaseHelper()
|
D | CallLogProviderTest.java | 454 private static ContactsDatabaseHelper mDbHelper; field in CallLogProviderTest.TestCallLogProvider 458 if (mDbHelper == null) { in getDatabaseHelper() 459 mDbHelper = ContactsDatabaseHelper.getNewInstanceForTest(context); in getDatabaseHelper() 461 return mDbHelper; in getDatabaseHelper()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandler.java | 75 protected final ContactsDatabaseHelper mDbHelper; field in DataRowHandler 85 mDbHelper = dbHelper; in DataRowHandler() 100 mMimetypeId = mDbHelper.getMimeTypeId(mMimetype); in getMimeTypeId() 116 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId); in insert() 122 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); in insert() 124 mDbHelper.clearSuperPrimary(rawContactId, mimeTypeId); in insert() 129 if (mDbHelper.rawContactHasSuperPrimary(rawContactId, mimeTypeId)) { in insert() 130 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); in insert() 204 final Cursor c = mDbHelper.getReadableDatabase().query(Tables.DATA, in handlePrimaryAndSuperPrimary() 212 mDbHelper.clearSuperPrimary(rawContactId, mimeTypeId); in handlePrimaryAndSuperPrimary() [all …]
|
D | ContactsProvider2.java | 1358 private final ThreadLocal<ContactsDatabaseHelper> mDbHelper = field in ContactsProvider2 1498 mDbHelper.set(mContactsHelper); in initialize() 1776 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in performBackgroundTask() 1919 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in cleanupPhotoStore() 1924 long photoMimeTypeId = mDbHelper.get().getMimeTypeId(Photo.CONTENT_ITEM_TYPE); in cleanupPhotoStore() 2156 mDbHelper.set(mProfileHelper); in switchToProfileMode() 2171 mDbHelper.set(mContactsHelper); in switchToContactMode() 2236 undemoteContact(mDbHelper.get().getWritableDatabase(), id); in call() 2255 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in preAuthorizeUri() 2274 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in isValidPreAuthorizedUri() [all …]
|
D | SearchIndexManager.java | 239 private final ContactsDatabaseHelper mDbHelper; field in SearchIndexManager 247 mDbHelper = (ContactsDatabaseHelper) mContactsProvider.getDatabaseHelper(); in SearchIndexManager() 258 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateIndex() 278 mDbHelper.createSearchIndexTable(db, true); in rebuildIndex() 324 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateIndexForRawContacts() 345 mSb.append(mDbHelper.getMimeTypeId(Nickname.CONTENT_ITEM_TYPE)); in buildAndInsertIndex() 348 mSb.append(mDbHelper.getMimeTypeId(Organization.CONTENT_ITEM_TYPE)); in buildAndInsertIndex() 351 mSb.append(mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE)); in buildAndInsertIndex() 354 mSb.append(mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE)); in buildAndInsertIndex() 402 return Integer.parseInt(mDbHelper.getProperty(PROPERTY_SEARCH_INDEX_VERSION, "0")); in getSearchIndexVersion() [all …]
|
D | CallLogProvider.java | 149 private ContactsDatabaseHelper mDbHelper; field in CallLogProvider 162 mDbHelper = getDatabaseHelper(context); in onCreate() 248 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 308 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() 337 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update() 361 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() 510 mDbHelper.getWritableDatabase().execSQL( in adjustForNewPhoneAccountInternal() 520 mDbHelper.getWritableDatabase().execSQL(UNHIDE_BY_ADDRESS_QUERY, in adjustForNewPhoneAccountInternal() 542 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in copyEntriesFromCursor() 586 return Long.valueOf(mDbHelper.getProperty(DbProperties.CALL_LOG_LAST_SYNCED, "0")); in getLastSyncTime() [all …]
|
D | VoicemailStatusTable.java | 51 private final SQLiteOpenHelper mDbHelper; field in VoicemailStatusTable 58 mDbHelper = dbHelper; in VoicemailStatusTable() 64 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() 78 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() 93 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 104 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
|
D | LegacyApiSupport.java | 500 private final ContactsDatabaseHelper mDbHelper; field in LegacyApiSupport 523 mDbHelper = contactsDatabaseHelper; in LegacyApiSupport() 530 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in LegacyApiSupport() 541 mMimetypeEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE); in LegacyApiSupport() 542 mMimetypeIm = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE); in LegacyApiSupport() 543 mMimetypePostal = mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE); in LegacyApiSupport() 838 throw new UnsupportedOperationException(mDbHelper.exceptionMessage(uri)); in insert() 967 throw new UnsupportedOperationException(mDbHelper.exceptionMessage(uri)); in update() 1158 long contactId = mDbHelper.getContactId(rawContactId); in updateContactTime() 1159 SQLiteDatabase mDb = mDbHelper.getWritableDatabase(); in updateContactTime() [all …]
|
D | VoicemailContentTable.java | 81 private final SQLiteOpenHelper mDbHelper; field in VoicemailContentTable 91 mDbHelper = dbHelper; in VoicemailContentTable() 150 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() 191 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() 233 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 248 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
|
D | DataRowHandlerForNickname.java | 47 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); in insert() 65 mDbHelper.deleteNameLookup(dataId); in update() 66 mDbHelper.insertNameLookupForNickname(rawContactId, dataId, nickname); in update() 81 mDbHelper.deleteNameLookup(dataId); in delete()
|
D | DataRowHandlerForEmail.java | 44 String address = mDbHelper.insertNameLookupForEmail(rawContactId, dataId, email); in insert() 63 mDbHelper.deleteNameLookup(dataId); in update() 64 mDbHelper.insertNameLookupForEmail(rawContactId, dataId, address); in update() 79 mDbHelper.deleteNameLookup(dataId); in delete()
|
D | AbstractContactsProvider.java | 71 private SQLiteOpenHelper mDbHelper; field in AbstractContactsProvider 107 mDbHelper = getDatabaseHelper(context); in onCreate() 113 return mDbHelper; in getDatabaseHelper()
|
D | DataRowHandlerForGroupMembership.java | 114 final long groupMembershipMimetypeId = mDbHelper in hasFavoritesGroupMembership() 136 long contactId = mDbHelper.getContactId(rawContactId); 141 if (mDbHelper.updateContactVisibleOnlyIfChanged(txContext, contactId)) {
|
D | DataRowHandlerForOrganization.java | 88 mDbHelper.deleteNameLookup(dataId); in update() 101 mDbHelper.deleteNameLookup(dataId); in delete()
|
D | DataRowHandlerForPhoneNumber.java | 95 mDbHelper.getCurrentCountryIso()); in fillNormalizedNumber() 174 number, mDbHelper.getCurrentCountryIso()); in appendSearchableData()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | AbstractContactAggregator.java | 145 protected final ContactsDatabaseHelper mDbHelper; field in AbstractContactAggregator 277 mDbHelper = contactsDatabaseHelper; in AbstractContactAggregator() 282 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in AbstractContactAggregator() 376 mMimeTypeIdEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE); in AbstractContactAggregator() 377 mMimeTypeIdIdentity = mDbHelper.getMimeTypeId(Identity.CONTENT_ITEM_TYPE); in AbstractContactAggregator() 378 mMimeTypeIdPhoto = mDbHelper.getMimeTypeId(Photo.CONTENT_ITEM_TYPE); in AbstractContactAggregator() 379 mMimeTypeIdPhone = mDbHelper.getMimeTypeId(Phone.CONTENT_ITEM_TYPE); in AbstractContactAggregator() 384 mDbHelper.getMimeTypeIdForStructuredName(), mMimeTypeIdPhoto, mMimeTypeIdPhone); in AbstractContactAggregator() 388 mDbHelper.getMimeTypeIdForStructuredName(), mMimeTypeIdPhoto, mMimeTypeIdPhone); in AbstractContactAggregator() 495 int aggregationMode = mDbHelper.getAggregationMode(rawContactId); in triggerAggregation() [all …]
|
D | ContactAggregator.java | 110 || mDbHelper.isContactInDefaultDirectory(db, currentContactId)) { in aggregateContact() 232 mDbHelper.updateContactVisible(txContext, contactId); in aggregateContact() 475 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateAggregationAfterVisibilityChange() 476 boolean visible = mDbHelper.isContactInDefaultDirectory(db, contactId); in updateAggregationAfterVisibilityChange() 804 mSelectionArgs2[1] = mDbHelper.getUseStrictPhoneNumberComparisonParameter(); in updateMatchScoresBasedOnPhoneMatches()
|
D | ContactAggregator2.java | 117 || mDbHelper.isContactInDefaultDirectory(db, currentContactId)) { in aggregateContact() 458 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateAggregationAfterVisibilityChange() 459 boolean visible = mDbHelper.isContactInDefaultDirectory(db, contactId); in updateAggregationAfterVisibilityChange() 667 mSelectionArgs2[1] = mDbHelper.getUseStrictPhoneNumberComparisonParameter(); in updateMatchScoresBasedOnPhoneMatches()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | FileCache.java | 60 private DatabaseHelper mDbHelper; field in FileCache 92 mDbHelper = new DatabaseHelper(context, dbName); in FileCache() 97 mDbHelper.close(); in close() 124 mDbHelper.getWritableDatabase(), entry); in store() 150 mDbHelper.getWritableDatabase().delete( in lookup() 168 Cursor cursor = mDbHelper.getReadableDatabase().query(TABLE_NAME, in queryDatabase() 185 mDbHelper.getWritableDatabase().update(TABLE_NAME, in updateLastAccess() 203 Cursor cursor = mDbHelper.getReadableDatabase().query( in initialize() 219 Cursor cursor = mDbHelper.getReadableDatabase().query( in freeSomeSpaceIfNeed() 238 mDbHelper.getWritableDatabase().delete(TABLE_NAME, in freeSomeSpaceIfNeed()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 180 private CalendarDatabaseHelper mDbHelper; field in CalendarProvider2 499 if (mDbHelper != null) { in shutdown() 500 mDbHelper.close(); in shutdown() 501 mDbHelper = null; in shutdown() 526 mDbHelper = (CalendarDatabaseHelper)getDatabaseHelper(); in initialize() 527 mDb = mDbHelper.getWritableDatabase(); in initialize() 529 mMetaData = new MetaData(mDbHelper); in initialize() 530 mInstancesHelper = new CalendarInstancesHelper(mDbHelper, mMetaData); in initialize() 545 mCalendarCache = new CalendarCache(mDbHelper); in initialize() 844 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in queryInternal() [all …]
|
D | CalendarInstancesHelper.java | 61 private CalendarDatabaseHelper mDbHelper; field in CalendarInstancesHelper 131 mDbHelper = calendarDbHelper; in CalendarInstancesHelper() 133 mCalendarCache = new CalendarCache(mDbHelper); in CalendarInstancesHelper() 522 mDbHelper.instancesReplace(values); in performInstanceExpansion() 593 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in getEntries() 713 mDbHelper.instancesInsert(instanceValues); in updateInstancesLocked() 860 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in getRelevantRecurrenceEntries()
|
/packages/apps/FMRadio/src/com/android/fmradio/ |
D | FmProvider.java | 41 private DatabaseHelper mDbHelper = null; field in FmProvider 127 mSqlDb = mDbHelper.getWritableDatabase(); in delete() 163 mSqlDb = mDbHelper.getWritableDatabase(); in insert() 183 mDbHelper = new DatabaseHelper(getContext()); in onCreate() 184 return (null == mDbHelper) ? false : true; in onCreate() 202 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 232 mSqlDb = mDbHelper.getWritableDatabase(); in update()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarCacheTest.java | 31 private SQLiteOpenHelper mDbHelper; field in CalendarCacheTest 40 mDbHelper = CalendarDatabaseHelper.getInstance(getContext()); in setUp() 41 mCalendarCache = new CalendarCache(mDbHelper); in setUp() 46 if (mDbHelper != null) { in tearDown() 47 mDbHelper.close(); in tearDown() 48 mDbHelper = null; in tearDown()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | HbpcdLookupProvider.java | 146 private HbpcdLookupDatabaseHelper mDbHelper; field in HbpcdLookupProvider 153 mDbHelper = new HbpcdLookupDatabaseHelper(getContext()); in onCreate() 155 mDbHelper.getReadableDatabase(); in onCreate() 304 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 326 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update()
|