summaryrefslogtreecommitdiff
path: root/android/sqlite3_android.cpp
AgeCommit message (Collapse)Author
2019-08-27sqlite3_android.cpp: disable _TOKENIZENick Kralevich
Comment out the tokenize function. This code doesn't appear to be used. A future change will further clean up this code and delete it properly. Bug: 139186193 Test: compiles and boots Change-Id: I0b2c37b6716162228205fc1ca8bea0f397f36baf
2019-07-18Support loose comparison using minimum matched charsTaesu Lee
Specific min match is required for each country. Test: Manual Change-Id: I2f1355c4ba712170464e4c23a916024e0bf58e71 Merged-In: I2f1355c4ba712170464e4c23a916024e0bf58e71 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com> Bug:134246556
2017-08-11ICU is disabled by Android.bpJiyong Park
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
2017-08-10Don't use ICU when built for vendorsJiyong Park
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
2017-04-19Convert external/sqlite to Android.bpColin Cross
See build/soong/README.md for more information. Test: m -j checkbuild Change-Id: I649eecd3948fbe49bb153b14a8eae9b110a79734
2016-09-13external/sqlite/android cleanup.Elliott Hughes
Removes dead use of deprecated ucol_getShortDefinitionString. Converts PhoneNumberUtils tests to gtest. Bug: http://b/31459453 Change-Id: I4662e25d711868e21afb0661602c64852f0cef65
2013-03-06am b4e9e379: Merge "fix build problem, when #define ENABLE_ANDROID_LOG 1"Elliott Hughes
* commit 'b4e9e379e360464d3d6bde3084e5b286238a9329': fix build problem, when #define ENABLE_ANDROID_LOG 1
2013-03-06fix build problem, when #define ENABLE_ANDROID_LOG 1Hyejin Kim
Change-Id: I514750dd33ff5bd433d4ee167a2401d829d2fbe9
2013-02-25Remove GET_PHONEBOOK_INDEX callbackJay Shrauner
Remove sqlite GET_PHONEBOOK_INDEX callback. Bug: Change-Id: I751bb4fdff89af1eccc4b21b67fddd0b802eeb61
2013-02-05Fix contacts index labels for i18nJay Shrauner
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
2012-01-06Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I5ffb58901712f4db93de474c30833a46ebb4bc7c
2012-01-03Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block
See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: Iad9bddb01ef0d9b28e3969b9f8dfbb2cc2830b30
2011-07-07Allow _DELETE_FILE trigger to delete files on secondary external storageMike Lockwood
Change-Id: I5281dda013f909c050fda712d3a0816173df277d Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-12Revert "Allow _DELETE_FILE trigger to delete files in /data/media"Mike Lockwood
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
2011-01-06DO NOT MERGE. Adding a custom function to support legacy API compatibilityDmitri Plotnikov
Bug: 3210604 Change-Id: Ie65c053ec5178d6cd991f69a5a2b6d5d51938ade
2010-10-05Allow _DELETE_FILE trigger to delete files in /data/mediaMike Lockwood
Change-Id: I8a3f620cd6633f2be47ac05e17ea642f00b71e91 Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-18Add PHONEBOOK_COLLATOR toward SQLite so that database users are able to sort ↵Daisuke Miyakawa
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
2010-03-17Remove getPhoneticallySortableString() and its SQLite variant, both of which ↵Daisuke Miyakawa
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
2010-03-12Read external storage name from EXTERNAL_STORAGE variable.Ray Chen
Change-Id: I9d5bd02f23882dd85e91075e897150cafa33ffe5
2010-03-03Implementing traditional grouping of Hiragana characters in contacts listsDmitri Plotnikov
Bug: 2407129 Change-Id: I8d83f9012846f61484b76f718e8127090eba39ec
2010-03-03Introducing a new SQLite extension function: GET_PHONEBOOK_INDEXDmitri Plotnikov
This function will produce a normalized upper case first letter from a given string. Bug: 2407129 Change-Id: Idfafca04342d43ef43cfdff0e431e0a6a8cf5c68
2009-09-20Revert the default phone number comparation algorithm.Daisuke Miyakawa
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
2009-05-19Added 'tag' column to SQLite _TOKENIZE function.Bjorn Bringert
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.
2009-05-18Hand merge from cupcake_dcm from donut, part 1.Daisuke Miyakawa
Add SQL functions "GET_PHONETICALLY_SORTABLE_STRING()" and "GET_NORMALIZED_STRING()" and its tests.
2009-05-14Add token_index column to _TOKENIZE table.Bjorn Bringert
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
2009-05-06Don't allow '/../' to be part of the path for delete file triggers.Marco Nelissen
2009-03-27AI 143231: am: CL 143056 Fix PhoneticStringUtils so that it ignores ↵Daisuke Miyakawa
whitespaces correctly. Original author: dmiyakawa Merged from: //branches/cupcake/... Automated import of CL 143231
2009-03-13auto import from //branches/cupcake_rel/...@138607The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project