Home
last modified time | relevance | path

Searched refs:mDefaultLanguagePreference (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java76 private ListPreference mDefaultLanguagePreference; field in TtsPlaybackPreferenceController
122 mDefaultLanguagePreference = initDefaultLanguagePreference(); in onCreateInternal()
152 mDefaultLanguagePreference.setEnabled(isValid); in updateState()
155 mDefaultLanguagePreference.setVisible(false); in updateState()
159 if (!isValid && mDefaultLanguagePreference.getEntries() != null) { in updateState()
160 mDefaultLanguagePreference.setEnabled(true); in updateState()
163 if (mDefaultLanguagePreference.getEntries() != null) { in updateState()
164 mDefaultLanguagePreference.setValueIndex(mSelectedLocaleIndex); in updateState()
165 mDefaultLanguagePreference.setSummary( in updateState()
166 mDefaultLanguagePreference.getEntries()[mSelectedLocaleIndex]); in updateState()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceControllerTest.java84 private ListPreference mDefaultLanguagePreference; field in TtsPlaybackPreferenceControllerTest
104 mDefaultLanguagePreference = new ListPreference(mContext); in setUp()
105 mDefaultLanguagePreference.setKey(mContext.getString(R.string.pk_tts_default_language)); in setUp()
106 mPreferenceGroup.addPreference(mDefaultLanguagePreference); in setUp()
192 assertThat(mDefaultLanguagePreference.getEntries()).isNull(); in voiceDataCheck_processActivityResult_checkSuccess_hasVoices_populatesPreference()
208 assertThat(mDefaultLanguagePreference.getEntries().length).isEqualTo(4); in voiceDataCheck_processActivityResult_checkSuccess_hasVoices_populatesPreference()
265 mDefaultLanguagePreference.callChangeListener(""); in defaultLanguage_handlePreferenceChanged_passEmptyValue_setsDefault()
288 mDefaultLanguagePreference.callChangeListener(Locale.ENGLISH.toString()); in defaultLanguage_handlePreferenceChanged_passLocale_setsLocale()
310 mDefaultLanguagePreference.callChangeListener(Locale.ENGLISH.toString()); in defaultLanguage_handlePreferenceChanged_passLocale_setsSummary()
312 assertThat(mDefaultLanguagePreference.getSummary()).isEqualTo( in defaultLanguage_handlePreferenceChanged_passLocale_setsSummary()
[all …]