/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 | 112 desired_config.language[0] = 'd'; in TEST_F() 113 desired_config.language[1] = 'e'; in TEST_F() 126 EXPECT_EQ(0, value->config.language[0]); in TEST_F() 127 EXPECT_EQ(0, value->config.language[1]); in TEST_F() 136 desired_config.language[0] = 'd'; in TEST_F() 137 desired_config.language[1] = 'e'; in TEST_F() 150 EXPECT_EQ('d', value->config.language[0]); in TEST_F() 151 EXPECT_EQ('e', value->config.language[1]); in TEST_F() 594 expected_config.language[0] = 's'; in TEST_F() 595 expected_config.language[1] = 'v'; in TEST_F() [all …]
|
D | ResTable_test.cpp | 243 param.language[0] = 's'; in TEST() 244 param.language[1] = 'v'; in TEST() 359 param.language[0] = 'v'; in TEST() 360 param.language[1] = 's'; in TEST() 377 param.language[0] = 's'; in TEST() 378 param.language[1] = 'v'; in TEST() 413 configSv.language[0] = 's'; in TEST() 414 configSv.language[1] = 'v'; in TEST()
|
/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/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/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/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 | 1540 String language = null, country = null; 1542 language = loc.getISO3Language(); 1562 int result = service.isLanguageAvailable(language, country, variant); 1565 String voiceName = service.getDefaultVoiceNameFor(language, country, variant); 1567 Log.w(TAG, "Couldn't find the default voice for " + language + "-" 1574 Log.w(TAG, "The service claimed " + language + "-" + country + "-" 1585 + language + "-" + country + "-" + variant 1702 String language = ""; 1704 language = voice.getLocale().getISO3Language(); 1717 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/core/java/android/view/translation/ |
D | TranslationSpec.java | 74 public TranslationSpec(@NonNull String language, @DataFormat int dataFormat) { in TranslationSpec() argument 75 mLanguage = language; in TranslationSpec() 77 mLocale = new ULocale.Builder().setLanguage(language).build(); in TranslationSpec() 195 String language = in.readString(); in TranslationSpec() local 199 this.mLanguage = language; in TranslationSpec()
|
/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 | 513 public final String language; field in SmsCbHeader.DataCodingScheme 518 String language = null; in DataCodingScheme() local 526 language = LANGUAGE_CODES_GROUP_0[dataCodingScheme & 0x0f]; in DataCodingScheme() 540 language = LANGUAGE_CODES_GROUP_2[dataCodingScheme & 0x0f]; in DataCodingScheme() 591 this.language = language; in DataCodingScheme()
|
/frameworks/base/media/java/android/media/ |
D | AudioPresentation.java | 190 @NonNull ULocale language, in AudioPresentation() argument 198 mLanguage = language; in AudioPresentation() 370 public @NonNull Builder setLocale(@NonNull ULocale language) { in setLocale() argument 371 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/minikin/app/ |
D | HyphTool.cpp | 13 Hyphenator* loadHybFile(const char* fn, int minPrefix, int minSuffix, const char* language) { in loadHybFile() argument 34 return Hyphenator::loadBinary(buf, minPrefix, minSuffix, language); in loadHybFile()
|
/frameworks/av/media/libstagefright/foundation/ |
D | AudioPresentationInfo.cpp | 116 std::vector<char> language(languageSize); in deserializeAudioPresentations() local 117 serializedInput->read(language.data(), languageSize); in deserializeAudioPresentations() 118 ap.mLanguage = std::string(reinterpret_cast<char*>(language.data()), languageSize); in deserializeAudioPresentations()
|
/frameworks/base/core/proto/android/content/ |
D | locale.proto | 13 * See the License for the specific language governing permissions and 28 optional string language = 1; field
|