summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix unit tests for ICU 50Jay Shrauner2013-02-273-30/+61
| | | | | | | Fix tests to account for fixes made in ICU 50. Add some additional tests. Bug: Change-Id: I7d1fb0588f56b58da5c5177823ed5c16c4603e24
* Merge "Call new init function to use for testing, to turn off app ops." into ↵Dianne Hackborn2013-02-272-2/+2
|\ | | | | | | jb-mr2-dev
| * Call new init function to use for testing, to turn off app ops.Dianne Hackborn2013-02-262-2/+2
| | | | | | | | Change-Id: I81c749401c54c9f3facc921b7bc4e778a33ea22e
* | Use ICU JNI wrappers for phonebook labelsJay Shrauner2013-02-256-245/+760
|/ | | | | | | | | | Switch from using native code registered as sqlite callbacks to using JNI wrappers for accessing ICU AlphabeticIndex. Stop using specialized sort keys for Simplified Chinese because ICU code can correctly label the characters directly. Bug: Change-Id: I0568b3a406495c147c7b9b3e72835d11d93f9d16
* Call ICU lib for Pinyin transliterationJay Shrauner2013-02-192-440/+84
| | | | | | | | Switch from using hard coded tables copied from ICU to calling ICU Transliterator directly for Pinyin transliteration. Bug: Change-Id: I87aae623dfe049a90cee213182275aa51a7dcd9c
* Fix issue #8152662: Unable to share a contact via EmailDianne Hackborn2013-02-081-0/+16
| | | | | | | | | | | | | | | When contacts provider internally recurses into itself, we need to clear the binder calling identity before doing so, so that it is consistent with the calling package name we will now be using. Note that this also means that we won't be doing any further permission checks against the original caller for these internal provider calls... which is probably more correct anyway, because we've already done the permission check on the original incoming URI and we wouldn't want that to now fail due to some permission strangeness on another URI it is using internally. Change-Id: Icc3903287f91f35959a80168a6c107b1803f93a8
* Merge "Fix collation/indexing for i18n contacts"Jay Shrauner2013-02-061-33/+29
|\
| * Fix collation/indexing for i18n contactsJay Shrauner2013-01-031-33/+29
| | | | | | | | | | | | | | | | | | | | | | | | Fix issue of contacts appearing under wrong label--sort contacts by sort key, not by label. Fix handling of labels that require more than the first character (eg Czech 'CH') by using entire sortkey--not just the first letter-- to determine label. Bug:7351596 Change-Id: Iaabc63041540f621220d0463df3e0850684caa94
* | Import translations. DO NOT MERGEBaligh Uddin2013-02-041-1/+1
| | | | | | | | | | Change-Id: Ic347ccd02c4a6a9956824df0ee18a869e69ddce9 Auto-generated-cl: translation import
* | Start tracking content provider app ops.Dianne Hackborn2013-01-153-0/+5
| | | | | | | | Change-Id: I899c3ae507a0e4feb95c8142b09b92e1fd87eefe
* | Merge "Include name prefix in search index"Yorke Lee2013-01-151-3/+0
|\ \
| * | Include name prefix in search indexYorke Lee2013-01-151-3/+0
| | | | | | | | | | | | | | | Bug: 6987476 Change-Id: I99816c32938b5b3db5f79d816d91d814ab9dca6c
* | | Use phonetic name as display name if no other given nameYorke Lee2013-01-101-0/+11
|/ / | | | | | | | | Bug: 7942098 Change-Id: I0c43b6e78471631f6400d836311ec84658f063c9
* | Standardize search algorithm between People and DialerYorke Lee2013-01-081-2/+2
|/ | | | | Bug: 5930716 Change-Id: Ic7cfffae5de878be683d27f92ccb5b034dc217c3
* Fixing missing punctuation for punctuation search case.Chiao Cheng2012-12-211-1/+10
| | | | | | | | | | | | | | | | | | | Previous CL I9cbdf10d21c79f53bc621bacb7eeeb95a6a2435f fixed missing punctuation at the start when searching without punctuation. (e.g. {hello}) This CL fixes the case where leading punctuation is missing if you searched with a leading punctuation. (e.g. {'hello}). The content provider uses a different code path when it detects multi-words and snippeting is actually done in sqlite using the FTS snippet method. The check for multi-word was treating {'hello} as two words. This means that multi-word searches will still have this issue as it still uses the sqlite snippet method. Leaving this to a separate CL since it's a riskier change. Bug: 5929143 Change-Id: I4c2451b2e8eb47d5831e6ef6cfcca538ff3599b9
* Provide helpful log message on attempt to downgrade SQL versionYorke Lee2012-12-131-0/+10
| | | | | Bug: 7709971 Change-Id: I1a7eff95ff76e21b3b29535f09c95591469b707f
* am 75a0a0b0: am dacd5de1: Change default sort order for email queries.Chiao Cheng2012-11-264-12/+147
|\ | | | | | | | | * commit '75a0a0b0ece29241b4712126af53841d5dcdb442': Change default sort order for email queries.
| * am dacd5de1: Change default sort order for email queries.Chiao Cheng2012-11-264-12/+147
| |\ | | | | | | | | | | | | * commit 'dacd5de146b413de86d38b6f56a3fe0b2af4b155': Change default sort order for email queries.
| | * Change default sort order for email queries.Chiao Cheng2012-11-264-12/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Prioritizing "default" emails over last used emails. - Added ordering for same domain emails as last order by. Bug: 7183241 Bug: 7346215 Change-Id: I6a8ba3cfe08792693eec4896f16853a88713bc3f
* | | am b036f674: am f5c0020b: Rebuild SQLITE_STAT1 table after drop operations.Makoto Onuki2012-11-162-15/+71
|\ \ \ | |/ / | | | | | | | | | * commit 'b036f6745c97e7bd654ee1b44122ceece917dd47': Rebuild SQLITE_STAT1 table after drop operations.
| * | am f5c0020b: Rebuild SQLITE_STAT1 table after drop operations.Makoto Onuki2012-11-152-15/+71
| |\ \ | | |/ | | | | | | | | | * commit 'f5c0020b87709f9c4c3de66a49c0893e2c2adebb': Rebuild SQLITE_STAT1 table after drop operations.
| | * Rebuild SQLITE_STAT1 table after drop operations.Makoto Onuki2012-11-142-15/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SQLITE_STAT1 table has the estimated number of rows for each table and index, which is used to calculate a query plan for queries. The problem is that, DROP TABLE and DROP INDEX appear to remove the corresponding row from the stats table. This could cause SQLite to choose inefficient query plans. This CL will make sure to rebuild the stats table after such operations. Added a new boolean paramter rebuildSqliteStats to all methods that exectue DROP TABLE/INDEX. If it's set, they'll call updateSqliteStats() to rebuild the contents. Bug 7426624 Change-Id: I1c373b902856d1a24b6c0c8379899a235ee284c4
* | | Merge "Use Objects from guava library."Chiao Cheng2012-11-141-1/+1
|\ \ \
| * | | Use Objects from guava library.Chiao Cheng2012-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch com.android.internal.util.Objects to com.google.common.base.Objects. Technically this change is not necessary for the provider but it nice to use the same code everywhere. And since the provider already has a dependency on guava anyways, this doesn't hurt. Bug: 6948882 Change-Id: I565d65f00b1f25c4ae1bf3c8086c10ab2f31dfd5
* | | | am 1e6561dd: (-s ours) am 17f1fe1a: Reconcile with jb-mr1-factory-release ↵The Android Open Source Project2012-11-060-0/+0
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | jb-mr1-release - do not merge * commit '1e6561ddfc941d51592a4285c8fe2d054ed29f02':
| * | am 17f1fe1a: Reconcile with jb-mr1-factory-release jb-mr1-release - do not mergeThe Android Open Source Project2012-11-060-0/+0
| |\ \ | | |/ | | | | | | * commit '17f1fe1a960db78c84aaa753c784a4df513a1d3d':
| | *-. Reconcile with jb-mr1-factory-release jb-mr1-release - do not mergeThe Android Open Source Project2012-11-060-0/+0
| | |\ \ | | | |/ | | | | | | | | Change-Id: I8819d77d2cd0f33d9f4e5553a5b2d4639fe4ec47
* | | | am 94fc236d: am 0e014723: am 2a9d1fab: Merge "Make CONTACTS_AS_MULTI_VCARD ↵Makoto Onuki2012-10-021-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | locale safe" * commit '94fc236d199460bddc390ce7f384b446c14df622': Make CONTACTS_AS_MULTI_VCARD locale safe
| * | | am 0e014723: am 2a9d1fab: Merge "Make CONTACTS_AS_MULTI_VCARD locale safe"Makoto Onuki2012-10-021-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '0e014723e6d5d2acc3d59b78cee9a6d1fbfef1e9': Make CONTACTS_AS_MULTI_VCARD locale safe
| | * \ \ am 2a9d1fab: Merge "Make CONTACTS_AS_MULTI_VCARD locale safe"Makoto Onuki2012-10-021-1/+1
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '2a9d1fab1669d2962aa830872f063c1180fbea94': Make CONTACTS_AS_MULTI_VCARD locale safe
| | | * \ \ Merge "Make CONTACTS_AS_MULTI_VCARD locale safe"Makoto Onuki2012-10-021-1/+1
| | | |\ \ \
| | | | * | | Make CONTACTS_AS_MULTI_VCARD locale safeJohan Redestig2012-10-021-1/+1
| | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SimpleDateFormat was used with the default locale to build SQL statements; this is unsafe for some locales. Switched to Locale.US. Change-Id: I7307b12e1f3d796e1bb4a73d97918d0162ca971e
* | | | | | am ffed1ede: (-s ours) Reconcile with jb-mr1-release - do not mergeThe Android Open Source Project2012-10-020-0/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | * commit 'ffed1ede87553f8d6a104a5e92945fd5fa4557f9':
| * | | | | Reconcile with jb-mr1-release - do not mergeThe Android Open Source Project2012-10-020-0/+0
| |\ \ \ \ \ | | | |_|_|/ | | |/| | | | | | | | | Change-Id: Ib983813de597b2eabfc0e4657a5945c8791a5c88
| | * | | | merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-10-020-0/+0
| | |\ \ \ \ | | | |_|_|/ | | |/| | |
| | | * | | merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-09-280-0/+0
| | | |\ \ \
* | | | \ \ \ Merge "Cancellation of queries for search suggestions."Piotr Jastrzebski2012-10-023-11/+14
|\ \ \ \ \ \ \
| * | | | | | | Cancellation of queries for search suggestions.Piotr Jastrzebski2012-10-013-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Passing CancellableSignal from ContactsProvider2.queryLocal to GlobalSearchSupport.handleSearchSuggestionsQuery, GlobalSearchSupport.addSearchSuggestionsBasedOnFilter and SQLiteDatabase.rawQuery. Search App needs this change to cancel queries for search suggestions which are no longer valid due to some user action. Change-Id: Ie019afff31bf49ba96a88899e829813075ab141e
* | | | | | | | am 0a78ee3a: am d2f6ad6d: Make sure to rebuild search index on locale changes...Makoto Onuki2012-10-015-18/+112
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| / / / / / / | |/ / / / / / | | | | | | | * commit '0a78ee3aeeb33711d44993be61e3d48f78e2d640': Make sure to rebuild search index on locale changes...
| * | | | | | am d2f6ad6d: Make sure to rebuild search index on locale changes...Makoto Onuki2012-10-015-18/+112
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit 'd2f6ad6d50b5570327f8cca3b2d2bdcaec36ea90': Make sure to rebuild search index on locale changes...
| | * | | | | Make sure to rebuild search index on locale changes...Makoto Onuki2012-10-015-18/+112
| | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so that search will still work even after changing the locale. - Rebuild the search index upon locale changes, as it contains locale-sensitive data. - Also make sure to update the in-memory collator in NameNormalizer upon locale changes. - Rebuild the search index on the next db upgrade in order to fix the search index which already contains invalid data. Bug 7251461 Change-Id: Id579a67de792a52a0091bf76d7c5d374f76f1639
* | | | | | am 54658c3e: am 9ff25876: Make sure to invalidate fast index cache whenMakoto Onuki2012-09-281-0/+2
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '54658c3ede6c33fe5e62f9895fa509776973002e': Make sure to invalidate fast index cache when
| * | | | | am 9ff25876: Make sure to invalidate fast index cache whenMakoto Onuki2012-09-271-0/+2
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '9ff2587608416b4378767141ad396f51f23040a7': Make sure to invalidate fast index cache when
| | * | | | Make sure to invalidate fast index cache whenMakoto Onuki2012-09-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aggregation changes. Bug 7249008 Change-Id: I6022dca2e56a6a4cdfcde4d936289881a40d1012
* | | | | | am 863474b4: (-s ours) Reconcile with jb-mr1-release - do not mergeThe Android Open Source Project2012-09-280-0/+0
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | * commit '863474b4a1a118d1d9181cf46f3466ccd0efa6b2':
| * | | | | Reconcile with jb-mr1-release - do not mergeThe Android Open Source Project2012-09-270-0/+0
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | Change-Id: Ibdb66a3b7b73717c90a2b08f6c2d2cf6c237b8ce
| | * | | | merge in jb-mr1-release history after reset to jb-mr1-devThe Android Automerger2012-09-270-0/+0
| | |\ \ \ \ | | | |/ / / | | |/| | |
* | | | | | am a78c7b6f: am 7b4a5d52: Remove Secure setting usage.Jeff Sharkey2012-09-261-4/+1
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit 'a78c7b6f1168f12d46dc0f880124c3cf3b7d80eb': Remove Secure setting usage.
| * | | | | am 7b4a5d52: Remove Secure setting usage.Jeff Sharkey2012-09-261-4/+1
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '7b4a5d522df5282cd7dac655b4c673c06d1f449b': Remove Secure setting usage.
| | * | | | Remove Secure setting usage.Jeff Sharkey2012-09-261-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 7232230 Change-Id: Ie40bda16e24df96530c80506a74747a4b2c16cb5