summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Update database schema for saving of subscription info in call logNancy Chen2014-06-262-2/+17
| | | | | | | | | | Added fields "component_name" and "subscription_id" to call log table in order to save information about the subscription responsible for placing a call. Additionally made sure relevant tests pass. Bug: 15473965 Change-Id: I0ed99452c3cdfdba31f1a71fb342406b0652e282
* Protect undemote method with permission checkYorke Lee2014-06-251-0/+3
| | | | | | | | Undemoting goes through a separate code path as the rest of the CP2 queries/updates, so we need to do a permission check for the WRITE_CONTACTS permission Change-Id: I547270376c55f6ff311d5712eef8a6b0b923eee8
* Show caller PID in the verbose log.Makoto Onuki2014-06-241-5/+8
| | | | Change-Id: I1d42a39eb8a27d65b4208dd2174f919929b0fb94
* Update PinnedPositions API (1/2)Yorke Lee2014-06-201-79/+0
| | | | | | | | | Follow the framework changes that deleted UPDATE_URI in ContactsContract.PinnedPositions Bug: 15593967 Change-Id: Ibf5b0d7fa7588b60742b324ba125075e28d9cc81
* PinnedPositions API changesYorke Lee2014-06-191-1/+10
| | | | | | | | | Add UNDEMOTE_METHOD that is called to undemote a contact Fix CP2 tests to use batch content provider operations instead of PinnedPositions.UPDATE_API Bug: 15593967 Change-Id: Id93c6ac0e214e59107725416b7865c56c9df32f3
* Updates SQL alias in CP2Paul Soulos2014-06-191-2/+2
| | | | Change-Id: I73c0b8ee1833feefc60fa7024276222fcfb146c5
* Added usage stats to EntityPaul Soulos2014-06-191-3/+6
| | | | Change-Id: Idf06de011d1c01ea7dda174189e676177f9c5847
* Add READ_ALL_VOICEMAILS Permision to VoicemailPermissions, ↵fafaisland2014-06-173-14/+46
| | | | | | | | | | VoicemailContentProvider and CallLogProvider Bug:15695227 Change-Id: I244541c847c07450535a52d0bf38199b55387202
* Fix aggregation merging of null display namesJay Shrauner2014-05-271-0/+4
| | | | | | | Fix aggregation merging if first raw contact lacks a display name. Bug:15192402 Change-Id: Ibf125c1bbe7f5fc55302ea66ec405567930de300
* Merge "Catch 0 width/height scaled Bitmap sizes"Jay Shrauner2014-05-231-1/+6
|\
| * Catch 0 width/height scaled Bitmap sizesJay Shrauner2014-05-231-1/+6
| | | | | | | | | | | | | | | | | | | | Change getNormalizedBitmap to catch attempts to scale bitmap to 0 width or height (which would throw an uncaught IllegalArgumentException) and instead throw an IOException, which is caught and handled by the higher level code. Bug:15189759 Change-Id: Ifb23d0b0d4e1c2e8038b472840a464194fbfa800
* | Merge "Add reserved upgrade version."Santos Cordon2014-05-221-0/+5
|\ \ | |/ |/|
| * Add reserved upgrade version.Santos Cordon2014-05-151-0/+5
| | | | | | | | | | Bug: 14990572 Change-Id: I0b5d4e305bc8104ec5ccc6c8fb692ba618ffff5f
* | Fix acore crash in DB upgradeJay Shrauner2014-05-191-1/+0
|/ | | | | | | | Remove unused getProperty() call in upgradeLocaledata() that created a recursive call to getDatabase() Bug:15091283 Change-Id: I372763aaff3daf47c3b191c3dc669d26a4b25a62
* Support secondary localesJay Shrauner2014-04-185-71/+387
| | | | | | | | | | Add support for tracking a secondary locale in addition to the current primary locale for CP2. Switch to using parseable ICU language tag (eg, "en-US") for locale tag written to DB. Secondary locale is set to previous locale on locale change and persisted in CP2 DB and prefs. Bug:8715226 Change-Id: Ia68397fd9118d89f3a45ac54f991f86bad42870e
* Replace the global mValues reference in ContactsProvider2.javaBen Gilad2014-04-071-239/+271
| | | | | | by local instances. Change-Id: If520599d00dc51dc6e2c99bfedd2baa90e4eb28e
* One more cleanup CL before the change to remove/replace mValues.Ben Gilad2014-04-042-985/+865
| | | | | | | | | | | Shouldn't include any functional changes, mostly focused on dead-code removal, also removing unused/unnecessary code/logic, tightening up access modifiers (e.g. using private vs. public) as much as possible, using Java's built-in iteration when applicable, grouping variables by static/non-static and access modifiers (e.g. private members last, etc). Change-Id: I4fa6af136b5da0ae6183eadce4798746b18813cb
* Merge "Partial revert of db1acfece867c4133e1749826f74f5b4e8eed1b2 ↵Makoto Onuki2014-04-031-161/+113
|\ | | | | | | (http://ag/383391)"
| * Partial revert of db1acfece867c4133e1749826f74f5b4e8eed1b2Makoto Onuki2014-04-031-161/+113
| | | | | | | | | | | | | | | | | | | | | | (http://ag/383391) Do not use constants for initializing the UriMatcher -- it'll make it hard to glance supported URIs. Bug 13302012 Change-Id: Ic24e535828cff6111bd0649519e24bcc1a9d2a3b
* | Remove some dead/unused/boilerplate code.Ben Gilad2014-04-021-108/+93
|/ | | | Change-Id: I8f7a232cd2b2452a46444bb6b8f45df05f8e1e81
* Bump database version to rebuild search indexYorke Lee2014-03-261-1/+8
| | | | | Bug: 11059351 Change-Id: I17e123859765d8194d463ec412e44e55f479cf73
* Correctly append contact IDs in SearchIndexManagerYorke Lee2014-03-261-2/+2
| | | | | Bug: 11059351 Change-Id: I5d5193e37bf6cdbf059779f745cc73314c751962
* Update search index for entire contact when raw contact is modifiedYorke Lee2014-03-261-11/+13
| | | | | | Bug: 11059351 Change-Id: I7c8989fd8505f888f5bc8605e68a2d73d0142b76
* Add IN_DEFAULT_DIRECTORY to views and projectionsBrian Attwell2014-03-042-1/+16
| | | | | Bug: 13173524 Change-Id: I6c0947d4978e204ce1268f65eab5e1cc66bda664
* Do not ignore leading "*"s in phone lookupsBrian Attwell2014-02-282-7/+172
| | | | | | | | | | | | | | | | | | | | | | After a phone lookup, "remove" entries from the cursor that don't match the queried number w.r.t. to whether it has a leading "*". "Removing" entries from a cursor involves making a partial copy of the cursor. This CL affects as little functionality as possible, so that it can make it into MR2. Ie, we continue to ignore leading "*"s in other CP2 queries. MANUAL TESTS: -Add a "*123" Emergency contact and "123" Voicemail contact -Call "*123", then call "123". You should see two seperate entries in your call log. In addition, the incall screens should show Emergency and Voicemail respectively (although the "123" call doesn't work properly inside the incall UI right now. This is a seperate bug b/13195342). Bug: 13195334 Change-Id: I7e1938ccb085630072611eb63148c5714b62fee8
* Respect user-defined selection in STREQUENTS queryYorke Lee2014-01-271-2/+3
| | | | | | | | The starred portion of the query in the starred+frequents query does not respect the user's selection. This CL adds the selection as an AND clause in the query. Change-Id: Ie36931b0733e3aab05c3d7e2461843e5f3ec7f2d
* Fix EMAIL_FILTER ranking for duplicate emails in different accountsYorke Lee2014-01-101-1/+6
| | | | | | | | | | | | | | | | | When there are there are two identical email data items, each belonging to a different sync adapter account, the "SELECT DISTINCT" operator causes the two emails to be incorrectly grouped before the account prioritization sort order is applied. This can cause the email address to be labelled with the wrong account, causing it to be incorrectly ranked as an email address from another account. To fix this, account name and type is added to the group by clause to ensure that each email address is grouped correctly based on their account before ranking them by account priority. Bug: 12207447 Change-Id: Ib79f6c36ee6a83838bcaa82487f2f7fb9716bbf4
* Fixes cases when a contact was deleted via the contacts app.Chiao Cheng2013-11-221-0/+4
| | | | | | | | | | | | | | In this case, the contact id of the raw contact is nulled out. This has the side effect of making the IN clause of sqlite never equal. Similar to: SELECT 1 as id WHERE id NOT IN (SELECT null); always returns 0 rows because the comparison to null is always false. Protect against this case by eliminating null contact ids. Bug: 11826565 Change-Id: Ide9b150bb7f94d03c210d43dbc8cdd5c42c21cf9
* am 0c52af7a: am c4065090: am 25441f56: Merge "Fix broadcast of ↵Chiao Cheng2013-11-071-0/+8
|\ | | | | | | | | | | | | CONTACTS_DATABASE_CREATED intent." into klp-dev * commit '0c52af7a3e137f131dcec1c45589291296911a87': Fix broadcast of CONTACTS_DATABASE_CREATED intent.
| * Fix broadcast of CONTACTS_DATABASE_CREATED intent.Chiao Cheng2013-11-071-0/+8
| | | | | | | | | | | | | | | | | | The intent needs to be fired after database creation in case the user does a clear data. This is needed in addition to the boot receiver to cover all cases. Bug: 11570016 Change-Id: Iaa3d952cc6db0a9c0e55e209f5fe41919ae7250a
* | Use content_uri constants instead of locally defined string.Chiao Cheng2013-11-012-114/+174
| | | | | | | | | | | | This makes it easier to trace URI to provider methods and visa versa. Change-Id: I7961eeba3b88362f1323483ede14865dc7f56948
* | am 901b8c98: am 116f57fe: Catch potential NPEJay Shrauner2013-10-092-7/+1
|\ \ | |/ | | | | | | * commit '901b8c98ecba095d53b8cc811a2c8c00ab0faad7': Catch potential NPE
| * Catch potential NPEJay Shrauner2013-10-092-7/+1
| | | | | | | | | | | | | | Catch case where country detector might return a null country Bug:11139097 Change-Id: I5d4841a8f8d852e18cff1f9c359d5e005c7e58b8
* | Merge "Fix Serbian address labels in non-Serbian locale"Jay Shrauner2013-10-021-3/+6
|\ \ | |/ |/|
| * Fix Serbian address labels in non-Serbian localeJay Shrauner2013-10-011-3/+6
| | | | | | | | | | | | | | | | | | | | Add Serbian labels to default set (previously was only using Ukrainian for Cyrillic languages when in a non-Cyrillic locale). This adds a net of 3 new labels to the default label set. Added unit tests for Serbian and Ukrainian unique characters. Bug:11030904 Change-Id: Id35bf963ea10b89554aa0743d0f215c124b44c8d
* | Filtes out legacy number in call logsChristine Chen2013-10-012-4/+24
| | | | | | | | | | Bug: 10966248 Change-Id: I297925f336114d98c1109158e19546e81f03fe90
* | Revert "Remove global search support."Mathew Inwood2013-09-303-2/+366
|/ | | | | The global search API is not being deprecated in this release, so we want to keep the support for it.
* Add IS_SUPER_PRIMARY to default phone only strequents projectionYorke Lee2013-09-241-0/+1
| | | | | Bug: 10888792 Change-Id: Id9fce5cfc66adfc1192ce752e8a3c2902de2e978
* Merge "Change CONTACTS_STREQUENTS for phone only queries" into klp-devYorke Lee2013-09-241-45/+57
|\
| * Change CONTACTS_STREQUENTS for phone only queriesYorke Lee2013-09-231-45/+57
| | | | | | | | | | | | | | | | | | This CL tweaks queries for CONTACTS_STREQUENTS to return phone numbers belonging to starred contacts as well. Before this, the returned cursor consisted of a mix of starred contacts (without their phone numbers), and frequently contacted phone numbers. Change-Id: If0ac847dd26f093d977403ca0100769f6c63be9b
* | Merge "Change frequents algorithm to return contacts in a different order" ↵Yorke Lee2013-09-231-8/+21
|\ \ | | | | | | | | | into klp-dev
| * | Change frequents algorithm to return contacts in a different orderYorke Lee2013-09-221-8/+21
| |/ | | | | | | | | | | | | | | | | | | | | Bucketing thresholds - 3 days - 7 days - 14 days - 30 days - Any contacts older than this are not shown Change-Id: I4940920c4eb8ad4f5d130adc0b2acd30a4d7aff6
* | Remove global search support.Mathew Inwood2013-09-203-366/+2
|/ | | | | | | | The global search API is being deprecated. Remove the code from the contacts provider that implements it, as nothing queries is anymore. Bug: 10487397 Change-Id: I590e98964e5774dd47340df9b38d252b63a5b915
* Fix PHONE_FILTER and CALLABLES_FILTER search behaviorYorke Lee2013-09-105-7/+19
| | | | | | | | | These two filters now only perform name lookups. The search index manager indexes names, nicknames, and organization title and company name for name lookups. Bug: 10680335 Change-Id: I283c61af64a2f104b7482a2819ed4b8a238cba04
* Rename getCallingPackage() to avoid clash.Jeff Sharkey2013-09-061-6/+6
| | | | | | | The framework now offers an authoritative getCallingPackage(). Bug: 10626527 Change-Id: I845ce60a092d944ea0351f10ee41dbf07b8dfecd
* Don't crash in CP2 if country detector is nullYorke Lee2013-08-291-6/+16
| | | | | Bug: 10539498 Change-Id: Ic094e472e5a567e1dc6be4cbd14c02938df1de47
* Fix bluetooth sharingYorke Lee2013-08-201-1/+2
| | | | | | Revert https://us3-mirror-googleplex-android-review.googlesource.com/#/c/344550 Change-Id: I03628d48b58d20605206f88a6dbb803b3486f25f
* Set UNKNOWN_LENGTH for assetFileDescriptorYorke Lee2013-08-161-3/+1
| | | | | | | | | This is needed so that ContentResolver.openFileDescriptor doesn't throw an exception because it can't handle non-unknown file lengths Bug: 9864852 Change-Id: I4daeec09bf9f332000eafc3edb1f7ef6046f5048
* Handle DEMOTE and UNDEMOTE in CP2Yorke Lee2013-08-052-7/+38
| | | | | | | | | | | * If a contact is UNDEMOTED, if it was previously DEMOTED, it will become UNPINNED. Otherwise, it will remain unchanged. * When two raw contacts are aggregated, the parent contact should inherit the lower pinned position of the two, not including negative integers. Change-Id: I74f41dfa327b8e5a79688b1e99eafbef7d9d58a0
* Add Data.contact_id to phone strequents projectionYorke Lee2013-07-311-0/+2
| | | | | | | This is needed so that operations on frequent contacts swipe to hide, pin, etc can operate on data.contact_id instead of data._id. Change-Id: I66005ebcbf7608b2b96961a5637a6736c1076ab9