summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | Reverting is_primary sort order back to previous priority.Chiao Cheng2013-02-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 8129961 Change-Id: If6dd3b5ebec19ef7c9fea493d90f0e8d88435f01
* | | | | | | Fix unit tests for ICU 50Jay Shrauner2013-02-271-3/+3
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix tests to account for fixes made in ICU 50. Add some additional tests. Bug: Change-Id: I7d1fb0588f56b58da5c5177823ed5c16c4603e24
* | | | | | Use ICU JNI wrappers for phonebook labelsJay Shrauner2013-02-254-186/+506
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-191-411/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | Start tracking content provider app ops.Dianne Hackborn2013-01-152-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-262-3/+62
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | * commit '75a0a0b0ece29241b4712126af53841d5dcdb442': Change default sort order for email queries.
| * | | | | am dacd5de1: Change default sort order for email queries.Chiao Cheng2012-11-262-3/+62
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit 'dacd5de146b413de86d38b6f56a3fe0b2af4b155': Change default sort order for email queries.
| | * | | | Change default sort order for email queries.Chiao Cheng2012-11-262-3/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | | | 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 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
| | | * | 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
* | | | | 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
* | | | | Make sure to rebuild search index on locale changes...Makoto Onuki2012-10-014-18/+60
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Make sure to invalidate fast index cache whenMakoto Onuki2012-09-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aggregation changes. Bug 7249008 Change-Id: I6022dca2e56a6a4cdfcde4d936289881a40d1012
* | | | Remove Secure setting usage.Jeff Sharkey2012-09-261-4/+1
| | | | | | | | | | | | | | | | | | | | Bug: 7232230 Change-Id: Ie40bda16e24df96530c80506a74747a4b2c16cb5
* | | | Merge "Send a broadcast when profile changes" into jb-mr1-devMakoto Onuki2012-09-121-1/+8
|\ \ \ \
| * | | | Send a broadcast when profile changesMakoto Onuki2012-09-121-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug 7148705 Change-Id: I3df22b7fc18a106f221f022f222d8fee566a24af
* | | | | Skip suffix match if mUseStrictPhoneNumberComparison is trueYorke Lee2012-09-121-22/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't do the suffix match during the phone number lookup match if mUseStrictPhoneNumberComparison is true. Bug: 7000177 Change-Id: I77e60117449cec6c37a9605ba4333a067d02a54c
* | | | | Change fallback method for contact matchingYorke Lee2012-09-122-12/+37
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified the fallback method that is used for contact matching whenever the original query fails to return a result. We previously performed a 7 digit match but this resulted in problems such as false positives when the area code is changed but the last 7 digits of a number are the same. The new fallback method uses the GB method of matching via the SQLite function phone_number_compare_loose. Bug: 7000177 Change-Id: I597b4b9e44ab2c4e4a5381832a3e9dfd0d51cf8f
* | | | am 3b1b1d5e: am 7d112d54: Merge "Update HanziToPinyin table and tests."Makoto Onuki2012-08-241-256/+256
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '3b1b1d5e732728ea7d60b408ab03f42e5d9ace8f': Update HanziToPinyin table and tests.
| * | | am 7d112d54: Merge "Update HanziToPinyin table and tests."Makoto Onuki2012-08-241-256/+256
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '7d112d54a173e6d6172aeeff5fa7dfee4abc2d73': Update HanziToPinyin table and tests.
| | * | Update HanziToPinyin table and tests.Xiaotao Duan2012-08-241-256/+256
| | | | | | | | | | | | | | | | Change-Id: I160208ede00a4f63b257a0b6cc59ff5ad153960d
* | | | Inprove database dumpMakoto Onuki2012-08-162-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use the best compression ratio. - Report the correct file size via DumpFileProvider, so that Gmail will be able to show an error if the file is too large. (gmail has ~25M limit.) In case it's too large, we can ask the user to use Drive instead. Change-Id: I625bf8913aa6fc2fce25130a219720b8d1a8896b
* | | | Merge "Make "export contacts database" more secure" into jb-mr1-devMakoto Onuki2012-08-143-38/+215
|\ \ \ \
| * | | | Make "export contacts database" more secureMakoto Onuki2012-08-143-38/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't put the dump file on the SD card. Instead, put it in the internal cache directory which is protected by the filesystem permissions. In order to make it attachable on gmail, create a shim content provider and sends a content: URI for this provider. The dump file can be read only from the apps that knows its name, which we pass via the SEND intent. Each dump file has a unique 256-bit random name, so it's virtually impossible to for other apps to read them. Bug 6813842 Change-Id: I3ca081e696e4e432e2bf7eb701595c508cd19409
* | | | | Merge "Adding limit and offset parameters to calllog provider." into jb-mr1-devChiao Cheng2012-08-141-5/+37
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Adding limit and offset parameters to calllog provider.Chiao Cheng2012-08-031-5/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow client to pass in limit and offset parameters in uri. Bug: 6849968 Change-Id: I535086449bfa76a5d8bc66567070141b76d19503
* | | | | Merge "Don't leave stale normalized number when updating..." into jb-mr1-devMakoto Onuki2012-08-101-3/+1
|\ \ \ \ \
| * | | | | Don't leave stale normalized number when updating...Makoto Onuki2012-08-101-3/+1
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with invalid number. Also ContactsProvider2Test.testPhonesNormalizedNumber() should now work in non-us countries too. Bug 6960308 Change-Id: Ib15115f501ce67797dec8d05dc421f5931341b12
* | | | | resolved conflicts for merge of 3646b108 to jb-mr1-devJean-Baptiste Queru2012-08-101-204/+296
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / Change-Id: I2ca60f4e861128143bbfe7eb688b255432423a9d
| * | | am 28f87c6c: Merge "Sync HanziToPinyin tables with ICU 4.6."Jean-Baptiste Queru2012-08-101-204/+296
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '28f87c6cb3aedeb92c8e870de22b580e3e634da2': Sync HanziToPinyin tables with ICU 4.6.
| | * | Merge "Sync HanziToPinyin tables with ICU 4.6."Jean-Baptiste Queru2012-08-101-204/+296
| | |\ \
| | | * | Sync HanziToPinyin tables with ICU 4.6.Xiaotao Duan2012-08-021-204/+296
| | | | | | | | | | | | | | | | | | | | Change-Id: I6b6b144a460fbbf233222313559bbc546745d328
* | | | | Merge "Add debug activity to export all data files as a zip"Makoto Onuki2012-07-202-0/+244
|\ \ \ \ \
| * | | | | Add debug activity to export all data files as a zipMakoto Onuki2012-07-192-0/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow us to collect contacts database files even from user build devices where "adb root" is disabled. This is simialr to what CalendarProvider does in CalendarDebugActivity. The difference is it'll export all files under "/data/data/com.android.providers.contacts/", including the profile db and highres photo files. To launch the activity: adb shell am start -a com.android.providers.contacts.DUMP_DATABASE I'm planning to add somethig to the people app to fire off this intent, so that users will be able to do it without adb. The activity will show a warning message with "Start", "Delete" and "Cancel" buttons. - "Cancel" will close the dialog. - "Start" will create a zip file. After that, it'll present the activity chooser to let the user choose which app to use to send it with. - "Delete" will delete the ZIP file. We need to make sure to ask the user to do this once sending email is succeessfully finished (unfortunately there's no way for us to detect it programmatically), as any apps with the "read sdcard" parmission will be able to read it otherwise. In the future, we may want to add options to, for example, exclude the profile db or exclude highres pictures. Bug 6813842 Change-Id: Id181efad65194ed39b0a0bc1226252da62b8927e