Merge "Update strings for hearing device U features" into udc-dev am: 5c1652eab0

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/22087473

Change-Id: I83ec4d6b9eb362f5c8da0877d76dc2c1a5c68778
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jason Hsu
2023-03-16 09:44:37 +00:00
committed by Automerger Merge Worker
5 changed files with 31 additions and 21 deletions

View File

@@ -255,7 +255,7 @@
<!-- Bluetooth audio routing settings: Titles for audio routing options --> <!-- Bluetooth audio routing settings: Titles for audio routing options -->
<string-array name="bluetooth_audio_routing_titles"> <string-array name="bluetooth_audio_routing_titles">
<item>Decide automatically</item> <item>Use app default</item>
<item>Play on hearing device</item> <item>Play on hearing device</item>
<item>Play on phone speaker</item> <item>Play on phone speaker</item>
</string-array> </string-array>

View File

@@ -137,22 +137,20 @@
<!-- Connected devices settings. Title of the preference to show the entrance of the audio output page. It can change different types of audio are played on phone or other bluetooth devices. [CHAR LIMIT=35] --> <!-- Connected devices settings. Title of the preference to show the entrance of the audio output page. It can change different types of audio are played on phone or other bluetooth devices. [CHAR LIMIT=35] -->
<string name="bluetooth_audio_routing_title">Audio output</string> <string name="bluetooth_audio_routing_title">Audio output</string>
<!-- Connected devices settings. Summary of the preference to show the entrance of the audio output page. [CHAR LIMIT=NONE] --> <!-- Connected devices settings. Summary of the preference to show the entrance of the audio output page. [CHAR LIMIT=NONE] -->
<string name="bluetooth_audio_routing_summary">Choose whether different types of audio are played on your hearing device or phone speaker</string> <string name="bluetooth_audio_routing_summary">Route sounds to your hearing device or phone speaker</string>
<!-- Title for related tools section. This section will list related tools below. [CHAR LIMIT=15] --> <!-- Title for related tools section. This section will list related tools below. [CHAR LIMIT=15] -->
<string name="bluetooth_screen_related">Related</string> <string name="bluetooth_screen_related">Related</string>
<!-- Bluetooth audio output settings. Title of the option managing ringtone audio path. [CHAR LIMIT=30] --> <!-- Bluetooth audio output settings. Title of the option managing ringtone and alarms audio path. [CHAR LIMIT=30] -->
<string name="bluetooth_ringtone_title">Ringtone</string> <string name="bluetooth_ringtone_title">Ringtone and alarms</string>
<!-- Bluetooth audio output settings. Title of the option managing call audio path. [CHAR LIMIT=30] --> <!-- Bluetooth audio output settings. Title of the option managing call audio path. [CHAR LIMIT=30] -->
<string name="bluetooth_call_title">Call</string> <string name="bluetooth_call_title">Audio during calls</string>
<!-- Bluetooth audio output settings. Title of the option managing media audio path. [CHAR LIMIT=30] --> <!-- Bluetooth audio output settings. Title of the option managing media audio path. [CHAR LIMIT=30] -->
<string name="bluetooth_media_title">Media</string> <string name="bluetooth_media_title">Media</string>
<!-- Bluetooth audio output settings. Title of the option managing system sounds audio path. [CHAR LIMIT=30] --> <!-- Bluetooth audio output settings. Title of the option managing system sounds related audio path. [CHAR LIMIT=30] -->
<string name="bluetooth_system_sounds_title">System sounds</string> <string name="bluetooth_system_sounds_title">Notifications and other system sounds</string>
<!-- Bluetooth audio output settings. Title of the option to play audio on hearing aids. [CHAR LIMIT=40] --> <!-- Description for text in accessibility hearing aids footer. [CHAR LIMIT=NONE] -->
<string name="bluetooth_audio_path_hearing_device_title">Play on hearing device</string> <string name="bluetooth_audio_routing_footer_summary">By default, audio output is determined by individual apps</string>
<!-- Bluetooth audio output settings. Title of the option to play audio on phone speaker. [CHAR LIMIT=40] -->
<string name="bluetooth_audio_path_phone_speaker_title">Play on phone speaker</string>
<!--Bluetooth settings screen, summary text for Bluetooth device with no name --> <!--Bluetooth settings screen, summary text for Bluetooth device with no name -->
<string name="bluetooth_device">Unnamed Bluetooth device</string> <string name="bluetooth_device">Unnamed Bluetooth device</string>
@@ -4591,6 +4589,8 @@
<string name="accessibility_hearingaid_instruction_continue_button">Continue</string> <string name="accessibility_hearingaid_instruction_continue_button">Continue</string>
<!-- Title for the accessibility preference for hearing devices. [CHAR LIMIT=35] --> <!-- Title for the accessibility preference for hearing devices. [CHAR LIMIT=35] -->
<string name="accessibility_hearingaid_title">Hearing devices</string> <string name="accessibility_hearingaid_title">Hearing devices</string>
<!-- Introduction for the Hearing devices page to introduce feature. [CHAR LIMIT=NONE] -->
<string name="accessibility_hearingaid_intro">You can use hearing aids, cochlear implants, and other amplification devices with your phone</string>
<!-- Summary for the accessibility preference for hearing aid when not connected. [CHAR LIMIT=50] --> <!-- Summary for the accessibility preference for hearing aid when not connected. [CHAR LIMIT=50] -->
<string name="accessibility_hearingaid_not_connected_summary">No hearing aids connected</string> <string name="accessibility_hearingaid_not_connected_summary">No hearing aids connected</string>
<!-- Summary for the accessibility preference for hearing aid when adding new devices. [CHAR LIMIT=50] --> <!-- Summary for the accessibility preference for hearing aid when adding new devices. [CHAR LIMIT=50] -->
@@ -4622,9 +4622,9 @@
<!-- Title for the Hearing Aid Compatibility preference in the accessibility page. [CHAR LIMIT=35] --> <!-- Title for the Hearing Aid Compatibility preference in the accessibility page. [CHAR LIMIT=35] -->
<string name="accessibility_hac_mode_title">Hearing aid compatibility</string> <string name="accessibility_hac_mode_title">Hearing aid compatibility</string>
<!--Summary for the Hearing Aid Compatibility preference in the accessibility page. [CHAR LIMIT=NONE] --> <!--Summary for the Hearing Aid Compatibility preference in the accessibility page. [CHAR LIMIT=NONE] -->
<string name="accessibility_hac_mode_summary">Improve audio for some hearing devices</string> <string name="accessibility_hac_mode_summary">Improves compatibility with telecoils and reduces unwanted noise</string>
<!-- Description for text in accessibility hearing aids footer. [CHAR LIMIT=NONE] --> <!-- Description for text in accessibility hearing aids footer. [CHAR LIMIT=NONE] -->
<string name="accessibility_hearing_device_footer_summary">Make sure your hearing devices are turned on and in pairing mode</string> <string name="accessibility_hearing_device_footer_summary">Make sure your hearing device is turned on and ready to pair</string>
<!-- Title for the pair hearing device page. [CHAR LIMIT=25] --> <!-- Title for the pair hearing device page. [CHAR LIMIT=25] -->
<string name="accessibility_hearing_device_pairing_page_title">Pair hearing device</string> <string name="accessibility_hearing_device_pairing_page_title">Pair hearing device</string>
<!-- Title for the preference category containing the list of the available hearing during and after bluetooth scanning devices. [CHAR LIMIT=30] --> <!-- Title for the preference category containing the list of the available hearing during and after bluetooth scanning devices. [CHAR LIMIT=30] -->
@@ -4632,7 +4632,7 @@
<!-- Title for the preference category containing the all bluetooth devices during and after bluetooth scanning devices. Used when people can not find their hearing device in hearing device pairing list. [CHAR LIMIT=45] --> <!-- Title for the preference category containing the all bluetooth devices during and after bluetooth scanning devices. Used when people can not find their hearing device in hearing device pairing list. [CHAR LIMIT=45] -->
<string name="accessibility_found_all_devices">Don\u2019t see your hearing device?</string> <string name="accessibility_found_all_devices">Don\u2019t see your hearing device?</string>
<!-- Title for listing all bluetooth devices preference in the accessibility page. [CHAR LIMIT=40] --> <!-- Title for listing all bluetooth devices preference in the accessibility page. [CHAR LIMIT=40] -->
<string name="accessibility_list_all_devices_title">View all Bluetooth devices</string> <string name="accessibility_list_all_devices_title">See more devices</string>
<!-- Title for the accessibility audio adjustment page. [CHAR LIMIT=50] --> <!-- Title for the accessibility audio adjustment page. [CHAR LIMIT=50] -->
<string name="accessibility_audio_adjustment_title">Audio adjustment</string> <string name="accessibility_audio_adjustment_title">Audio adjustment</string>
@@ -4885,7 +4885,7 @@
<!-- List of synonyms used in the settings search bar to find the “Autoclick(dwell timing)”. [CHAR LIMIT=NONE] --> <!-- List of synonyms used in the settings search bar to find the “Autoclick(dwell timing)”. [CHAR LIMIT=NONE] -->
<string name="keywords_auto_click">motor, mouse</string> <string name="keywords_auto_click">motor, mouse</string>
<!-- List of synonyms used in the settings search bar to find the “Hearing aids”. [CHAR LIMIT=NONE] --> <!-- List of synonyms used in the settings search bar to find the “Hearing aids”. [CHAR LIMIT=NONE] -->
<string name="keywords_hearing_aids">hard of hearing, hearing loss</string> <string name="keywords_hearing_aids">hearing aids, hard of hearing, hearing loss, cochlear implants, amplification devices, sound processors</string>
<!-- List of synonyms used in the settings search bar to find the “Real-time text (RTT)”. [CHAR LIMIT=NONE] --> <!-- List of synonyms used in the settings search bar to find the “Real-time text (RTT)”. [CHAR LIMIT=NONE] -->
<string name="keywords_rtt">hard of hearing, hearing loss, captions, Teletype, tty</string> <string name="keywords_rtt">hard of hearing, hearing loss, captions, Teletype, tty</string>
<!-- List of synonyms used in the settings search bar to find the “Voice Access”. [CHAR LIMIT=NONE] --> <!-- List of synonyms used in the settings search bar to find the “Voice Access”. [CHAR LIMIT=NONE] -->

