History log of /external/sqlite/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c999ff8c12a4cf81cb9ad628f47b2720effba5e5 30-Aug-2011 The Android Automerger <android-build@android.com> merge in ics-release history after reset to master
575c175ad1eb0be1d23f8ef636ff317ee6c045da 30-Aug-2011 The Android Automerger <android-build@android.com> merge in ics-release history after reset to master
488d783673190a2d9eece46eb0255587ebdfe6e5 26-Aug-2011 Kenny Root <kroot@google.com> Use pread64 instead of lseek/read

Using pread64 instead of lseek/read makes half the syscalls. Would you
like some free performance?

Change-Id: I2942adc18878ae80b41862aba945cd50e285bb95
ist/Android.mk
ab991729275540230fba73c359c18065daa7f55e 12-Jul-2011 Jeff Brown <jeffbrown@google.com> Remove the simulator target from all makefiles.
Bug: 5010576

Change-Id: Ided77f7e44149b71ec74e24e42da7df0bd5fae2e
ist/Android.mk
5a34599bae6690eb529d9907737c8a1cfd8efb81 07-Jul-2011 Mike Lockwood <lockwood@android.com> Allow _DELETE_FILE trigger to delete files on secondary external storage

Change-Id: I5281dda013f909c050fda712d3a0816173df277d
Signed-off-by: Mike Lockwood <lockwood@android.com>
ndroid/sqlite3_android.cpp
8f2498715a3164869578e505475495525ee55b28 13-Apr-2011 Jean-Baptiste Queru <jbq@google.com> am 02552612: (-s ours) Merge "resolve a bad merge"

* commit '0255261244c020a651cf08edee541d4118e7f84d':
resolve a bad merge
0255261244c020a651cf08edee541d4118e7f84d 13-Apr-2011 Jean-Baptiste Queru <jbq@google.com> Merge "resolve a bad merge"
2c801c4eb7be91863015c20c6c9f5857c5444f94 13-Apr-2011 Jean-Baptiste Queru <jbq@google.com> resolve a bad merge

Change-Id: Ida862ad8cd71918217e47135a90e12bf0411c46e
ist/sqlite3.c
4462cee10216f3247637fba1fb9c0dd89941803f 03-Mar-2011 Vasu Nori <vnori@google.com> fix broken build

Change-Id: Ibeaa5ca225d1acc069fa391fbf68c5ae5ae5613f
ist/Android.mk
d7f807749afcf158f22cfa4b9b1d5ed2deee616a 03-Mar-2011 Ed Heyl <ed@google.com> resolved conflicts for merge of bd4d2cb1 to master

Change-Id: I7f557ac25759a3e7fd51a51cdbd69ba7be376cdb
bd4d2cb1791515d77d7663b8c670b64ab9b2fd0b 02-Mar-2011 David Turner <digit@android.com> am 41a36383: Merge "The SDK toolchain doesn\'t include readline or history. disable the feature"

* commit '41a36383afe9ab10aefa488acb1677f5675b2358':
The SDK toolchain doesn't include readline or history. disable the feature
41a36383afe9ab10aefa488acb1677f5675b2358 02-Mar-2011 David Turner <digit@android.com> Merge "The SDK toolchain doesn't include readline or history. disable the feature"
2065727d7e1ea2eb51ada18897c1f1b56bc5e6b2 02-Mar-2011 Justin Ho <justinho@google.com> Removing references to readline to fix build on Gubuntu

Change-Id: I5e7a1b78914ee5c2affe64c24eb90a280ee83f0f
ist/Android.mk
6620e5283fe46ea3561525133d97f009bab7658d 25-Feb-2011 Vasu Nori <vnori@google.com> more sqlite logging and handling of EINTR

Change-Id: Iecba43846cb2eef28261303043484f142a67f924
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
ddfa5a7ff6afc7f4e2c7d26d29527e375e36da11 21-Feb-2011 Bruce Beare <bruce.j.beare@intel.com> The SDK toolchain doesn't include readline or history. disable the feature

Change-Id: Icf977dc9c167ca1934c2058a681cea3bd9b1d95d
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
ist/Android.mk
eadd0b9d4c7c73acc90491f7408fc0061cd2b1a7 20-Feb-2011 Vasu Nori <vnori@google.com> bug:3353077 posible fix from sqlite authors..

downloaded from
http://www.sqlite.org/sqlite-amalgamation-374-201102200340.zip
Change-Id: Ia82628469b4c3646e0964934178b60fa7083ee76
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
7546d48226eb4d3ee0644e76aca96b38d4be6704 18-Feb-2011 Paul Westbrook <pwestbro@google.com> Turn down the walTrace logs

Change-Id: Ibeca4fcaeaec84e471d6b5191aabb13df609464a
ist/sqlite3.c
7682afb1de5a51e0c77840411cbcef05d733020c 17-Feb-2011 Paul Westbrook <pwestbro@google.com> Enable sqlite wal logging

This will help us track down bug: 3353077

Change-Id: I394a86908e8a534fbba1bbe21c6a450d95dbce9e
ist/sqlite3.c
a7f2505b7c0a984616deb66447d4a8cdf1e0bf27 12-Jan-2011 Mike Lockwood <lockwood@android.com> am 532ae779: Revert "Allow _DELETE_FILE trigger to delete files in /data/media"

* commit '532ae77972f66feecc96ae31b771cf6f68fd6556':
Revert "Allow _DELETE_FILE trigger to delete files in /data/media"
532ae77972f66feecc96ae31b771cf6f68fd6556 12-Jan-2011 Mike Lockwood <lockwood@android.com> Revert "Allow _DELETE_FILE trigger to delete files in /data/media"

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
ndroid/sqlite3_android.cpp
ist/Android.mk
0d26ebe63849e0d6cf491925146e43b94d6820ab 07-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 46bdb5c4: (-s ours) DO NOT MERGE. Adding a custom function to support legacy API compatibility

* commit '46bdb5c49f8374539ec89e85cbb1a9ee7b3a2b10':
DO NOT MERGE. Adding a custom function to support legacy API compatibility
46bdb5c49f8374539ec89e85cbb1a9ee7b3a2b10 06-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> DO NOT MERGE. Adding a custom function to support legacy API compatibility

Bug: 3210604
Change-Id: Ie65c053ec5178d6cd991f69a5a2b6d5d51938ade
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/PhoneNumberUtilsTest.cpp
ndroid/sqlite3_android.cpp
37214cd8af79110b7c8bd82855625287237d30ec 06-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding a custom function to support legacy API compatibility

Bug: 3210604
Change-Id: I6e9a20ec7887375b67c42a28cff54e2e9d399ea6
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/PhoneNumberUtilsTest.cpp
ndroid/sqlite3_android.cpp
95c34edce550d0869113085e0cd1b6b09e8fe38b 05-Jan-2011 Vasu Nori <vnori@google.com> latest and stable version of sqlite

this most probably will be sqlite for HC - unless some serious bugs come up
with this version.
Change-Id: Ib7d9023c861025fd28492ae133d21fc479c0c891
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
ist/version
0b161e0ce405b617a85d0f1b717bd3d7df056ced 15-Nov-2010 Kenny Root <kroot@google.com> Update to new Unicode.h includes

Change-Id: Ibb9ca5833f9c0b3313ff0e9bc70348d268aaf4e2
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtilsTest.cpp
6c75f0d20ef5ade654dc32eae196b6d212e9d353 04-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am 1c376985: Merge 59fa028a from open-source master

