Lines Matching refs:ResTable_config

28 using android::ResTable_config;
268 if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) in applyVersionForCompatibility()
269 == ResTable_config::UI_MODE_TYPE_VR_HEADSET in applyVersionForCompatibility()
270 || config->colorMode & ResTable_config::MASK_WIDE_COLOR_GAMUT in applyVersionForCompatibility()
271 || config->colorMode & ResTable_config::MASK_HDR) { in applyVersionForCompatibility()
273 } else if (config->screenLayout2 & ResTable_config::MASK_SCREENROUND) { in applyVersionForCompatibility()
275 } else if (config->density == ResTable_config::DENSITY_ANY) { in applyVersionForCompatibility()
277 } else if (config->smallestScreenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility()
278 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY in applyVersionForCompatibility()
279 || config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) { in applyVersionForCompatibility()
281 } else if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE) in applyVersionForCompatibility()
282 != ResTable_config::UI_MODE_TYPE_ANY in applyVersionForCompatibility()
283 || (config->uiMode & ResTable_config::MASK_UI_MODE_NIGHT) in applyVersionForCompatibility()
284 != ResTable_config::UI_MODE_NIGHT_ANY) { in applyVersionForCompatibility()
286 } else if ((config->screenLayout & ResTable_config::MASK_SCREENSIZE) in applyVersionForCompatibility()
287 != ResTable_config::SCREENSIZE_ANY in applyVersionForCompatibility()
288 || (config->screenLayout & ResTable_config::MASK_SCREENLONG) in applyVersionForCompatibility()
289 != ResTable_config::SCREENLONG_ANY in applyVersionForCompatibility()
290 || config->density != ResTable_config::DENSITY_DEFAULT) { in applyVersionForCompatibility()
299 bool parseMcc(const char* name, ResTable_config* out) { in parseMcc()
329 bool parseMnc(const char* name, ResTable_config* out) { in parseMnc()
360 bool parseLayoutDirection(const char* name, ResTable_config* out) { in parseLayoutDirection()
363 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection()
364 | ResTable_config::LAYOUTDIR_ANY; in parseLayoutDirection()
368 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection()
369 | ResTable_config::LAYOUTDIR_LTR; in parseLayoutDirection()
373 (out->screenLayout&~ResTable_config::MASK_LAYOUTDIR) in parseLayoutDirection()
374 | ResTable_config::LAYOUTDIR_RTL; in parseLayoutDirection()
381 bool parseScreenLayoutSize(const char* name, ResTable_config* out) { in parseScreenLayoutSize()
384 (out->screenLayout&~ResTable_config::MASK_SCREENSIZE) in parseScreenLayoutSize()
385 | ResTable_config::SCREENSIZE_ANY; in parseScreenLayoutSize()
389 (out->screenLayout&~ResTable_config::MASK_SCREENSIZE) in parseScreenLayoutSize()
390 | ResTable_config::SCREENSIZE_SMALL; in parseScreenLayoutSize()
394 (out->screenLayout&~ResTable_config::MASK_SCREENSIZE) in parseScreenLayoutSize()
395 | ResTable_config::SCREENSIZE_NORMAL; in parseScreenLayoutSize()
399 (out->screenLayout&~ResTable_config::MASK_SCREENSIZE) in parseScreenLayoutSize()
400 | ResTable_config::SCREENSIZE_LARGE; in parseScreenLayoutSize()
404 (out->screenLayout&~ResTable_config::MASK_SCREENSIZE) in parseScreenLayoutSize()
405 | ResTable_config::SCREENSIZE_XLARGE; in parseScreenLayoutSize()
412 bool parseScreenLayoutLong(const char* name, ResTable_config* out) { in parseScreenLayoutLong()
415 (out->screenLayout&~ResTable_config::MASK_SCREENLONG) in parseScreenLayoutLong()
416 | ResTable_config::SCREENLONG_ANY; in parseScreenLayoutLong()
420 (out->screenLayout&~ResTable_config::MASK_SCREENLONG) in parseScreenLayoutLong()
421 | ResTable_config::SCREENLONG_YES; in parseScreenLayoutLong()
425 (out->screenLayout&~ResTable_config::MASK_SCREENLONG) in parseScreenLayoutLong()
426 | ResTable_config::SCREENLONG_NO; in parseScreenLayoutLong()
432 bool parseScreenRound(const char* name, ResTable_config* out) { in parseScreenRound()
435 (out->screenLayout2&~ResTable_config::MASK_SCREENROUND) in parseScreenRound()
436 | ResTable_config::SCREENROUND_ANY; in parseScreenRound()
440 (out->screenLayout2&~ResTable_config::MASK_SCREENROUND) in parseScreenRound()
441 | ResTable_config::SCREENROUND_YES; in parseScreenRound()
445 (out->screenLayout2&~ResTable_config::MASK_SCREENROUND) in parseScreenRound()
446 | ResTable_config::SCREENROUND_NO; in parseScreenRound()
452 bool parseWideColorGamut(const char* name, ResTable_config* out) { in parseWideColorGamut()
455 (out->colorMode&~ResTable_config::MASK_WIDE_COLOR_GAMUT) in parseWideColorGamut()
456 | ResTable_config::WIDE_COLOR_GAMUT_ANY; in parseWideColorGamut()
460 (out->colorMode&~ResTable_config::MASK_WIDE_COLOR_GAMUT) in parseWideColorGamut()
461 | ResTable_config::WIDE_COLOR_GAMUT_YES; in parseWideColorGamut()
465 (out->colorMode&~ResTable_config::MASK_WIDE_COLOR_GAMUT) in parseWideColorGamut()
466 | ResTable_config::WIDE_COLOR_GAMUT_NO; in parseWideColorGamut()
472 bool parseHdr(const char* name, ResTable_config* out) { in parseHdr()
475 (out->colorMode&~ResTable_config::MASK_HDR) in parseHdr()
476 | ResTable_config::HDR_ANY; in parseHdr()
480 (out->colorMode&~ResTable_config::MASK_HDR) in parseHdr()
481 | ResTable_config::HDR_YES; in parseHdr()
485 (out->colorMode&~ResTable_config::MASK_HDR) in parseHdr()
486 | ResTable_config::HDR_NO; in parseHdr()
492 bool parseOrientation(const char* name, ResTable_config* out) { in parseOrientation()
510 bool parseUiModeType(const char* name, ResTable_config* out) { in parseUiModeType()
513 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType()
514 | ResTable_config::UI_MODE_TYPE_ANY; in parseUiModeType()
518 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType()
519 | ResTable_config::UI_MODE_TYPE_DESK; in parseUiModeType()
523 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType()
524 | ResTable_config::UI_MODE_TYPE_CAR; in parseUiModeType()
528 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType()
529 | ResTable_config::UI_MODE_TYPE_TELEVISION; in parseUiModeType()
533 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType()
534 | ResTable_config::UI_MODE_TYPE_APPLIANCE; in parseUiModeType()
538 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType()
539 | ResTable_config::UI_MODE_TYPE_WATCH; in parseUiModeType()
543 (out->uiMode&~ResTable_config::MASK_UI_MODE_TYPE) in parseUiModeType()
544 | ResTable_config::UI_MODE_TYPE_VR_HEADSET; in parseUiModeType()
551 bool parseUiModeNight(const char* name, ResTable_config* out) { in parseUiModeNight()
554 (out->uiMode&~ResTable_config::MASK_UI_MODE_NIGHT) in parseUiModeNight()
555 | ResTable_config::UI_MODE_NIGHT_ANY; in parseUiModeNight()
559 (out->uiMode&~ResTable_config::MASK_UI_MODE_NIGHT) in parseUiModeNight()
560 | ResTable_config::UI_MODE_NIGHT_YES; in parseUiModeNight()
564 (out->uiMode&~ResTable_config::MASK_UI_MODE_NIGHT) in parseUiModeNight()
565 | ResTable_config::UI_MODE_NIGHT_NO; in parseUiModeNight()
572 bool parseDensity(const char* name, ResTable_config* out) { in parseDensity()
574 if (out) out->density = ResTable_config::DENSITY_DEFAULT; in parseDensity()
579 if (out) out->density = ResTable_config::DENSITY_ANY; in parseDensity()
584 if (out) out->density = ResTable_config::DENSITY_NONE; in parseDensity()
589 if (out) out->density = ResTable_config::DENSITY_LOW; in parseDensity()
594 if (out) out->density = ResTable_config::DENSITY_MEDIUM; in parseDensity()
599 if (out) out->density = ResTable_config::DENSITY_TV; in parseDensity()
604 if (out) out->density = ResTable_config::DENSITY_HIGH; in parseDensity()
609 if (out) out->density = ResTable_config::DENSITY_XHIGH; in parseDensity()
614 if (out) out->density = ResTable_config::DENSITY_XXHIGH; in parseDensity()
619 if (out) out->density = ResTable_config::DENSITY_XXXHIGH; in parseDensity()
652 bool parseTouchscreen(const char* name, ResTable_config* out) { in parseTouchscreen()
670 bool parseKeysHidden(const char* name, ResTable_config* out) { in parseKeysHidden()
674 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
675 value = ResTable_config::KEYSHIDDEN_ANY; in parseKeysHidden()
677 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
678 value = ResTable_config::KEYSHIDDEN_NO; in parseKeysHidden()
680 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
681 value = ResTable_config::KEYSHIDDEN_YES; in parseKeysHidden()
683 mask = ResTable_config::MASK_KEYSHIDDEN; in parseKeysHidden()
684 value = ResTable_config::KEYSHIDDEN_SOFT; in parseKeysHidden()
695 bool parseKeyboard(const char* name, ResTable_config* out) { in parseKeyboard()
713 bool parseNavHidden(const char* name, ResTable_config* out) { in parseNavHidden()
717 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden()
718 value = ResTable_config::NAVHIDDEN_ANY; in parseNavHidden()
720 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden()
721 value = ResTable_config::NAVHIDDEN_NO; in parseNavHidden()
723 mask = ResTable_config::MASK_NAVHIDDEN; in parseNavHidden()
724 value = ResTable_config::NAVHIDDEN_YES; in parseNavHidden()
735 bool parseNavigation(const char* name, ResTable_config* out) { in parseNavigation()
756 bool parseScreenSize(const char* name, ResTable_config* out) { in parseScreenSize()
790 bool parseSmallestScreenWidthDp(const char* name, ResTable_config* out) { in parseSmallestScreenWidthDp()
814 bool parseScreenWidthDp(const char* name, ResTable_config* out) { in parseScreenWidthDp()
836 bool parseScreenHeightDp(const char* name, ResTable_config* out) { in parseScreenHeightDp()
858 bool parseVersion(const char* name, ResTable_config* out) { in parseVersion()
885 String8 getVersion(const ResTable_config& config) { in getVersion()
889 bool isSameExcept(const ResTable_config& a, const ResTable_config& b, int axisMask) { in isSameExcept()
893 bool isDensityOnly(const ResTable_config& config) { in isDensityOnly()
894 if (config.density == ResTable_config::DENSITY_DEFAULT) { in isDensityOnly()
898 if (config.density == ResTable_config::DENSITY_ANY) { in isDensityOnly()
907 const uint32_t mask = ResTable_config::CONFIG_DENSITY | ResTable_config::CONFIG_VERSION; in isDensityOnly()