summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/contacts/util
Commit message (Collapse)AuthorAgeFilesLines
* Add a richer system around preloading contactsRohit Yengisetty2015-12-141-0/+225
| | | | Change-Id: I2c3b6b79ee41eb73948f9a053454654ee8566a12
* Clean up permissionsMakoto Onuki2015-05-151-0/+100
| | | | | | | | | - All permission checks now always pass if the caller is self. - Remove uses-permissions that're enforced by self. Bug 20927020 Change-Id: I985338495ed947d317f37e1a8d674a40c5e6bfe4
* Remove caller-id check in enterprise phone and raw contacts entitiesRicky Wai2015-03-311-4/+8
| | | | | | Bug: 19990833 Change-Id: Ibba3a0594262b975b3b4fdd4ebd1fcf1e40ff98a
* Fix cross profile caller id to use manager profiles userid.Kenny Guy2015-01-231-13/+14
| | | | | | | | | Cross profile caller id was checking myUserId when deciding whether to allow caller id from manged profiles where it should have used the managed profiles userid. Bug: 19122752 Change-Id: I230fc933655cd9464d00b619a383ff0682660c12
* Check DPM.getCrossProfileCallerIdDisabled in caller-idMakoto Onuki2014-07-221-3/+17
| | | | | | | | | | | - Also add a test for UserUtils - Also fix broken tests due to UserUtils. Bug 16467654 Bug 15779911 Bug 16458399 Change-Id: I64a4526b512fce94590b75eae037a8bdcd874064
* Sync call log entries from the primary user into the secondary user's call logYorke Lee2014-07-171-1/+1
| | | | | | | | | | | | On startup of a secondary user's call log provider, sync any call log entries from the primary user's call log that are: 1) Newer than the last sync time 2) Not a voicemail 3) Not a duplicate entry (identified by the number, and start time of the call) Bug: 16298776 Change-Id: I843dfd8dd5c9433942e610cbbc2dfed95c29dd1c
* Fix broken tests in CP2Yorke Lee2014-07-161-0/+5
| | | | Change-Id: I1c198cbf086c7f267178a26d2a50123a8edaec12
* Address comments on commit 498944Makoto Onuki2014-07-161-8/+4
| | | | | | Bug 15779911 Change-Id: I68ea7be682696efb40ff3bfc0ac615466402c8db
* Add the enterprise caller-id APIMakoto Onuki2014-07-091-0/+81
| | | | | | | | Also Moved UserUtils to utils/ Bug 15779911 Change-Id: Ia4445772f12ebbc0f7832f3700c6fecf2ba13dd2
* Do not allow updates to the _data column.Chiao Cheng2013-07-121-2/+13
| | | | | | | | | | | | | | Fixes a security hole where applications can update the data location of voicemail files to point to arbitrary file paths. Voicemail provider stores the location of the data file in the _data column. Applications can update this with an arbitrary file path as long as they have the ADD_VOICEMAIL permission. Then they can subsequently read that voicemail and obtain access to the file. This location is generated by the provider and does not need to be updated by the applications. Bug: 9674953 Change-Id: I9c8fc45071a06d627574a52bafbd9e6e172b4bf8
* Change default sort order for email queries.Chiao Cheng2012-11-261-0/+27
| | | | | | | | | - Prioritizing "default" emails over last used emails. - Added ordering for same domain emails as last order by. Bug: 7183241 Bug: 7346215 Change-Id: I6a8ba3cfe08792693eec4896f16853a88713bc3f
* Tolerate crashes during re-aggregation.Makoto Onuki2012-07-181-1/+5
| | | | | | | | | | | | | | This CL consists of two parts: - Don't crash even if the name_lookup table contains malformed data. Just treat it as name-unmatch. - Don't crash even if an exception is thrown durign re-aggregation. Re-aggregation is not *that* important anyway, so in that case just bump the logic version and start the provider normally. (And even if we fail to bump the version number, just go ahead and continue.) Bug 6827136 Change-Id: Ifa3d4697c5d81f3480e0b8a9238b49312ac75e3b
* Fix and simplify data usage feedbackMakoto Onuki2012-04-141-0/+41
| | | | | | | | | Now it correctly updates both raw_contacts and contacts too, with fewer sqls and less memory. Bug 6326418 Change-Id: I89f0f92bae5bad5505b218eca2a29ae56b51fe7f
* Increase the photo size to 480x480 or 720x720, depending on deviceDaniel Lehmann2012-04-021-0/+43
| | | | | | Bug:6202229 Change-Id: I98b38023585d154eccad302578f796a2318fd5b2
* Add new package aggregation.utilMakoto Onuki2012-03-231-0/+121
| | | | | | Move aggregator related classes into it. Change-Id: I712fe07ad2bab1e532e3822e3e2797a199329865
* Remove LegacyContactImporterMakoto Onuki2011-11-281-0/+30
| | | | | | | | Contact data migration from donut is no longer supported. Bug 5664971 Change-Id: I01c56752d93bb0f8e2a0e6ff81285f1971a7c893
* Use integer constant when adding filtering clause.Flavio Lerda2011-11-151-1/+16
| | | | | | | | | | Currently we are quoting an integer constant when generating the filtering clause that excludes voicemails from the set of calls returned to applications querying the default call log URI. Pass the integer to the helper function, so that we can avoid quoting. Change-Id: I1e460d2c8d3b04047cf4a1f4e1209b3e4ba5053b
* Introduced query param 'include_voicemails' for call_log uri.Debashish Chatterjee2011-06-282-1/+73
| | | | | | | | | | - by default only call entries (i.e. no voicemails) are returned. - if include_voicemails is set to true then also include voicemail records, but only if the caller has full voicemail permission. - voicemail record can only be inserted through call_log provider if include_voicemails is set. Change-Id: I98f6778ace64fa752dc0525c5ce4e5eb83b2e689
* Added checks in voicemail provider to not expose call_log fields.Debashish Chatterjee2011-06-171-0/+18
| | | | | | | | | | - Voicemail provider now has check to ensure that no field outside of its projection is accesible. - Moved functionality to check ContentValues against a projection map to DbQueryUtils. - Associated test cases. Change-Id: I23033c96f74f0ab981152f70e585c69ba5284602
* Voicemail provider implementation within ContactsProvider.Debashish Chatterjee2011-06-155-0/+202
- New voicemail provider class - all voicemail operations restricted to only 'voicemail' call type. - new voicemail permissions (currently defined in the manifest file itself) Change-Id: I32b916c5b4a53e93bafbecf7df7bee3f5e27fee6