summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* update addCall to account for extra paramterIan Roy2016-03-221-1/+1
| | | | | | caused by this: http://review.cyanogenmod.org/#/c/134250 Change-Id: I93e3691da1f5a8655ce04d0bdedeadbbdbb8bc8d
* Fix CallLogProviderTest.testAddCallYorke Lee2015-07-311-3/+4
| | | | | | | Cached values should be null immediately after CallLog.addCall Bug: 22011651 Change-Id: I8ebbe71be9e9ad9a2f3fd694c0c19e847a3cf60f
* Fix failing tests due to logic changes in the new aggregator.Zheng Fu2015-07-172-9/+30
| | | | | | | | | | 1. All the raw contacts with same name and no data will group together, so we need to assign different names in this test. 2. We don't have split step anymore, so there is no unpin operation. 3. Fix Long comparison in the aggregator. Bug:22566083 Change-Id: I1a963bf17866e7569012e4cceca034e7c8312aa3
* Performance turning for aggregatorZheng Fu2015-07-151-22/+79
| | | | | | | | | | | | | | 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
* Fix bug in aggregation suggestions in new contacts aggregator.Zheng Fu2015-07-071-4/+9
| | | | | | | | | 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
* Fix read voicemails being marked as "new".Nancy Chen2015-06-231-0/+28
| | | | | | | | 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 "Revert metadata_sync table and related code from M" into mnc-devZheng Fu2015-06-113-483/+0
|\
| * Revert metadata_sync table and related code from MZheng Fu2015-06-103-483/+0
| | | | | | | | | | Bug:20553119 Change-Id: I89b48cc5a39a57ebeafe7821f07c410dac871258
* | Merge "Roll out new aggregator to limited dogfooders." into mnc-devZheng Fu2015-06-091-0/+8
|\ \ | |/
| * Roll out new aggregator to limited dogfooders.Zheng Fu2015-06-081-0/+8
| | | | | | | | | | Bug:19908937 Change-Id: I77e09aac3c60c60882f508a637225a4dc478a2ce
* | Actually make CARRIER_PRESENCE accessibleMakoto Onuki2015-06-081-0/+7
|/ | | | | | Bug 20257870 Change-Id: I5e7e12372dde1aeffaea1e953c16d86e341c3b66
* Fix broken CP2 unit tests and voicemail cleanupYorke Lee2015-06-045-77/+61
| | | | | | | | | | | | | * 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-042-0/+141
| | | | | | | Bug 21632829 Bug 21634841 Change-Id: Ic18f44e8de31fe48b1d3b7f3a49c355a4865aeca
* Update CP2 unit tests for changed permissionsBrian Attwell2015-06-032-67/+47
| | | | | Bug: 21090207 Change-Id: I496a3c70c69ee1507c626ab2fcee9edf4bdb5ceb
* Merge "Performance tuning for contact aggregator2" into mnc-devZheng Fu2015-06-033-47/+30
|\
| * Performance tuning for contact aggregator2Zheng Fu2015-06-023-47/+30
| | | | | | | | | | | | | | | | | | | | 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-021-4/+4
|/ | | | | Bug: 21090207 Change-Id: I7e93e36ad0c0d667ac56983c76acb1b97bd8755c
* Fix invalidateAggregationExceptionCache().Makoto Onuki2015-05-272-13/+0
| | | | | | | | | 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
* Fix bugs in aggregator2.Zheng Fu2015-05-211-0/+1865
| | | | | | | | | | | | | 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
* Fix CP2 Unit test failureKeith Cheung2015-05-181-1/+4
| | | | | | | Cause: The corp provider is not wiped for each test. Bug: 19551175 Change-Id: I2b5428a74b584299ded745b15c3019e8d6091361
* Fix unit testsMakoto Onuki2015-05-156-11/+39
| | | | | | | | | | | - PhotoPriorityResolverTest Now the mock sync adapter needs an intent filter - LegacyContactsProviderTest The authority check in ContentProvider got tightened, which broke our test because we didn't set up the multiple authorities correctly. Change-Id: Iab1eed24434bd159a99f0b794a7756554dc02281
* Clean up permissionsMakoto Onuki2015-05-152-2/+5
| | | | | | | | | - 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 locale unit testsJay Shrauner2015-04-301-9/+11
| | | | | | | Fix test failures caused by ICU version update to 55.1 Bug:20669398 Change-Id: I4c18a2e33db2b701b49c9bb715cee814ef0bde04
* Add unit test for RawContactsEntity.CORP_CONTENT_URITony Mak2015-04-271-0/+52
| | | | | Bug: 19551175 Change-Id: I6b91b77edcd999adb0a3184ea695949fe85f5315
* Merge "Add unit test for query against Phone.ENTERPRISE_CONTENT_URI"Tony Mak2015-04-231-0/+78
|\
| * Add unit test for query against Phone.ENTERPRISE_CONTENT_URITony Mak2015-04-211-0/+78
| | | | | | | | | | | | Bug: 19551175 Change-Id: I69bdb672e64474a8daf12c3c38ea5fe262684aab
* | Merge "Update related tables from MetadataSync.data column."Tingting Wang2015-04-183-17/+155
|\ \ | |/ |/|
| * Update related tables from MetadataSync.data column.Tingting Wang2015-04-173-17/+155
| | | | | | | | | | | | | | | | | | | | 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
* | Merge "Parse metadata_sync.data to MetadataEntry Object."Tingting Wang2015-04-142-0/+345
|\ \ | |/
| * Parse metadata_sync.data to MetadataEntry Object.Tingting Wang2015-04-142-0/+345
| | | | | | | | | | | | | | | | | | | | 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-141-8/+8
|\ \
| * | Remove caller-id check in enterprise phone and raw contacts entitiesRicky Wai2015-03-311-8/+8
| | | | | | | | | | | | | | | | | | Bug: 19990833 Change-Id: Ibba3a0594262b975b3b4fdd4ebd1fcf1e40ff98a
* | | Merge "Add phone_account_* fields to voicemail content table allowed columns."Nancy Chen2015-04-032-2/+6
|\ \ \
| * | | Add phone_account_* fields to voicemail content table allowed columns.Nancy Chen2015-04-022-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-022-38/+118
|/ / / | | | | | | | | | | | | | | | | | | | | | Also add a ContactAggregatorHelper class to hold some helper methods to better falicitate unit testing Bug:19908937 Change-Id: I2e2bcef2228e7a171e9c3259c27c3fa28bde646c
* | | Enterprise quick contact 2/2Makoto Onuki2015-03-301-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | 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
* | Revert "Enterprise quick contact 2/2"Makoto Onuki2015-03-301-1/+1
| | | | | | | | | | | | This reverts commit 9d5369ac6c1d788384d52b11da10f60571238405. Change-Id: Ib442e2ac351146ad2d5129e39a999478b8ffe547
* | Enterprise quick contact 2/2Makoto Onuki2015-03-231-1/+1
|/ | | | | | | | | | | | | 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
* Add Email.ENTERPRISE_CONTENT_LOOKUP_URIRicky Wai2015-03-191-5/+8
| | | | | | | | | Like PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI Apps in primary profile can have email lookup in managed profile Bug: 19550046 Change-Id: I492909126faf4e1a2eb5c72f7f76f3a7a0656e6a
* Make contacts backup schema change accessible.Tingting2015-03-171-0/+5
| | | | | | | | | 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-8/+45
|\ | | | | | | Change-Id: I439330f8c022ce85005d84fd4286f4f1ffdced1c
| * Upgrade voicemail_status and calls tables for visual voicemail.Nancy Chen2015-03-023-8/+45
| | | | | | | | | | | | | | | | | | | | | | 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-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Remove CallLogBackupAgent."Santos Cordon2015-03-072-283/+0
|\ \
| * | Remove CallLogBackupAgent.Santos Cordon2015-03-062-283/+0
| | | | | | | | | | | | | | | | | | Moved to CallLogBackup.apk Change-Id: I1aee3bb1dc4378bff0d346d424692bc60b3fdc40
* | | Merge "Prioritize regular names over phonetic names. P2/2"Brian Attwell2015-03-052-7/+86
|\ \ \ | |/ / |/| |
| * | Prioritize regular names over phonetic names. P2/2Brian Attwell2015-03-052-7/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Enterprise phone lookup should return consistent result..."Makoto Onuki2015-03-021-2/+22
|\ \ \ | |/ / |/| |
| * | Enterprise phone lookup should return consistent result...Makoto Onuki2015-02-271-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | More tests for CallLogBackupAgentSantos Cordon2015-02-261-9/+89
|/ / | | | | | | Change-Id: I5f8ff641bbd3b9c186cb6e2e230ae70d02055fe4