Home
last modified time | relevance | path

Searched refs:language (Results 1 – 25 of 121) sorted by relevance

12345

/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java209 String language = mMessagePreferredLanguage; in setTtsLanguage() local
210 if (language == null || language.isEmpty() || in setTtsLanguage()
211 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage()
212 language = mMessageDefaultLanguage; in setTtsLanguage()
213 if (language == null || language.isEmpty() || in setTtsLanguage()
214 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage()
222 if (DBG) log("Setting TTS language to '" + language + '\''); in setTtsLanguage()
225 int result = mTts.setLanguage(new Locale(language)); in setTtsLanguage()
231 loge("Language '" + language + "' is not available."); in setTtsLanguage()
/packages/apps/TV/src/com/android/tv/util/
DTvTrackInfoUtils.java38 public static Comparator<TvTrackInfo> createComparator(final String id, final String language, in createComparator() argument
55 boolean rhsLangMatch = language == null || Utils.isEqualLanguage(rhs.getLanguage(), in createComparator()
56 language); in createComparator()
57 boolean lhsLangMatch = language == null || Utils.isEqualLanguage(lhs.getLanguage(), in createComparator()
58 language); in createComparator()
98 public static TvTrackInfo getBestTrackInfo(List<TvTrackInfo> tracks, String id, String language,
103 Comparator<TvTrackInfo> comparator = createComparator(id, language, channelCount);
DTvSettings.java151 public static void setMultiAudioId(Context context, String language) { in setMultiAudioId() argument
153 PREF_MULTI_AUDIO_ID, language).apply(); in setMultiAudioId()
161 public static void setMultiAudioLanguage(Context context, String language) { in setMultiAudioLanguage() argument
163 PREF_MULTI_AUDIO_LANGUAGE, language).apply(); in setMultiAudioLanguage()
DCaptionSettings.java83 public void setLanguage(String language) { in setLanguage() argument
84 mLanguage = language; in setLanguage()
DUtils.java526 String language = context.getString(R.string.default_language); in getMultiAudioString() local
528 language = new Locale(track.getLanguage()).getDisplayName(); in getMultiAudioString()
577 return language; in getMultiAudioString()
579 return context.getString(R.string.multi_audio_display_string_with_channel, language, in getMultiAudioString()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSearch.java76 String language = locale.getLanguage(); in getLanguage() local
77 StringBuilder hl = new StringBuilder(language); in getLanguage()
80 if (!TextUtils.isEmpty(country) && useLangCountryHl(language, country)) { in getLanguage()
85 if (DBG) Log.d(TAG, "language " + language + ", country " + country + " -> hl=" + hl); in getLanguage()
90 private static boolean useLangCountryHl(String language, String country) { in useLangCountryHl() argument
92 if ("en".equals(language)) { in useLangCountryHl()
94 } else if ("zh".equals(language)) { in useLangCountryHl()
96 } else if ("pt".equals(language)) { in useLangCountryHl()
DGoogleSuggestClient.java108 String language = GoogleSearch.getLanguage(l); in query() local
110 language); in query()
/packages/apps/TV/src/com/android/tv/tuner/ts/
DSectionParser.java718 audioTrack.language = audioDescriptor.getLanguage(); in generateAudioTracks()
763 if (audioTrack.language == null || TextUtils.equals(audioTrack.language, "")) { in generateAudioTracks()
764 audioTrack.language = iso639LanguageTrack.language; in generateAudioTracks()
769 String language = ISO_LANGUAGE_CODE_MAP.get(audioTrack.language); in generateAudioTracks() local
770 if (language != null) { in generateAudioTracks()
771 audioTrack.language = language; in generateAudioTracks()
920 String language = new String(data, pos, 3); in parseIso639Language() local
923 audioTrack.language = language; in parseIso639Language()
947 String language = new String(Arrays.copyOfRange(data, pos, pos + 3)); in parseCaptionService() local
963 captionTrack.language = language; in parseCaptionService()
[all …]
/packages/apps/Settings/src/com/android/settings/support/
DSupportPhone.java32 public final String language; field in SupportPhone
42 language = tokens[0]; in SupportPhone()
48 language = in.readString(); in SupportPhone()
68 dest.writeString(language); in writeToParcel()
/packages/apps/TV/tests/unit/src/com/android/tv/util/
DUtilsTest_GetMultiAudioString.java76 private static TvTrackInfo createAudioTrackInfo(String language) { in createAudioTrackInfo() argument
77 return createAudioTrackInfo(language, 0); in createAudioTrackInfo()
80 private static TvTrackInfo createAudioTrackInfo(String language, int channelCount) { in createAudioTrackInfo() argument
82 .setLanguage(language).setAudioChannelCount(channelCount) in createAudioTrackInfo()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java357 String language = readUTF(dis); in lookupAddress() local
361 if (language != null) { in lookupAddress()
363 locale = new Locale(language); in lookupAddress()
365 locale = new Locale(language, country); in lookupAddress()
367 locale = new Locale(language, country, variant); in lookupAddress()
/packages/apps/TV/proto/
Dtrack.proto13 * See the License for the specific language governing permissions and
24 optional string language = 1; field
42 optional string language = 1; field
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
DTunerSessionWorker.java1139 String language = audioTrack.language; in notifyAudioTracksUpdated() local
1140 if (language == null && mChannel.getAudioTracks() != null in notifyAudioTracksUpdated()
1143 language = mChannel.getAudioTracks().get(i).language; in notifyAudioTracksUpdated()
1151 builder.setLanguage(language); in notifyAudioTracksUpdated()
1171 String language = captionTrack.language; in updateCaptionTracks() local
1178 builder.setLanguage(language); in updateCaptionTracks()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DLanguageOnSpacebarUtils.java61 final String language = SubtypeLocaleUtils.getSubtypeLocale(ims).getLanguage(); in getLanguageOnSpacebarFormatType() local
62 if (keyboardLanguage.equals(language) && keyboardLayout.equals( in getLanguageOnSpacebarFormatType()
DScriptUtils.java187 String language = locale.getLanguage(); in getScriptFromSpellCheckerLocale() local
188 Integer script = mLanguageCodeToScriptCode.get(language); in getScriptFromSpellCheckerLocale()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDownloadOverMeteredDialog.java60 final String language = (null == localeString) ? "" in setTexts() local
63 prompt.setText(Html.fromHtml(String.format(promptFormat, language))); in setTexts()
/packages/apps/TV/src/com/android/tv/tuner/data/
DPsipData.java335 String language, String language2) { in Ac3AudioDescriptor() argument
349 mLanguage = language; in Ac3AudioDescriptor()
662 languages.add(audioTrack.language); in getAudioLanguage()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DBmessage.java132 public Bmessage setLanguage(String language) { in setLanguage() argument
133 mBbodyLanguage = language; in setLanguage()
/packages/apps/TV/src/com/android/exoplayer/
DMediaFormatUtil.java35 String language = getOptionalStringV16(format, android.media.MediaFormat.KEY_LANGUAGE); in createMediaFormat() local
60 channelCount, sampleRate, language, MediaFormat.OFFSET_SAMPLE_RELATIVE, in createMediaFormat()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsHttpClient.java291 final String language = convertObsoleteLanguageCodeToNew(locale.getLanguage()); in addLocaleToHttpAcceptLanguage() local
292 if (language != null) { in addLocaleToHttpAcceptLanguage()
293 builder.append(language); in addLocaleToHttpAcceptLanguage()
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendCdmaCmasMessages.java131 String language, String body, int cmasCategory, int responseType, int severity, in createCmasSmsMessage() argument
138 serviceCategory, language, body, SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, null, in createCmasSmsMessage()
/packages/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java334 final String language = convertObsoleteLanguageCodeToNew(locale.getLanguage()); in addLocaleToHttpAcceptLanguage() local
335 if (language != null) { in addLocaleToHttpAcceptLanguage()
336 builder.append(language); in addLocaleToHttpAcceptLanguage()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DClosedCaptionFragment.java187 private ClosedCaptionOptionItem(String title, int option, String trackId, String language) { in ClosedCaptionOptionItem() argument
191 mLanguage = language; in ClosedCaptionOptionItem()
/packages/apps/TV/libs/
Dexoplayer.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/apps/TV/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java436 && mCaptionLayout.getCaptionTrack().language != null in isKoreanLanguageTrack()
437 && "KOR".compareToIgnoreCase(mCaptionLayout.getCaptionTrack().language) == 0; in isKoreanLanguageTrack()

12345