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/
DDataRowHandlerForNickname.java39 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
43 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
46 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
48 triggerAggregation(txContext, rawContactId); in insert()
54 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
59 … if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) { in update()
67 fixRawContactDisplayName(db, txContext, rawContactId); in update()
68 triggerAggregation(txContext, rawContactId); in update()
75 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
79 int count = super.delete(db, txContext, c); in delete()
[all …]
DDataRowHandlerForEmail.java37 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
41 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
43 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
46 triggerAggregation(txContext, rawContactId); in insert()
52 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
54 … if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) { in update()
65 fixRawContactDisplayName(db, txContext, rawContactId); in update()
66 triggerAggregation(txContext, rawContactId); in update()
73 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
77 int count = super.delete(db, txContext, c); in delete()
[all …]
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, callerIsMetadataSyncAdapter)) { 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 …]
DDataRowHandler.java112 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
124 txContext.markRawContactMetadataDirty(rawContactId, /* isMetadataSyncAdapter =*/false); in insert()
144 txContext.invalidateSearchIndexForRawContact(rawContactId); in insert()
156 public boolean update(SQLiteDatabase db, TransactionContext txContext, in update() argument
162 handlePrimaryAndSuperPrimary(txContext, values, dataId, rawContactId, in update()
172 txContext.invalidateSearchIndexForRawContact(rawContactId); in update()
175 txContext.markRawContactDirtyAndChanged(rawContactId, callerIsSyncAdapter); in update()
253 private void handlePrimaryAndSuperPrimary(TransactionContext txContext, ContentValues values, in handlePrimaryAndSuperPrimary() argument
261 txContext.markRawContactMetadataDirty(rawContactId, callerIsMetadataSyncAdapter); in handlePrimaryAndSuperPrimary()
318 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
[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, callerIsMetadataSyncAdapter); 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()
DDataRowHandlerForPhoneNumber.java42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
46 final long dataId = super.insert(db, txContext, rawContactId, values); in insert()
52 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
54 triggerAggregation(txContext, rawContactId); in insert()
60 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
64 … if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) { in update()
75 fixRawContactDisplayName(db, txContext, rawContactId); in update()
77 triggerAggregation(txContext, rawContactId); in update()
101 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
105 int count = super.delete(db, txContext, c); in delete()
[all …]
DDataRowHandlerForStructuredName.java47 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
51 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
59 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
60 triggerAggregation(txContext, rawContactId); in insert()
65 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
77 super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter); in update()
88 fixRawContactDisplayName(db, txContext, rawContactId); in update()
89 triggerAggregation(txContext, rawContactId); in update()
94 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
98 int count = super.delete(db, txContext, c); in delete()
[all …]
DDataRowHandlerForOrganization.java41 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, in insert() argument
46 long dataId = super.insert(db, txContext, rawContactId, values); in insert()
48 fixRawContactDisplayName(db, txContext, rawContactId); in insert()
53 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, in update() argument
55 … if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) { in update()
89 fixRawContactDisplayName(db, txContext, rawContactId); in update()
95 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
99 int count = super.delete(db, txContext, c); in delete()
100 fixRawContactDisplayName(db, txContext, rawContactId); in delete()
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, callerIsMetadataSyncAdapter)) { 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()
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, callerIsMetadataSyncAdapter); in update()
DContactsDatabaseHelper.java4054 public boolean updateContactVisibleOnlyIfChanged(TransactionContext txContext, long contactId) { in updateContactVisibleOnlyIfChanged() argument
4055 return updateContactVisible(txContext, contactId, true); in updateContactVisibleOnlyIfChanged()
4062 public void updateContactVisible(TransactionContext txContext, long contactId) { in updateContactVisible() argument
4063 updateContactVisible(txContext, contactId, false); in updateContactVisible()
4067 TransactionContext txContext, long contactId, boolean onlyIfChanged) { in updateContactVisible() argument
4118 txContext.invalidateSearchIndexForContact(contactId); in updateContactVisible()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DProfileAggregator.java62 public long onRawContactInsert(TransactionContext txContext, SQLiteDatabase db, in onRawContactInsert() argument
64 aggregateContact(txContext, db, rawContactId); in onRawContactInsert()
69 public void aggregateInTransaction(TransactionContext txContext, SQLiteDatabase db) { in aggregateInTransaction() argument
74 public void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() argument
86 updateAggregateData(txContext, mContactId); in aggregateContact()
DContactAggregator.java79 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() argument
196 createContactForRawContacts(db, txContext, Sets.newHashSet(rawContactId), null); in aggregateContact()
198 updateAggregateData(txContext, currentContactId); in aggregateContact()
212 reAggregateRawContacts(txContext, db, contactId, currentContactId, rawContactId, in aggregateContact()
232 mDbHelper.updateContactVisible(txContext, contactId); in aggregateContact()
236 updateAggregateData(txContext, currentContactId); in aggregateContact()
416 private void reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, in reAggregateRawContacts() argument
429 createContactForRawContacts(db, txContext, connectedRawContactSets.iterator().next(), in reAggregateRawContacts()
436 createContactForRawContacts(db, txContext, connectedRawContactIds, in reAggregateRawContacts()
449 createContactForRawContacts(db, txContext, connectedRawContactIds, null); in reAggregateRawContacts()
[all …]
DAbstractContactAggregator.java428 public void aggregateInTransaction(TransactionContext txContext, SQLiteDatabase db) { in aggregateInTransaction() argument
487 aggregateContact(txContext, db, rawContactIds[i], accountIds[i], contactIds[i], in aggregateInTransaction()
502 public final void triggerAggregation(TransactionContext txContext, long rawContactId) { in triggerAggregation() argument
521 updateAggregateData(txContext, contactId); in triggerAggregation()
527 aggregateContact(txContext, mDbHelper.getWritableDatabase(), rawContactId); in triggerAggregation()
644 TransactionContext txContext, SQLiteDatabase db, long rawContactId) { in onRawContactInsert() argument
647 mDbHelper.updateContactVisible(txContext, contactId); in onRawContactInsert()
673 TransactionContext txContext, SQLiteDatabase db, long rawContactId) { in aggregateContact() argument
695 aggregateContact(txContext, db, rawContactId, accountId, contactId, in aggregateContact()
699 public void updateAggregateData(TransactionContext txContext, long contactId) { in updateAggregateData() argument
[all …]
DContactAggregator2.java91 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() argument
175 createContactForRawContacts(db, txContext, Sets.newHashSet(rawContactId), null); in aggregateContact()
177 updateAggregateData(txContext, currentContactId); in aggregateContact()
186 reAggregateRawContacts(txContext, db, currentContactId, rawContactId, accountId, in aggregateContact()
312 private void reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, in reAggregateRawContacts() argument
367 createContactForRawContacts(db, txContext, connectedRawContactIds, contactId); in reAggregateRawContacts()
388 updateAggregateData(txContext, cid); in reAggregateRawContacts()