Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java220 ArrayList<String> availableLangs = in onVoiceDataIntegrityCheckDone() local
222 if (availableLangs == null || availableLangs.size() == 0) { in onVoiceDataIntegrityCheckDone()
227 updateDefaultLanguagePreference(availableLangs); in onVoiceDataIntegrityCheckDone()
338 private void updateDefaultLanguagePreference(@NonNull ArrayList<String> availableLangs) { in updateDefaultLanguagePreference() argument
341 for (int i = 0; i < availableLangs.size(); i++) { in updateDefaultLanguagePreference()
342 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLanguagePreference()
351 CharSequence[] entries = new CharSequence[availableLangs.size() + 1]; in updateDefaultLanguagePreference()
352 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLanguagePreference()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTtsEngineSettingsFragment.java266 private void updateDefaultLocalePref(ArrayList<String> availableLangs) { in updateDefaultLocalePref() argument
267 if (availableLangs == null || availableLangs.size() == 0) { in updateDefaultLocalePref()
277 new ArrayList<>(availableLangs.size()); in updateDefaultLocalePref()
278 for (int i = 0; i < availableLangs.size(); i++) { in updateDefaultLocalePref()
279 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLocalePref()
290 CharSequence[] entries = new CharSequence[availableLangs.size()+1]; in updateDefaultLocalePref()
291 CharSequence[] entryValues = new CharSequence[availableLangs.size()+1]; in updateDefaultLocalePref()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/tts/
DTextToSpeechSettings.java488 final ArrayList<String> availableLangs = in updateDefaultLocalePref() local
494 if (availableLangs == null || availableLangs.size() == 0) { in updateDefaultLocalePref()
504 new ArrayList<Pair<String, Locale>>(availableLangs.size()); in updateDefaultLocalePref()
505 for (int i = 0; i < availableLangs.size(); i++) { in updateDefaultLocalePref()
506 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLocalePref()
517 CharSequence[] entries = new CharSequence[availableLangs.size() + 1]; in updateDefaultLocalePref()
518 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLocalePref()
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java488 final ArrayList<String> availableLangs = in updateDefaultLocalePref() local
494 if (availableLangs == null || availableLangs.size() == 0) { in updateDefaultLocalePref()
504 new ArrayList<Pair<String, Locale>>(availableLangs.size()); in updateDefaultLocalePref()
505 for (int i = 0; i < availableLangs.size(); i++) { in updateDefaultLocalePref()
506 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLocalePref()
517 CharSequence[] entries = new CharSequence[availableLangs.size() + 1]; in updateDefaultLocalePref()
518 CharSequence[] entryValues = new CharSequence[availableLangs.size() + 1]; in updateDefaultLocalePref()