View File

@@ -19,6 +19,9 @@
android:key="accessibility_hearing_devices_screen" android:key="accessibility_hearing_devices_screen"
android:title="@string/accessibility_hearingaid_title"> android:title="@string/accessibility_hearingaid_title">
<com.android.settingslib.widget.TopIntroPreference
android:title="@string/accessibility_hearingaid_intro" />
<PreferenceCategory <PreferenceCategory
android:key="available_hearing_devices" android:key="available_hearing_devices"
android:title="@string/accessibility_hearing_device_connected_title" android:title="@string/accessibility_hearing_device_connected_title"
@@ -40,8 +43,8 @@
settings:controller="com.android.settings.accessibility.SavedHearingDevicePreferenceController"/> settings:controller="com.android.settings.accessibility.SavedHearingDevicePreferenceController"/>
<PreferenceCategory <PreferenceCategory
android:key="device_control_category" android:key="hearing_options_category"
android:title="@string/accessibility_hearing_device_control"> android:title="@string/accessibility_screen_option">
<SwitchPreference <SwitchPreference
android:key="hearing_aid_compatibility" android:key="hearing_aid_compatibility"
android:title="@string/accessibility_hac_mode_title" android:title="@string/accessibility_hac_mode_title"

View File

@@ -60,4 +60,10 @@
android:title="@string/bluetooth_system_sounds_title" android:title="@string/bluetooth_system_sounds_title"
settings:controller="com.android.settings.bluetooth.HearingDeviceSystemSoundsRoutingPreferenceController" /> settings:controller="com.android.settings.bluetooth.HearingDeviceSystemSoundsRoutingPreferenceController" />
<com.android.settings.accessibility.AccessibilityFooterPreference
android:key="hearing_device_footer"
android:title="@string/bluetooth_audio_routing_footer_summary"
android:selectable="false"
settings:searchable="false" />
</PreferenceScreen> </PreferenceScreen>

