summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/contacts/database
Commit message (Collapse)AuthorAgeFilesLines
* Dealing with some edge cases with soft deleted contacts.Zheng Fu2015-07-101-2/+3
| | | | | | | | | 1. Exlude soft deleted contacts for aggregator algorithm upgrade. 2. Make sure to update the contacts.name_raw_contact_id column for soft deleted raw contact. Bug:22378846 Change-Id: I53a48ced645f9b00b708b4b9d88518a529834f89
* Add the enterprise caller-id APIMakoto Onuki2014-07-091-0/+32
| | | | | | | | Also Moved UserUtils to utils/ Bug 15779911 Change-Id: Ia4445772f12ebbc0f7832f3700c6fecf2ba13dd2
* Fix method not found errors for unit test.Chiao Cheng2013-05-091-0/+4
| | | | | | | | | Two methods in MoreDatabaseUtils are no longer used after a recent bug fix. But the tests for them are erroring out in userdebug builds because proguard is stripping the methods. Bug: 8894559 Change-Id: Idc2b4c9fd2fd6b58a3c44e5a40dec1b1c582cd2e
* Fixed issue where some contacts are not added to delete log.Chiao Cheng2013-04-231-1/+11
| | | | | | | | | | | | | Contacts with multiple raw contacts were not being inserted into the delete log when accounts are removed. This was due to the raw contacts being removed in batch instead of one at a time. The logic to determine whether a contact can be deleted was determining whether other raw contacts exist. This does not work when all raw contacts are removed in a single batch. Added logic to pre-select contacts that will be deleted. Bug: 8696462 Change-Id: I95adccf9e6756bbf6ca9dd7d144c1d9ee8905631
* Fix sqlite error when too many bind variables.Chiao Cheng2013-04-221-4/+9
| | | | | | | | Sqlite has a limit of 999 bind variables by default. Since there is no risk of sql injection in this method, change to building sql by concatentation. Bug: 8676489 Change-Id: I9bfea735bb14fd65c84eb4255825b7ad3f5fae71
* Adding contacts delta api.Chiao Cheng2013-04-083-0/+287
Updates and inserts can be detected through the use of a new timestamp field in the contacts table. Deletes can be detected by querying the new deleted_contacts table. Bug: 8182147 Change-Id: I5c1e596f4e1aa58528afc29396f79cb4051e229c