Home
last modified time | relevance | path

Searched refs:availableLangs (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java246 ArrayList<String> availableLangs = in onVoiceDataIntegrityCheckDone() local
248 if (availableLangs == null || availableLangs.size() == 0) { in onVoiceDataIntegrityCheckDone()
252 updateDefaultLanguagePreference(availableLangs); in onVoiceDataIntegrityCheckDone()
363 private void updateDefaultLanguagePreference(@NonNull ArrayList<String> availableLangs) { in updateDefaultLanguagePreference() argument
366 for (int i = 0; i < availableLangs.size(); i++) { in updateDefaultLanguagePreference()
367 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLanguagePreference()
376 CharSequence[] entries = new CharSequence[availableLangs.size() + 1]; in updateDefaultLanguagePreference()
377 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLanguagePreference()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTtsEngineSettingsFragment.java268 private void updateDefaultLocalePref(ArrayList<String> availableLangs) { in updateDefaultLocalePref() argument
269 if (availableLangs == null || availableLangs.size() == 0) { in updateDefaultLocalePref()
279 new ArrayList<>(availableLangs.size()); in updateDefaultLocalePref()
280 for (int i = 0; i < availableLangs.size(); i++) { in updateDefaultLocalePref()
281 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLocalePref()
292 CharSequence[] entries = new CharSequence[availableLangs.size()+1]; in updateDefaultLocalePref()
293 CharSequence[] entryValues = new CharSequence[availableLangs.size()+1]; in updateDefaultLocalePref()
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java513 final ArrayList<String> availableLangs = in updateDefaultLocalePref() local
519 if (availableLangs == null || availableLangs.size() == 0) { in updateDefaultLocalePref()
529 new ArrayList<Pair<String, Locale>>(availableLangs.size()); in updateDefaultLocalePref()
530 for (int i = 0; i < availableLangs.size(); i++) { in updateDefaultLocalePref()
531 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLocalePref()
546 CharSequence[] entries = new CharSequence[availableLangs.size() + 1]; in updateDefaultLocalePref()
547 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLocalePref()