summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers
Commit message (Collapse)AuthorAgeFilesLines
* Obtain region config from system-property for Contacts pre-loadingRohit Yengisetty2016-05-241-6/+48
| | | | | | | | | | | If Telephony isn't ready during the first boot, then the Resource configuration for Contacts pre-loading does't have the right information to determine whether or not to add the default contacts. This patch adds a check on the "ro.prebundled.mcc" system-property to help determine the region specific configuration to use. Issue-Id: PAELLA-50 Change-Id: I57f131bbf1cc41679c2ce76a6956b40a35093439
* ContactsProvider: don't crash on locale changeRoman Birg2016-05-061-3/+8
| | | | | | | | | | Catch crashes when looking up nonexistant resources stored in the group title_res table. Ticket: CYNGNOS-2656, OSS NIGHTLIES-2952 Change-Id: Id496df461f16dcf7a7596347dda5e3ff806767d0 Signed-off-by: Roman Birg <roman@cyngn.com>
* Modify "(1/2) Call Lookup: Update call log handler to query usernames"Richard MacGregor2016-05-022-38/+69
| | | | | | | | | This paritally reverts commit 22eeaf50aa43112156d11b665857cc867d21ae63. Then modifies it to not use isPhoneNumber, which was causing issues when InCallApi usernames had digits. Ticket CD-460 Change-Id: I751fa70a18ab2752ff7a3adfceda53b041051a8d
* ContactsProvider: Fix polyphones in Chinese.YuanQY2016-04-141-2/+65
| | | | | | | | | | Merge the resolution for polyphones in Chinese from https://github.com/ShenduOS/android_packages_providers_ContactsProvider/commit/d232513ba086fd0508def8ef0f7fb7d9cec5d171, thanks the Shendu OS team. Patch Set 2: Format the code style. Change-Id: I84d5921ec43502bcfd2a1aefd4cae9fd0600c9d1 (cherry picked from commit 61d7ec35b4c2fbbe6f8ed86e14e39900c301f00a)
* Contacts: automatic merge count metricsErica Chang2016-04-071-0/+11
| | | | | | CD-297 Change-Id: I08250503463b9fa3cedd2f800b20c298cc1b0786
* Get mimetype for strequestnsStephen Bird2016-04-071-0/+1
| | | | Change-Id: I880674163e20cc2b3f6383ec0710e6de75ddbad7
* Fix query if no username exists in pathStephen Bird2016-04-071-1/+1
| | | | | | | If no username exists in path, do not attempt to lookup the plugin with the username param. Change-Id: I5161371e0eb825cbf7a8b4610eeff7e5b7cb502f
* ContactsProvider: Join raw_contacts and data on the proper IDStephen Bird2016-04-071-1/+2
| | | | | | | For some reason, we selected the wrong ID to join these tables on. contact_id may be completely different from the raw_contact_id in data. Change-Id: Idd067a90a67a126b22f7bb0281c69e93ad6bed10
* (1/2) Call Lookup: Update call log handler to query usernamesStephen Bird2016-04-072-17/+45
| | | | Change-Id: Ie5b5f035d5c4fc5c35a2b3b0b2233353127c468a
* [1/3] Show incall plugin contacts in favoritesRichard MacGregor2016-04-071-5/+30
| | | | | | | Add ability to show contacts with incall callable mimetypes as starred/favorites. Change-Id: Iccaee75cbf607c6a8ad10d81bd8abb3797748512 Tickets: CD-58 CD-60 CD-119
* Update addresBookIndexer when removing dupesRichard MacGregor2016-04-071-0/+6
| | | | | | | | Callable contacts allowed for removing duplicates but didn't update the addressBookIndexerCountExpression to take account for the offset. Change-Id: I92a40e3adc1a0824e44224fc50d0faeca66dec48 Tickets: CD-99
* New uri path for removing duplicate callable contactsRichard MacGregor2016-04-071-8/+58
| | | | | | | | | - Callable and Phone paths removed duplicate numbers per contact, not duplicate contacts - Now supports passing extra callable mimetypes as query parameters, no more hardcoding required. Change-Id: I5926587543f577cb0c9be4f79bf32be6148f555d
* CallLog: change plugin to packageStephen Bird2016-04-072-13/+14
| | | | Change-Id: I4bf56232d8a12e808b38855d7e1b9306b8129d56
* CallLog: initial adding of new plugin columnsStephen Bird2016-04-072-4/+67
| | | | Change-Id: I4f1f08ccf40e1042ae343f8b27becdd23f0e8cf8
* Query skype mime type when getting CALLABLE contactsemancebo2016-04-071-2/+6
| | | | | | TODO: pass in mime type so that this is not skype specific Change-Id: I37dd1119bea41e2c544b18773b134de41105da2e
* [4/4] Add column for storing origin in CallLogStephen Bird2016-03-182-2/+21
| | | | | | | | We use this origin column to determine which parts of the application/os are used to make calls most often. Ticket: CD-517 Change-Id: I254a4731e7618b6dd523bf6ba567d2a5dffd3c01
* Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-101-0/+1
|\ | | | | | | | | | | https://android.googlesource.com/platform/packages/providers/ContactsProvider into cm-13.0 Android 6.0.1 release 22
| * Update directories when initializing ContactsProvider.Tingting Wang2015-12-041-0/+1
| | | | | | | | | | | | | | | | | | This is to fix a bug when reading exchange provider. Updating directories can fix it without factory reset or account changed. BUG 22398175 Change-Id: I36e05ff5f7bc83dc25ab165e5f5fb122bbe6c160
* | Don't suspend aggregation for new contactsGabriele M2016-02-281-1/+1
| | | | | | | | | | | | | | | | New contacts are not merged with existing contacts until they are edited. Set the default aggregation mode to AGGREGATION_MODE_DEFAULT to have them merged right away. Change-Id: I18a5d32ca01daa2abc913843a094a82823cf61c3
* | Add a richer system around preloading contactsRohit Yengisetty2015-12-143-0/+280
| | | | | | | | Change-Id: I2c3b6b79ee41eb73948f9a053454654ee8566a12
* | Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-071-2/+2
|\ \ | |/ | | | | | | | | https://android.googlesource.com/platform/packages/providers/ContactsProvider into HEAD Android 6.0.1 release 3
| * Update calllogbackup's new package name.Santos Cordon2015-10-131-2/+2
| | | | | | | | | | Bug: 24783945 Change-Id: I8e37520649abfff3f55652376456bc8ee561285a
* | Merge "Support to delete single call log" into ui_dev_2.0Linux Build Service Account2015-09-101-0/+5
|\ \
| * | Support to delete single call logblong2015-09-061-0/+5
| | | | | | | | | | | | | | | | | | - Add the case to delete single call log Change-Id: I9d33108b9fc66c73bf71757823b2d2a92727e65d
* | | Merge "Add local group feature supports" into ui_dev_2.0Linux Build Service Account2015-09-102-7/+159
|\ \ \ | |/ /
| * | Add local group feature supportsblong2015-09-062-7/+159
| | | | | | | | | | | | | | | | | | - Add default groups for phone account Change-Id: I8850fde13b5ac013033a5d31f594d053a2ced469
* | | Merge "Support full field search for contacts" into ui_dev_2.0Linux Build Service Account2015-09-081-0/+18
|\ \ \ | |/ / |/| |
| * | Support full field search for contactsblong2015-08-261-0/+18
| | | | | | | | | | | | | | | | | | | | | - Append the searchable data for custom type to support full field search Change-Id: I26b87ce6f01208dd53f8812bf6066800ce799e86
* | | Add fuzzy search for contact numberblong2015-09-051-3/+223
|/ / | | | | | | | | | | | | | | - Add a new interface to support fuzzy search , it can search out the contacts by any parts of number, such as for phone number 13567854, it can be searched out by 356,785 and so on. Change-Id: I89175ef49f70446a3f061684ae5e2abd92e92445
* | Add supports for SIM and Phone accountblong2015-08-244-24/+165
|/ | | | | | | - Add a flag to filter SIM contacts - Use the Phone account as default account Change-Id: If2219a13b0c915504375d38f9a0bcbf274250ccb
* Don't show aggregation suggestions for contacts itself.Zheng Fu2015-07-301-23/+24
| | | | | Bug:22224442 Change-Id: I82a52daef157b0280329402a90fd9a8becd60034
* Default contact aggregator to ContactAggregator2.Zheng Fu2015-07-271-1/+1
| | | | | | | | New aggregator has been tested via gservice flag. Now we make it default regardless of the gservice flag. Bug:22355413 Change-Id: Iff9464dfc7bdd6342eafecc22e052786edd37acd
* Fix failing tests due to logic changes in the new aggregator.Zheng Fu2015-07-172-3/+1
| | | | | | | | | | 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
* 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