| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |\
| |
| |
| |
| |
| |
| |
| | |
2384f6bc0b
am: 344ea259af
Change-Id: Ie6a11319dbbdc35637895db1e60c149e301faf9f
|
| | |
| |
| |
| |
| |
| |
| |
| | |
* Supress non-critical warnings.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Id116ab578184a9d43ca4a8549e78889b79ea49aa
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
Merged-In: If9771fa020e528445275281017e424a5bbc2ae99
Change-Id: If9771fa020e528445275281017e424a5bbc2ae99
(cherry picked from commit 633397eeef296584d3242d8a72790dcf11bb36fd)
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There are some vendor libs that are using libsqlite. So marking it as
vendor_available.
Bug: 37560614
Test: BOARD_VNDK_VERSION=current m -j libsqlite.vendor
Change-Id: I45823c4d42071f505583a955564cdd78742e8029
Merged-In: I45823c4d42071f505583a955564cdd78742e8029
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
Merged-In: I682502ba5bdc5f76a0363a95d01b1081c1bc01a4
Change-Id: I682502ba5bdc5f76a0363a95d01b1081c1bc01a4
(cherry picked from commit b4076dfd66f114263a1f70cf3ba73c2d55ccb3b0)
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously when comparing local phone numbers with
international it was possible to match the wrong number
because the first digit of the area code was being treated
as a skippable trunk digit, e.g:
"550-123-4567" would be considered equal to "+14501234567".
Since there are two different algorithms (loose/old and strict)
there are two solutions with the same basic goal:
Only ignore mismatches if there's an actual extra digit which
could possibly be the trunk digit, i.e: "0550-123-4567" is acceptable
as equal to "+15501234567". NB: The US not having a trunk digit
to begin with is a different issue entirely - the code is agnostic on
which country has which trunk digits!
For "loose" matching we achieve this by checking the length of the
mismatch.
For "strict" matching we keep track of the supposed trunk digit
and compare it against the current position in match. So for the above
example 5 != 4.
Several new unit tests were added (including replicating tests for
OldPhoneNumberUtils). I broke down the c++ tests into smaller methods
for additional readability.
NB: By adding more tests I uncovered that two digit trunk prefixes
were never handled correctly for the "strict" matching case. "Loose"
matching is much more robust. I commented out the "strict" test cases.
Test: All unit tests pass for PhoneNumberUtilsTest,
OldPhoneNumberUtilsTest and DatabaseGeneralTest.
Bug: 63179537
Bug: 63178542
Bug: 62916088
Change-Id: Idc2a1c2c2f64ed29995208503de4755c521e1c82
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
|
|
|
| |
There are some vendor libs that are using libsqlite. So marking it as
vendor_available.
Bug: 37560614
Test: BOARD_VNDK_VERSION=current m -j libsqlite.vendor
Change-Id: I45823c4d42071f505583a955564cdd78742e8029
|
| |
|
|
|
|
|
| |
See build/soong/README.md for more information.
Test: m -j checkbuild
Change-Id: I649eecd3948fbe49bb153b14a8eae9b110a79734
|
| |
|
|
|
|
|
|
|
| |
Removes dead use of deprecated ucol_getShortDefinitionString.
Converts PhoneNumberUtils tests to gtest.
Bug: http://b/31459453
Change-Id: I4662e25d711868e21afb0661602c64852f0cef65
|
| |
|
|
|
|
|
|
|
|
|
|
| |
These modules can be named the same between the target and host
libraries, which simplifies references to them, particularly in
Soong.
To prevent accidentally loading the system copy of the library,
we still rename the installed name to be libicu*-host.so. But
modules do not need to know that in order to build against them.
Change-Id: I4735599feb73225b2bea6dee42bbc23118693765
|
| |
|
|
|
|
|
| |
ICU exports them using LOCAL_EXPORT_C_INCLUDE_DIRS.
bug: 18581021
Change-Id: I98048a4f6a9163fff6d3a71712d8249b2b00d04b
|
| |
|
|
| |
Change-Id: I16a4b5c0d7b46a4edd61d75ba017669b0daafc90
|
| |
|
|
|
| |
Bug: 13751317
Change-Id: I64e66eb34dbe10b39ec2e8c37da0038705b4931f
|
| |
|
|
| |
Change-Id: I21a4e18f0d2aacaf76421b62d693c2ae7eb08f30
|
| |\
| |
| |
| |
| | |
* commit 'b4e9e379e360464d3d6bde3084e5b286238a9329':
fix build problem, when #define ENABLE_ANDROID_LOG 1
|
| | |
| |
| |
| | |
Change-Id: I514750dd33ff5bd433d4ee167a2401d829d2fbe9
|
| | |
| |
| |
| |
| |
| |
| | |
Remove sqlite GET_PHONEBOOK_INDEX callback.
Bug:
Change-Id: I751bb4fdff89af1eccc4b21b67fddd0b802eeb61
|
| |/
|
|
|
|
|
|
| |
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
|
| |\
| |
| |
| |
| |
| |
| | |
Japanese kana characters"
* commit '38d33f70401037d36fcad72c4b4199890755a66b':
GetPhonebookIndex: Fix handling for minor Japanese kana characters
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds minor Japanese kana character handling to meet the
unicode collation algorithm.
-Normalize digraphs (yori, koto) into first reading letter.
-Treat dakuten, dot, onbiki, iteration marks as a symbol.
-Add handling for minor small katakana letter.
Signed-off-by: Yutaro Ogasawara <yutaro.ogasawara@gmail.com>
|
| | |
| |
| |
| |
| |
| |
| | |
See https://android-git.corp.google.com/g/#/c/157220
Bug: 5449033
Change-Id: I5ffb58901712f4db93de474c30833a46ebb4bc7c
|
| |/
|
|
|
|
|
| |
See https://android-git.corp.google.com/g/156016
Bug: 5449033
Change-Id: Iad9bddb01ef0d9b28e3969b9f8dfbb2cc2830b30
|
| |
|
|
|
| |
Change-Id: I5281dda013f909c050fda712d3a0816173df277d
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
Bug: 3210604
Change-Id: Ie65c053ec5178d6cd991f69a5a2b6d5d51938ade
|
| |
|
|
| |
Change-Id: Ibb9ca5833f9c0b3313ff0e9bc70348d268aaf4e2
|
| |
|
|
|
| |
Change-Id: I8a3f620cd6633f2be47ac05e17ea642f00b71e91
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
| |\
| |
| |
| | |
Change-Id: Ifa97db751da1aeeeb9d7450b04c909f0800ce140
|
| | |
| |
| |
| | |
Change-Id: I900daf7f205f8f666eac9c4070d2e5c99d85b3b3
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Needed for simulator build on newer Ubuntu distributions.
Based on Ibb8cd3cdb4feae89a20eec56131e322f39721b1a
Change-Id: Ie574888128265e026973a5ac88ede87730eda7d4
|
| | |
| |
| |
| | |
Change-Id: I5f3ae179d388c417abd512974df22fd78a699354
|
| |/
|
|
|
|
|
| |
Needed for simulator build on newer Ubuntu distributions.
Change-Id: Ibb8cd3cdb4feae89a20eec56131e322f39721b1a
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I9d5bd02f23882dd85e91075e897150cafa33ffe5
|
| |
|
|
|
| |
Bug: 2487471
Change-Id: I90cef4eb2468c0a58067df984ee98da438aa0e5a
|
| |
|
|
|
| |
Bug: 2407129
Change-Id: I8d83f9012846f61484b76f718e8127090eba39ec
|
| |
|
|
|
|
|
|
| |
This function will produce a normalized upper case first letter
from a given string.
Bug: 2407129
Change-Id: Idfafca04342d43ef43cfdff0e431e0a6a8cf5c68
|
| |
|
|
|
|
| |
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.
|
| |
|
|
| |
Change-Id: I11fc145464e29364dbf302c1e607a07031e1821d
|
| |
|
|
| |
Change-Id: Ie0dde105e810c07e05471182cd0c0f81045731ef
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
in PhoneNumberUtils.java.
Due to the Thailand's special case, the code became a little nastier than before, but I believe it is inevitable...
|
| |\
| |
| |
| |
| | |
* changes:
Avoid a buffer overrun in GET_NORMALIZED_STRING.
|