Lines Matching refs:ResTable_config

35 static bool parseMcc(const char* name, ResTable_config* out) {  in parseMcc()
65 static bool parseMnc(const char* name, ResTable_config* out) { in parseMnc()
96 static bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection()
100 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection()
101 ResTable_config::LAYOUTDIR_ANY; in parseLayoutDirection()
106 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection()
107 ResTable_config::LAYOUTDIR_LTR; in parseLayoutDirection()
112 (out->screenLayout & ~ResTable_config::MASK_LAYOUTDIR) | in parseLayoutDirection()
113 ResTable_config::LAYOUTDIR_RTL; in parseLayoutDirection()
120 static bool parseScreenLayoutSize(const char* name, ResTable_config* out) { in parseScreenLayoutSize()
124 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
125 ResTable_config::SCREENSIZE_ANY; in parseScreenLayoutSize()
130 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
131 ResTable_config::SCREENSIZE_SMALL; in parseScreenLayoutSize()
136 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
137 ResTable_config::SCREENSIZE_NORMAL; in parseScreenLayoutSize()
142 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
143 ResTable_config::SCREENSIZE_LARGE; in parseScreenLayoutSize()
148 (out->screenLayout & ~ResTable_config::MASK_SCREENSIZE) | in parseScreenLayoutSize()
149 ResTable_config::SCREENSIZE_XLARGE; in parseScreenLayoutSize()
156 static bool parseScreenLayoutLong(const char* name, ResTable_config* out) { in parseScreenLayoutLong()
160 (out->screenLayout & ~ResTable_config::MASK_SCREENLONG) | in parseScreenLayoutLong()
161 ResTable_config::SCREENLONG_ANY; in parseScreenLayoutLong()
166 (out->screenLayout & ~ResTable_config::MASK_SCREENLONG) | in parseScreenLayoutLong()
167 ResTable_config::SCREENLONG_YES; in parseScreenLayoutLong()
172 (out->screenLayout & ~ResTable_config::MASK_SCREENLONG) | in parseScreenLayoutLong()
173 ResTable_config::SCREENLONG_NO; in parseScreenLayoutLong()
180 static bool parseScreenRound(const char* name, ResTable_config* out) { in parseScreenRound()
184 (out->screenLayout2 & ~ResTable_config::MASK_SCREENROUND) | in parseScreenRound()
185 ResTable_config::SCREENROUND_ANY; in parseScreenRound()
190 (out->screenLayout2 & ~ResTable_config::MASK_SCREENROUND) | in parseScreenRound()
191 ResTable_config::SCREENROUND_YES; in parseScreenRound()
196 (out->screenLayout2 & ~ResTable_config::MASK_SCREENROUND) | in parseScreenRound()
197 ResTable_config::SCREENROUND_NO; in parseScreenRound()
203 static bool parseWideColorGamut(const char* name, ResTable_config* out) { in parseWideColorGamut()
207 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
208 ResTable_config::WIDE_COLOR_GAMUT_ANY; in parseWideColorGamut()
213 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
214 ResTable_config::WIDE_COLOR_GAMUT_YES; in parseWideColorGamut()
219 (out->colorMode & ~ResTable_config::MASK_WIDE_COLOR_GAMUT) | in parseWideColorGamut()
220 ResTable_config::WIDE_COLOR_GAMUT_NO; in parseWideColorGamut()
226 static bool parseHdr(const char* name, ResTable_config* out) { in parseHdr()
230 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
231 ResTable_config::HDR_ANY; in parseHdr()
236 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
237 ResTable_config::HDR_YES; in parseHdr()
242 (out->colorMode & ~ResTable_config::MASK_HDR) | in parseHdr()
243 ResTable_config::HDR_NO; in parseHdr()
249 static bool parseOrientation(const char* name, ResTable_config* out) { in parseOrientation()
267 static bool parseUiModeType(const char* name, ResTable_config* out) { in parseUiModeType()
270 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
271 ResTable_config::UI_MODE_TYPE_ANY; in parseUiModeType()
275 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
276 ResTable_config::UI_MODE_TYPE_DESK; in parseUiModeType()
280 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
281 ResTable_config::UI_MODE_TYPE_CAR; in parseUiModeType()
285 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
286 ResTable_config::UI_MODE_TYPE_TELEVISION; in parseUiModeType()
290 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
291 ResTable_config::UI_MODE_TYPE_APPLIANCE; in parseUiModeType()
295 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
296 ResTable_config::UI_MODE_TYPE_WATCH; in parseUiModeType()
300 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_TYPE) | in parseUiModeType()
301 ResTable_config::UI_MODE_TYPE_VR_HEADSET; in parseUiModeType()
308 static bool parseUiModeNight(const char* name, ResTable_config* out) { in parseUiModeNight()
311 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight()
312 ResTable_config::UI_MODE_NIGHT_ANY; in parseUiModeNight()
316 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight()
317 ResTable_config::UI_MODE_NIGHT_YES; in parseUiModeNight()
321 out->uiMode = (out->uiMode & ~ResTable_config::MASK_UI_MODE_NIGHT) | in parseUiModeNight()
322 ResTable_config::UI_MODE_NIGHT_NO; in parseUiModeNight()
329 static bool parseDensity(const char* name, ResTable_config* out) { in parseDensity()
331 if (out) out->density = ResTable_config::DENSITY_DEFAULT; in parseDensity()
336 if (out) out->density = ResTable_config::DENSITY_ANY; in parseDensity()
341 if (out) out->density = ResTable_config::DENSITY_NONE; in parseDensity()
346 if (out) out->density = ResTable_config::DENSITY_LOW; in parseDensity()
351 if (out) out->density = ResTable_config::DENSITY_MEDIUM; in parseDensity()
356 if (out) out->density = ResTable_config::DENSITY_TV; in parseDensity()
361 if (out) out->density = ResTable_config::DENSITY_HIGH; in parseDensity()
366 if (out) out->density = ResTable_config::DENSITY_XHIGH; in parseDensity()
371 if (out) out->density = ResTable_config::DENSITY_XXHIGH; in parseDensity()
376 if (out) out->density = ResTable_config::DENSITY_XXXHIGH; in parseDensity()
407 static bool parseTouchscreen(const char* name, ResTable_config* out) { in parseTouchscreen()
425 static bool parseKeysHidden(const char* name, ResTable_config* out) { in parseKeysHidden()
429 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
430 value = ResTable_config::KEYSHIDDEN_ANY; in parseKeysHidden()
432 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
433 value = ResTable_config::KEYSHIDDEN_NO; in parseKeysHidden()
435 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
436 value = ResTable_config::KEYSHIDDEN_YES; in parseKeysHidden()
438 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
439 value = ResTable_config::KEYSHIDDEN_SOFT; in parseKeysHidden()
450 static bool parseKeyboard(const char* name, ResTable_config* out) { in parseKeyboard()
468 static bool parseNavHidden(const char* name, ResTable_config* out) { in parseNavHidden()
472 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden()
473 value = ResTable_config::NAVHIDDEN_ANY; in parseNavHidden()
475 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden()
476 value = ResTable_config::NAVHIDDEN_NO; in parseNavHidden()
478 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden()
479 value = ResTable_config::NAVHIDDEN_YES; in parseNavHidden()
490 static bool parseNavigation(const char* name, ResTable_config* out) { in parseNavigation()
511 static bool parseScreenSize(const char* name, ResTable_config* out) { in parseScreenSize()
545 static bool parseSmallestScreenWidthDp(const char* name, ResTable_config* out) { in parseSmallestScreenWidthDp()
569 static bool parseScreenWidthDp(const char* name, ResTable_config* out) { in parseScreenWidthDp()
591 static bool parseScreenHeightDp(const char* name, ResTable_config* out) { in parseScreenHeightDp()
613 static bool parseVersion(const char* name, ResTable_config* out) { in parseVersion()
835 if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) in ApplyVersionForCompatibility()
836 == ResTable_config::UI_MODE_TYPE_VR_HEADSET || in ApplyVersionForCompatibility()
837 config->colorMode & ResTable_config::MASK_WIDE_COLOR_GAMUT || in ApplyVersionForCompatibility()
838 config->colorMode & ResTable_config::MASK_HDR) { in ApplyVersionForCompatibility()
840 } else if (config->screenLayout2 & ResTable_config::MASK_SCREENROUND) { in ApplyVersionForCompatibility()
842 } else if (config->density == ResTable_config::DENSITY_ANY) { in ApplyVersionForCompatibility()
845 ResTable_config::SCREENWIDTH_ANY || in ApplyVersionForCompatibility()
846 config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY || in ApplyVersionForCompatibility()
847 config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) { in ApplyVersionForCompatibility()
849 } else if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) != in ApplyVersionForCompatibility()
850 ResTable_config::UI_MODE_TYPE_ANY || in ApplyVersionForCompatibility()
851 (config->uiMode & ResTable_config::MASK_UI_MODE_NIGHT) != in ApplyVersionForCompatibility()
852 ResTable_config::UI_MODE_NIGHT_ANY) { in ApplyVersionForCompatibility()
854 } else if ((config->screenLayout & ResTable_config::MASK_SCREENSIZE) != in ApplyVersionForCompatibility()
855 ResTable_config::SCREENSIZE_ANY || in ApplyVersionForCompatibility()
856 (config->screenLayout & ResTable_config::MASK_SCREENLONG) != in ApplyVersionForCompatibility()
857 ResTable_config::SCREENLONG_ANY || in ApplyVersionForCompatibility()
858 config->density != ResTable_config::DENSITY_DEFAULT) { in ApplyVersionForCompatibility()