Home
last modified time | relevance | path

Searched refs:txContext (Results 1 – 16 of 16) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForEmail.java41 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
47 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
49 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
52 triggerAggregation(txContext, rawContactId); in insert()
58 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
61 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { in update()
72 fixRawContactDisplayName(db, txContext, rawContactId); in update()
73 triggerAggregation(txContext, rawContactId); in update()
80 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
84 int count = super.delete(db, txContext, c); in delete()
[all …]
DDataRowHandlerForNickname.java43 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
48 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
51 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
53 triggerAggregation(txContext, rawContactId); in insert()
59 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
65 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { in update()
73 fixRawContactDisplayName(db, txContext, rawContactId); in update()
74 triggerAggregation(txContext, rawContactId); in update()
81 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
85 int count = super.delete(db, txContext, c); in delete()
[all …]
DDataRowHandlerForIdentity.java35 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
37 final long dataId = super.insert(db, txContext, rawContactId, values); in insert()
41 triggerAggregation(txContext, rawContactId); in insert()
48 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
51 super.update(db, txContext, values, c, callerIsSyncAdapter); in update()
56 triggerAggregation(txContext, rawContactId); in update()
63 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
64 final int count = super.delete(db, txContext, c); in delete()
68 triggerAggregation(txContext, rawContactId); in delete()
DDataRowHandlerForGroupMembership.java76 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
78 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, true); in insert()
79 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
83 updateVisibility(txContext, rawContactId); in insert()
88 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
92 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, false); in update()
93 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { in update()
100 updateVisibility(txContext, rawContactId); in update()
124 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) {
127 int count = super.delete(db, txContext, c);
[all …]
DDataRowHandlerForPhoneNumber.java48 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
53 final long dataId = super.insert(db, txContext, rawContactId, values); in insert()
59 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
61 triggerAggregation(txContext, rawContactId); in insert()
67 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
72 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { in update()
83 fixRawContactDisplayName(db, txContext, rawContactId); in update()
85 triggerAggregation(txContext, rawContactId); in update()
109 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
113 int count = super.delete(db, txContext, c); in delete()
[all …]
DDataRowHandlerForOrganization.java47 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
53 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
55 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
60 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
63 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { in update()
97 fixRawContactDisplayName(db, txContext, rawContactId); in update()
103 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
107 int count = super.delete(db, txContext, c); in delete()
108 fixRawContactDisplayName(db, txContext, rawContactId); in delete()
DDataRowHandlerForStructuredName.java61 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
66 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
74 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
75 triggerAggregation(txContext, rawContactId); in insert()
80 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
93 super.update(db, txContext, values, c, callerIsSyncAdapter); in update()
104 fixRawContactDisplayName(db, txContext, rawContactId); in update()
105 triggerAggregation(txContext, rawContactId); in update()
110 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
114 int count = super.delete(db, txContext, c); in delete()
[all …]
DDataRowHandlerForPhoto.java58 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
70 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
71 if (!txContext.isNewRawContact(rawContactId)) { in insert()
78 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
92 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { in update()
131 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
133 int count = super.delete(db, txContext, c); in delete()
DDataRowHandler.java116 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
147 txContext.invalidateSearchIndexForRawContact(rawContactId); in insert()
159 public boolean update(SQLiteDatabase db, TransactionContext txContext, in update() argument
164 handlePrimaryAndSuperPrimary(txContext, values, dataId, rawContactId); in update()
173 txContext.invalidateSearchIndexForRawContact(rawContactId); in update()
176 txContext.markRawContactDirtyAndChanged(rawContactId, callerIsSyncAdapter); in update()
254 private void handlePrimaryAndSuperPrimary(TransactionContext txContext, ContentValues values, in handlePrimaryAndSuperPrimary() argument
317 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
330 txContext.invalidateSearchIndexForRawContact(rawContactId); in delete()
371 protected void fixRawContactDisplayName(SQLiteDatabase db, TransactionContext txContext, in fixRawContactDisplayName() argument
[all …]
DDataRowHandlerForCommonDataKind.java44 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
47 return super.insert(db, txContext, rawContactId, values); in insert()
51 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
59 return super.update(db, txContext, values, c, callerIsSyncAdapter); in update()
DDataRowHandlerForStructuredPostal.java55 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
58 return super.insert(db, txContext, rawContactId, values); in insert()
62 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
71 super.update(db, txContext, values, c, callerIsSyncAdapter); in update()
DContactsDatabaseHelper.java4312 public boolean updateContactVisibleOnlyIfChanged(TransactionContext txContext, long contactId) { in updateContactVisibleOnlyIfChanged() argument
4313 return updateContactVisible(txContext, contactId, true); in updateContactVisibleOnlyIfChanged()
4320 public void updateContactVisible(TransactionContext txContext, long contactId) { in updateContactVisible() argument
4321 updateContactVisible(txContext, contactId, false); in updateContactVisible()
4325 TransactionContext txContext, long contactId, boolean onlyIfChanged) { in updateContactVisible() argument
4370 txContext.invalidateSearchIndexForContact(contactId); in updateContactVisible()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DProfileAggregator.java60 public long onRawContactInsert(TransactionContext txContext, SQLiteDatabase db, in onRawContactInsert() argument
62 aggregateContact(txContext, db, rawContactId); in onRawContactInsert()
67 public void aggregateInTransaction(TransactionContext txContext, SQLiteDatabase db) { in aggregateInTransaction() argument
72 public void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() argument
84 updateAggregateData(txContext, mContactId); in aggregateContact()
DContactAggregator.java77 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() argument
194 createContactForRawContacts(db, txContext, Sets.newHashSet(rawContactId), null); in aggregateContact()
196 updateAggregateData(txContext, currentContactId); in aggregateContact()
210 reAggregateRawContacts(txContext, db, contactId, currentContactId, rawContactId, in aggregateContact()
230 mDbHelper.updateContactVisible(txContext, contactId); in aggregateContact()
234 updateAggregateData(txContext, currentContactId); in aggregateContact()
414 private void reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, in reAggregateRawContacts() argument
427 createContactForRawContacts(db, txContext, connectedRawContactSets.iterator().next(), in reAggregateRawContacts()
434 createContactForRawContacts(db, txContext, connectedRawContactIds, in reAggregateRawContacts()
447 createContactForRawContacts(db, txContext, connectedRawContactIds, null); in reAggregateRawContacts()
[all …]
DAbstractContactAggregator.java424 public void aggregateInTransaction(TransactionContext txContext, SQLiteDatabase db) { in aggregateInTransaction() argument
483 aggregateContact(txContext, db, rawContactIds[i], accountIds[i], contactIds[i], in aggregateInTransaction()
498 public final void triggerAggregation(TransactionContext txContext, long rawContactId) { in triggerAggregation() argument
517 updateAggregateData(txContext, contactId); in triggerAggregation()
523 aggregateContact(txContext, mDbHelper.getWritableDatabase(), rawContactId); in triggerAggregation()
640 TransactionContext txContext, SQLiteDatabase db, long rawContactId) { in onRawContactInsert() argument
643 mDbHelper.updateContactVisible(txContext, contactId); in onRawContactInsert()
669 TransactionContext txContext, SQLiteDatabase db, long rawContactId) { in aggregateContact() argument
691 aggregateContact(txContext, db, rawContactId, accountId, contactId, in aggregateContact()
695 public void updateAggregateData(TransactionContext txContext, long contactId) { in updateAggregateData() argument
[all …]
DContactAggregator2.java89 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() argument
173 createContactForRawContacts(db, txContext, Sets.newHashSet(rawContactId), null); in aggregateContact()
175 updateAggregateData(txContext, currentContactId); in aggregateContact()
184 reAggregateRawContacts(txContext, db, currentContactId, rawContactId, accountId, in aggregateContact()
310 private void reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, in reAggregateRawContacts() argument
365 createContactForRawContacts(db, txContext, connectedRawContactIds, contactId); in reAggregateRawContacts()
386 updateAggregateData(txContext, cid); in reAggregateRawContacts()