* commit '1c376985dd7602cd3542714b7eb46a5198270658':
Fix compilation error: invalid conversion from 'const char*' to 'char*'.
1c376985dd7602cd3542714b7eb46a5198270658 04-Nov-2010 Jean-Baptiste Queru <jbq@google.com> Merge 59fa028a from open-source master

Change-Id: I46a77b535ed15b474a6fe807b7630a0f2918c1be
59fa028a5d2ad7a61c876a188372e4cc59156d4c 03-Nov-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Fix compilation error: invalid conversion from 'const char*' to 'char*'."
439e88e7d09bfeac4690f2d9df6533955aa4fa88 05-Oct-2010 Mike Lockwood <lockwood@android.com> Allow _DELETE_FILE trigger to delete files in /data/media

Change-Id: I8a3f620cd6633f2be47ac05e17ea642f00b71e91
Signed-off-by: Mike Lockwood <lockwood@android.com>
ndroid/sqlite3_android.cpp
ist/Android.mk
de2b3240539802d409a25760d5cec9d4ebfd6686 30-Sep-2010 Vasu Nori <vnori@google.com> latest sqlite version from http://www.sqlite.org/draft/download.html

Change-Id: Ie6f1f5aaa1c3fe73af0fd71be5e749c1544ad684
ist/shell.c
ist/shell.c.orig
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
747c5732f8165a0c53ba0e11635727ea83b3d3bb 16-Sep-2010 Jesse Wilson <jessewilson@google.com> resolved conflicts for merge of 90f23688 to master

Change-Id: Ifa97db751da1aeeeb9d7450b04c909f0800ce140
90f23688416d9f4e1e5d0128dca5f26404b6898e 15-Sep-2010 Jesse Wilson <jessewilson@google.com> Support sqlite on the dalvikvm host build.

Change-Id: I900daf7f205f8f666eac9c4070d2e5c99d85b3b3
ndroid/Android.mk
ist/Android.mk
5b048aea8927cc0747debab2c0c5b618d9871985 04-Sep-2010 Vasu Nori <vnori@google.com> when dbclose fails, raise specific error from sqlite

the current error raised by sqlite - SQLITE_BUSY - is not helpful

Change-Id: Idbeed81b5b7349059e467b33a8641abf0b4aaeff
ist/sqlite3.c
ist/sqlite3.h
c48491f5d1fa01a4b8f0cb8f6d0bf822166a8376 25-Aug-2010 Mike Lockwood <lockwood@android.com> am 109038dd: (-s ours) Fix problem with const result from strchr() [DO NOT MERGE]

Merge commit '109038dd9c68bcc9ec5e247b7488c67785ac95fb'

* commit '109038dd9c68bcc9ec5e247b7488c67785ac95fb':
Fix problem with const result from strchr() [DO NOT MERGE]
109038dd9c68bcc9ec5e247b7488c67785ac95fb 19-May-2010 Mike Lockwood <lockwood@android.com> Fix problem with const result from strchr() [DO NOT MERGE]

Needed for simulator build on newer Ubuntu distributions.

Based on Ibb8cd3cdb4feae89a20eec56131e322f39721b1a

Change-Id: Ie574888128265e026973a5ac88ede87730eda7d4
ndroid/OldPhoneNumberUtils.cpp
167db392530067341c19b420050aa8a21b7f2616 19-Aug-2010 Daniel Lehmann <lehmannd@google.com> Put digits into an own segment with the title #

Change-Id: I5f3ae179d388c417abd512974df22fd78a699354
ndroid/PhonebookIndex.cpp
24667e1f6c948c54676a0d0fdc95c31f96683fab 17-Aug-2010 Rene Bolldorf <xsecute@googlemail.com> Fix compilation error: invalid conversion from 'const char*' to 'char*'.

Change-Id: I1116bf4360493f2cfed1158310ac2966abfedd56
ndroid/OldPhoneNumberUtils.cpp
e402679d640df63f301e5a42ce847764608a8b1d 13-Aug-2010 Vasu Nori <vnori@google.com> add Change-Id:If9542ae913b7ab90d1524c6e247fd64c4f8319e0 to master

this change got removed somewhere between Feb/2010 and froyo release.

Change-Id: Ic9e6673bd12d3197086db36d5d8689b6ca893dd7
ist/sqlite3.c
f35227e255a0ca42249b1f00ac07800c2407947b 16-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am 320e6966: add meta-files about 3rd party projects

Merge commit '320e6966e0d3ecf2eed56e9c2c03fe9e9040c84e'

* commit '320e6966e0d3ecf2eed56e9c2c03fe9e9040c84e':
add meta-files about 3rd party projects
320e6966e0d3ecf2eed56e9c2c03fe9e9040c84e 16-Jul-2010 The Android Open Source Project <initial-contribution@android.com> add meta-files about 3rd party projects

Change-Id: Ie2579cbb3c652172c5ec09116c2753911e2ccd0e
hirdPartyProject.prop
eaedcae89bc45d6bf6426edad6e39507722a8701 16-Jul-2010 Vasu Nori <vnori@google.com> for new databases, enable sqlite to use more performant fileformat

Change-Id: I385f18c4cc4386bbb76616723a5bc80e7b8e07cd
ist/Android.mk
ebc6b24ff37b903195b37f143a5791c9f02be8df 07-Jul-2010 Vasu Nori <vnori@google.com> latest sqlite with fix for WAL-caued corruption

Change-Id: I40056f72e4eecf8cbc39d91933cc604ab0c361c1
ist/shell.c
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
176bf03af2edfb2a45b66dcb5daf822cc50c499e 29-Jun-2010 Vasu Nori <vnori@google.com> latest sqlite WAL code with fix for schema changes bug

Change-Id: I6ceffb2b2513de699774483b5e75d7a5dfedb9df
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
71504cf29d6d55df7d2aac17ecb160f7e5470553 17-Jun-2010 Vasu Nori <vnori@google.com> sqlite with write-ahead-logging changes. alpha/beta quality

note to reviewers: this checkin is to see if write-ahead-logging
could work for android. this sqlite3 version still has bugs
but still checking in - to start testing the feature.

Change-Id: Ic401c78299e88fa864fe1adb345268b12457cac0
ist/shell.c
ist/shell.c.orig
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
d86d9905ede0a2a313e349e4d0b4ba43b64cf8c3 16-Jun-2010 Jim Shuma <jshuma@google.com> Revert "sqlite3 write-ahead-logging. alpha/beta quality code being checked-in"

This reverts commit 187750b12c5011b4ebfb35e76c12d50a52047227.
ist/shell.c
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
c296bf9f8755fadd4e87c76f0a66d9e626c51b55 15-Jun-2010 Vasu Nori <vnori@google.com> add support for android func/collators to command line tool

mistakenly taken out in Id64f1c5718cdaa04a8194bd7eeb374027c6c2cb0

Change-Id: I59d19ab5881d3d8e826c47117825e47c09f38dd1
ist/shell.c
187750b12c5011b4ebfb35e76c12d50a52047227 15-Jun-2010 Vasu Nori <vnori@google.com> sqlite3 write-ahead-logging. alpha/beta quality code being checked-in

why am I checking in alpha quality code? this is one of the latest code
drops from Richard Hipp (of sqlite.org) who is still developing this feature.
testing this feature to see if it will work for us.

