summaryrefslogtreecommitdiffstats
path: root/src/com
Commit message (Collapse)AuthorAgeFilesLines
* Fix SIP enterprise lookupMakoto Onuki2015-04-281-1/+2
| | | | | | | | | | SIP lookup's _id is the data ID, not the contact ID unlike the non-SIP lookup. Properly use the contact ID for photo URLs. Bug 20522260 Bug 20518934 Change-Id: I52535968363c56af3b371197287743eb6e517731
* Grant VoicemailContentProvider permissions to default or system dialersYorke Lee2015-04-273-19/+30
| | | | | Bug: 20333102 Change-Id: Icb54620cf9241b3999bcb3de1b73394c71becb2f
* Fix some set concurrency issues in new aggregator.Zheng Fu2015-04-242-3/+6
| | | | | Bug:19908937 Change-Id: Iade51905c1e5a1810b709d7b533984ceb6254939
* Merge "Add unit test for query against Phone.ENTERPRISE_CONTENT_URI"Tony Mak2015-04-231-1/+0
|\
| * Add unit test for query against Phone.ENTERPRISE_CONTENT_URITony Mak2015-04-211-1/+0
| | | | | | | | | | | | Bug: 19551175 Change-Id: I69bdb672e64474a8daf12c3c38ea5fe262684aab
* | Re-create metadata_sync table.Zheng Fu2015-04-221-11/+49
| | | | | | | | | | | | | | | | Drop foreign key constraint on account_id column; Add deleted column; Bug:20457617 Change-Id: I13b3c12aa57fa39fcf4ec1d4dfc52a4e9ad869b7
* | Merge "Add OP_ADD_VOICEMAIL app op - contacts provider"Svet Ganov2015-04-191-0/+6
|\ \
| * | Add OP_ADD_VOICEMAIL app op - contacts providerSvet Ganov2015-04-171-0/+6
| | | | | | | | | | | | Change-Id: I0dfce97bd1dc3df9118c3a3e7ec5f00c764abbb1
* | | Merge "Update related tables from MetadataSync.data column."Tingting Wang2015-04-182-36/+308
|\ \ \ | |/ / |/| |
| * | Update related tables from MetadataSync.data column.Tingting Wang2015-04-172-36/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MetadataSync.data column info is parsed to MetadataEntry object. RawContact, Data, DataUsageStats, AggregationException tables need to be updated or inserted for the given rawContactId from MetadataEntry. BUG 20055193 Change-Id: I5bdfe2c44f9c9af8d4067dc136ceb62ab0b274af
* | | Show which aggregator is used in bugreport.Zheng Fu2015-04-161-0/+3
| | | | | | | | | | | | | | | Bug:20298625 Change-Id: I65b20cdbf6567eec2ccd7242359bf1d43b0bfe84
* | | use new setting flag to switch between current and new aggregator.Zheng Fu2015-04-1522-4851/+443
| | | | | | | | | | | | | | | | | | | | | | | | In order for the switch, add AbstractContactAggregator for ContactAggregator and ContactAggregator2. Bug:20055573 Change-Id: I6f27d4df8017938b226f5c6371b15ba41fd18acd
* | | Fork ContactAggregator to AbstractContactAggregator to keep file hsitory.Zheng Fu2015-04-151-0/+2805
| |/ |/| | | | | | | Bug:20055573 Change-Id: I42c85df36f039b59707101660441243fb90baca2
* | Merge "Parse metadata_sync.data to MetadataEntry Object."Tingting Wang2015-04-141-0/+225
|\ \ | |/
| * Parse metadata_sync.data to MetadataEntry Object.Tingting Wang2015-04-141-0/+225
| | | | | | | | | | | | | | | | | | | | metadata_sync.data is a text column contains the DeviceContactMetadata Json string got from People API. Converting it to MetadataEntry object is needed before using. BUG 20055450 Change-Id: Ic82b07438fdf088563fcdcc99980b83df149734f
* | Merge "Remove caller-id check in enterprise phone and raw contacts entities"Ricky Wai2015-04-142-9/+18
|\ \
| * | Remove caller-id check in enterprise phone and raw contacts entitiesRicky Wai2015-03-312-9/+18
| | | | | | | | | | | | | | | | | | Bug: 19990833 Change-Id: Ibba3a0594262b975b3b4fdd4ebd1fcf1e40ff98a
* | | Merge "Add phone_account_* fields to voicemail content table allowed columns."Nancy Chen2015-04-031-0/+4
|\ \ \
| * | | Add phone_account_* fields to voicemail content table allowed columns.Nancy Chen2015-04-021-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows updating and querying of voicemail entires for their respective phone account columns. Update tests to reflect this change: - Increase number of voicemail columns to 18 - Add phone_account_* fields to update test Bug: 19236241 Change-Id: I16b3c9d2a74bc7e169de4dd108b39b94acc98c4f
* | | | Add some new method implementations for new contact aggregator.Zheng Fu2015-04-023-92/+173
|/ / / | | | | | | | | | | | | | | | | | | | | | Also add a ContactAggregatorHelper class to hold some helper methods to better falicitate unit testing Bug:19908937 Change-Id: I2e2bcef2228e7a171e9c3259c27c3fa28bde646c
* | | Merge "Enterprise quick contact 2/2"Makoto Onuki2015-03-311-0/+8
|\ \ \ | |_|/ |/| |
| * | Enterprise quick contact 2/2Makoto Onuki2015-03-301-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now openQuickContact goes thorough DPM. When a lookup URI is build with a lookup key returned by the enterprise lookup APIs for a corp contact, the lookup key will have a special prefix. DPM checks it and launches QC on the work profile, if the policy allows it. Design doc: go/cp2-mnc-enterprise-dd Bug 19546108 Change-Id: Iccba8254269180281af0154f4b9c20cbfff5c27d
| * | Merge "Revert "Enterprise quick contact 2/2""Makoto Onuki2015-03-301-8/+0
| |\ \
| | * | Revert "Enterprise quick contact 2/2"Makoto Onuki2015-03-301-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 9d5369ac6c1d788384d52b11da10f60571238405. Change-Id: Ib442e2ac351146ad2d5129e39a999478b8ffe547
| * | | Merge "Enterprise quick contact 2/2"Makoto Onuki2015-03-301-0/+8
| |\ \ \ | | |/ / | | | / | | |/ | |/|
| | * Enterprise quick contact 2/2Makoto Onuki2015-03-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now openQuickContact goes thorough DPM. When a lookup URI is build with a lookup key returned by the enterprise lookup APIs for a corp contact, the lookup key will have a special prefix. DPM checks it and launches QC on the work profile, if the policy allows it. Design doc: go/cp2-mnc-enterprise-dd Bug 19546108 Change-Id: I30ffcc1f6f394144182f2cb2b6032568ea5b33eb
* | | New contact aggregator (part 1)Zheng Fu2015-03-303-531/+456
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of the changes are: 1. In RawContactMatcher, add rawContactId and accountId to MatchScore inner class, so that match score is on raw contacts level instead] of accumulate to contact level 2. Add a wrapper RawContactMatchingCandidates to MatchScore to facilitate the aggregation. 3. In ContactAggregator2, add findRawContactMatchingCandidates() method to find the set of matching raw contacts for a given raw_contact_id. This method will use the logic of updateMatchScoresForSuggestionsBasedOnDataMatches() so that it will give a set of raw contacts candidate with matching score above threshold. 4. The second stage "Pair-wise comparison and find the connected component of all the raw contacts in RawContactMatchingCandidates" is done in new method reAggregateRawContacts(); 5. Some new methods still throw unSupportedOperationExceptions, and they will be implemented in part2. 6. Tests will be implemented in follow-up cls. Bug:19908937 Change-Id: I53483a29c24401e2f38a727168e7431cef86370a
* | Merge "Protect against null lookup uri"Jay Shrauner2015-03-231-1/+2
|\ \ | |/ |/|
| * 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