summaryrefslogtreecommitdiffstats
path: root/src/com/android
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
* | | 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
|\ \ | |/ |/|