Change-Id: Id64f1c5718cdaa04a8194bd7eeb374027c6c2cb0
ist/shell.c
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
abb2ce74764865a302ef2cae845501d34930bb48 11-Jun-2010 Vasu Nori <vnori@google.com> Merge "include android func/collators in sqlite3 command line tool on device"
cf253ad93d73d548ac61115890b3b4c0943fc2d4 11-Jun-2010 Vasu Nori <vnori@google.com> move some android code out of sqlite3.c

do this check in android_database_SQLiteDatabase.cpp
so that we have less of android-specific code in sqlite3.c

Change-Id: I334286a1a377b962b1a97dd2af00e194f035090e
ist/sqlite3.c
1c9f731c5a080b9b26a36b58da954b793ad3cd3b 11-Jun-2010 Vasu Nori <vnori@google.com> include android func/collators in sqlite3 command line tool on device

is there any reason why the sqlite3 command line tool on device
should not have android functions and collators

Change-Id: I86fc12c9c74b49a20c5647abc88c1bffd84591ee
ist/Android.mk
ist/shell.c
ist/shell.c.orig
d519668b62d5a402a2abc003c02e436f2424cdb8 19-May-2010 Mike Lockwood <lockwood@android.com> Fix problem with const result from strchr()

Needed for simulator build on newer Ubuntu distributions.

Change-Id: Ibb8cd3cdb4feae89a20eec56131e322f39721b1a
Signed-off-by: Mike Lockwood <lockwood@android.com>
ndroid/OldPhoneNumberUtils.cpp
d8a7a6080ef864166264e5e19311976477ae2941 05-May-2010 Vasu Nori <vnori@google.com> am 904607b8: add FTS3 _backward_compatibility mode to let apps use FTS1 or 2.
904607b881c63fad87fd72a78602d620792b58dc 04-May-2010 Vasu Nori <vnori@google.com> add FTS3 _backward_compatibility mode to let apps use FTS1 or 2.

bug:2651952
this mode was previously available in Eclair and below. this mode was removed
by me for no particular reason in Froyo.
this change doesn't bring in any new modules into sqlite. just
allows FTS1 or 2 apps be used with FTS3 running in backward compatibility mode

Change-Id: Id5d72b440a378dd6d6703ce99b5d3d70ffd0c80f
ist/Android.mk
ist/sqlite3.c
975f01b0fa996f6177b08aaf6e0681598388960c 26-Apr-2010 Raphael <raphael@google.com> am 71f6135e: Fix sqlite3 to build in Windows SDK under Linux
71f6135e246c60c5ded00d36a0aa978521292a5e 14-Apr-2010 Raphael <raphael@google.com> Fix sqlite3 to build in Windows SDK under Linux

(Merge master Change I4774eac5)
ist/Android.mk
c310938cd1f892b07103e3cff735e47199fd8ec2 14-Apr-2010 Raphael <raphael@google.com> Fix sqlite3 to build in Windows SDK under Linux

Change-Id: I4774eac53bd28d287a7ef139108ad4ffb9dac2ff
ist/Android.mk
e523d00e8bab4b5218eaece5cd78b1c61d39b8bf 08-Apr-2010 Vasu Nori <vnori@google.com> sqlite should assume corruption if file header is bad

sqlite doesn't think corruption when it detects bad file header. on android,
there should be no reason to try to open a database file and find
a bad header. so, add android patch to sqlite to assume corruption
when this occurs.

Change-Id: I6b26613852b5247799af35a9c8e166b32ba697ff
ist/sqlite3.c
ebcc71fd53ce7cf46aff607df2d4bff793837176 23-Mar-2010 Vasu Nori <vnori@google.com> apply couple of bug fixes from sqlite

applying the following bug fixes
http://www.sqlite.org/src/info/82dd61fccf
Sync the database file after a rollback
http://www.sqlite.org/src/info/6f368b5448
Modify the sqlite3_log() interface and implementation so that it never
uses dynamic memory allocation - to avoid deadlocking when called
while holding the memory allocator mutex.

Change-Id: I93929d2dacd399ae9bd291404bcdf2c512691254
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
ist/version
31089e078a4ef00cf4903b283d7f06c1a3af83ed 24-Feb-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add PHONEBOOK_COLLATOR toward SQLite so that database users are able to sort 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
ndroid/sqlite3_android.cpp
560b951f6455f0ad091213f217895109b4ccb19f 17-Mar-2010 Daisuke Miyakawa <dmiyakawa@google.com> Remove getPhoneticallySortableString() and its SQLite variant, both of which 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
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtils.h
ndroid/PhoneticStringUtilsTest.cpp
ndroid/sqlite3_android.cpp
76b3da43e488769ceaae0698e5e23cfde84b4ce2 12-Mar-2010 Ray Chen <raychen@google.com> Read external storage name from EXTERNAL_STORAGE variable.

Change-Id: I9d5bd02f23882dd85e91075e897150cafa33ffe5
ndroid/sqlite3_android.cpp
87ba5df965e08e3ad5cd3ad4ab3005cbc430429f 11-Mar-2010 Vasu Nori <vnori@google.com> Merge "remove dead code"
1ce7bcafdf93c120f644c6dd01ffac098dfe327e 10-Mar-2010 Vasu Nori <vnori@google.com> remove dead code

after the following CL is submitted, check this in
Change-Id: If07d4f67facf9b5806b8cd11879bae51f8daf322

Change-Id: Ie3c20489265aebdb83657343d25f1e9ecb7f2d84
ist/sqlite3.c
71da3616ee4fbd61b6f966b8c1bf3283d8020c1b 09-Mar-2010 Jean-Baptiste Queru <jbq@google.com> Add an empty CleanSpec.mk

Change-Id: I9115b7d737cdcaa30d06beb750797b90986443cd
leanSpec.mk
78def0198a7d8534604c83f5ba8dd6d306559a30 04-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing the phone book index for Japanese word "other"

Bug: 2487471
Change-Id: I90cef4eb2468c0a58067df984ee98da438aa0e5a
ndroid/PhonebookIndex.cpp
697658fcac202bdc60cf5169cc5d32138833d6f7 03-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Implementing traditional grouping of Hiragana characters in contacts lists"
4b2aeb8073512909db336dd297563f6d07df7537 03-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing traditional grouping of Hiragana characters in contacts lists

Bug: 2407129
Change-Id: I8d83f9012846f61484b76f718e8127090eba39ec
ndroid/PhonebookIndex.cpp
ndroid/PhonebookIndex.h
ndroid/sqlite3_android.cpp
3a4f6d71a885d4909299cc8dad8138d7407ecfcf 03-Mar-2010 Vasu Nori <vnori@google.com> Merge "merge vacuum bug fix from http://www.sqlite.org/src/info/e534223435"
049406b944167376e8973451e6a02846f26daaf3 03-Mar-2010 Vasu Nori <vnori@google.com> merge vacuum bug fix from http://www.sqlite.org/src/info/e534223435
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
ist/version
3a74962298118ee138e290c3458bccb895854b47 03-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Introducing a new SQLite extension function: GET_PHONEBOOK_INDEX

This function will produce a normalized upper case first letter
from a given string.

Bug: 2407129
Change-Id: Idfafca04342d43ef43cfdff0e431e0a6a8cf5c68
ndroid/Android.mk
ndroid/PhonebookIndex.cpp
ndroid/PhonebookIndex.h
ndroid/sqlite3_android.cpp
aae12b8a5af3a1ac77382b067d9ebb350fbd0644 02-Mar-2010 Vasu Nori <vnori@google.com> take # 2: update sqlite. now it builds on Mac also.

