Home
last modified time | relevance | path

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

1234

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLocaleSet.java33 private static boolean isLanguageCJK(String language) { in isLanguageCJK() argument
34 return CHINESE_LANGUAGE.equals(language) || in isLanguageCJK()
35 JAPANESE_LANGUAGE.equals(language) || in isLanguageCJK()
36 KOREAN_LANGUAGE.equals(language); in isLanguageCJK()
66 public boolean isLanguage(String language) { in isLanguage() argument
67 return mLanguage == null ? (language == null) in isLanguage()
68 : mLanguage.equalsIgnoreCase(language); in isLanguage()
222 public boolean isPrimaryLanguage(String language) { in isPrimaryLanguage() argument
223 return mPrimaryLocale.isLanguage(language); in isPrimaryLanguage()
226 public boolean isSecondaryLanguage(String language) { in isSecondaryLanguage() argument
[all …]
/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/
DCellBroadcastAlertService.java370 String language = message.getLanguageCode(); in openEmergencyAlertNotification() local
371 if (message.isEtwsMessage() && !"ja".equals(language)) { in openEmergencyAlertNotification()
373 language = "ja"; in openEmergencyAlertNotification()
374 } else if (message.isCmasMessage() && !"en".equals(language)) { in openEmergencyAlertNotification()
376 language = "en"; in openEmergencyAlertNotification()
379 language); in openEmergencyAlertNotification()
/packages/apps/Browser/src/com/android/browser/search/
DSearchEngineInfo.java86 StringBuilder language = new StringBuilder(locale.getLanguage()); in SearchEngineInfo() local
88 language.append('-'); in SearchEngineInfo()
89 language.append(locale.getCountry()); in SearchEngineInfo()
92 String language_str = language.toString(); in SearchEngineInfo()
/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/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/providers/MediaProvider/src/com/android/providers/media/
DMediaScannerService.java72 String language = locale.getLanguage(); in createMediaScanner() local
75 if (language != null) { in createMediaScanner()
77 scanner.setLocale(language + "_" + country); in createMediaScanner()
79 scanner.setLocale(language); in createMediaScanner()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionSetupActivity.java620 private void setLanguage(String language) { in setLanguage() argument
621 mLanguage = language; in setLanguage()
622 mLanguageName = getLanguageName(language); in setLanguage()
624 Settings.Secure.putString(cr, Settings.Secure.ACCESSIBILITY_CAPTIONING_LOCALE, language); in setLanguage()
716 private String getLanguageName(String language) { in getLanguageName() argument
718 if (language.equals(mLanguageLocales [i])) { in getLanguageName()
DCaptionPreviewFragment.java171 public void livePreviewLanguage(String language) { in livePreviewLanguage() argument
173 if (!TextUtils.isEmpty(language)) { in livePreviewLanguage()
174 final String[] splitLocale = language.split("_"); in livePreviewLanguage()
/packages/services/Mms/src/com/android/mms/service/
DMmsHttpClient.java279 final String language = convertObsoleteLanguageCodeToNew(locale.getLanguage()); in addLocaleToHttpAcceptLanguage() local
280 if (language != null) { in addLocaleToHttpAcceptLanguage()
281 builder.append(language); in addLocaleToHttpAcceptLanguage()
/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/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/Browser/tools/
Dget_search_engines.py209 language = locale[0:separator_pos]
211 dir_path = os.path.join(self.resdir, 'values-' + language + '-r' + country)
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/
DSendCdmaCmasMessages.java145 String language, String body, int cmasCategory, int responseType, int severity, in createCmasSmsMessage() argument
152 serviceCategory, language, body, SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, null, in createCmasSmsMessage()
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/parser/
DAddressListParser.jj17 * specific language governing permissions and limitations *
49 * See the License for the specific language governing permissions and
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DAddressListParser.jj17 * specific language governing permissions and limitations *
49 * See the License for the specific language governing permissions and
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMainKeyboardView.java872 final String language = layoutLanguageOnSpacebar(paint, keyboard.mId.mSubtype, width); in drawLanguageOnSpacebar() local
885 canvas.drawText(language, width / 2, baseline - descent, paint); in drawLanguageOnSpacebar()
/packages/apps/ExactCalculator/
DNOTICE10 See the License for the specific language governing permissions and
21 See the License for the specific language governing permissions and
/packages/apps/Calculator/
DNOTICE10 See the License for the specific language governing permissions and
21 See the License for the specific language governing permissions and
Dbuild.gradle13 * See the License for the specific language governing permissions and
/packages/apps/Messaging/
Dproguard-release.flags12 # See the License for the specific language governing permissions and
/packages/apps/DeskClock/
Dbuild.gradle13 * See the License for the specific language governing permissions and

1234