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.java223 ArrayList<String> availableLangs = in onVoiceDataIntegrityCheckDone() local
225 if (availableLangs == null || availableLangs.size() == 0) { in onVoiceDataIntegrityCheckDone()
230 updateDefaultLanguagePreference(availableLangs); in onVoiceDataIntegrityCheckDone()
341 private void updateDefaultLanguagePreference(@NonNull ArrayList<String> availableLangs) { in updateDefaultLanguagePreference() argument
344 for (int i = 0; i < availableLangs.size(); i++) { in updateDefaultLanguagePreference()
345 Locale locale = mEnginesHelper.parseLocaleString(availableLangs.get(i)); in updateDefaultLanguagePreference()
354 CharSequence[] entries = new CharSequence[availableLangs.size() + 1]; in updateDefaultLanguagePreference()
355 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/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()
/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()