this is redoing the reverted CL
https://android-git.corp.google.com/g/#change,42672
ist/shell.c
ist/sqlite3.c
ist/sqlite3.h
7da544e045fff9ba2343adce7072846647809355 02-Mar-2010 Vasu Nori <vnori@google.com> revert shell.c also...
ist/shell.c
9d9edcf91e6d39f940ba1740956a12c0aef52334 02-Mar-2010 Vasu Nori <vnori@google.com> revert to old ersion until sqlite3.c builds correctly on mac

sqlite3 from DRH broke mac builds.
ist/sqlite3.c
ist/sqlite3.h
cd1b5450506dc71940b94bc7f5a74c1cc29bb7da 26-Feb-2010 Vasu Nori <vnori@google.com> get latest sqlite from froyo branch created by richard hipp @ sqlite

this will remove a lot of android specific code from sqlite in
external/sqlite/dist.
we are getting closer to using the public domain sqlite.
******* NOTE TO REVIEWERS *********
to compare, don't use gerrit. that will compare this sqlite3.c with
the currently-checkin version, showing you the differences
between this sqlite version and the previous sqlite version.
you may not care about that.
if you just need to see what android changes to sqlite are,
then compare the following two files in this CL
sqlite3.c.orig
sqlite3.c
ist/shell.c
ist/sqlite-amalgamation-3.6.22.tar.gz
ist/sqlite3.c
ist/sqlite3.c.orig
ist/sqlite3.h
ist/sqlite3.h.orig
ist/version
e568ad0c5f7ad9e4a47ce79711692ff1dc145fb6 19-Feb-2010 Vasu Nori <vnori@google.com> fix to address bug:2454891

log a message until sqlite guy gives me a fix to implement logging of
such events in a more elegant way (like sqlite3_trace)
ist/sqlite3.c
64417c986e826384f8699ff635b870457a32f91e 18-Feb-2010 Vasu Nori <vnori@google.com> add more log statements to debug # 2419869 (like CL 41134)
ist/sqlite3.c
2c792c96472ae32cf23f73a315395d1a836a3cc2 18-Feb-2010 Vasu Nori <vnori@google.com> update SOURCE_ID string in sqlite3.c to print the correct version
ist/sqlite3.c
a0a270362aa5f36351f6934484652e6b45960b83 18-Feb-2010 Vasu Nori <vnori@google.com> add more log statements to help debug 2419869

this STOPSHIP CL is adding to the previous STOPSHIP CL for this class of bugs
https://android-git.corp.google.com/g/#change,40395
ist/sqlite3.c
61cde95b5db6058ae24f813bf22afaa8dbefe432 11-Feb-2010 Vasu Nori <vnori@google.com> when sqlite encounters SQLITE_MISUE error, cause segfault. STOPSHIP.

this CL wil have to be reverted before shipping. thats why the STOPSHIP
comment all over this CL.
goal is to get stacktrace to help debug http://b/2419869 because it is
intermittently occuring bug and sqlite3 doesn't give enough info
when this error occurs.
Richard Hipp of sqlite is going to send a patch that will provide additional
info when this error occurs.
ist/sqlite3.c
282bc14a4c98cfeb9c9a75b52f7c0411fc7318f8 05-Feb-2010 Vasu Nori <vnori@google.com> revert a not-so-useful CL: 36e3a0c245c8985614630de04606907832a1c3c9

that CL isn't so useful. and it introduced a bug too: http://b/issue?id=2418478
plus, it added code to sqlite3.c. need to avoid doing that wherever possible
ist/sqlite3.c
57f278a3c500bce5b9eceec816c773916ae62af0 06-Feb-2010 Vasu Nori <vnori@google.com> Merge "a performance patch from sqlite authors for 3.6.22."
78c28328355fbe2b1d8acc6ec70b532abc508f4e 05-Feb-2010 Vasu Nori <vnori@google.com> a performance patch from sqlite authors for 3.6.22.

patch from sqlite is http://www.sqlite.org/src/ci/26cb1df735
ist/sqlite3.c
ist/version
1d4fd0b465588a0b0e5e40bfaa9e56a6deb66be5 05-Feb-2010 The Android Open Source Project <initial-contribution@android.com> am c944e589: am fbe53add: reconcile main tree with open-source eclair

Merge commit 'c944e58943ea6e07ac558c3e9da7567a87eaf660'

* commit 'c944e58943ea6e07ac558c3e9da7567a87eaf660':
android-2.1_r1 snapshot
c944e58943ea6e07ac558c3e9da7567a87eaf660 05-Feb-2010 The Android Open Source Project <initial-contribution@android.com> am fbe53add: reconcile main tree with open-source eclair

Merge commit 'fbe53addff17ab6c791dff077aefceb8a51bcdd0' into eclair-plus-aosp

* commit 'fbe53addff17ab6c791dff077aefceb8a51bcdd0':
android-2.1_r1 snapshot
fbe53addff17ab6c791dff077aefceb8a51bcdd0 05-Feb-2010 The Android Open Source Project <initial-contribution@android.com> reconcile main tree with open-source eclair
cc9b3cabf4066b55a7b8dabe59cdd6d6351eb74e 27-Jan-2010 Vasu Nori <vnori@google.com> remove temp dir to store journals - stored where the db file is at.
ist/Android.mk
ist/sqlite3.c
36e3a0c245c8985614630de04606907832a1c3c9 29-Jan-2010 Vasu Nori <vnori@google.com> Add more debugging info when database close() fails.

When database close() fails, sqlite gives a cryptic message
"unable to close due to unfinalised statements".
Added more info to this message to help developer look at one of the sql
statements that is not finalized and is causing this problem.
ist/sqlite3.c
e9820cedd7fc2d1340461d8c2c42e731105f6005 29-Jan-2010 The Android Open Source Project <initial-contribution@android.com> reconcile android-2.1_r1 snapshot
d98da3b4bcc340e4ebec13c4e28698435b74b2b1 28-Jan-2010 Vasu Nori <vnori@google.com> Merge commit '7f1ed8bc' into manualmerge
690bfc98575ebff6997f6cb2f04213f374749535 22-Jan-2010 Vasu Nori <vnori@google.com> don't need groupConcat func written for android

it has 2 bugs (1) needs to be extended to return strings longer than 1K
(2) the following bug
create table a1 (i int, j varchar(5));
insert 2 rows with j = ''
insert into a1 values(1,'');
insert into a1 values(1,'');
insert 2 rows with j = null
insert into a1 (i) values (2);
insert into a1 (i) values (2);
with original sqlite3 groupConcat func
select length(group_concat(j,' ')) from a1 where i = 1;
result is
1
with android sqlite3 groupConcat func
select length(group_concat(j,' ')) from a1 where i = 2;
result is
0
ist/sqlite3.c
f42bc645f21a407acc987793dcd5f8d6e53f828c 22-Jan-2010 Vasu Nori <vnori@google.com> on unsupported_file_format error, throw DBcorruption error (master branch)

unsupported file format error causes the database file NOT be deleted.
and that makes the app not recoverable.
by making it corruption error, db will get removed and app will get re-inited,
even though removing the DB is on corruption is extreme.
but that is a different issue..
ist/sqlite3.c
7f1ed8bc6f48970285edf01689116bfd14b16afd 21-Jan-2010 Vasu Nori <vnori@google.com> am 8f178b47: FOR MR3: add eventlog entry for all corruption cases in sqlite3.c

