/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsDatabaseHelperTest.java | 50 private ContactsDatabaseHelper mDbHelper; field in ContactsDatabaseHelperTest 56 mDbHelper = getContactsProvider().getDatabaseHelper(); in setUp() 57 mDb = mDbHelper.getWritableDatabase(); in setUp() 68 assertNull(mDbHelper.getAccountIdOrNull(a1)); in testGetOrCreateAccountId() 69 assertNull(mDbHelper.getAccountIdOrNull(a2)); in testGetOrCreateAccountId() 70 assertNull(mDbHelper.getAccountIdOrNull(a3)); in testGetOrCreateAccountId() 71 assertNull(mDbHelper.getAccountIdOrNull(a4)); in testGetOrCreateAccountId() 72 assertNull(mDbHelper.getAccountIdOrNull(a5)); in testGetOrCreateAccountId() 75 final long a1id = mDbHelper.getOrCreateAccountIdInTransaction(a1); in testGetOrCreateAccountId() 76 final long a2id = mDbHelper.getOrCreateAccountIdInTransaction(a2); in testGetOrCreateAccountId() [all …]
|
D | CallLogProviderTestable.java | 25 private CallLogDatabaseHelperTestable mDbHelper; field in CallLogProviderTestable 32 mDbHelper); in setContactsDbForMigration() 38 if (mDbHelper == null) { in getDatabaseHelper() 39 mDbHelper = new CallLogDatabaseHelperTestable(context, mContactsDbForMigration); in getDatabaseHelper() 41 return mDbHelper; in getDatabaseHelper()
|
D | SecondaryUserContactsProvider2.java | 25 private ContactsDatabaseHelper mDbHelper; field in SecondaryUserContactsProvider2 33 if (mDbHelper == null) { in newDatabaseHelper() 34 mDbHelper = ContactsDatabaseHelper.getNewInstanceForTest(context, in newDatabaseHelper() 37 return mDbHelper; in newDatabaseHelper()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandler.java | 79 protected final ContactsDatabaseHelper mDbHelper; field in DataRowHandler 89 mDbHelper = dbHelper; in DataRowHandler() 104 mMimetypeId = mDbHelper.getMimeTypeId(mMimetype); in getMimeTypeId() 123 mDbHelper.setIsPrimary(rawContactId, dataId, mimeTypeId); in insert() 130 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); in insert() 132 mDbHelper.clearSuperPrimary(rawContactId, mimeTypeId); in insert() 137 if (mDbHelper.rawContactHasSuperPrimary(rawContactId, mimeTypeId)) { in insert() 138 mDbHelper.setIsSuperPrimary(rawContactId, dataId, mimeTypeId); in insert() 200 final String photoHashId= mDbHelper.getPhotoHashId(); in handleHashIdForInsert() 206 hashId = mDbHelper.generateHashId(data1, data2); in handleHashIdForInsert() [all …]
|
D | ContactMetadataProvider.java | 90 private ContactsDatabaseHelper mDbHelper; field in ContactMetadataProvider 98 mDbHelper = getDatabaseHelper(context); in onCreate() 115 mDbHelper = helper; in setDatabaseHelper() 155 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 183 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() 201 throw new IllegalArgumentException(mDbHelper.exceptionMessage( in insert() 214 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() 249 throw new IllegalArgumentException(mDbHelper.exceptionMessage( in delete() 262 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update() 272 throw new IllegalArgumentException(mDbHelper.exceptionMessage( in update() [all …]
|
D | ContactsProvider2.java | 1439 private final ThreadLocal<ContactsDatabaseHelper> mDbHelper = field in ContactsProvider2 1593 mDbHelper.set(mContactsHelper); in initialize() 1834 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in performBackgroundTask() 1983 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in cleanupPhotoStore() 1988 long photoMimeTypeId = mDbHelper.get().getMimeTypeId(Photo.CONTENT_ITEM_TYPE); in cleanupPhotoStore() 2221 mDbHelper.set(mProfileHelper); in switchToProfileMode() 2236 mDbHelper.set(mContactsHelper); in switchToContactMode() 2308 undemoteContact(mDbHelper.get().getWritableDatabase(), id); in call() 2327 final SQLiteDatabase db = mDbHelper.get().getWritableDatabase(); in preAuthorizeUri() 2347 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 | VoicemailStatusTable.java | 64 private final CallLogDatabaseHelper mDbHelper; field in VoicemailStatusTable 71 mDbHelper = dbHelper; in VoicemailStatusTable() 78 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() 105 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() 122 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 136 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update() 163 return mDbHelper.selectDistinctColumn(mTableName, Status.SOURCE_PACKAGE); in getSourcePackages()
|
D | CallLogProvider.java | 172 private CallLogDatabaseHelper mDbHelper; field in CallLogProvider 198 mDbHelper = getDatabaseHelper(context); in onCreate() 289 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 377 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() 412 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update() 442 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() 627 mDbHelper.getWritableDatabase().execSQL( in adjustForNewPhoneAccountInternal() 637 mDbHelper.getWritableDatabase().execSQL(UNHIDE_BY_ADDRESS_QUERY, in adjustForNewPhoneAccountInternal() 657 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in copyEntriesFromCursor() 714 return Long.valueOf(mDbHelper.getProperty(getLastSyncTimePropertyName(forShadow), "0")); in getLastSyncTime() [all …]
|
D | VoicemailContentTable.java | 87 private final CallLogDatabaseHelper mDbHelper; field in VoicemailContentTable 97 mDbHelper = dbHelper; in VoicemailContentTable() 162 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() 203 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() 245 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() 260 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update() 293 return mDbHelper.selectDistinctColumn(mTableName, Voicemails.SOURCE_PACKAGE); in getSourcePackages()
|
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 | 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 | LegacyApiSupport.java | 469 private final ContactsDatabaseHelper mDbHelper; field in LegacyApiSupport 492 mDbHelper = contactsDatabaseHelper; in LegacyApiSupport() 499 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in LegacyApiSupport() 510 mMimetypeEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE); in LegacyApiSupport() 511 mMimetypeIm = mDbHelper.getMimeTypeId(Im.CONTENT_ITEM_TYPE); in LegacyApiSupport() 512 mMimetypePostal = mDbHelper.getMimeTypeId(StructuredPostal.CONTENT_ITEM_TYPE); in LegacyApiSupport() 809 throw new UnsupportedOperationException(mDbHelper.exceptionMessage(uri)); in insert() 938 throw new UnsupportedOperationException(mDbHelper.exceptionMessage(uri)); in update() 1189 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in updateSettings() 1270 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in copySettingsToLegacySettings() [all …]
|
D | AbstractContactsProvider.java | 86 private ContactsDatabaseHelper mDbHelper; field in AbstractContactsProvider 140 mDbHelper = newDatabaseHelper(context); in onCreate() 146 return mDbHelper; in getDatabaseHelper() 492 if (mDbHelper == null) { in dump() 499 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in dump()
|
D | DataRowHandlerForGroupMembership.java | 114 final long groupMembershipMimetypeId = mDbHelper in hasFavoritesGroupMembership() 136 long contactId = mDbHelper.getContactId(rawContactId); 141 if (mDbHelper.updateContactVisibleOnlyIfChanged(txContext, contactId)) {
|
/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/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | AbstractContactAggregator.java | 146 protected final ContactsDatabaseHelper mDbHelper; field in AbstractContactAggregator 279 mDbHelper = contactsDatabaseHelper; in AbstractContactAggregator() 284 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in AbstractContactAggregator() 387 mMimeTypeIdEmail = mDbHelper.getMimeTypeId(Email.CONTENT_ITEM_TYPE); in AbstractContactAggregator() 388 mMimeTypeIdIdentity = mDbHelper.getMimeTypeId(Identity.CONTENT_ITEM_TYPE); in AbstractContactAggregator() 389 mMimeTypeIdPhoto = mDbHelper.getMimeTypeId(Photo.CONTENT_ITEM_TYPE); in AbstractContactAggregator() 390 mMimeTypeIdPhone = mDbHelper.getMimeTypeId(Phone.CONTENT_ITEM_TYPE); in AbstractContactAggregator() 395 mDbHelper.getMimeTypeIdForStructuredName(), mMimeTypeIdPhoto, mMimeTypeIdPhone); in AbstractContactAggregator() 399 mDbHelper.getMimeTypeIdForStructuredName(), mMimeTypeIdPhoto, mMimeTypeIdPhone); in AbstractContactAggregator() 506 int aggregationMode = mDbHelper.getAggregationMode(rawContactId); in triggerAggregation() [all …]
|
/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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/setting/usb/ |
D | UsbSettingsStorage.java | 44 private final UsbSettingsDbHelper mDbHelper; field in UsbSettingsStorage 47 mDbHelper = new UsbSettingsDbHelper(context); in UsbSettingsStorage() 55 try (SQLiteDatabase db = mDbHelper.getReadableDatabase(); in getSettings() 83 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { in saveSettings() 98 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { in deleteSettings() 119 try (SQLiteDatabase db = mDbHelper.getReadableDatabase(); in getAllSettings()
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbSettingsStorage.java | 44 private final UsbSettingsDbHelper mDbHelper; field in UsbSettingsStorage 47 mDbHelper = new UsbSettingsDbHelper(context); in UsbSettingsStorage() 55 try (SQLiteDatabase db = mDbHelper.getReadableDatabase(); in getSettings() 81 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { in saveSettings() 96 try (SQLiteDatabase db = mDbHelper.getWritableDatabase()) { in deleteSettings() 117 try (SQLiteDatabase db = mDbHelper.getReadableDatabase(); in getAllSettings()
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyProviderTestable.java | 37 private InMemoryTelephonyProviderDbHelper mDbHelper; field in TelephonyProviderTestable 42 mDbHelper = new InMemoryTelephonyProviderDbHelper(); in onCreate() 48 mDbHelper.close(); in closeDatabase() 54 return mDbHelper.getReadableDatabase(); in getReadableDatabase() 60 return mDbHelper.getWritableDatabase(); in getWritableDatabase()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 181 private CalendarDatabaseHelper mDbHelper; field in CalendarProvider2 479 if (mDbHelper != null) { in shutdown() 480 mDbHelper.close(); in shutdown() 481 mDbHelper = null; in shutdown() 504 mDbHelper = (CalendarDatabaseHelper)getDatabaseHelper(); in initialize() 505 mDb = mDbHelper.getWritableDatabase(); in initialize() 507 mMetaData = new MetaData(mDbHelper); in initialize() 508 mInstancesHelper = new CalendarInstancesHelper(mDbHelper, mMetaData); in initialize() 523 mCalendarCache = new CalendarCache(mDbHelper); in initialize() 822 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); in queryInternal() [all …]
|
D | CalendarInstancesHelper.java | 61 private final 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/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | BlockedNumberProvider.java | 102 protected BlockedNumberDatabaseHelper mDbHelper; field in BlockedNumberProvider 108 mDbHelper = BlockedNumberDatabaseHelper.getInstance(getContext()); in onCreate() 166 final long id = mDbHelper.getWritableDatabase().insertWithOnConflict( in insertBlockedNumber() 223 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); in deleteBlockedNumber() 291 return qb.query(mDbHelper.getReadableDatabase(), projection, selection, selectionArgs, in queryBlockedList() 394 final Cursor c = mDbHelper.getReadableDatabase().rawQuery( in isBlocked()
|
/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()
|