Searched refs:localeScript (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/tools/aapt2/filter/ |
D | ConfigFilter.cpp | 56 const char* config_script = config.localeScript; in ScriptsMatch() 57 const char* entry_script = entry.localeScript; in ScriptsMatch() 62 char script_buffer[sizeof(config.localeScript)]; in ScriptsMatch() 76 return memcmp(config_script, entry_script, sizeof(config.localeScript)) == 0; in ScriptsMatch()
|
/frameworks/base/tools/aapt/ |
D | ResourceFilter.cpp | 72 const char* configScript = config.localeScript; in scriptsMatch() 73 const char* entryScript = entry.localeScript; in scriptsMatch() 78 char scriptBuffer[sizeof(config.localeScript)]; in scriptsMatch() 93 return (memcmp(configScript, entryScript, sizeof(config.localeScript)) == 0); in scriptsMatch()
|
D | AaptAssets.cpp | 377 if (config.localeScript[0] && !config.localeScriptWasComputed) { in initFromResTable() 378 memcpy(script, config.localeScript, sizeof(config.localeScript)); in initFromResTable() 391 memcpy(out->localeScript, script, sizeof(out->localeScript)); in writeTo()
|
/frameworks/base/libs/androidfw/ |
D | Locale.cpp | 240 if (config.localeScript[0] && !config.localeScriptWasComputed) { in InitFromResTable() 241 memcpy(script, config.localeScript, sizeof(config.localeScript)); in InitFromResTable() 254 memcpy(out->localeScript, script, sizeof(out->localeScript)); in WriteTo()
|
D | ResourceTypes.cpp | 1949 const char emptyScript[sizeof(l.localeScript)] = {'\0', '\0', '\0', '\0'}; in compareLocales() 1950 const char *lScript = l.localeScriptWasComputed ? emptyScript : l.localeScript; in compareLocales() 1951 const char *rScript = r.localeScriptWasComputed ? emptyScript : r.localeScript; in compareLocales() 1953 int script = memcmp(lScript, rScript, sizeof(l.localeScript)); in compareLocales() 2117 + (localeScript[0] && !localeScriptWasComputed ? 2: 0) in getImportanceScoreOfLocale() 2377 requested->language, requested->localeScript, requested->country); in isLocaleBetterThan() 2705 if (settings.localeScript[0] == '\0') { // could not determine the request's script in match() 2708 if (localeScript[0] == '\0' && !localeScriptWasComputed) { in match() 2717 script = localeScript; in match() 2726 if (memcmp(script, settings.localeScript, sizeof(settings.localeScript)) != 0) { in match() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ConfigLocale_test.cpp | 127 memcpy(out->localeScript, script, 4); in fillIn() 198 EXPECT_EQ(0, memcmp("Latn", test.localeScript, 4)); in TEST() 219 EXPECT_EQ(0, memcmp("Latn", test.localeScript, 4)); in TEST() 235 EXPECT_EQ(0, memcmp("Latn", test.localeScript, 4)); in TEST() 249 EXPECT_EQ(0, memcmp("Latn", test.localeScript, 4)); in TEST() 262 EXPECT_EQ(0, memcmp("Arab", test.localeScript, 4)); in TEST() 298 EXPECT_EQ(0, memcmp("\0\0\0\0", config.localeScript, 4)); in TEST() 301 EXPECT_EQ(0, memcmp("Hant", config.localeScript, 4)); in TEST() 304 EXPECT_EQ(0, memcmp("Hans", config.localeScript, 4)); in TEST() 307 EXPECT_EQ(0, memcmp("Latn", config.localeScript, 4)); in TEST() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 1153 char localeScript[4]; member 1289 memset(localeScript, 0, sizeof(localeScript)); in clearLocale() 1295 localeDataComputeScript(localeScript, language, country); in computeScript()
|