Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/filter/
DConfigFilter.cpp55 const char* config_script = config.localeScript; in ScriptsMatch()
56 const char* entry_script = entry.localeScript; in ScriptsMatch()
61 char script_buffer[sizeof(config.localeScript)]; in ScriptsMatch()
75 return memcmp(config_script, entry_script, sizeof(config.localeScript)) == 0; in ScriptsMatch()
/frameworks/base/tools/aapt2/
DLocale.cpp232 if (config.localeScript[0] && !config.localeScriptWasComputed) { in InitFromResTable()
233 memcpy(script, config.localeScript, sizeof(config.localeScript)); in InitFromResTable()
246 memcpy(out->localeScript, script, sizeof(out->localeScript)); in WriteTo()
/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.cpp376 if (config.localeScript[0] && !config.localeScriptWasComputed) { in initFromResTable()
377 memcpy(script, config.localeScript, sizeof(config.localeScript)); in initFromResTable()
390 memcpy(out->localeScript, script, sizeof(out->localeScript)); in writeTo()
/frameworks/base/libs/androidfw/tests/
DConfigLocale_test.cpp127 memcpy(out->localeScript, script, 4); in fillIn()
186 EXPECT_EQ(0, memcmp("Latn", test.localeScript, 4)); in TEST()
205 EXPECT_EQ(0, memcmp("Latn", test.localeScript, 4)); in TEST()
220 EXPECT_EQ(0, memcmp("Latn", test.localeScript, 4)); in TEST()
233 EXPECT_EQ(0, memcmp("Latn", test.localeScript, 4)); in TEST()
244 EXPECT_EQ(0, memcmp("\0\0\0\0", config.localeScript, 4)); in TEST()
247 EXPECT_EQ(0, memcmp("Hant", config.localeScript, 4)); in TEST()
250 EXPECT_EQ(0, memcmp("Hans", config.localeScript, 4)); in TEST()
253 EXPECT_EQ(0, memcmp("Latn", config.localeScript, 4)); in TEST()
256 EXPECT_EQ(0, memcmp("Latn", config.localeScript, 4)); in TEST()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h1135 char localeScript[4]; member
1267 memset(localeScript, 0, sizeof(localeScript)); in clearLocale()
1272 localeDataComputeScript(localeScript, language, country); in computeScript()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp1903 const char emptyScript[sizeof(l.localeScript)] = {'\0', '\0', '\0', '\0'}; in compareLocales()
1904 const char *lScript = l.localeScriptWasComputed ? emptyScript : l.localeScript; in compareLocales()
1905 const char *rScript = r.localeScriptWasComputed ? emptyScript : r.localeScript; in compareLocales()
1906 int script = memcmp(lScript, rScript, sizeof(l.localeScript)); in compareLocales()
2057 const int score = ((localeScript[0] != '\0' && !localeScriptWasComputed) ? 1 : 0) + in isLocaleMoreSpecificThan()
2060 const int oScore = (o.localeScript[0] != '\0' && !o.localeScriptWasComputed ? 1 : 0) + in isLocaleMoreSpecificThan()
2306 requested->language, requested->localeScript, requested->country); in isLocaleBetterThan()
2623 if (settings.localeScript[0] == '\0') { // could not determine the request's script in match()
2626 if (localeScript[0] == '\0' && !localeScriptWasComputed) { in match()
2635 script = localeScript; in match()
[all …]