Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DTextToSpeechFragment.java116 private Locale mCurrentDefaultLocale; field in TextToSpeechFragment
184 if (mTts == null || mCurrentDefaultLocale == null) { in onResume()
188 if (!mCurrentDefaultLocale.equals(ttsDefaultLocale)) { in onResume()
274 final Locale oldDefaultLocale = mCurrentDefaultLocale; in checkDefaultLocale()
275 mCurrentDefaultLocale = mEnginesHelper.parseLocaleString(defaultLocale.toString()); in checkDefaultLocale()
276 if (!Objects.equals(oldDefaultLocale, mCurrentDefaultLocale)) { in checkDefaultLocale()
289 if (mCurrentDefaultLocale == null || mAvailableStrLocals == null) { in evaluateDefaultLocale()
296 String defaultLocaleStr = mCurrentDefaultLocale.getISO3Language(); in evaluateDefaultLocale()
297 if (!TextUtils.isEmpty(mCurrentDefaultLocale.getISO3Country())) { in evaluateDefaultLocale()
298 defaultLocaleStr += "-" + mCurrentDefaultLocale.getISO3Country(); in evaluateDefaultLocale()
[all …]
/packages/apps/Settings/src/com/android/settings/tts/
DTextToSpeechSettings.java135 private Locale mCurrentDefaultLocale; field in TextToSpeechSettings
216 if (mTts == null || mCurrentDefaultLocale == null) { in onResume()
238 if (mCurrentDefaultLocale != null && !mCurrentDefaultLocale.equals(ttsDefaultLocale)) { in onResume()
389 final Locale oldDefaultLocale = mCurrentDefaultLocale; in checkDefaultLocale()
390 mCurrentDefaultLocale = mEnginesHelper.parseLocaleString(defaultLocale.toString()); in checkDefaultLocale()
391 if (!Objects.equals(oldDefaultLocale, mCurrentDefaultLocale)) { in checkDefaultLocale()
404 if (mCurrentDefaultLocale == null || mAvailableStrLocals == null) { in evaluateDefaultLocale()
411 String defaultLocaleStr = mCurrentDefaultLocale.getISO3Language(); in evaluateDefaultLocale()
412 if (!TextUtils.isEmpty(mCurrentDefaultLocale.getISO3Country())) { in evaluateDefaultLocale()
413 defaultLocaleStr += "-" + mCurrentDefaultLocale.getISO3Country(); in evaluateDefaultLocale()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/tts/
DTextToSpeechSettings.java135 private Locale mCurrentDefaultLocale; field in TextToSpeechSettings
216 if (mTts == null || mCurrentDefaultLocale == null) { in onResume()
238 if (mCurrentDefaultLocale != null && !mCurrentDefaultLocale.equals(ttsDefaultLocale)) { in onResume()
389 final Locale oldDefaultLocale = mCurrentDefaultLocale; in checkDefaultLocale()
390 mCurrentDefaultLocale = mEnginesHelper.parseLocaleString(defaultLocale.toString()); in checkDefaultLocale()
391 if (!Objects.equals(oldDefaultLocale, mCurrentDefaultLocale)) { in checkDefaultLocale()
404 if (mCurrentDefaultLocale == null || mAvailableStrLocals == null) { in evaluateDefaultLocale()
411 String defaultLocaleStr = mCurrentDefaultLocale.getISO3Language(); in evaluateDefaultLocale()
412 if (!TextUtils.isEmpty(mCurrentDefaultLocale.getISO3Country())) { in evaluateDefaultLocale()
413 defaultLocaleStr += "-" + mCurrentDefaultLocale.getISO3Country(); in evaluateDefaultLocale()
[all …]