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
130 mDefaultLanguagePreference = initDefaultLanguagePreference(); in onCreateInternal()
160 mDefaultLanguagePreference.setEnabled(isValid); in updateState()
163 mDefaultLanguagePreference.setVisible(false); in updateState()
167 if (!isValid && mDefaultLanguagePreference.getEntries() != null) { in updateState()
168 mDefaultLanguagePreference.setEnabled(true); in updateState()
171 if (mDefaultLanguagePreference.getEntries() != null) { in updateState()
172 mDefaultLanguagePreference.setValueIndex(mSelectedLocaleIndex); in updateState()
173 mDefaultLanguagePreference.setSummary( in updateState()
174 mDefaultLanguagePreference.getEntries()[mSelectedLocaleIndex]); in updateState()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceControllerTest.java85 private ListPreference mDefaultLanguagePreference; field in TtsPlaybackPreferenceControllerTest
113 mDefaultLanguagePreference = new ListPreference(mContext); in setUp()
114 mDefaultLanguagePreference.setKey(mContext.getString(R.string.pk_tts_default_language)); in setUp()
115 mPreferenceGroup.addPreference(mDefaultLanguagePreference); in setUp()
193 assertThat(mDefaultLanguagePreference.getEntries()).isNull(); in voiceDataCheck_processActivityResult_checkSuccess_hasVoices_populatesPreference()
210 assertThat(mDefaultLanguagePreference.getEntries().length).isEqualTo(4); in voiceDataCheck_processActivityResult_checkSuccess_hasVoices_populatesPreference()
268 mDefaultLanguagePreference.callChangeListener(""); in defaultLanguage_handlePreferenceChanged_passEmptyValue_setsDefault()
292 mDefaultLanguagePreference.callChangeListener(Locale.ENGLISH.toString()); in defaultLanguage_handlePreferenceChanged_passLocale_setsLocale()
315 mDefaultLanguagePreference.callChangeListener(Locale.ENGLISH.toString()); in defaultLanguage_handlePreferenceChanged_passLocale_setsSummary()
317 assertThat(mDefaultLanguagePreference.getSummary()).isEqualTo( in defaultLanguage_handlePreferenceChanged_passLocale_setsSummary()
[all …]