From e6b336d1a05752b546319a33a5f5b5c65bccf4e9 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Thu, 10 Jul 2014 14:59:46 -0700 Subject: [PATCH] FR #14318673 Search - add synonyms - add synonyms to be indexed at the same time as titles and sub-titles - fix Wi-Fi keywords Change-Id: I1cb026775592c29c2b813153574c6695e3e90f31 --- res/values/strings.xml | 26 +++++- res/xml/account_settings.xml | 4 +- res/xml/date_time_prefs.xml | 12 ++- res/xml/device_info_memory.xml | 4 +- res/xml/display_settings.xml | 8 +- res/xml/language_settings.xml | 85 +++++++++++++------ res/xml/location_settings.xml | 7 +- res/xml/notification_settings.xml | 4 +- res/xml/power_usage_summary.xml | 2 + res/xml/print_settings.xml | 5 +- res/xml/privacy_settings.xml | 8 ++ res/xml/wireless_settings.xml | 6 +- src/com/android/settings/search/Index.java | 6 +- .../android/settings/wifi/WifiSettings.java | 1 + 14 files changed, 141 insertions(+), 37 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index e34facbf954..8c3a19f0d9c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -5130,8 +5130,32 @@ Results - + wifi wi-fi network connection + text message + cellular cell carrier wireless + screen touchscreen + dim screen touchscreen + dim screen touchscreen + background + text size + project + space disk hard drive + power + spelling + rate language default speak speaking + clock + wipe delete + printer + speaker beep + dont don\'t disturb interrupt interruption break + RAM + nearby location history reporting + accuracy + account + restriction restrict restricted + text correction correct sound vibrate auto language gesture suggest suggestion theme offensive word type emoji + language hands-free hand free recognition offensive word audio history bluetooth headset diff --git a/res/xml/account_settings.xml b/res/xml/account_settings.xml index 236a26d8642..7437b802c73 100644 --- a/res/xml/account_settings.xml +++ b/res/xml/account_settings.xml @@ -15,8 +15,10 @@ --> + android:title="@string/account_settings_title" + settings:keywords="@string/keywords_accounts"> + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:title="@string/date_and_time" + settings:keywords="@string/keywords_date_and_time"> + + + + + + + + diff --git a/res/xml/device_info_memory.xml b/res/xml/device_info_memory.xml index e4ea1cc9bf2..38cc94a52b5 100644 --- a/res/xml/device_info_memory.xml +++ b/res/xml/device_info_memory.xml @@ -15,7 +15,9 @@ --> + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:title="@string/storage_settings" + settings:keywords="@string/keywords_storage"> diff --git a/res/xml/display_settings.xml b/res/xml/display_settings.xml index 4a8211f98c1..3c4f4afeea6 100644 --- a/res/xml/display_settings.xml +++ b/res/xml/display_settings.xml @@ -15,23 +15,27 @@ --> + settings:keywords="@string/keywords_display"> diff --git a/res/xml/language_settings.xml b/res/xml/language_settings.xml index d8e76033d53..35926a0a405 100644 --- a/res/xml/language_settings.xml +++ b/res/xml/language_settings.xml @@ -15,33 +15,43 @@ --> + android:title="@string/phone_language" + android:fragment="com.android.settings.LocalePicker" + /> + android:title="@string/spellcheckers_settings_title" + settings:keywords="@string/keywords_spell_checker" + /> + android:title="@string/user_dict_settings_title" + /> + android:title="@string/keyboard_settings_category" + settings:keywords="@string/keywords_keyboard_and_ime"> + + android:title="@string/choose_input_methods" + /> + + android:title="@string/current_input_method" + /> @@ -58,66 +68,93 @@ android:summaryOn="@string/auto_replace_summary" android:summaryOff="@string/auto_replace_summary" android:order="1000" - android:persistent="false"/> + android:persistent="false" + /> + + android:persistent="false" + /> + + android:persistent="false" + /> + - + android:dialogTitle="@string/voice_interactor_title" + /> - + + android:dialogTitle="@string/recognizer_title" + /> - + - + /> + - + + android:dialogTitle="@string/pointer_speed" + /> + - + + android:persistent="false" + /> + + diff --git a/res/xml/location_settings.xml b/res/xml/location_settings.xml index 83b80b1baee..994ddf14c0b 100644 --- a/res/xml/location_settings.xml +++ b/res/xml/location_settings.xml @@ -15,10 +15,15 @@ --> + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:key="location_settings" + android:title="@string/location_settings_title" + settings:keywords="@string/keywords_location"> + + settings:keywords="@string/keywords_sounds_and_notifications"> diff --git a/res/xml/power_usage_summary.xml b/res/xml/power_usage_summary.xml index 44e40bd4a7c..062251383c5 100644 --- a/res/xml/power_usage_summary.xml +++ b/res/xml/power_usage_summary.xml @@ -15,6 +15,8 @@ --> diff --git a/res/xml/print_settings.xml b/res/xml/print_settings.xml index 8a295637343..3a00f712a72 100644 --- a/res/xml/print_settings.xml +++ b/res/xml/print_settings.xml @@ -15,8 +15,9 @@ --> + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:title="@string/print_settings_title" + settings:keywords="@string/keywords_printing"> + + + + + + diff --git a/res/xml/wireless_settings.xml b/res/xml/wireless_settings.xml index bf1523e686b..ac5a7be9f58 100644 --- a/res/xml/wireless_settings.xml +++ b/res/xml/wireless_settings.xml @@ -15,7 +15,9 @@ --> + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:title="wireless_settings" + android:key="@string/radio_controls_title"> @@ -53,6 +56,7 @@