Lines Matching refs:ResTable_config

36 static bool parseMcc(const char* name, ResTable_config* out) {  in parseMcc()
66 static bool parseMnc(const char* name, ResTable_config* out) { in parseMnc()
97 static bool parseGrammaticalInflection(const std::string& name, ResTable_config* out) { in parseGrammaticalInflection()
100 if (out) out->grammaticalInflection = ResTable_config::GRAMMATICAL_GENDER_FEMININE; in parseGrammaticalInflection()
104 if (out) out->grammaticalInflection = ResTable_config::GRAMMATICAL_GENDER_MASCULINE; in parseGrammaticalInflection()
108 if (out) out->grammaticalInflection = ResTable_config::GRAMMATICAL_GENDER_NEUTER; in parseGrammaticalInflection()
114 static bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection()
118 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection()
119 ResTable_config::LAYOUTDIR_ANY; in parseLayoutDirection()
124 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection()
125 ResTable_config::LAYOUTDIR_LTR; in parseLayoutDirection()
130 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection()
131 ResTable_config::LAYOUTDIR_RTL; in parseLayoutDirection()
138 static bool parseScreenLayoutSize(const char* name, ResTable_config* out) { in parseScreenLayoutSize()
142 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
143 ResTable_config::SCREENSIZE_ANY; in parseScreenLayoutSize()
148 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
149 ResTable_config::SCREENSIZE_SMALL; in parseScreenLayoutSize()
154 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
155 ResTable_config::SCREENSIZE_NORMAL; in parseScreenLayoutSize()
160 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
161 ResTable_config::SCREENSIZE_LARGE; in parseScreenLayoutSize()
166 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
167 ResTable_config::SCREENSIZE_XLARGE; in parseScreenLayoutSize()
174 static bool parseScreenLayoutLong(const char* name, ResTable_config* out) { in parseScreenLayoutLong()
178 (out->screenLayout & ~ResTable_config::MASK_SCREENLONG) | in parseScreenLayoutLong()
179 ResTable_config::SCREENLONG_ANY; in parseScreenLayoutLong()
184 (out->screenLayout & ~ResTable_config::MASK_SCREENLONG) | in parseScreenLayoutLong()
185 ResTable_config::SCREENLONG_YES; in parseScreenLayoutLong()
190 (out->screenLayout & ~ResTable_config::MASK_SCREENLONG) | in parseScreenLayoutLong()
191 ResTable_config::SCREENLONG_NO; in parseScreenLayoutLong()
198 static bool parseScreenRound(const char* name, ResTable_config* out) { in parseScreenRound()
202 (out->screenLayout2 & ~ResTable_config::MASK_SCREENROUND) | in parseScreenRound()
203 ResTable_config::SCREENROUND_ANY; in parseScreenRound()
208 (out->screenLayout2 & ~ResTable_config::MASK_SCREENROUND) | in parseScreenRound()
209 ResTable_config::SCREENROUND_YES; in parseScreenRound()
214 (out->screenLayout2 & ~ResTable_config::MASK_SCREENROUND) | in parseScreenRound()
215 ResTable_config::SCREENROUND_NO; in parseScreenRound()
221 static bool parseWideColorGamut(const char* name, ResTable_config* out) { in parseWideColorGamut()
225 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
226 ResTable_config::WIDE_COLOR_GAMUT_ANY; in parseWideColorGamut()
231 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
232 ResTable_config::WIDE_COLOR_GAMUT_YES; in parseWideColorGamut()
237 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
238 ResTable_config::WIDE_COLOR_GAMUT_NO; in parseWideColorGamut()
244 static bool parseHdr(const char* name, ResTable_config* out) { in parseHdr()
248 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
249 ResTable_config::HDR_ANY; in parseHdr()
254 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
255 ResTable_config::HDR_YES; in parseHdr()
260 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
261 ResTable_config::HDR_NO; in parseHdr()
267 static bool parseOrientation(const char* name, ResTable_config* out) { in parseOrientation()
285 static bool parseUiModeType(const char* name, ResTable_config* out) { in parseUiModeType()
288 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
289 ResTable_config::UI_MODE_TYPE_ANY; in parseUiModeType()
293 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
294 ResTable_config::UI_MODE_TYPE_DESK; in parseUiModeType()
298 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
299 ResTable_config::UI_MODE_TYPE_CAR; in parseUiModeType()
303 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
304 ResTable_config::UI_MODE_TYPE_TELEVISION; in parseUiModeType()
308 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
309 ResTable_config::UI_MODE_TYPE_APPLIANCE; in parseUiModeType()
313 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
314 ResTable_config::UI_MODE_TYPE_WATCH; in parseUiModeType()
318 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
319 ResTable_config::UI_MODE_TYPE_VR_HEADSET; in parseUiModeType()
326 static bool parseUiModeNight(const char* name, ResTable_config* out) { in parseUiModeNight()
329 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight()
330 ResTable_config::UI_MODE_NIGHT_ANY; in parseUiModeNight()
334 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight()
335 ResTable_config::UI_MODE_NIGHT_YES; in parseUiModeNight()
339 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight()
340 ResTable_config::UI_MODE_NIGHT_NO; in parseUiModeNight()
347 static bool parseDensity(const char* name, ResTable_config* out) { in parseDensity()
349 if (out) out->density = ResTable_config::DENSITY_DEFAULT; in parseDensity()
354 if (out) out->density = ResTable_config::DENSITY_ANY; in parseDensity()
359 if (out) out->density = ResTable_config::DENSITY_NONE; in parseDensity()
364 if (out) out->density = ResTable_config::DENSITY_LOW; in parseDensity()
369 if (out) out->density = ResTable_config::DENSITY_MEDIUM; in parseDensity()
374 if (out) out->density = ResTable_config::DENSITY_TV; in parseDensity()
379 if (out) out->density = ResTable_config::DENSITY_HIGH; in parseDensity()
384 if (out) out->density = ResTable_config::DENSITY_XHIGH; in parseDensity()
389 if (out) out->density = ResTable_config::DENSITY_XXHIGH; in parseDensity()
394 if (out) out->density = ResTable_config::DENSITY_XXXHIGH; in parseDensity()
425 static bool parseTouchscreen(const char* name, ResTable_config* out) { in parseTouchscreen()
443 static bool parseKeysHidden(const char* name, ResTable_config* out) { in parseKeysHidden()
447 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
448 value = ResTable_config::KEYSHIDDEN_ANY; in parseKeysHidden()
450 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
451 value = ResTable_config::KEYSHIDDEN_NO; in parseKeysHidden()
453 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
454 value = ResTable_config::KEYSHIDDEN_YES; in parseKeysHidden()
456 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
457 value = ResTable_config::KEYSHIDDEN_SOFT; in parseKeysHidden()
468 static bool parseKeyboard(const char* name, ResTable_config* out) { in parseKeyboard()
486 static bool parseNavHidden(const char* name, ResTable_config* out) { in parseNavHidden()
490 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden()
491 value = ResTable_config::NAVHIDDEN_ANY; in parseNavHidden()
493 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden()
494 value = ResTable_config::NAVHIDDEN_NO; in parseNavHidden()
496 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden()
497 value = ResTable_config::NAVHIDDEN_YES; in parseNavHidden()
508 static bool parseNavigation(const char* name, ResTable_config* out) { in parseNavigation()
529 static bool parseScreenSize(const char* name, ResTable_config* out) { in parseScreenSize()
563 static bool parseSmallestScreenWidthDp(const char* name, ResTable_config* out) { in parseSmallestScreenWidthDp()
587 static bool parseScreenWidthDp(const char* name, ResTable_config* out) { in parseScreenWidthDp()
609 static bool parseScreenHeightDp(const char* name, ResTable_config* out) { in parseScreenHeightDp()
631 static bool parseVersion(const char* name, ResTable_config* out) { in parseVersion()
862 } else if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) in ApplyVersionForCompatibility()
863 == ResTable_config::UI_MODE_TYPE_VR_HEADSET || in ApplyVersionForCompatibility()
864 config->colorMode & ResTable_config::MASK_WIDE_COLOR_GAMUT || in ApplyVersionForCompatibility()
865 config->colorMode & ResTable_config::MASK_HDR) { in ApplyVersionForCompatibility()
867 } else if (config->screenLayout2 & ResTable_config::MASK_SCREENROUND) { in ApplyVersionForCompatibility()
869 } else if (config->density == ResTable_config::DENSITY_ANY) { in ApplyVersionForCompatibility()
872 ResTable_config::SCREENWIDTH_ANY || in ApplyVersionForCompatibility()
873 config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY || in ApplyVersionForCompatibility()
874 config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) { in ApplyVersionForCompatibility()
876 } else if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) != in ApplyVersionForCompatibility()
877 ResTable_config::UI_MODE_TYPE_ANY || in ApplyVersionForCompatibility()
878 (config->uiMode & ResTable_config::MASK_UI_MODE_NIGHT) != in ApplyVersionForCompatibility()
879 ResTable_config::UI_MODE_NIGHT_ANY) { in ApplyVersionForCompatibility()
881 } else if ((config->screenLayout & ResTable_config::MASK_SCREENSIZE) != in ApplyVersionForCompatibility()
882 ResTable_config::SCREENSIZE_ANY || in ApplyVersionForCompatibility()
883 (config->screenLayout & ResTable_config::MASK_SCREENLONG) != in ApplyVersionForCompatibility()
884 ResTable_config::SCREENLONG_ANY || in ApplyVersionForCompatibility()
885 config->density != ResTable_config::DENSITY_DEFAULT) { in ApplyVersionForCompatibility()