Searched refs:mDefaultLanguagePreference (Results 1 – 2 of 2) sorted by relevance
76 private ListPreference mDefaultLanguagePreference; field in TtsPlaybackPreferenceController122 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 …]
84 private ListPreference mDefaultLanguagePreference; field in TtsPlaybackPreferenceControllerTest104 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 …]