Home
last modified time | relevance | path

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

/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A 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()
59 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { 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()
82 fixRawContactDisplayName(db, txContext, rawContactId); in delete()
[all …]
H A 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()
54 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { 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()
80 fixRawContactDisplayName(db, txContext, rawContactId); in delete()
[all …]
H A 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()
H A DDataRowHandlerForGroupMembership.java78 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()
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()
127 int count = super.delete(db, txContext, c);
132 updateVisibility(txContext, rawContactId);
142 if (mDbHelper.updateContactVisibleOnlyIfChanged(txContext, contactId)) {
147 private void resolveGroupSourceIdInValues(TransactionContext txContext,
[all …]
H A 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()
64 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { 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()
109 fixRawContactDisplayName(db, txContext, rawContactId); in delete()
[all …]
H A 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()
77 super.update(db, txContext, values, c, callerIsSyncAdapter); 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()
101 fixRawContactDisplayName(db, txContext, rawContactId); in delete()
[all …]
H A 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)) { 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()
H A 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()
H A DDataRowHandler.java143 txContext.invalidateSearchIndexForRawContact(rawContactId); in insert()
155 public boolean update(SQLiteDatabase db, TransactionContext txContext, in update() argument
160 handlePrimaryAndSuperPrimary(txContext, values, dataId, rawContactId); in update()
169 txContext.invalidateSearchIndexForRawContact(rawContactId); in update()
172 txContext.markRawContactDirtyAndChanged(rawContactId, callerIsSyncAdapter); in update()
313 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { in delete() argument
326 txContext.invalidateSearchIndexForRawContact(rawContactId); in delete()
369 if (!isNewRawContact(txContext, rawContactId)) { in fixRawContactDisplayName()
376 return txContext.isNewRawContact(rawContactId); in isNewRawContact()
415 public void triggerAggregation(TransactionContext txContext, long rawContactId) { in triggerAggregation() argument
[all …]
H A 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()
H A 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()
H A DContactsDatabaseHelper.java4078 public boolean updateContactVisibleOnlyIfChanged(TransactionContext txContext, long contactId) { in updateContactVisibleOnlyIfChanged() argument
4079 return updateContactVisible(txContext, contactId, true); in updateContactVisibleOnlyIfChanged()
4086 public void updateContactVisible(TransactionContext txContext, long contactId) { in updateContactVisible() argument
4087 updateContactVisible(txContext, contactId, false); in updateContactVisible()
4091 TransactionContext txContext, long contactId, boolean onlyIfChanged) { in updateContactVisible() argument
4142 txContext.invalidateSearchIndexForContact(contactId); in updateContactVisible()
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A 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()
H A 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 …]
H A DAbstractContactAggregator.java428 public void aggregateInTransaction(TransactionContext txContext, SQLiteDatabase db) { in aggregateInTransaction() argument
521 updateAggregateData(txContext, contactId); 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
709 mDbHelper.updateContactVisible(txContext, contactId); in updateAggregateData()
733 abstract void aggregateContact(TransactionContext txContext, SQLiteDatabase db, in aggregateContact() argument
869 TransactionContext txContext, Set<Long> rawContactIds, Long contactId) { in createContactForRawContacts() argument
[all …]
H A 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()