/frameworks/base/tools/aapt/tests/ |
D | ResourceFilter_test.cpp | 39 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/ |
D | LocaleUtils.java | 49 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/ |
D | Locale_test.cpp | 42 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()
|
D | AssetManager2_test.cpp | 104 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/ |
D | ANQPParserTest.java | 53 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 …]
|
D | I18NameTest.java | 52 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/ |
D | ConfigFilter.cpp | 64 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/ |
D | I18Name.java | 51 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()
|
D | IconInfo.java | 50 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/ |
D | GsmSmsTest.java | 369 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/ |
D | ResourceFilter.cpp | 80 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/ |
D | LocaleUtils.java | 73 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/ |
D | FontLanguage.cpp | 24 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/ |
D | TtsEngines.java | 85 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 …]
|
D | SynthesisRequest.java | 137 void setLanguage(String language, String country, String variant) { in setLanguage() argument 138 mLanguage = language; in setLanguage()
|
D | TextToSpeech.java | 1485 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/ |
D | LocaleData.cpp | 31 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/ |
D | configuration.cpp | 58 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/ |
D | Locale.h | 32 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/ |
D | CdmaSmsBroadcastConfigInfo.java | 46 int language, boolean selected) { in CdmaSmsBroadcastConfigInfo() argument 49 mLanguage = language; in CdmaSmsBroadcastConfigInfo()
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SmsCbHeader.java | 512 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/ |
D | AudioPresentation.java | 132 @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/ |
D | CdmaSmsCbProgramResults.java | 66 public CdmaSmsCbProgramResults(int category, int language, int categoryResult) { in CdmaSmsCbProgramResults() argument 68 mLanguage = language; in CdmaSmsCbProgramResults()
|
/frameworks/base/tools/localedata/ |
D | extract_icu_data.py | 100 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/ |
D | GeocoderParams.java | 74 String language = in.readString(); 77 gp.mLocale = new Locale(language, country, variant);
|