summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * Protect against null lookup uriJay Shrauner2015-03-131-1/+2
| | | | | | | | | | Bug:19588470 Change-Id: Iadfed46a7de067513463f12fa72bdd658f5b07f8
* | Add Email.ENTERPRISE_CONTENT_LOOKUP_URIRicky Wai2015-03-191-43/+77
| | | | | | | | | | | | | | | | | | Like PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI Apps in primary profile can have email lookup in managed profile Bug: 19550046 Change-Id: I492909126faf4e1a2eb5c72f7f76f3a7a0656e6a
* | Merge "Add RawContactsEntity.CORP_CONTENT_URI"Ricky Wai2015-03-191-0/+14
|\ \
| * | Add RawContactsEntity.CORP_CONTENT_URIRicky Wai2015-03-181-0/+14
| | | | | | | | | | | | | | | Bug: 19551325 Change-Id: Ie0c31c951edab91b70b7587ab27b68db4e1f6fcd
* | | Merge " Fork ContactMatcher.java to RawContactMatcher.java"Zheng Fu2015-03-181-0/+456
|\ \ \
| * | | Fork ContactMatcher.java to RawContactMatcher.javaZheng Fu2015-03-181-0/+456
| | |/ | |/| | | | | | | | | | | | | This is to copy the file history for new raw contact matcher. Change-Id: I28f9e36d743268e2c17970175c09ba4d9aed86cd
* | | Add back upgrade actions that were lost from merging.Nancy Chen2015-03-181-16/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A merge from m-wireless-dev to master ended up merging two different upgrade steps into one, which means that any devices that were upgraded to version 1005 before the merge would not have undergone the upgrade from m-wireless-dev. Add another upgrade step to ensure the necessary upgrading happens. Bug: 19796706 Change-Id: Ibc7af5f1ff923e338d57170c9b9c289f89c32838
* | | Make contacts backup schema change accessible.Tingting2015-03-172-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | raw_contacts.backup_id and data.hash_id have been added to schema. To make them accessible, they need to be added to projection map. BUG 19667203 Change-Id: I7d122843668d7ed31fc998a2c7f00dc909181fc8
* | | Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'Vinit Deshpande2015-03-163-5/+68
|\ \ \ | |/ / |/| | | | | Change-Id: I439330f8c022ce85005d84fd4286f4f1ffdced1c
| * | Upgrade voicemail_status and calls tables for visual voicemail.Nancy Chen2015-03-023-17/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do a database upgrade for MNC in order to add multi-SIM fields to the voicemail_status table and add "dirty" and "deleted" fields to voicemails table. Add functionality in DbModifierWithNotification to handle "dirty" and "deleted" appropriately. This new functionality is tested in VoicemailProviderTest and CallLogProviderTest. Bug:19236241 Change-Id: I25ebba0bdb5f720e48beaf17dbdd2846e494da74
| * | Upgrade calllog DB to use ICC ID & source_phone_number.Santos Cordon2015-03-022-2/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To accomodate backup and restore of the call log, we have to convert the existing sub-ID to an ICC ID. Also, add the source_phone_number to the list of call log columns. The ICC ID improves backup and restore because it is persistent across different devices where a sub ID is not. If the user completely changes their SIM card, the source_phone_number will be helpful in identifying that scenario if the user kept their old phone. Change-Id: Ib35e25216691e580b5ea539929ff16b2e3d30b88
* | | Merge "Add private API to get merged primary and enterprise contacts"Ricky Wai2015-03-101-2/+86
|\ \ \ | | |/ | |/|
| * | Add private API to get merged primary and enterprise contactsRicky Wai2015-03-091-2/+86
| | | | | | | | | | | | | | | Bug: 19550047 Change-Id: I5f2a5e5d54af50cd0b41dd3105e10a4676d17388
* | | Cache photo URI too in calllogMakoto Onuki2015-03-092-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enterprise phone lookup returns special photo URLs for corp contacts, which can't be obtained just with contact IDs. So we need to cache the URIs too and otherwise pictures sometimes don't show up. Bug 19546108 Change-Id: I48517da681c194b6ee4ca47dda57ccff81e76981
* | | Merge "Remove CallLogBackupAgent."Santos Cordon2015-03-072-390/+8
|\ \ \
| * | | Remove CallLogBackupAgent.Santos Cordon2015-03-062-390/+8
| | | | | | | | | | | | | | | | | | | | | | | | Moved to CallLogBackup.apk Change-Id: I1aee3bb1dc4378bff0d346d424692bc60b3fdc40
* | | | Merge "Prioritize regular names over phonetic names. P2/2"Brian Attwell2015-03-051-2/+26
|\ \ \ \ | |/ / / |/| | |
| * | | Prioritize regular names over phonetic names. P2/2Brian Attwell2015-03-051-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When choosing display names, prioritize StructuredNames that have more than phonetic components. I make no attempt to handle the case where a StructuredName with only phonetic components is marked super primary. If clients do this, the behavior is still undefined. Bug: 19587274 Change-Id: I503c0fff6da30b9f1d6b6cbeaedfc4d9314f8a00
* | | | Unhide call log entries by phone number.Santos Cordon2015-03-021-3/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the phone account does not match any call log entries, then run the unhiding query by the phone number instead of the specific phone account. This addresses the cases where a user gets a new SIM card for their existing phone number (e.g., switching service providers). Change-Id: Ib0d5e5a36ad7445e95148470c45d8fdabd9125f7
* | | | Hide unregistered phone account call log entries.Santos Cordon2015-03-034-13/+108
| | | | | | | | | | | | | | | | Change-Id: I238882e0dd3e63747a4eedcf3ff2af2c8d770dd4
* | | | Merge "Enterprise phone lookup should return consistent result..."Makoto Onuki2015-03-021-13/+18
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | Enterprise phone lookup should return consistent result...Makoto Onuki2015-02-271-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regardless of requested projections. In order to rewrite the cursor returned from the corp CP2, certain columns are needed to compute other columns. (e.g. PHOTO_URI requires _ID and PHOTO_FILE_ID). This CL fixes that by always requesting all columns to the corp CP2. Now rewriteCorpPhoneLookup() shrinks down the projection. Bug 19545750 Change-Id: Id817d069554ebc89759303760effb557b152d58a
* | | Merge "More tests for CallLogBackupAgent"Santos Cordon2015-02-271-48/+77
|\ \ \ | |/ / |/| |
| * | More tests for CallLogBackupAgentSantos Cordon2015-02-261-48/+77
| | | | | | | | | | | | Change-Id: I5f8ff641bbd3b9c186cb6e2e230ae70d02055fe4
* | | Fork ContactAggregator.java to ContactAggregator2.javaZheng Fu2015-02-261-0/+2834
|/ / | | | | | | | | | | This is to copy the file history for new aggregator. Change-Id: I57994a3c1ed0eaeaffa45bf921b2e17dbcf702d3
* | Add simple backup/restore to Call Log.Santos Cordon2015-02-251-12/+135
| | | | | | | | | | | | | | | | With this change, call log should be a part of traditional android backup. All call are backed up with this change. Subsequent changes will filter down the call log entries which are actually backed up. Change-Id: Id2e876003a2d0c020142eff7f65426d888fedfc1
* | Add tests for CallLogBackupAgent.Santos Cordon2015-02-221-26/+45
| | | | | | | | | | | | Adds tests for writing and reading the state. Change-Id: Ie00b3ec0c976195e32275a0a9d75b47ee245966e
* | Simple Backup Agent for the call log.Santos Cordon2015-02-202-0/+220
| | | | | | | | | | | | | | | | | | Simple skeleton agent that reads the state of the call log. Does not actually do any backup. It logs what calls it would backup and what calls it would remove from backup. A subsequent CL will add the actual backup/restore of calls. Change-Id: Id8832c78a9a5aea71022b45c3cef79ca0b54f584
* | Upgrade calllog DB to use ICC ID & source_phone_number.Santos Cordon2015-02-192-2/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | To accomodate backup and restore of the call log, we have to convert the existing sub-ID to an ICC ID. Also, add the source_phone_number to the list of call log columns. The ICC ID improves backup and restore because it is persistent across different devices where a sub ID is not. If the user completely changes their SIM card, the source_phone_number will be helpful in identifying that scenario if the user kept their old phone. Change-Id: Ib35e25216691e580b5ea539929ff16b2e3d30b88
* | am 6278612a: am a435c434: am 463d577c: am 6522ca93: Don\'t use ↵Makoto Onuki2015-02-191-9/+19
|\ \ | |/ | | | | | | | | | | queryContentProviders to avoid "transaction too large" exception * commit '6278612a04f0e79a30fbb4f35befeb61e9190db3': Don't use queryContentProviders to avoid "transaction too large" exception
| * Don't use queryContentProviders to avoid "transaction too large" exceptionMakoto Onuki2015-02-181-9/+19
| | | | | | | | | | | | | | | | | | Instead, use getInstalledPackages, which knows how to circumvent the binder transaction size limit. Bug 18261831 Change-Id: I2725af045c60a47bfce6eab966a5c745b6c17870
| * Merge "Additional change to IS_SUPER_PRIMARY" into lmp-mr1-devBrian Attwell2015-02-031-5/+6
| |\
| | * Additional change to IS_SUPER_PRIMARYBrian Attwell2015-02-031-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UPDATE ----------------- This is being committed a second time, with two small changes from ag/619454: 1. This CL can be directly cherry-picked to MR1 because of the simpler unit test 2. Don't run a pointless update() call Original CL Comment ------------------ Noticed clearSuperPrimarySetting() sometimes clears all mimetypes's is_super_primary flag values sometimes, even mimetypes that aren't contained in both raw contacts. This doesn't appear to have been the intended behavior. Looks like a simple bug. Wrote a unit test and fixed the bug. Added a new method to DataUtil used inside the unit test. This method wasn't strictly necessary. But it is very useful in later CLs. (Part #2 or "Remove NAME_VERIFIED" series of CLs) Bug: 5080996 Bug: 18777272 Change-Id: I7944aae2ad4acb4df6560c5cd086242b7582fbf5
* | | Persist pre-authorized URIsBrian Attwell2015-02-192-28/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | When exposing the Authority API, reviewers requested the API be implemented properly instead of storing the pre-authorized values in memory. Bug: 18777272 Change-Id: I31e719b10803344f579bb89c8269f0a597a83c3c
* | | Add new metadata_sync table to facilitate android contacts backup.Zheng Fu2015-02-131-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new metadata_sync table will cache the meta data on raw contacts level from server before they are merged into other CP2 tables. The data column is the blob column containing all the backed up metadata for this raw_contact. This table should only be used by metadata sync adapter. Bug: 18930508 Change-Id: Iacafe812ed1fbb39b48331b6da56a35ac8f129dd
* | | Remove NAME_VERIFIED. Part3Brian Attwell2015-01-303-68/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support use of IS_SUPER_PRIMARY instead of NAME_VERIFIED. The contact aggregator now pays attention to IS_SUPER_PRIMARY. Remove all references to NAME_VERIFIED from CP2. Bug: 18777272 Change-Id: I1579a3122b2d45b80de7106a2b9616e323855045
* | | Handle DB schema migration to facilitate android contacts backupZheng Fu2015-01-301-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add backup_id column to raw_contacts table and hash_id column to data table. Add unique index on backup_id and account_id of raw_contacts table. Add index on hash_id of data table. Update the raw_contacts and data view to add the new columns. Bug: 18930508 Change-Id: I571c1115e7fb21e23b1956aaca8a80cf9d026e59
* | | Merge "No longer need to take care of pre boot msg."Dianne Hackborn2015-01-301-5/+0
|\ \ \
| * | | No longer need to take care of pre boot msg.Dianne Hackborn2015-01-291-5/+0
| | | | | | | | | | | | | | | | Change-Id: Ie000ca609dfeb166451dee24f0cd15622f09c19a
* | | | Additional change to IS_SUPER_PRIMARYBrian Attwell2015-01-281-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UPDATE ----------------- This is being committed a second time, with two small changes from ag/619454: 1. This CL can be directly cherry-picked to MR1 because of the simpler unit test 2. Don't run a pointless update() call Original CL Comment ------------------ Noticed clearSuperPrimarySetting() sometimes clears all mimetypes's is_super_primary flag values sometimes, even mimetypes that aren't contained in both raw contacts. This doesn't appear to have been the intended behavior. Looks like a simple bug. Wrote a unit test and fixed the bug. Added a new method to DataUtil used inside the unit test. This method wasn't strictly necessary. But it is very useful in later CLs. (Part #2 or "Remove NAME_VERIFIED" series of CLs) Bug: 5080996 Bug: 18777272 Change-Id: I7944aae2ad4acb4df6560c5cd086242b7582fbf5
* | | | Revert "Additional change to IS_SUPER_PRIMARY"Brian Attwell2015-01-281-2/+5
|/ / / | | | | | | | | | | | | | | | This reverts commit c44ee526c56d2f5e680cef24897cff3a922d6a2f. Change-Id: I2d81fb028eb0672db9cc291ac187c2629435969d
* | | Additional change to IS_SUPER_PRIMARYBrian Attwell2015-01-281-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Noticed clearSuperPrimarySetting() sometimes clears all mimetypes's is_super_primary flag values sometimes, even mimetypes that aren't contained in both raw contacts. This doesn't appear to have been the intended behavior. Looks like a simple bug. Wrote a unit test and fixed the bug. Added a new method to DataUtil used inside the unit test. This method wasn't strictly necessary. But it is very useful in later CLs. (Part #2 or "Remove NAME_VERIFIED" series of CLs) Bug: 5080996 Bug: 18777272 Change-Id: I354ffe51ea64cc532387d7ba79fbb6d2389d662e
* | | Change IS_SUPER_PRIMARY reset logicBrian Attwell2015-01-261-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CHANGES 1) change is_super_primary reset as discussed in go/proposed-change-to-resetting-super-primary-on-join 2) fix a bug in case #1 of testAggregation_clearSuperPrimary and extended the case a bit. Previously, both data rows had is_super_primary=false at setup instead of both true REASON This is mostly for the benefit of Lychee and future contact editor changes. This CL was also needed to make removing use of NAME_VERIFIED from GoogleContacts possible. At the very least, IS_SUPER_PRIMARY's behavior is now more consistent with NAME_VERIFIED. Bug: 5080996 Bug: 18777272 Change-Id: Ic3c17fcb1757f5966a7c6a52cf489083d5b8e51a
* | | am c219a079: am b5e3a4c8: am abaa423f: Fix cross profile caller id to use ↵Kenny Guy2015-01-261-13/+14
|\ \ \ | |/ / | | | | | | | | | | | | | | | manager profiles userid. * commit 'c219a07962ad9cdaed157af9bd72232f4e5e6820': Fix cross profile caller id to use manager profiles userid.
| * | Fix cross profile caller id to use manager profiles userid.Kenny Guy2015-01-231-13/+14
| |/ | | | | | | | | | | | | | | | | Cross profile caller id was checking myUserId when deciding whether to allow caller id from manged profiles where it should have used the managed profiles userid. Bug: 19122752 Change-Id: I230fc933655cd9464d00b619a383ff0682660c12
* | Fix log TAG that was too longJay Shrauner2015-01-161-1/+1
| | | | | | | | | | | | | | Log tags >25 characters are dropped, so abbreviate Bug: 19030945 Change-Id: I3a66ffcb41977db24e2e3ff16e6f22b530a78584
* | Ubundle from contacts contract Part 2/3Brian Attwell2015-01-081-11/+2
|/ | | | | | | | | Remove ProviderStatus.DATA1 Discussion: go/contacts-contact-intent-ui Bug: 18777272 Change-Id: I9c6125cc30710e4637b38f3785608abb9928d1a2
* Merge "Skip aggregation if candidate contact contains too many raw contacts" ↵Zheng Fu2014-12-091-2/+19
|\ | | | | | | into lmp-mr1-dev
| * Skip aggregation if candidate contact contains too many raw contactsZheng Fu2014-12-091-2/+19
| | | | | | | | | | | | | | This is likely an error or a shared corporate data element Bug:18641722 Change-Id: Icab78bcf621363a5b887095c043e2e1e3a2e1ca4
* | Fix package manager TransactionTooLargeExceptionJay Shrauner2014-12-051-11/+29
|/ | | | | | | | Change resolvePhotoPriorityFromMetaData to use PackageManager.queryIntentServices to avoid grabbing too much data back. Bug:18607092 Change-Id: I32234d4906395b4940d28cc3661e49bb3de929e2