Merge commit '8f178b47c678d0b53c035b5066ad0d55f7399228' into eclair-plus-aosp

* commit '8f178b47c678d0b53c035b5066ad0d55f7399228':
FOR MR3: add eventlog entry for all corruption cases in sqlite3.c
8f178b47c678d0b53c035b5066ad0d55f7399228 21-Jan-2010 Vasu Nori <vnori@google.com> FOR MR3: add eventlog entry for all corruption cases in sqlite3.c

this should help in identifying the line of code in sqlite3.c reporting
database corruption.
this is a redo of this CL: https://android-git.corp.google.com/g/#change,37799
(because the old CL was submitted to master branch, but I meant to submit it
to mr3)
ist/sqlite3.c
a4356a0ea71404ae414a07eafd7b95b91cc88c8c 21-Jan-2010 Vasu Nori <vnori@google.com> upgrade sqlite from 3.5.9 to 3.6.22

you should notice the following from the Android changes in 3.5.9
1. Android Changes are grouped wherever possible.

To Do
1. sqlite3_get_pager_stats() needs to be completed
2. Android change lines 63480-63482 on master branch in sqlite3.c is
not ported yet. can't see where it goes in 3.6.22 code.
ist/Android.mk
ist/shell.c
ist/sqlite-amalgamation-3.6.22.tar.gz
ist/sqlite3.c
ist/sqlite3.h
ist/version
345cf30e665f069652f2f88ab04aa4cae0133c78 20-Jan-2010 Vasu Nori <vnori@google.com> add eventlog entry for all corruption cases in sqlite3.c.

this should help in identifying the line of code in sqlite3.c reporting
database corruption.
ist/sqlite3.c
65851168b107cb921992937479cdf1ae86aa18ad 13-Jan-2010 The Android Open Source Project <initial-contribution@android.com> android-2.1_r1 snapshot
16db8c86d523dab8fcb49befd369e6aef426c9ca 08-Jan-2010 Vasu Nori <vnori@google.com> am 8d413dec: am 2ea3148c: remove usage of poison_patch from sqlite.

Merge commit '8d413dec5d886c47bc4244f69d34d2d6bb2a576d'

* commit '8d413dec5d886c47bc4244f69d34d2d6bb2a576d':
remove usage of poison_patch from sqlite.
8d413dec5d886c47bc4244f69d34d2d6bb2a576d 08-Jan-2010 Vasu Nori <vnori@google.com> am 2ea3148c: remove usage of poison_patch from sqlite.

Merge commit '2ea3148cdef0350e4b7283b54dc47138e64ce418' into eclair-plus-aosp

* commit '2ea3148cdef0350e4b7283b54dc47138e64ce418':
remove usage of poison_patch from sqlite.
2ea3148cdef0350e4b7283b54dc47138e64ce418 08-Jan-2010 Vasu Nori <vnori@google.com> remove usage of poison_patch from sqlite.

Google gears team implemented a patch to sqlite called "poison the header".
It got included in sqlite android shipped.

This patch is meant to corrupt the database header if some sqlite process
concludes that the database is corrupt. Thereafter, any other sqlite process
opening the same database file would quickly see the corruption and exit.

I am not convinced that this is a useful patch for Android.
And, it patch didn't make it to the open source version of sqlite.

could it be causing previously nonexisting
database corruption, by incorrectly poisoning the database header? thats
what I am suspecting.
ist/Android.mk
5c5b80fca2de09f9bd85ef7439a37522b18a4882 07-Jan-2010 Vasu Nori <vnori@google.com> Don't use the "poison sqlite header" logic. could be a problem.

Google gears team implemented a patch to sqlite called "poison the header".
It got included in sqlite android shipped.

This patch is meant to corrupt the database header if some sqlite process
concludes that the database is corrupt. Thereafter, any other sqlite process
opening the same database file would quickly see the corruption and exit.

I am not convinced that this is a useful patch for Android.
And, it patch didn't make it to the open source version of sqlite.

could it be causing previously nonexisting
database corruption, by incorrectly poisoning the database header? thats
what I am suspecting.
ist/Android.mk
efb434b71e1afbb479356b8315e8e6508b37f848 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
f9c7cf8671d7eba68c10d5cbf987074a39a3d63c 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master

Merge commit 'goog/stage-korg-master' into HEAD
4ede0ae3b6f685482036f360e319a511b4b0dd75 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from eclair
327380bac7468a812eadec7fc6a291441e5eb734 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
ndroid/Android.mk
ndroid/OldPhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/PhoneNumberUtilsTest.cpp
ndroid/sqlite3_android.cpp
ist/Android.mk
49bab33506cc6772dcab16e0ef45d3d5a747cecb 23-Oct-2009 Wei Huang <weih@google.com> am fd20ece0: bug #2180646: make comparing "404-04" and "40404" return true in the native sqlite (loose) phone number comparison method.

Merge commit 'fd20ece0e27308d9b5e314b1cc8d5fa3a0d174ea' into eclair-mr2-plus-aosp

* commit 'fd20ece0e27308d9b5e314b1cc8d5fa3a0d174ea':
bug #2180646: make comparing "404-04" and "40404" return true in the native sqlite (loose) phone number comparison method.
fd20ece0e27308d9b5e314b1cc8d5fa3a0d174ea 23-Oct-2009 Wei Huang <weih@google.com> bug #2180646: make comparing "404-04" and "40404" return true in the native sqlite (loose) phone number comparison method.

- when comparing two numbers whose dialable char length is less than the MIN_MATCH (7), treat them as equal if the dialable portion of the numbers match.
ndroid/OldPhoneNumberUtils.cpp
354426713488ecc54330d1eae8c420249b8d5cc1 21-Sep-2009 Wei Huang <weih@google.com> am 468ecb95: fix failing test.

Merge commit '468ecb9591c35466d0a89b96d205da636a6f66a1' into eclair-plus-aosp

* commit '468ecb9591c35466d0a89b96d205da636a6f66a1':
fix failing test.
468ecb9591c35466d0a89b96d205da636a6f66a1 21-Sep-2009 Wei Huang <weih@google.com> fix failing test.

Change-Id: I11fc145464e29364dbf302c1e607a07031e1821d
ndroid/PhoneNumberUtilsTest.cpp
99c0951b4a36ffd0135e7b9daa727d88b1ece084 21-Sep-2009 Wei Huang <weih@google.com> am 3fffdd37: make native sqlite phone_number_compare_loosely use MIN_MATCH of 7 instead of 5.

Merge commit '3fffdd3714c6d4de821269bcefb65d897151c2f2' into eclair-plus-aosp

* commit '3fffdd3714c6d4de821269bcefb65d897151c2f2':
make native sqlite phone_number_compare_loosely use MIN_MATCH of 7 instead of 5.
3fffdd3714c6d4de821269bcefb65d897151c2f2 21-Sep-2009 Wei Huang <weih@google.com> make native sqlite phone_number_compare_loosely use MIN_MATCH of 7 instead of 5.

Change-Id: Ie0dde105e810c07e05471182cd0c0f81045731ef
ndroid/OldPhoneNumberUtils.cpp
41316242b1c05a05710b0e09b9a87206b46087e1 20-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 7bb17d6e: Small change

Merge commit '7bb17d6e6c99d4b2fa23ab57020cef4040373b24' into eclair-plus-aosp

