summaryrefslogtreecommitdiff
path: root/android/sqlite3_android.cpp
Commit message (Collapse)AuthorAgeFilesLines
* sqlite: Remove useless function of tokenizeJinguang Dong2019-03-041-191/+0
| | | | | | | | | | | | Remove useless tokenize function as well the corresponding sqlite3_create_function Bug: none Test: sqlite unit tests Change-Id: Id4238ee2ac0b8f3fde1eedaa09d5340b5937fde1 Signed-off-by: Jizhong Wang <wangjizhong@huawei.com> Signed-off-by: mydongistiny <jaysonedson@gmail.com>
* Fix parameter checking logic error in tokenizeJinguang Dong2019-03-041-1/+1
| | | | | | | | | | | | | Tokenize requires 4 to 6 arguments. If this condition is not met, the program will return. But the judgment logic is always false. It should to change the '||' to '&&' operation. Bug: none Test: sqlite unit tests Change-Id: Id4238ee2ac0b8f3fde1eedaa09d5340b5937fde1 Signed-off-by: Jizhong Wang <wangjizhong@huawei.com> Signed-off-by: mydongistiny <jaysonedson@gmail.com>
* ICU is disabled by Android.bpJiyong Park2017-08-111-7/+0
| | | | | | | | | By using vendor.cflags, SQLITE_ENABLE_ICU is on/off from Android.bp. No need to def/undef it inside the source code. Bug: 64514237 Test: BOARD_VNDK_VERSION=current m -j libsqlite libsqlite.vendor Change-Id: If9771fa020e528445275281017e424a5bbc2ae99
* Don't use ICU when built for vendorsJiyong Park2017-08-101-2/+24
| | | | | | | | | libicuuc.so isn't available for vendors, thus ICU is turned off when libsqlite is built for vendors. Bug: 64104535 Test: BOARD_VNDK_VERSION=current m -j libsqlite.vendor Change-Id: I682502ba5bdc5f76a0363a95d01b1081c1bc01a4
* Convert external/sqlite to Android.bpColin Cross2017-04-191-1/+1
| | | | | | | See build/soong/README.md for more information. Test: m -j checkbuild Change-Id: I649eecd3948fbe49bb153b14a8eae9b110a79734
* external/sqlite/android cleanup.Elliott Hughes2016-09-131-12/+4
| | | | | | | | | Removes dead use of deprecated ucol_getShortDefinitionString. Converts PhoneNumberUtils tests to gtest. Bug: http://b/31459453 Change-Id: I4662e25d711868e21afb0661602c64852f0cef65
* am b4e9e379: Merge "fix build problem, when #define ENABLE_ANDROID_LOG 1"Elliott Hughes2013-03-061-1/+1
|\ | | | | | | | | * commit 'b4e9e379e360464d3d6bde3084e5b286238a9329': fix build problem, when #define ENABLE_ANDROID_LOG 1
| * fix build problem, when #define ENABLE_ANDROID_LOG 1Hyejin Kim2013-03-061-1/+1
| | | | | | | | Change-Id: I514750dd33ff5bd433d4ee167a2401d829d2fbe9
* | Remove GET_PHONEBOOK_INDEX callbackJay Shrauner2013-02-251-58/+0
| | | | | | | | | | | | | | Remove sqlite GET_PHONEBOOK_INDEX callback. Bug: Change-Id: I751bb4fdff89af1eccc4b21b67fddd0b802eeb61
* | Fix contacts index labels for i18nJay Shrauner2013-02-051-7/+1
|/ | | | | | | | Switch ContactsProvider to using ICU for generation of index labels, and remove custom KO and JA code. Add i18n test cases. Bug:7351596 Change-Id: I7ac25add8b29ff2c6c395f04a83b279b541e4125
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-061-11/+11
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I5ffb58901712f4db93de474c30833a46ebb4bc7c
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-1/+1
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: Iad9bddb01ef0d9b28e3969b9f8dfbb2cc2830b30
* Allow _DELETE_FILE trigger to delete files on secondary external storageMike Lockwood2011-07-071-6/+22
| | | | | Change-Id: I5281dda013f909c050fda712d3a0816173df277d Signed-off-by: Mike Lockwood <lockwood@android.com>
* Revert "Allow _DELETE_FILE trigger to delete files in /data/media"Mike Lockwood2011-01-121-7/+2
| | | | | | | | | The media provider is now using the emulated /mnt/sdcard file system, so this change is no longer necessary. This reverts commit 439e88e7d09bfeac4690f2d9df6533955aa4fa88. Change-Id: Ied12275767e3a399d7e455ac2102527ccd8b888d
* DO NOT MERGE. Adding a custom function to support legacy API compatibilityDmitri Plotnikov2011-01-061-0/+34
| | | | | Bug: 3210604 Change-Id: Ie65c053ec5178d6cd991f69a5a2b6d5d51938ade
* Allow _DELETE_FILE trigger to delete files in /data/mediaMike Lockwood2010-10-051-2/+7
| | | | | Change-Id: I8a3f620cd6633f2be47ac05e17ea642f00b71e91 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add PHONEBOOK_COLLATOR toward SQLite so that database users are able to sort ↵Daisuke Miyakawa2010-03-181-1/+40
| | | | | | | | | | | | | | | | | | | | | | based on phonebook in ja_JP locale. In the future, we may able to use PHONEBOOK_COLLATOR in the other locales, but we don't use the other phonebook collator now since we cannot estimate how impactful the change is. Now we have a customized phonebook collator in Japanese and we need it in ContactsProvider, we'll use only the collator. Do not use this collator in the other packages and locales now. We may decide revert it in the near future after furter investigatons. Need to submit I4dd1b047 to make this change actually effective. Without the change, we will have a phonebook collator for "previous" locale, not the current one. Bug: 2514026 Bug: 2373557 Bug: 2373553 Change-Id: If6f548c0a80fe01e779b4dfc46f74224003f1798
* Remove getPhoneticallySortableString() and its SQLite variant, both of which ↵Daisuke Miyakawa2010-03-171-60/+0
| | | | | | | | are now obsolete because we already have icu's collator. Remain getNormalizedString() but remove SQLite variant since the C function is used internally. Change-Id: If1e4b8388087b78e0f6418ac3c7be4c23f67ee0e
* Read external storage name from EXTERNAL_STORAGE variable.Ray Chen2010-03-121-2/+3
| | | | Change-Id: I9d5bd02f23882dd85e91075e897150cafa33ffe5
* Implementing traditional grouping of Hiragana characters in contacts listsDmitri Plotnikov2010-03-031-5/+13
| | | | | Bug: 2407129 Change-Id: I8d83f9012846f61484b76f718e8127090eba39ec
* Introducing a new SQLite extension function: GET_PHONEBOOK_INDEXDmitri Plotnikov2010-03-031-12/+65
| | | | | | | | This function will produce a normalized upper case first letter from a given string. Bug: 2407129 Change-Id: Idfafca04342d43ef43cfdff0e431e0a6a8cf5c68
* Revert the default phone number comparation algorithm.Daisuke Miyakawa2009-09-201-4/+22
| | | | | | | | | Now developers have to explicitly set the third argument of PHONE_NUMBERS_COMPARE() into 1, when they want to use "strict" phone number comparation algorithm, which was used in Donut. In default, PHONE_NUMBER_COMPARE() now uses "loose" phone number comparation algorithm, which had been used in Cupcake. Internal issue id: 1892808
* Added 'tag' column to SQLite _TOKENIZE function.Bjorn Bringert2009-05-191-14/+38
| | | | | | | If the new optional 6th argument <data_tag> is given to _TOKENIZE, the 'tag' column is set to <data_tag>. This can for example be used to record from which column the tokens come when tokens are extracted from multiple columns.
* Hand merge from cupcake_dcm from donut, part 1.Daisuke Miyakawa2009-05-181-0/+29
| | | | Add SQL functions "GET_PHONETICALLY_SORTABLE_STRING()" and "GET_NORMALIZED_STRING()" and its tests.
* Add token_index column to _TOKENIZE table.Bjorn Bringert2009-05-141-7/+46
| | | | | | | | | | | | | If the new optional fifth argument to _TOKENIZE is non-zero, the _TOKENIZE function now uses a third column, token_index, in addition to the earlier token and source columns. The new column stores the index of the token within the string. This is useful for distingusihing between matches that are prefixes of the original string, and matches that are prefixes of one of the tokens inside the original string. This change is required to fix http://b/issue?id=1847321
* Don't allow '/../' to be part of the path for delete file triggers.Marco Nelissen2009-05-061-1/+5
|
* AI 143231: am: CL 143056 Fix PhoneticStringUtils so that it ignores ↵Daisuke Miyakawa2009-03-271-1/+3
| | | | | | | | | whitespaces correctly. Original author: dmiyakawa Merged from: //branches/cupcake/... Automated import of CL 143231
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-131-1/+29
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+396
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-396/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+396