Home
last modified time | relevance | path

Searched refs:localeScript (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/tools/aapt2/filter/
DConfigFilter.cpp56 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/libs/androidfw/
DLocale.cpp231 static_assert(sizeof(ResTable_config::localeScript) == sizeof(LocaleValue::script));
237 if (config.localeScript[0] && !config.localeScriptWasComputed) { in InitFromResTable()
238 memcpy(script, config.localeScript, sizeof(config.localeScript)); in InitFromResTable()
251 memcpy(out->localeScript, script, sizeof(out->localeScript)); in WriteTo()
DResourceTypes.cpp2064 const char emptyScript[sizeof(l.localeScript)] = {'\0', '\0', '\0', '\0'}; in compareLocales()
2065 const char *lScript = l.localeScriptWasComputed ? emptyScript : l.localeScript; in compareLocales()
2066 const char *rScript = r.localeScriptWasComputed ? emptyScript : r.localeScript; in compareLocales()
2068 int script = memcmp(lScript, rScript, sizeof(l.localeScript)); in compareLocales()
2232 + (localeScript[0] && !localeScriptWasComputed ? 2: 0) in getImportanceScoreOfLocale()
2492 requested->language, requested->localeScript, requested->country); in isLocaleBetterThan()
2817 if (settings.localeScript[0] == '\0') { // could not determine the request's script in match()
2820 if (localeScript[0] == '\0' && !localeScriptWasComputed) { in match()
2829 script = localeScript; in match()
2838 if (memcmp(script, settings.localeScript, sizeof(settings.localeScript)) != 0) { in match()
[all …]
/frameworks/base/tools/aapt/
DResourceFilter.cpp72 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()
DAaptAssets.cpp375 if (config.localeScript[0] && !config.localeScriptWasComputed) { in initFromResTable()
376 memcpy(script, config.localeScript, sizeof(config.localeScript)); in initFromResTable()
389 memcpy(out->localeScript, script, sizeof(out->localeScript)); in writeTo()
/frameworks/base/libs/androidfw/tests/
DConfigLocale_test.cpp127 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/
DResourceTypes.h1179 char localeScript[4]; member
1315 memset(localeScript, 0, sizeof(localeScript)); in clearLocale()
1321 localeDataComputeScript(localeScript, language, country); in computeScript()