Home
last modified time | relevance | path

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

12345678910>>...71

/frameworks/base/tools/aapt/tests/
DResourceFilter_test.cpp39 config.language[0] = 'f'; in TEST()
40 config.language[1] = 'r'; in TEST()
60 config.language[0] = 'f'; in TEST()
61 config.language[1] = 'r'; in TEST()
71 config.language[0] = 'f'; in TEST()
72 config.language[1] = 'r'; in TEST()
83 config.language[0] = 'e'; in TEST()
84 config.language[1] = 'n'; in TEST()
94 config.language[0] = 'd'; in TEST()
95 config.language[1] = 'e'; in TEST()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DLocaleUtils.java49 String language = hasSimLanguage ? simLanguage : defaultLanguageForMcc(mcc); in getLocaleFromMcc() local
52 Rlog.d(LOG_TAG, "getLocaleFromMcc(" + language + ", " + country + ", " + mcc); in getLocaleFromMcc()
53 final Locale locale = getLocaleForLanguageCountry(context, language, country); in getLocaleFromMcc()
58 language = defaultLanguageForMcc(mcc); in getLocaleFromMcc()
59 Rlog.d(LOG_TAG, "[retry ] getLocaleFromMcc(" + language + ", " + country + ", " + mcc); in getLocaleFromMcc()
60 return getLocaleForLanguageCountry(context, language, country); in getLocaleFromMcc()
75 private static Locale getLocaleForLanguageCountry(Context context, String language, in getLocaleForLanguageCountry() argument
77 if (language == null) { in getLocaleForLanguageCountry()
85 final Locale target = new Locale(language, country); in getLocaleForLanguageCountry()
117 Rlog.d(LOG_TAG, "getLocaleForLanguageCountry: no locales for language " + language); in getLocaleForLanguageCountry()
[all …]
/frameworks/base/libs/androidfw/tests/
DLocale_test.cpp42 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != in TestLanguage()
46 << std::string(lv.language, sizeof(lv.language)) << "."; in TestLanguage()
69 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != in TestLanguageRegion()
73 << std::string(lv.language, sizeof(lv.language)) << "."; in TestLanguageRegion()
DAssetManager2_test.cpp104 desired_config.language[0] = 'd'; in TEST_F()
105 desired_config.language[1] = 'e'; in TEST_F()
124 EXPECT_EQ(0, selected_config.language[0]); in TEST_F()
125 EXPECT_EQ(0, selected_config.language[1]); in TEST_F()
134 desired_config.language[0] = 'd'; in TEST_F()
135 desired_config.language[1] = 'e'; in TEST_F()
154 EXPECT_EQ('d', selected_config.language[0]); in TEST_F()
155 EXPECT_EQ('e', selected_config.language[1]); in TEST_F()
527 expected_config.language[0] = 's'; in TEST_F()
528 expected_config.language[1] = 'v'; in TEST_F()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DANQPParserTest.java53 private static byte[] getVenueNamePayload(String[] language, String[] text) in getVenueNamePayload() argument
57 stream.write(getI18NameListPayload(language, text)); in getVenueNamePayload()
166 private static byte[] getHSFriendlyNamePayload(String[] language, String[] text) in getHSFriendlyNamePayload() argument
168 return getI18NameListPayload(language, text); in getHSFriendlyNamePayload()
246 private static byte[] getI18NameListPayload(String[] language, String[] text) in getI18NameListPayload() argument
249 for (int i = 0; i < language.length; i++) { in getI18NameListPayload()
253 stream.write(language[i].getBytes(StandardCharsets.US_ASCII)); in getI18NameListPayload()
255 if (language[i].getBytes(StandardCharsets.US_ASCII).length in getI18NameListPayload()
273 String[] language = new String[] {"en"}; in parseVenueNameElement() local
278 nameList.add(new I18Name(language[0], Locale.forLanguageTag(language[0]), text[0])); in parseVenueNameElement()
[all …]
DI18NameTest.java52 private byte[] getTestData(String language, String text) throws IOException { in getTestData() argument
54 stream.write(language.getBytes(StandardCharsets.US_ASCII)); in getTestData()
147 String language = "fr"; in parseBufferWithFrenchData() local
149 byte[] data = getTestData(language, text); in parseBufferWithFrenchData()
151 I18Name expectedName = new I18Name(language, Locale.forLanguageTag(language), text); in parseBufferWithFrenchData()
/frameworks/base/tools/aapt2/filter/
DConfigFilter.cpp64 android::localeDataComputeScript(script_buffer, config.language, config.country); in ScriptsMatch()
70 android::localeDataComputeScript(script_buffer, entry.language, entry.country); in ScriptsMatch()
104 if (config.language[0] != '\0' && config.country[0] == '\0' && in Match()
105 config.localeVariant[0] == '\0' && config.language[0] == entry.first.language[0] && in Match()
106 config.language[1] == entry.first.language[1] && ScriptsMatch(config, entry.first)) { in Match()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DI18Name.java51 public I18Name(String language, Locale locale, String text) { in I18Name() argument
52 mLanguage = language; in I18Name()
75 String language = ByteBufferReader.readString( in parse() local
80 locale = new Locale.Builder().setLanguage(language).build(); in parse()
82 throw new ProtocolException("Invalid language: " + language); in parse()
87 return new I18Name(language, locale, text); in parse()
DIconInfo.java50 public IconInfo(int width, int height, String language, String iconType, String fileName) { in IconInfo() argument
53 mLanguage = language; in IconInfo()
72 String language = ByteBufferReader.readString( in parse() local
80 return new IconInfo(width, height, language, iconType, fileName); in parse()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmSmsTest.java369 private void decodeSingle(int language) throws Exception { in decodeSingle() argument
395 String decoded = GsmAlphabet.gsm7BitPackedToString(septets, 0, 128, 0, language, 0); in decodeSingle()
396 byte[] reEncoded = GsmAlphabet.stringToGsm7BitPacked(decoded, language, 0); in decodeSingle()
398 assertEquals(sBasicTables[language], decoded); in decodeSingle()
439 for (int language = 0; language < 3; language++) { in testDecodeExtended()
440 int[] tableIndex = sExtendedTableIndexes[language]; in testDecodeExtended()
473 0, language); in testDecodeExtended()
474 byte[] reEncoded = GsmAlphabet.stringToGsm7BitPacked(decoded, 0, language); in testDecodeExtended()
476 assertEquals(sExtendedTables[language], decoded); in testDecodeExtended()
490 for (int language = 0; language < 3; language++) { in testDecodeExtendedFallback()
[all …]
/frameworks/base/tools/aapt/
DResourceFilter.cpp80 localeDataComputeScript(scriptBuffer, config.language, config.country); in scriptsMatch()
87 scriptBuffer, entry.language, entry.country); in scriptsMatch()
124 if (config.language[0] != '\0' && in match()
127 config.language[0] == entry.first.language[0] && in match()
128 config.language[1] == entry.first.language[1] && in match()
/frameworks/base/services/core/java/com/android/server/textservices/
DLocaleUtils.java73 final String language = systemLocale.getLanguage(); in getSuitableLocalesForSpellChecker() local
74 final boolean hasLanguage = !TextUtils.isEmpty(language); in getSuitableLocalesForSpellChecker()
80 systemLocaleLanguageCountryVariant = new Locale(language, country, variant); in getSuitableLocalesForSpellChecker()
85 systemLocaleLanguageCountry = new Locale(language, country); in getSuitableLocalesForSpellChecker()
90 systemLocaleLanguage = new Locale(language); in getSuitableLocalesForSpellChecker()
/frameworks/minikin/tests/perftests/
DFontLanguage.cpp24 Locale language(StringPiece("en-US", 5)); in BM_Locale_en_US() local
31 Locale language(StringPiece("en-Latn-US", 10)); in BM_Locale_en_Latn_US() local
38 Locale language(StringPiece("en-Latn-US-u-em-emoji", 21)); in BM_Locale_en_Latn_US_u_em_emoji() local
/frameworks/base/core/java/android/speech/tts/
DTtsEngines.java85 for (String language : Locale.getISOLanguages()) {
87 normalizeLanguage.put(new Locale(language).getISO3Language(), language); in normalizeLanguage.put() argument
386 String language = "", country = "", variant = ""; in parseLocaleString() local
390 language = split[0].toLowerCase(); in parseLocaleString()
410 String normalizedLanguage = sNormalizeLanguage.get(language); in parseLocaleString()
412 language = normalizedLanguage; in parseLocaleString()
420 if (DBG) Log.d(TAG, "parseLocalePref(" + language + "," + country + in parseLocaleString()
423 Locale result = new Locale(language, country, variant); in parseLocaleString()
447 String language = ttsLocale.getLanguage(); in normalizeTTSLocale() local
448 if (!TextUtils.isEmpty(language)) { in normalizeTTSLocale()
[all …]
DSynthesisRequest.java137 void setLanguage(String language, String country, String variant) { in setLanguage() argument
138 mLanguage = language; in setLanguage()
DTextToSpeech.java1485 String language = null, country = null;
1487 language = loc.getISO3Language();
1507 int result = service.isLanguageAvailable(language, country, variant);
1510 String voiceName = service.getDefaultVoiceNameFor(language, country, variant);
1512 Log.w(TAG, "Couldn't find the default voice for " + language + "-"
1519 Log.w(TAG, "The service claimed " + language + "-" + country + "-"
1530 + language + "-" + country + "-" + variant
1647 String language = "";
1649 language = voice.getLocale().getISO3Language();
1662 mParams.putString(Engine.KEY_PARAM_LANGUAGE, language);
[all …]
/frameworks/base/libs/androidfw/
DLocaleData.cpp31 inline uint32_t packLocale(const char* language, const char* region) { in packLocale() argument
32 return (((uint8_t) language[0]) << 24u) | (((uint8_t) language[1]) << 16u) | in packLocale()
201 void localeDataComputeScript(char out[4], const char* language, const char* region) { in localeDataComputeScript() argument
202 if (language[0] == '\0') { in localeDataComputeScript()
206 uint32_t lookup_key = packLocale(language, region); in localeDataComputeScript()
/frameworks/base/native/android/
Dconfiguration.cpp58 outLanguage[0] = config->language[0]; in AConfiguration_getLanguage()
59 outLanguage[1] = config->language[1]; in AConfiguration_getLanguage()
150 void AConfiguration_setLanguage(AConfiguration* config, const char* language) { in AConfiguration_setLanguage() argument
151 config->language[0] = language[0]; in AConfiguration_setLanguage()
152 config->language[1] = language[1]; in AConfiguration_setLanguage()
/frameworks/base/libs/androidfw/include/androidfw/
DLocale.h32 char language[4]; member
75 void set_language(const char* language);
76 void set_region(const char* language);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaSmsBroadcastConfigInfo.java46 int language, boolean selected) { in CdmaSmsBroadcastConfigInfo() argument
49 mLanguage = language; in CdmaSmsBroadcastConfigInfo()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsCbHeader.java512 public final String language; field in SmsCbHeader.DataCodingScheme
517 String language = null; in DataCodingScheme() local
525 language = LANGUAGE_CODES_GROUP_0[dataCodingScheme & 0x0f]; in DataCodingScheme()
539 language = LANGUAGE_CODES_GROUP_2[dataCodingScheme & 0x0f]; in DataCodingScheme()
590 this.language = language; in DataCodingScheme()
/frameworks/base/media/java/android/media/
DAudioPresentation.java132 @NonNull ULocale language, in AudioPresentation() argument
140 mLanguage = language; in AudioPresentation()
312 public @NonNull Builder setLocale(@NonNull ULocale language) { in setLocale() argument
313 mLanguage = language; in setLocale()
/frameworks/base/telephony/java/android/telephony/cdma/
DCdmaSmsCbProgramResults.java66 public CdmaSmsCbProgramResults(int category, int language, int categoryResult) { in CdmaSmsCbProgramResults() argument
68 mLanguage = language; in CdmaSmsCbProgramResults()
/frameworks/base/tools/localedata/
Dextract_icu_data.py100 def pack_language(language): argument
102 return pack_language_or_region(language, 'a')
216 language = locale.split('_')[0]
217 return likely_script_dict[language]
/frameworks/base/location/java/android/location/
DGeocoderParams.java74 String language = in.readString();
77 gp.mLocale = new Locale(language, country, variant);

12345678910>>...71