Home | History | Annotate | Download | only in aapt2

Lines Matching defs:config

34     static ConfigDescription config = {};
35 return config;
583 ConfigDescription config;
594 if (parseMcc(partIter->c_str(), &config)) {
601 if (parseMnc(partIter->c_str(), &config)) {
614 locale.writeTo(&config);
621 if (parseLayoutDirection(partIter->c_str(), &config)) {
628 if (parseSmallestScreenWidthDp(partIter->c_str(), &config)) {
635 if (parseScreenWidthDp(partIter->c_str(), &config)) {
642 if (parseScreenHeightDp(partIter->c_str(), &config)) {
649 if (parseScreenLayoutSize(partIter->c_str(), &config)) {
656 if (parseScreenLayoutLong(partIter->c_str(), &config)) {
663 if (parseScreenRound(partIter->c_str(), &config)) {
670 if (parseOrientation(partIter->c_str(), &config)) {
677 if (parseUiModeType(partIter->c_str(), &config)) {
684 if (parseUiModeNight(partIter->c_str(), &config)) {
691 if (parseDensity(partIter->c_str(), &config)) {
698 if (parseTouchscreen(partIter->c_str(), &config)) {
705 if (parseKeysHidden(partIter->c_str(), &config)) {
712 if (parseKeyboard(partIter->c_str(), &config)) {
719 if (parseNavHidden(partIter->c_str(), &config)) {
726 if (parseNavigation(partIter->c_str(), &config)) {
733 if (parseScreenSize(partIter->c_str(), &config)) {
740 if (parseVersion(partIter->c_str(), &config)) {
752 applyVersionForCompatibility(&config);
753 *out = config;
758 void ConfigDescription::applyVersionForCompatibility(ConfigDescription* config) {
760 if (config->screenLayout2 & ResTable_config::MASK_SCREENROUND) {
762 } else if (config->density == ResTable_config::DENSITY_ANY) {
764 } else if (config->smallestScreenWidthDp != ResTable_config::SCREENWIDTH_ANY
765 || config->screenWidthDp != ResTable_config::SCREENWIDTH_ANY
766 || config->screenHeightDp != ResTable_config::SCREENHEIGHT_ANY) {
768 } else if ((config->uiMode & ResTable_config::MASK_UI_MODE_TYPE)
770 || (config->uiMode & ResTable_config::MASK_UI_MODE_NIGHT)
773 } else if ((config->screenLayout & ResTable_config::MASK_SCREENSIZE)
775 || (config->screenLayout & ResTable_config::MASK_SCREENLONG)
777 || config->density != ResTable_config::DENSITY_DEFAULT) {
781 if (minSdk > config->sdkVersion) {
782 config->sdkVersion = minSdk;