| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Bug: 8129961
Change-Id: If6dd3b5ebec19ef7c9fea493d90f0e8d88435f01
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fix tests to account for fixes made in ICU 50. Add some additional tests.
Bug:
Change-Id: I7d1fb0588f56b58da5c5177823ed5c16c4603e24
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Switch from using hard coded tables copied from ICU to calling ICU
Transliterator directly for Pinyin transliteration.
Bug:
Change-Id: I87aae623dfe049a90cee213182275aa51a7dcd9c
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
|\ \ \ \ \ \ |
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I899c3ae507a0e4feb95c8142b09b92e1fd87eefe
|
|\ \ \ \ \ \ \ |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Bug: 6987476
Change-Id: I99816c32938b5b3db5f79d816d91d814ab9dca6c
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Bug: 7942098
Change-Id: I0c43b6e78471631f6400d836311ec84658f063c9
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Bug: 5930716
Change-Id: Ic7cfffae5de878be683d27f92ccb5b034dc217c3
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Bug: 7709971
Change-Id: I1a7eff95ff76e21b3b29535f09c95591469b707f
|
|\ \ \ \ \ \
| |/ / / / /
| | | | | |
| | | | | |
| | | | | | |
* commit '75a0a0b0ece29241b4712126af53841d5dcdb442':
Change default sort order for email queries.
|
| |\ \ \ \ \
| | |/ / / /
| | | | | |
| | | | | |
| | | | | | |
* commit 'dacd5de146b413de86d38b6f56a3fe0b2af4b155':
Change default sort order for email queries.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
- Prioritizing "default" emails over last used emails.
- Added ordering for same domain emails as last order by.
Bug: 7183241
Bug: 7346215
Change-Id: I6a8ba3cfe08792693eec4896f16853a88713bc3f
|
|\ \ \ \ \ \
| |/ / / / /
| | | | | |
| | | | | |
| | | | | | |
* commit 'b036f6745c97e7bd654ee1b44122ceece917dd47':
Rebuild SQLITE_STAT1 table after drop operations.
|
| |\ \ \ \ \
| | |/ / / /
| | | | | |
| | | | | |
| | | | | | |
* commit 'f5c0020b87709f9c4c3de66a49c0893e2c2adebb':
Rebuild SQLITE_STAT1 table after drop operations.
|
| | |/ / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
|\ \ \ \ \
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
locale safe"
* commit '94fc236d199460bddc390ce7f384b446c14df622':
Make CONTACTS_AS_MULTI_VCARD locale safe
|
| |\ \ \ \
| | |/ / /
| |/| | |
| | | | |
| | | | | |
* commit '0e014723e6d5d2acc3d59b78cee9a6d1fbfef1e9':
Make CONTACTS_AS_MULTI_VCARD locale safe
|
| | |\ \ \
| | | |/ /
| | |/| |
| | | | |
| | | | | |
* commit '2a9d1fab1669d2962aa830872f063c1180fbea94':
Make CONTACTS_AS_MULTI_VCARD locale safe
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
SimpleDateFormat was used with the default locale to build
SQL statements; this is unsafe for some locales. Switched
to Locale.US.
Change-Id: I7307b12e1f3d796e1bb4a73d97918d0162ca971e
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
aggregation changes.
Bug 7249008
Change-Id: I6022dca2e56a6a4cdfcde4d936289881a40d1012
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Bug: 7232230
Change-Id: Ie40bda16e24df96530c80506a74747a4b2c16cb5
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Bug 7148705
Change-Id: I3df22b7fc18a106f221f022f222d8fee566a24af
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Don't do the suffix match during the phone number lookup match if
mUseStrictPhoneNumberComparison is true.
Bug: 7000177
Change-Id: I77e60117449cec6c37a9605ba4333a067d02a54c
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
* commit '3b1b1d5e732728ea7d60b408ab03f42e5d9ace8f':
Update HanziToPinyin table and tests.
|
| |\ \ \
| | |/ /
| | | |
| | | |
| | | | |
* commit '7d112d54a173e6d6172aeeff5fa7dfee4abc2d73':
Update HanziToPinyin table and tests.
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I160208ede00a4f63b257a0b6cc59ff5ad153960d
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- 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
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Allow client to pass in limit and offset parameters in uri.
Bug: 6849968
Change-Id: I535086449bfa76a5d8bc66567070141b76d19503
|
|\ \ \ \ \ |
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
with invalid number.
Also ContactsProvider2Test.testPhonesNormalizedNumber() should now work
in non-us countries too.
Bug 6960308
Change-Id: Ib15115f501ce67797dec8d05dc421f5931341b12
|
|\ \ \ \ \
| |/ / / /
|/| / / /
| |/ / / |
Change-Id: I2ca60f4e861128143bbfe7eb688b255432423a9d
|
| |\ \ \
| | |/ /
| | | |
| | | |
| | | | |
* commit '28f87c6cb3aedeb92c8e870de22b580e3e634da2':
Sync HanziToPinyin tables with ICU 4.6.
|
| | |\ \ |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Change-Id: I6b6b144a460fbbf233222313559bbc546745d328
|
|\ \ \ \ \ |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|