Lines Matching defs:db
42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
46 final long dataId = super.insert(db, txContext, rawContactId, values);
50 updatePhoneLookup(db, rawContactId, dataId, number, normalizedNumber);
51 mContactAggregator.updateHasPhoneNumber(db, rawContactId);
52 fixRawContactDisplayName(db, txContext, rawContactId);
60 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
64 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) {
71 updatePhoneLookup(db, rawContactId, dataId,
74 mContactAggregator.updateHasPhoneNumber(db, rawContactId);
75 fixRawContactDisplayName(db, txContext, rawContactId);
101 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) {
105 int count = super.delete(db, txContext, c);
107 updatePhoneLookup(db, rawContactId, dataId, null, null);
108 mContactAggregator.updateHasPhoneNumber(db, rawContactId);
109 fixRawContactDisplayName(db, txContext, rawContactId);
114 private void updatePhoneLookup(SQLiteDatabase db, long rawContactId, long dataId,
117 db.delete(Tables.PHONE_LOOKUP, PhoneLookupColumns.DATA_ID + "=?", mSelectionArgs1);
127 db.insert(Tables.PHONE_LOOKUP, null, phoneValues);
133 db.insert(Tables.PHONE_LOOKUP, null, phoneValues);