History log of /packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
18fbdd023bfbd9ea7747894c2d9464f66075b703 28-Apr-2016 Jason Monk <jmonk@google.com> Fix search after upgrade

Settings was dropping the search tables after upgrade but not
clearing the bit that says a full index has completed.

Change-Id: If49960b8cc07e72127bac211ae4d6c1f25b71c81
Fixes: 28414461
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
d17a15bbc473a7262755ff136b15a3587f4c7ddb 10-Jul-2014 Fabrice Di Meglio <fdimeglio@google.com> Search - add support for saving the UserId in the Index

- add the new "user_id" colum
- use -1 as a default value

This CL depends on that Framework CL for SearchIndexableData: 0d94539e67e997ed7687f33854fc581ce4668da5

See bug: #15837747 Search - update for Enterprise support

Change-Id: I0cf2866600732e8e99006050bf9ad388fa44b509
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
0869526b818963a986c1943c9b2f9d79c4168f3c 15-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #14903618 Developer Options - string changes needed to the Bug report checkbox

- string update as follow:

LABEL

Current string:
- "Power menu bug reports"

Change to:
- "Bug report shortcut"

SECONDARY TEXT

Current string:
- "Include option in power menu for taking a bug report"

Change to:
- "Show a button in Quick Settings for taking a bug report"

Change-Id: Ibc716e1ae0bc3d553601908efd81babd66051d8b
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
34483748dfab7d9302e14137227d2f118cefb6c0 10-May-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #14324070 Settings search does not include any of wifi sub-settings

- add AdvancedWifiSettings to the Index
- bump the database version to force a re-indexing at the first start

Change-Id: I45aacfe6e0bb38a1209ea8dd2c4ccf0f1b90a526
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
ab791fccf94b91c2e70e788743dc03d9123c176b 22-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Save Search queries

- update database model for adding a table for saving a query
and its timestamp
- update database version
- save the query when the User tap on a Search result
- remove old queries (no more than 5 are saved)

Change-Id: I4ddff0ad660944c7fd53be64ac95397850dc60d0
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
bb26141ddfc0c53a7dcb0cedf0499d9b214897eb 21-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Enable Search result highlight for Accessibility and IME settings

- add missing keys
- update Database version to force re-indexing (because the keys
were missing)

Change-Id: I7533d86b0f9d79d838e5c16d4bc51b7b09dffae5
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
f2a5226c1e981ebb0c34aaf39524c382f996196a 18-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Improve Preference highlighting

- use PreferenceFragment.onBindPreferences() to launch highlighting
- improve SettingsPreferenceFragment code for highlighting: now we can
find the View to highlight thru its Tag if there is no ListAdapter available
- add HighlightingFragment for highlighting a View from its tag/key. This
is dealing with cases when the content is custom and not relying on
SettingsPreferenceFragment (like DataUsageSummary)

Also:

- improve DataUsageSummary so that onResume() is not recreating the
Tabs all the time
- add missing "android:keys" on some Security Settings preference files

Change-Id: Ib1dd8238fe2fb57c151d584c0810a0e0a5ad97c4
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
8f5c65fd010d249770fda81c1129c1d7555a3299 15-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Search results - just show the first item of ListPreference entries

- need to increment the database model version to force re-indexing
- change entries separator from SPACE to PIPE
- just show the first entries value in the Search results

Change-Id: I747218ff3528c3231c0209f8870c12f65e036070
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
7d39310c8d159190cfcc63aa6647714c056d76f6 09-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #13928293 Search - remove "switchTextOn" / "switchTextOff" from indexing

- remove all related code
- update the Index database schema and its version

Change-Id: Iaa5219b77efe5db3a404708663fdf82f10d043d3
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
c1457323d271309d5d1955743cd806417c84b9d6 05-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add support for saving and using the Preference's key value

- modify the SQlite data model
- update Index code for managing the key value
- pass the key when launching a Fragment or and Activity
- implement a small animation for highlighting the Preference
from a Search result

Change-Id: I617643a4e5e3b752ece8f45ce7d5429037e479da
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
dd41dfc483e830bdb33df858dec99e2c4c806bfc 03-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add indexing for SwitchPreferences

- now support the SwitchPreferences and save the "switchOn" and "switchOff"
attributes
- update Index database schema (and increment its version)
- fix an issue with some previous schema not rebuilt

Change-Id: I9cd48c666525f19474ef9bd5746d61b589058063
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
a41707200b6628376e8fb575e782d8228c0d32a2 03-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add indexing for ListPreferences

- now support ListPreferences and save the "entries" attribute
- update Index database schema (and increment its version)
- do some clever stuff when showing Search results: if there is
a "$s" or "%s" in the summary (replacement strings), just use
the entries instead

Change-Id: If36595c3816706b6349faff7d3c2e725d3ea33f4
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
fb5e639b30e866ba5a379487ab5b7a77fe175a7b 03-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Blow up the Settings Search Index database if there is a Database downgrade detected

- use the onDowngrade(...) callback for blowing away the Search Index database and
recompute the Index.

Change-Id: I137b22e710dd3205063cf8ce239105b2f1c5278b
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
9593782d154f378a0c911cd015d410c18fe74a92 01-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add indexing for Notifications preferences

- also add indexing of CheckBoxPreferences
- also some code cleaning

Change-Id: I2943caaec3d64fb2a6be85168454fc76fe572afe
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
51bfee595c3ce587e2e26565fd9e8f4ae02c3482 21-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Add dynamic Preferences indexing (part 2)

- change the Index SQL model. Add a new "enabled" column.
- use that column for issuing a more restrictive search query
- change the SearchIndexProvider API to pass the "enable" state
- apply it to Bluetooth settings
- refactor the list of indexable resources (SearchIndexableResources)

Change-Id: Ic900fb27cb12a285a80d953aa1aa88f0070cd986
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java
fa7dc240e978b1b77bb5c80a78cd1f8c77648301 13-Mar-2014 Fabrice Di Meglio <fdimeglio@google.com> Add external Preferences indexing

- define SettingsSearchIndexablesProvider as an internal
SearchIndexablesProvider
- protect access thru using android.permission.READ_SEARCH_INDEXABLES
- update WallpaperTypeSettings and WifiSettings for taking care of
the new model
- update the Dashboard for taking care about external Icons for the
search result
- update sqlite model/version for taking care about Intents
(enable launching external applications for showing the settings)

Change-Id: I2e38599327e6480f1754f52666becce0884cee9d
/packages/apps/Settings/src/com/android/settings/search/IndexDatabaseHelper.java