* commit '7bb17d6e6c99d4b2fa23ab57020cef4040373b24':
Small change
7bb17d6e6c99d4b2fa23ab57020cef4040373b24 20-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Small change
ndroid/Android.mk
f85b70ba18fd9cbf75870cbe8081977eeedcadad 20-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 948a119c: Revert the default phone number comparation algorithm.

Merge commit '948a119c94f8b69760437c7d1e784b498cd9b766' into eclair-plus-aosp

* commit '948a119c94f8b69760437c7d1e784b498cd9b766':
Revert the default phone number comparation algorithm.
948a119c94f8b69760437c7d1e784b498cd9b766 20-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Revert the default phone number comparation algorithm.

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
ndroid/Android.mk
ndroid/OldPhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/PhoneNumberUtilsTest.cpp
ndroid/sqlite3_android.cpp
4b326ff626ac3c4c15c7ec044b53b94f316b072b 19-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> am b3b8a9da: Fix the implementation of phone_number_compare in accordance with the tests in PhoneNumberUtils.java.

Merge commit 'b3b8a9dac508afdbac8de93a31a752c60e34e254' into eclair-plus-aosp

* commit 'b3b8a9dac508afdbac8de93a31a752c60e34e254':
Fix the implementation of phone_number_compare in accordance with the tests in PhoneNumberUtils.java.
b657dd7b4df299062313700b7f7e5e4d9dd5bb71 04-Sep-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
c128d5e0edcf0259dab850e440004904bde31808 03-Sep-2009 Jean-Baptiste Queru <jbq@google.com> merge from donut
b3b8a9dac508afdbac8de93a31a752c60e34e254 01-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix the implementation of phone_number_compare in accordance with the tests in PhoneNumberUtils.java.

Due to the Thailand's special case, the code became a little nastier than before, but I believe it is inevitable...
ndroid/Android.mk
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtilsTest.cpp
c4554aff0878ac850c1d07d041961e828eb3c726 01-Sep-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
db6e3c88e800f912f6b5709733fc477ff6e0c55d 01-Sep-2009 Jeff Hamilton <jham@android.com> am 07a39f12: Merge change 23409 into donut

Merge commit '07a39f12058ddbc9bcf9200e4d5883e4f4b6fd95' into eclair

* commit '07a39f12058ddbc9bcf9200e4d5883e4f4b6fd95':
Avoid a buffer overrun in GET_NORMALIZED_STRING.
07a39f12058ddbc9bcf9200e4d5883e4f4b6fd95 01-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23409 into donut

* changes:
Avoid a buffer overrun in GET_NORMALIZED_STRING.
cc6719f08251a892e435f8d9d44e9d8fa18d7cbe 01-Sep-2009 Jeff Hamilton <jham@android.com> Avoid a buffer overrun in GET_NORMALIZED_STRING.

This custom SQL function uses a fixed buffer of
128 characters and would overrun the buffer if
passed a longer src string.

Also, fix another problem with the function
where it was using the incorrect value for
next_codepoint. It was reading from the
destination array not the source array.

Bug: 2089658
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtilsTest.cpp
50db2efc4d4e41ddf4788a1d8e3eea352364639d 01-Sep-2009 Wei Huang <weih@google.com> am 0d04c4ca: fix bug 2015059: where the native sqlite comparison method phone_number_compare() treated all alpha addresses as the same phone number.

Merge commit '0d04c4caa9c0464f555eed458abf2ac7d997ad7d' into eclair

* commit '0d04c4caa9c0464f555eed458abf2ac7d997ad7d':
fix bug 2015059: where the native sqlite comparison method phone_number_compare() treated all alpha addresses as the same phone number.
0d04c4caa9c0464f555eed458abf2ac7d997ad7d 01-Sep-2009 Wei Huang <weih@google.com> fix bug 2015059: where the native sqlite comparison method phone_number_compare() treated all alpha addresses as the same phone number.

- changed phone_number_compare() to handle alpha chars. Before this change the algorithm skipped over all non-dialable chars for
comparison, and thus treating "foo" and "bar" as the same addresses. now we don't skip any char that's alpha. This would treat
"foo" and "bar" as separate addresses, as well as treating "1-800-flowers" and "800-flowers" as the same number.
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtilsTest.cpp
e1542198c8ea4d244fbd7e97c22b02abff1ca850 09-Nov-2008 Alexey Tarasov <tarasov@dodologics.com> Removed libdl from LDFLAGS when building on FreeBSD
ist/Android.mk
e9f4268266b65edb3e11641dc551269c6fcf5630 04-Aug-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
37a328e96c5feee101c4071b1729102258dd28bf 29-Jul-2009 Jean-Baptiste Queru <jbq@google.com> merge from donut
37b104ee6bb4b8c8b20af535b83903fff5730684 26-Jul-2009 Jean-Baptiste Queru <jbq@google.com> reconcile korg/master into goog/master
2a430a056ac731932633e24b8a1a079776948416 26-Jul-2009 Jean-Baptiste Queru <jbq@google.com> Merge korg/donut into korg/master
dd38bd546e62d6207c1a867c6295da7161727df0 21-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> am b020ccd8: One more test, which is succesful (and should be successful), but unexpectedly...

Merge commit 'b020ccd8772182ddfccba30b5adbc500982b59c1'

* commit 'b020ccd8772182ddfccba30b5adbc500982b59c1':
One more test, which is succesful (and should be successful), but unexpectedly...
2ec6f6ab7dfb1eadbcab68f0b1394e3eb3ab89fb 21-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> am cfdd4a72: Fix a bug in which "16\d+6" matches 166 and the number is handled as Thailand one...

Merge commit 'cfdd4a7238fb93f2144f48dd814d786414eb025d'

* commit 'cfdd4a7238fb93f2144f48dd814d786414eb025d':
Fix a bug in which "16\d+6" matches 166 and the number is handled as Thailand one...
b020ccd8772182ddfccba30b5adbc500982b59c1 21-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> One more test, which is succesful (and should be successful), but unexpectedly...
ndroid/PhoneNumberUtilsTest.cpp
cfdd4a7238fb93f2144f48dd814d786414eb025d 21-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix a bug in which "16\d+6" matches 166 and the number is handled as Thailand one...
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtilsTest.cpp
81197b90d2e09118b4a18428cdd97fbdf91844da 15-Jul-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'goog/readonly-korg-master' into merge_korg_master
34ca649872024b3853d799b41c9fc1191d0c1635 10-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> am c30779b9: Oops! I was totally misunderstanding what was going wrong!!

Merge commit 'c30779b9aa9fa2dd7946b8af63a4fb72d50a99dd'

* commit 'c30779b9aa9fa2dd7946b8af63a4fb72d50a99dd':
Oops! I was totally misunderstanding what was going wrong!!
c30779b9aa9fa2dd7946b8af63a4fb72d50a99dd 10-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> Oops! I was totally misunderstanding what was going wrong!!

Changed -1 to 0.
ndroid/PhoneticStringUtilsTest.cpp
f86962094fddc13792dc45fd95c218eb9b86579b 10-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 441321a8: Make sim-ang not corrupt when building PhoneticUtilsTest.cpp You can double-check by doing this: > make libsqlite3_phone_number_utils_test

Merge commit '441321a8431b4b66fa61d6deb443e7927e69fdbd'

* commit '441321a8431b4b66fa61d6deb443e7927e69fdbd':
Make sim-ang not corrupt when building PhoneticUtilsTest.cpp
441321a8431b4b66fa61d6deb443e7927e69fdbd 10-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make sim-ang not corrupt when building PhoneticUtilsTest.cpp
You can double-check by doing this:
> make libsqlite3_phone_number_utils_test

