summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Should update aggregate data after marking raw contact deleted.Zheng Fu2015-07-171-10/+9
| | | | | Bug:22564056 Change-Id: Ic9ea29ee9fd72ff12a977565fba4f4e9be285b23
* Merge "Performance turning for aggregator 1. Move identification matching to ↵Zheng Fu2015-07-152-66/+97
|\ | | | | | | secondary 2. In the first stage, do secondary matching only if there is no structured name 3. Aggregate all the raw contacts without structured name if they have matching secondary data 4. Remove approximate name matching in aggregator. (This will not impact the name variant, such as John and Johathan matching)" into mnc-dev
| * Performance turning for aggregatorZheng Fu2015-07-152-66/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Move identification matching to secondary 2. In the first stage, do secondary matching only if there is no structured name 3. Aggregate all the raw contacts without structured name if they have matching secondary data 4. Remove approximate name matching in aggregator. (This will not impact the name variant, such as John and Johathan matching) Bug:22200630 Bug:21931859 Change-Id: I295e283dbe1929e20b80272027df226c01bc2f74
* | Remove extra logging with privacy infoChenjie Luo2015-07-151-2/+1
|/ | | | | Bug: 22075764, 22379601 Change-Id: I05a27684641083fa3ce172d4ffa6b5ff0718af19
* Dealing with some edge cases with soft deleted contacts.Zheng Fu2015-07-103-6/+11
| | | | | | | | | 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
* Fix bug in aggregation suggestions in new contacts aggregator.Zheng Fu2015-07-071-1/+11
| | | | | | | | | New contact aggregator is using rawContactsMatcher, which is keyed by rawContactId instead of contactId. So we need to remove bestMatches with duplicate contactId for calculating the aggregation suggestions. Bug:22224442 Change-Id: I9e77400a5b09ec28d5bc120706cd4dfe2e296d56
* Copy ringtone uri when rewriting cursor from corp profile.Sudheer Shanka2015-06-301-1/+13
| | | | | | | | | This will make it possible to change ringtone of a contact in the corp profile to any internal system sound. But if it is set to a custom sound, then it will be ignored. Bug: 21754741 Change-Id: I7f510dd3a8ddce4587f3728cbe36ef5a1f386bdc
* Merge "Fix read voicemails being marked as "new"." into mnc-devNancy Chen2015-06-231-1/+1
|\
| * Fix read voicemails being marked as "new".Nancy Chen2015-06-231-1/+1
| | | | | | | | | | | | | | | | Originally was comparing content values with "1" but some other sources use "true", check for boolean value instead of integer value. Bug: 21281858 Change-Id: I0124311ba7343826d094c621e6b2899053d6dabf
* | Merge "Remove read/write social stream permissions" into mnc-devSvet Ganov2015-06-231-41/+0
|\ \
| * | Remove read/write social stream permissionsSvet Ganov2015-06-221-41/+0
| |/ | | | | | | Change-Id: Ic51857dd196494168aebb66148a4dfe0533c6924
* | Always atomically drop & create search index.Makoto Onuki2015-06-221-6/+12
| | | | | | | | | | | | | | | | There was a chance the process or the device getting crashed right after the DROP. Bug 21925160 Change-Id: I25bfac0d8994644cc3ca39851f5cfcea6f541f37
* | Fix upgrade stepsMakoto Onuki2015-06-221-3/+7
|/ | | | | | | | | We accidentally reused version 1010. Bug 21933746 Bug 21928867 Change-Id: Ic1aa05d264105f5794b2079ec1a8e5f9b54ed6e5
* code refactor in ContactAggregatorHelperZheng Fu2015-06-191-1/+1
| | | | | Bug:19908937 Change-Id: I554bae7a76173419717f9ce46aa778b8e5bc5807
* Guard against directory provider crashMakoto Onuki2015-06-161-10/+17
| | | | | | Bug 21724632 Change-Id: I69765a4a4a416aeaa4563520526811ae019392a1
* Merge "Revert metadata_sync table and related code from M" into mnc-devZheng Fu2015-06-113-580/+10
|\
| * Revert metadata_sync table and related code from MZheng Fu2015-06-103-581/+11
| | | | | | | | | | Bug:20553119 Change-Id: I89b48cc5a39a57ebeafe7821f07c410dac871258
* | Merge "Roll out new aggregator to limited dogfooders." into mnc-devZheng Fu2015-06-091-1/+10
|\ \ | |/
| * Roll out new aggregator to limited dogfooders.Zheng Fu2015-06-081-1/+10
| | | | | | | | | | Bug:19908937 Change-Id: I77e09aac3c60c60882f508a637225a4dc478a2ce
* | Merge "Set Calls.NEW to 0 if the voicemail is read." into mnc-devNancy Chen2015-06-081-2/+4
|\ \
| * | Set Calls.NEW to 0 if the voicemail is read.Nancy Chen2015-06-081-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Newly inserted read voicemails were notifying because the Calls.NEW flag was set to true. Add logic to set it to false if the Voicemails.IS_READ flag is set to true. Bug: 21085233 Change-Id: Ibb969de54684578473b7617095b63dd04c953abc
* | | Actually make CARRIER_PRESENCE accessibleMakoto Onuki2015-06-082-1/+8
| |/ |/| | | | | | | | | Bug 20257870 Change-Id: I5e7e12372dde1aeffaea1e953c16d86e341c3b66
* | Fix broken CP2 unit tests and voicemail cleanupYorke Lee2015-06-042-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | * Delete voicemails when VoicemailCleanupService runs by checking whether delete is called internally. * Delete unnecessary MockPackageManager class, and consolidate all logic into ContactsMockPackageManager * Separate permissions tests and delete logic tests in VoicemailProviderTest * Correct the number of exposed Call columns in CallLogProviderTest Bug: 20669398 Change-Id: I695b82b639b93f3ce85bf6e20000279f19e4a14a
* | Fix NPE in enterprise API & fix unit tests.Makoto Onuki2015-06-041-4/+9
|/ | | | | | | Bug 21632829 Bug 21634841 Change-Id: Ic18f44e8de31fe48b1d3b7f3a49c355a4865aeca
* Merge "Performance tuning for contact aggregator2" into mnc-devZheng Fu2015-06-034-94/+171
|\
| * Performance tuning for contact aggregator2Zheng Fu2015-06-024-94/+171
| | | | | | | | | | | | | | | | | | | | 1. Skip already aggregated raw contacts during aggregation algorithm upgrade. 2. Remove case conversion during email comparion for better performance. 3. Fix bugs in the ContactAggregatorHelper to fix the flaky unit test. Bug:21466686 Bug:19908937 Change-Id: I6f59894a4fdc605fe1b92ac82e2ac9e90561a158
* | Decouple ProviderStatus & internal provider stateBrian Attwell2015-06-022-16/+30
| | | | | | | | | | Bug: 21090207 Change-Id: I7e93e36ad0c0d667ac56983c76acb1b97bd8755c
* | Fix enterprise path permission checkingRicky Wai2015-05-291-6/+5
| | | | | | | | | | Bug: 21489358 Change-Id: I5f655d5a41723f067533c2ae5c867dcbe3cc604d
* | Merge "Stop enforcing {READ,WRITE}_PROFILE permissions" into mnc-devBrian Attwell2015-05-282-37/+7
|\ \ | |/ |/|
| * Stop enforcing {READ,WRITE}_PROFILE permissionsBrian Attwell2015-05-272-37/+7
| | | | | | | | | | | | | | | | | | | | I should also remove all support for the Authorization API from CP2 now that we've decided there is no need for it. I'll leave cleaning this up for after I've finished unbundling the Contacts app. Bug: 21090207 Change-Id: I31e6ae7b0f49c3589071f6a95f8d69a9456c144d
* | Fix invalidateAggregationExceptionCache().Makoto Onuki2015-05-274-89/+46
| | | | | | | | | | | | | | | | | | Also clean up aggregator in preparation in preparation for b/19482664 Two tests in ContactAggregator2Test are failing, but it's irrelevant to this change. (Bug filed for this.) Change-Id: Id630812335fdaa2ab4955c240700b82fed84d1a8
* | Merge "Fix bugs in aggregator2." into mnc-devZheng Fu2015-05-263-24/+135
|\ \ | |/ |/|
| * Fix bugs in aggregator2.Zheng Fu2015-05-213-24/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | 0. Add unit test for aggregator2. 1. Only aggregate raw contacts in the default directory 2. Remove aggregation exception matches from the aggregation suggestion list 3. Fix the sqls to clear primary settings when merging 4. Make the scoring system consistent with current aggregator. 5. Don't aggregate raw contacts without name to any other raw contacts even when data matching exist. Bug: 19908937 Change-Id: Ie580def5ee9e3a291cd5bf112ccb29627f9b67cc
* | Merge "Implement Data.CARRIER_PRESENCE" into mnc-devEtan Cohen2015-05-201-2/+12
|\ \ | |/ |/|
| * Implement Data.CARRIER_PRESENCEMakoto Onuki2015-05-131-2/+12
| | | | | | | | | | | | | | | | | | | | Also add a script to dump the DB schema. This CL needs ag/683503. Bug 20257870 Change-Id: If336f7dfbab4aca9be8f168d1e8e5a555a9fe649
* | Merge "Clean up permissions" into mnc-devMakoto Onuki2015-05-155-14/+117
|\ \
| * | Clean up permissionsMakoto Onuki2015-05-155-14/+117
| |/ | | | | | | | | | | | | | | | | - All permission checks now always pass if the caller is self. - Remove uses-permissions that're enforced by self. Bug 20927020 Change-Id: I985338495ed947d317f37e1a8d674a40c5e6bfe4
* | Fix NPE in CallLogProviderWorkerYorke Lee2015-05-141-1/+1
|/ | | | | Bug: 20979730 Change-Id: I8ccaa27613804891b958dd82ac2debeb0dad762b
* Use transliterator for Simplified Chinese bucketsJay Shrauner2015-04-301-5/+9
| | | | | | | | Use Pinyin name transliterator instead of AlphabeticIndex for bucketing Simplified Chinese names. Bug:19835686 Change-Id: I350a4375e2b5ba05320143581c7b532678f69120
* 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