Home
last modified time | relevance | path

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

1234

/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/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java211 String language = mMessagePreferredLanguage; in setTtsLanguage() local
212 if (language == null || language.isEmpty() || in setTtsLanguage()
213 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage()
214 language = mMessageDefaultLanguage; in setTtsLanguage()
215 if (language == null || language.isEmpty() || in setTtsLanguage()
216 TextToSpeech.LANG_AVAILABLE != mTts.isLanguageAvailable(new Locale(language))) { in setTtsLanguage()
224 if (DBG) log("Setting TTS language to '" + language + '\''); in setTtsLanguage()
227 int result = mTts.setLanguage(new Locale(language)); in setTtsLanguage()
233 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
53 boolean rhsLangMatch = Utils.isEqualLanguage(rhs.getLanguage(), language); in createComparator()
54 boolean lhsLangMatch = Utils.isEqualLanguage(lhs.getLanguage(), language); in createComparator()
94 public static TvTrackInfo getBestTrackInfo(List<TvTrackInfo> tracks, String id, String language,
99 Comparator<TvTrackInfo> comparator = createComparator(id, language, channelCount);
DTvSettings.java155 public static void setMultiAudioId(Context context, String language) { in setMultiAudioId() argument
157 PREF_MULTI_AUDIO_ID, language).apply(); in setMultiAudioId()
165 public static void setMultiAudioLanguage(Context context, String language) { in setMultiAudioLanguage() argument
167 PREF_MULTI_AUDIO_LANGUAGE, language).apply(); in setMultiAudioLanguage()
DCaptionSettings.java83 public void setLanguage(String language) { in setLanguage() argument
84 mLanguage = language; in setLanguage()
DUtils.java410 String language = context.getString(R.string.default_language); in getMultiAudioString() local
412 language = new Locale(track.getLanguage()).getDisplayName(); in getMultiAudioString()
461 return language; in getMultiAudioString()
463 return context.getString(R.string.multi_audio_display_string_with_channel, language, in getMultiAudioString()
/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/TV/usbtuner/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/usbtuner/src/com/android/usbtuner/ts/
DSectionParser.java680 audioTrack.language = audioDescriptor.getLanguage(); in generateAudioTracks()
725 if (audioTrack.language == null) { in generateAudioTracks()
726 audioTrack.language = iso639LanguageTrack.language; in generateAudioTracks()
878 String language = new String(data, pos, 3); in parseIso639Language() local
881 audioTrack.language = language; in parseIso639Language()
905 String language = new String(Arrays.copyOfRange(data, pos, pos + 3)); in parseCaptionService() local
921 captionTrack.language = language; in parseCaptionService()
1121 String language = null; in parseAc3AudioStream() local
1137 language = new String(data, pos, 3); in parseAc3AudioStream()
1147 language, language2); in parseAc3AudioStream()
/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/services/Telephony/src/com/android/phone/
DCellBroadcastSms.java649 private static void setConfigDataCompleteLanguage(int language) { in setConfigDataCompleteLanguage() argument
652 mConfigDataComplete[i] = language; in setConfigDataCompleteLanguage()
657 int language = mConfigDataComplete[2]; in getConfigDataLanguage() local
660 if (language < 1 || language > 7) { in getConfigDataLanguage()
665 return language; in getConfigDataLanguage()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
DTunerSessionWorker.java1038 String language = audioTrack.language; in updateAudioTracks() local
1039 if (language == null && mChannel.getAudioTracks() != null in updateAudioTracks()
1042 language = mChannel.getAudioTracks().get(index).language; in updateAudioTracks()
1051 if (IsoUtils.isValidIso3Language(language)) { in updateAudioTracks()
1052 builder.setLanguage(language); in updateAudioTracks()
1080 String language = captionTrack.language; in updateCaptionTracks() local
1087 if (IsoUtils.isValidIso3Language(language)) { in updateCaptionTracks()
1088 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/usbtuner/src/com/android/usbtuner/data/
DPsipData.java334 String language, String language2) { in Ac3AudioDescriptor() argument
348 mLanguage = language; in Ac3AudioDescriptor()
660 if (IsoUtils.isValidIso3Language(audioTrack.language)) { in getAudioLanguage()
661 languages.add(audioTrack.language); in getAudioLanguage()
/packages/apps/TV/usbtuner/src/com/google/android/exoplayer/
DMediaFormatUtil.java34 String language = getOptionalStringV16(format, android.media.MediaFormat.KEY_LANGUAGE); in createMediaFormat() local
57 channelCount, sampleRate, language, MediaFormat.OFFSET_SAMPLE_RELATIVE, in createMediaFormat()
/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/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/
DSendCdmaCmasMessages.java140 String language, String body, int cmasCategory, int responseType, int severity, in createCmasSmsMessage() argument
147 serviceCategory, language, body, SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, null, in createCmasSmsMessage()
/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/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java323 final String language = convertObsoleteLanguageCodeToNew(locale.getLanguage()); in addLocaleToHttpAcceptLanguage() local
324 if (language != null) { in addLocaleToHttpAcceptLanguage()
325 builder.append(language); in addLocaleToHttpAcceptLanguage()
/packages/apps/Messaging/
Dproguard-release.flags12 # See the License for the specific language governing permissions and
Dproguard-test.flags12 # See the License for the specific language governing permissions and
/packages/apps/Calculator/
Dbuild.gradle13 * See the License for the specific language governing permissions and

1234