However, I'm doubting the current breakage is caused not only this but also another something.
I'll stay tuned.
ndroid/PhoneticStringUtilsTest.cpp
fa6825c21fed45dab7661bc2eee8c8e2fbca09c9 09-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 1ec1f3de: quick fix

Merge commit '1ec1f3dec4ec6e1e5ed45b4d859a9f433e085354'

* commit '1ec1f3dec4ec6e1e5ed45b4d859a9f433e085354':
quick fix
8f0bc38eea9fbe489d2eb39cd3a692a45cdd2c5c 09-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> am e919af56: Make PhoneticStringUtils use functions in String8 instead of using locally developped functions.

Merge commit 'e919af569c13d7445daf20cb06867e186afba92a'

* commit 'e919af569c13d7445daf20cb06867e186afba92a':
Make PhoneticStringUtils use functions in String8 instead of using locally developped functions.
dfeea94fdf055c399b5de72b3610c05e9816482a 09-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> am f06f5fa3: "Rewrite" PhoneNumberUtil so that it compares two phone strings using as many characters as possible, unlike the previous implementation. Unlike the change 5480, this considers the NDD-problem mentioned in the internal issue 1949010. This time, 1-650-555-

Merge commit 'f06f5fa351ded0b9e04e15efa7e34f0f085fc9df'

* commit 'f06f5fa351ded0b9e04e15efa7e34f0f085fc9df':
"Rewrite" PhoneNumberUtil so that it compares two phone strings using as many characters as possible, unlike the previous implementation.
1ec1f3dec4ec6e1e5ed45b4d859a9f433e085354 09-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> quick fix
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtilsTest.cpp
e919af569c13d7445daf20cb06867e186afba92a 26-Jun-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make PhoneticStringUtils use functions in String8 instead of using locally developped functions.

This change depends on https://android-git.corp.google.com/g/Gerrit#change,5510

Internal bug id: 1707173
ndroid/Android.mk
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtils.h
ndroid/PhoneticStringUtilsTest.cpp
ist/Android.mk
f06f5fa351ded0b9e04e15efa7e34f0f085fc9df 07-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> "Rewrite" PhoneNumberUtil so that it compares two phone strings using as many characters as possible, unlike the previous implementation.
Unlike the change 5480, this considers the NDD-problem mentioned in the internal issue 1949010.
This time, 1-650-555-1234 and 650-555-1234 match each other.

Added tests for the cases.

related internal issue: 1868702, 1949010
ndroid/Android.mk
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/PhoneNumberUtilsTest.cpp
372d659a7a29b51096486beb87fe1ec476f8a2ce 07-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> am ab3ee7de: Revert ""Rewrite" PhoneNumberUtil so that it compares two phone strings using as many characters as possible, unlike the previous implementation."

Merge commit 'ab3ee7de06d0451d0a34cbd982006f62928e4b48'

* commit 'ab3ee7de06d0451d0a34cbd982006f62928e4b48':
Revert ""Rewrite" PhoneNumberUtil so that it compares two phone strings using as many characters as possible, unlike the previous implementation."
ab3ee7de06d0451d0a34cbd982006f62928e4b48 07-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> Revert ""Rewrite" PhoneNumberUtil so that it compares two phone strings using as many characters as possible, unlike the previous implementation."

This reverts commit de43094477419f8a190a6f97b47d346827310a02.

related internal issue: 1949010
ndroid/Android.mk
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/PhoneNumberUtilsTest.cpp
6307e4d204c6805baef44a2d5ff99bae0a75ce62 26-Jun-2009 Daisuke Miyakawa <dmiyakawa@google.com> am de430944: "Rewrite" PhoneNumberUtil so that it compares two phone strings using as many characters as possible, unlike the previous implementation. The new implementation considers country code seriously.

Merge commit 'de43094477419f8a190a6f97b47d346827310a02'

* commit 'de43094477419f8a190a6f97b47d346827310a02':
"Rewrite" PhoneNumberUtil so that it compares two phone strings using as many characters as possible, unlike the previous implementation.
de43094477419f8a190a6f97b47d346827310a02 26-Jun-2009 Daisuke Miyakawa <dmiyakawa@google.com> "Rewrite" PhoneNumberUtil so that it compares two phone strings using as many characters as possible, unlike the previous implementation.
The new implementation considers country code seriously.

