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

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDataRowHandlerForIdentity.java35 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
37 final long dataId = super.insert(db, txContext, rawContactId, values);
41 triggerAggregation(txContext, rawContactId);
48 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
51 super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter);
56 triggerAggregation(txContext, rawContactId);
63 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { argument
64 final int count = super.delete(db, txContext, c);
68 triggerAggregation(txContext, rawContactId);
H A DDataRowHandlerForEmail.java37 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
41 long dataId = super.insert(db, txContext, rawContactId, values);
43 fixRawContactDisplayName(db, txContext, rawContactId);
46 triggerAggregation(txContext, rawContactId);
52 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
54 if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) {
65 fixRawContactDisplayName(db, txContext, rawContactId);
66 triggerAggregation(txContext, rawContactId);
73 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { argument
77 int count = super.delete(db, txContext,
[all...]
H A DDataRowHandlerForNickname.java39 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
43 long dataId = super.insert(db, txContext, rawContactId, values);
46 fixRawContactDisplayName(db, txContext, rawContactId);
48 triggerAggregation(txContext, rawContactId);
54 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
59 if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) {
67 fixRawContactDisplayName(db, txContext, rawContactId);
68 triggerAggregation(txContext, rawContactId);
75 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { argument
79 int count = super.delete(db, txContext,
[all...]
H A DDataRowHandlerForOrganization.java41 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
46 long dataId = super.insert(db, txContext, rawContactId, values);
48 fixRawContactDisplayName(db, txContext, rawContactId);
53 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
55 if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) {
89 fixRawContactDisplayName(db, txContext, rawContactId);
95 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { argument
99 int count = super.delete(db, txContext, c);
100 fixRawContactDisplayName(db, txContext, rawContactId);
H A DDataRowHandlerForCommonDataKind.java44 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
47 return super.insert(db, txContext, rawContactId, values);
51 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
59 return super.update(db, txContext, values, c, callerIsSyncAdapter,
H A DDataRowHandlerForPhoneNumber.java42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
46 final long dataId = super.insert(db, txContext, rawContactId, values);
52 fixRawContactDisplayName(db, txContext, rawContactId);
54 triggerAggregation(txContext, rawContactId);
60 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
64 if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) {
75 fixRawContactDisplayName(db, txContext, rawContactId);
77 triggerAggregation(txContext, rawContactId);
101 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { argument
105 int count = super.delete(db, txContext,
[all...]
H A DDataRowHandlerForGroupMembership.java75 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
77 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, true);
78 long dataId = super.insert(db, txContext, rawContactId, values);
82 updateVisibility(txContext, rawContactId);
87 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
91 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, false);
92 if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) {
99 updateVisibility(txContext, rawContactId);
123 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { argument
126 int count = super.delete(db, txContext,
135 updateVisibility(TransactionContext txContext, long rawContactId) argument
146 resolveGroupSourceIdInValues(TransactionContext txContext, long rawContactId, SQLiteDatabase db, ContentValues values, boolean isInsert) argument
[all...]
H A DDataRowHandlerForPhoto.java58 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
70 long dataId = super.insert(db, txContext, rawContactId, values);
71 if (!txContext.isNewRawContact(rawContactId)) {
78 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
92 if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) {
131 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { argument
133 int count = super.delete(db, txContext, c);
H A DDataRowHandler.java112 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
124 txContext.markRawContactMetadataDirty(rawContactId, /* isMetadataSyncAdapter =*/false);
144 txContext.invalidateSearchIndexForRawContact(rawContactId);
156 public boolean update(SQLiteDatabase db, TransactionContext txContext, argument
162 handlePrimaryAndSuperPrimary(txContext, values, dataId, rawContactId,
172 txContext.invalidateSearchIndexForRawContact(rawContactId);
175 txContext.markRawContactDirtyAndChanged(rawContactId, callerIsSyncAdapter);
253 private void handlePrimaryAndSuperPrimary(TransactionContext txContext, ContentValues values, argument
261 txContext.markRawContactMetadataDirty(rawContactId, callerIsMetadataSyncAdapter);
318 public int delete(SQLiteDatabase db, TransactionContext txContext, Curso argument
373 fixRawContactDisplayName(SQLiteDatabase db, TransactionContext txContext, long rawContactId) argument
381 isNewRawContact(TransactionContext txContext, long rawContactId) argument
421 triggerAggregation(TransactionContext txContext, long rawContactId) argument
[all...]
H A DDataRowHandlerForStructuredName.java47 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
51 long dataId = super.insert(db, txContext, rawContactId, values);
59 fixRawContactDisplayName(db, txContext, rawContactId);
60 triggerAggregation(txContext, rawContactId);
65 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
77 super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter);
88 fixRawContactDisplayName(db, txContext, rawContactId);
89 triggerAggregation(txContext, rawContactId);
94 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { argument
98 int count = super.delete(db, txContext,
[all...]
H A DDataRowHandlerForStructuredPostal.java55 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, argument
58 return super.insert(db, txContext, rawContactId, values);
62 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, argument
71 super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter);
H A DContactsDatabaseHelper.java5277 public boolean updateContactVisibleOnlyIfChanged(TransactionContext txContext, long contactId) { argument
5278 return updateContactVisible(txContext, contactId, true);
5285 public void updateContactVisible(TransactionContext txContext, long contactId) { argument
5286 updateContactVisible(txContext, contactId, false);
5290 TransactionContext txContext, long contactId, boolean onlyIfChanged) {
5341 txContext.invalidateSearchIndexForContact(contactId);
5289 updateContactVisible( TransactionContext txContext, long contactId, boolean onlyIfChanged) argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A DProfileAggregator.java62 public long onRawContactInsert(TransactionContext txContext, SQLiteDatabase db, argument
64 aggregateContact(txContext, db, rawContactId);
69 public void aggregateInTransaction(TransactionContext txContext, SQLiteDatabase db) { argument
74 public void aggregateContact(TransactionContext txContext, SQLiteDatabase db, argument
86 updateAggregateData(txContext, mContactId);
H A DContactAggregator.java79 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, argument
196 createContactForRawContacts(db, txContext, Sets.newHashSet(rawContactId), null);
198 updateAggregateData(txContext, currentContactId);
212 reAggregateRawContacts(txContext, db, contactId, currentContactId, rawContactId,
232 mDbHelper.updateContactVisible(txContext, contactId);
236 updateAggregateData(txContext, currentContactId);
416 private void reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, argument
429 createContactForRawContacts(db, txContext, connectedRawContactSets.iterator().next(),
436 createContactForRawContacts(db, txContext, connectedRawContactIds,
449 createContactForRawContacts(db, txContext, connectedRawContactId
[all...]
H A DAbstractContactAggregator.java426 public void aggregateInTransaction(TransactionContext txContext, SQLiteDatabase db) { argument
485 aggregateContact(txContext, db, rawContactIds[i], accountIds[i], contactIds[i],
500 public final void triggerAggregation(TransactionContext txContext, long rawContactId) { argument
519 updateAggregateData(txContext, contactId);
525 aggregateContact(txContext, mDbHelper.getWritableDatabase(), rawContactId);
642 TransactionContext txContext, SQLiteDatabase db, long rawContactId) {
645 mDbHelper.updateContactVisible(txContext, contactId);
671 TransactionContext txContext, SQLiteDatabase db, long rawContactId) {
693 aggregateContact(txContext, db, rawContactId, accountId, contactId,
697 public void updateAggregateData(TransactionContext txContext, lon argument
641 onRawContactInsert( TransactionContext txContext, SQLiteDatabase db, long rawContactId) argument
670 aggregateContact( TransactionContext txContext, SQLiteDatabase db, long rawContactId) argument
731 aggregateContact(TransactionContext txContext, SQLiteDatabase db, long rawContactId, long accountId, long currentContactId, MatchCandidateList candidates) argument
866 createContactForRawContacts(SQLiteDatabase db, TransactionContext txContext, Set<Long> rawContactIds, Long contactId) argument
[all...]
H A DContactAggregator2.java91 synchronized void aggregateContact(TransactionContext txContext, SQLiteDatabase db, argument
175 createContactForRawContacts(db, txContext, Sets.newHashSet(rawContactId), null);
177 updateAggregateData(txContext, currentContactId);
186 reAggregateRawContacts(txContext, db, currentContactId, rawContactId, accountId,
312 private void reAggregateRawContacts(TransactionContext txContext, SQLiteDatabase db, argument
367 createContactForRawContacts(db, txContext, connectedRawContactIds, contactId);
388 updateAggregateData(txContext, cid);

Completed in 335 milliseconds