View File

@@ -38,7 +38,7 @@ import com.android.settingslib.search.SearchIndexable;
public class AccessibilityHearingAidsFragment extends AccessibilityShortcutPreferenceFragment { public class AccessibilityHearingAidsFragment extends AccessibilityShortcutPreferenceFragment {
private static final String TAG = "AccessibilityHearingAidsFragment"; private static final String TAG = "AccessibilityHearingAidsFragment";
private static final String KEY_DEVICE_CONTROL_CATEGORY = "device_control_category"; private static final String KEY_HEARING_OPTIONS_CATEGORY = "hearing_options_category";
private static final int FIRST_PREFERENCE_IN_CATEGORY_INDEX = -1; private static final int FIRST_PREFERENCE_IN_CATEGORY_INDEX = -1;
private String mFeatureName; private String mFeatureName;
@@ -63,8 +63,8 @@ public class AccessibilityHearingAidsFragment extends AccessibilityShortcutPrefe
public View onCreateView(LayoutInflater inflater, ViewGroup container, public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) { Bundle savedInstanceState) {
final View view = super.onCreateView(inflater, container, savedInstanceState); final View view = super.onCreateView(inflater, container, savedInstanceState);
final PreferenceCategory controlCategory = findPreference(KEY_DEVICE_CONTROL_CATEGORY); final PreferenceCategory controlCategory = findPreference(KEY_HEARING_OPTIONS_CATEGORY);
// Move the preference under controlCategory need to remove the original first. // To move the shortcut preference under controlCategory need to remove the original added.
mShortcutPreference.setOrder(FIRST_PREFERENCE_IN_CATEGORY_INDEX); mShortcutPreference.setOrder(FIRST_PREFERENCE_IN_CATEGORY_INDEX);
getPreferenceScreen().removePreference(mShortcutPreference); getPreferenceScreen().removePreference(mShortcutPreference);
controlCategory.addPreference(mShortcutPreference); controlCategory.addPreference(mShortcutPreference);
@@ -110,7 +110,8 @@ public class AccessibilityHearingAidsFragment extends AccessibilityShortcutPrefe
@Override @Override
protected boolean showGeneralCategory() { protected boolean showGeneralCategory() {
// Have customized category for accessibility hearings aids page. // Have static preference under dynamically created PreferenceCategory KEY_GENERAL_CATEGORY.
// In order to modify that, we need to use our own PreferenceCategory for this page.
return false; return false;
} }