To confirm this change does not do something wrong, I also created another change (https://android-git.corp.google.com/g/Gerrit#change,4036).
All tests related to PhoneNumberUtils pass, including Thailand's ugly buggy behavior around country code handling :-P

Also Add tests for PhoneNumberUtils, which can be executed in the usual workstation like this:
> g++ -Wall external/sqlite/android/PhoneNumberUtils.cpp external/sqlite/android/PhoneNumberUtilsTest.cpp
> ./a.out

This change fixes the internal bug 1868702.
ndroid/Android.mk
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/PhoneNumberUtilsTest.cpp
50421c7aff65f49ca4e5b06da84148208d088c08 23-Jun-2009 Sriram Raman <sriramkraman@google.com> am 0ff6f71d: Remove libsqlite3_phonetic_string_utils_test from tests build

Merge commit '0ff6f71d24bbde0087c8d2bd0a94d699117e2562'

* commit '0ff6f71d24bbde0087c8d2bd0a94d699117e2562':
Remove libsqlite3_phonetic_string_utils_test from tests build
0ff6f71d24bbde0087c8d2bd0a94d699117e2562 23-Jun-2009 Sriram Raman <sriramkraman@google.com> Remove libsqlite3_phonetic_string_utils_test from tests build
ndroid/Android.mk
603ae2ff7480edcef2e93d0362898935824aee8a 19-May-2009 Bjorn Bringert <bringert@android.com> am 754d83d5: Added \'tag\' column to SQLite _TOKENIZE function.

Merge commit '754d83d532872f02046ddaa2ef57bfe1607346b6'

* commit '754d83d532872f02046ddaa2ef57bfe1607346b6':
Added 'tag' column to SQLite _TOKENIZE function.
754d83d532872f02046ddaa2ef57bfe1607346b6 18-May-2009 Bjorn Bringert <bringert@android.com> Added 'tag' column to SQLite _TOKENIZE function.

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.
ndroid/sqlite3_android.cpp
f890a25e8f49ca1c1880cfa494af925b17db4ca3 19-May-2009 Daisuke Miyakawa <dmiyakawa@google.com> am d28cdc45: Hand merge from cupcake_dcm from donut, part 1.

Merge commit 'd28cdc45c5e3f29f8904759293c813ad0a58329e'

* commit 'd28cdc45c5e3f29f8904759293c813ad0a58329e':
Hand merge from cupcake_dcm from donut, part 1.
9ddb5ca32747bf2bfae7d6fd1bc6fcd6da293a25 18-May-2009 Bjorn Bringert <bringert@android.com> am 687f1165: Add token_index column to _TOKENIZE table.

Merge commit '687f1165e7f61d3842e6b8f4ba28d0473fff529b'

* commit '687f1165e7f61d3842e6b8f4ba28d0473fff529b':
Add token_index column to _TOKENIZE table.
d28cdc45c5e3f29f8904759293c813ad0a58329e 18-May-2009 Daisuke Miyakawa <dmiyakawa@google.com> Hand merge from cupcake_dcm from donut, part 1.

Add SQL functions "GET_PHONETICALLY_SORTABLE_STRING()" and "GET_NORMALIZED_STRING()" and its tests.
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtils.h
ndroid/PhoneticStringUtilsTest.cpp
ndroid/sqlite3_android.cpp
687f1165e7f61d3842e6b8f4ba28d0473fff529b 13-May-2009 Bjorn Bringert <bringert@android.com> Add token_index column to _TOKENIZE table.

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
ndroid/sqlite3_android.cpp
ede5464c1e84d7ee88ba72126cc643cc667d16b7 06-May-2009 Marco Nelissen <marcone@google.com> am 2da78c0: Don\'t allow \'/../\' to be part of the path for delete file tr

Merge commit '2da78c0877a7fa924f62cc76700f3da29c47f5ad'

* commit '2da78c0877a7fa924f62cc76700f3da29c47f5ad':
Don't allow '/../' to be part of the path for delete file triggers.
2da78c0877a7fa924f62cc76700f3da29c47f5ad 06-May-2009 Marco Nelissen <marcone@google.com> Don't allow '/../' to be part of the path for delete file triggers.
ndroid/sqlite3_android.cpp
6826e0ddf1ba3e4e3944c4d03e439745473ba648 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
12dd4deb408b0e75bed5028308b4531c0d1ecda0 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> merge cupcake into donut
29b2cc1aa16b8c21b1ce2816dc08bd6bdef45569 23-Apr-2009 Jean-Baptiste Queru <jbq@google.com> Merge donut into master
269661880396405c0780b86f87f648084ab1a7d7 15-Apr-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'korg/cupcake'
c548c5973ee191715d118a442c496982ca2ff484 16-Nov-2008 Jay Freeman (saurik) <saurik@saurik.com> On AMD64 Debian Etch, lib32readline5 does not cross-reference libncurses.

host Executable: sqlite3 (out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3)
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgetnum'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgoto'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgetflag'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `BC'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tputs'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `PC'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgetent'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `UP'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
ist/Android.mk
4a1edc1b1ab1facb2883d069be3427ec393d24f3 29-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'open_source_contributions_cherry_picked' into google_internal
0c45e82353d7e8393fd544755c6e2b2349a2b8d7 28-Mar-2009 Daisuke Miyakawa <> AI 143231: am: CL 143056 Fix PhoneticStringUtils so that it ignores whitespaces correctly.
Original author: dmiyakawa
Merged from: //branches/cupcake/...

Automated import of CL 143231
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtils.h
ndroid/PhoneticStringUtilsTest.cpp
ndroid/sqlite3_android.cpp
deab0e383861917bd3f1b4d8d6bb30ed00e7a96e 28-Mar-2009 Daisuke Miyakawa <> AI 143381: am: CL 143231 am: CL 143056 Fix PhoneticStringUtils so that it ignores whitespaces correctly.
Original author: dmiyakawa
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143381
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtils.h
ndroid/PhoneticStringUtilsTest.cpp
ndroid/sqlite3_android.cpp
99f72c6911f59f77225f5b244a94bbf571fc5c18 28-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'goog/cupcake'
49cd7353af93ac844fa6c6683e7d9b5f12dde069 27-Mar-2009 The Android Open Source Project <initial-contribution@android.com> Merge commit 'korg/cupcake'
95aacc7019c85c76f22f42c80e424272749d6782 27-Mar-2009 Daisuke Miyakawa <> AI 143056: Fix PhoneticStringUtils so that it ignores whitespaces correctly.
BUG=1735544

Automated import of CL 143056
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtils.h
ndroid/PhoneticStringUtilsTest.cpp
ndroid/sqlite3_android.cpp
47fbd750cfc74f4ef166f3b2b0c76c4e0e1d387f 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/donutburger/...@140818,140818
ndroid/NOTICE
182f6ba4971be72950bda741588944afaec69ca6 25-Mar-2009 Dianne Hackborn <> Automated import from //branches/master/...@140824,140824
ndroid/NOTICE
546f165b0ffeb7414601baa26daf43772631aab4 20-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@141571
ndroid/NOTICE
0142f1313f2e168a42c77638d11232e93fd2f1f0 18-Mar-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake' into merge
455ed29fb92a9adf411252df5e74541269d10806 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
ndroid/Android.mk
ndroid/PhoneticStringUtils.cpp
ndroid/PhoneticStringUtils.h
ndroid/PhoneticStringUtilsTest.cpp
ndroid/sqlite3_android.cpp
b7743da3573c9fa0a726181d8f4cd7190908f27d 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
ist/Android.mk
7790ef5367fe6731048c3e3a1c067f94b321cb4d 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid/Android.mk
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/sqlite3_android.cpp
ndroid/sqlite3_android.h
ist/Android.mk
ist/MODULE_LICENSE_PUBLIC_DOMAIN
ist/NOTICE
ist/shell.c
ist/sqlite3.c
ist/sqlite3.h
ist/version
9764acebd9bd23a5e72932accc18cbe31b47ee57 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid/Android.mk
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/sqlite3_android.cpp
ndroid/sqlite3_android.h
ist/Android.mk
ist/MODULE_LICENSE_PUBLIC_DOMAIN
ist/NOTICE
ist/shell.c
ist/sqlite3.c
ist/sqlite3.h
ist/version
e9cfd50d8d5633e01dcbd9a58947a25cef1fd792 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
ndroid/PhoneNumberUtils.cpp
60a965a2f8a63d7704130d867458495a324801e1 19-Dec-2008 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake'
5770aafd1e1040dec51f2ed73cb95ed4dbe2a690 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ndroid/PhoneNumberUtils.cpp
ist/Android.mk
be0e8aea4a8441676921135784c4e37b19172df3 16-Nov-2008 Jay Freeman (saurik) <saurik@saurik.com> On AMD64 Debian Etch, lib32readline5 does not cross-reference libncurses.

host Executable: sqlite3 (out/host/linux-x86/obj/EXECUTABLES/sqlite3_intermediates/sqlite3)
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgetnum'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgoto'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgetflag'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `BC'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tputs'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `PC'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgetent'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `UP'
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
ist/Android.mk
6005ac625aa553fe461b363385a8ed4a3c217a1f 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ndroid/Android.mk
ndroid/PhoneNumberUtils.cpp
ndroid/PhoneNumberUtils.h
ndroid/sqlite3_android.cpp
ndroid/sqlite3_android.h
ist/Android.mk
ist/INSTALL
ist/MODULE_LICENSE_PUBLIC_DOMAIN
ist/Makefile.am
ist/Makefile.in
ist/NOTICE
ist/README
ist/aclocal.m4
ist/config.guess
ist/config.sub
ist/configure
ist/configure.ac
ist/depcomp
ist/install-sh
ist/ltmain.sh
ist/missing
ist/shell.c
ist/sqlite3.c
ist/sqlite3.h
ist/sqlite3ext.h
ist/version
6ca1d4f32da73eda41ba4925e98de4411cbe75d3 12-Jan-1970 Upstream <upstream-import@none> external/sqlite 3.6.3
ist/INSTALL
ist/Makefile.am
ist/Makefile.in
ist/README
ist/aclocal.m4
ist/config.guess
ist/config.sub
ist/configure
ist/configure.ac
ist/depcomp
ist/install-sh
ist/ltmain.sh
ist/missing
ist/shell.c
ist/sqlite3.c
ist/sqlite3.h
ist/sqlite3ext.h