Home | History | Annotate | Download | only in DisplayHardware

Lines Matching defs:config

653         ALOGV("[%" PRIu64 "] getAttribute failed: bad config (%u)", mId,
723 for (const auto& config : mConfigs) {
727 outConfigs[numWritten] = config->getId();
855 auto config = getConfig(configId);
856 if (!config) {
859 if (config == mActiveConfig) {
865 auto error = config->getHwc1IdForColorMode(mActiveColorMode, &hwc1Id);
873 ALOGE("setActiveConfig: Failed to set active config on HWC1 (%d)",
877 mActiveConfig = config;
915 ALOGV("[%" PRIu64 "] Setting HWC1 config %u", mId, hwc1Config);
919 ALOGE("[%" PRIu64 "] Failed to set HWC1 config (%d)", mId, intError);
1172 auto newConfig = std::make_shared<Config>(*this);
1211 ALOGV("Merged config %d with existing config %u: %s",
1219 // If it wasn't merged with any existing config, add it to the end
1222 ALOGV("Found new config %u: %s", newConfig->getId(),
1236 mConfigs.emplace_back(std::make_shared<Config>(*this));
1237 auto& config = mConfigs[0];
1239 config->setAttribute(Attribute::Width, static_cast<int32_t>(width));
1240 config->setAttribute(Attribute::Height, static_cast<int32_t>(height));
1241 config->setHwc1Id(0);
1242 config->setId(0);
1243 mActiveConfig = config;
1256 // config, so return early
1258 ALOGE("[%" PRIu64 "] Attempted to prepare, but no config active", mId);
1636 output << " " << mConfigs.size() << " Config" <<
1638 for (const auto& config : mConfigs) {
1639 output << (config == mActiveConfig ? " * " : " ");
1640 output << config->toString(true) << '\n';
1666 void HWC2On1Adapter::Display::Config::setAttribute(HWC2::Attribute attribute,
1672 int32_t HWC2On1Adapter::Display::Config::getAttribute(Attribute attribute) const
1680 void HWC2On1Adapter::Display::Config::setHwc1Id(uint32_t id)
1686 bool HWC2On1Adapter::Display::Config::hasHwc1Id(uint32_t id) const
1696 Error HWC2On1Adapter::Display::Config::getColorModeForHwc1Id(
1705 ALOGE("Unable to find color mode for HWC ID %" PRIu32 " on config %u", id, mId);
1709 Error HWC2On1Adapter::Display::Config::getHwc1IdForColorMode(android_color_mode_t mode,
1718 ALOGE("Unable to find HWC1 ID for color mode %d on config %u", mode, mId);
1722 bool HWC2On1Adapter::Display::Config::merge(const Config& other)
1745 std::set<android_color_mode_t> HWC2On1Adapter::Display::Config::getColorModes() const
1754 std::string HWC2On1Adapter::Display::Config::toString(bool splitLine) const
1810 std::shared_ptr<const HWC2On1Adapter::Display::Config>
1822 for (const auto& config : mConfigs) {
1824 auto configModes = config->getColorModes();
1835 ALOGV("getActiveConfig is null, choosing config 0");
1844 for (const auto& config : mConfigs) {
1845 if (config->hasHwc1Id(activeConfig)) {
1846 ALOGV("Setting active config to %d for HWC1 config %u",
1847 config->getId(), activeConfig);
1848 mActiveConfig = config;
1849 if (config->getColorModeForHwc1Id(activeConfig, &mActiveColorMode) != Error::None) {
1850 // This should never happen since we checked for the config's presence before
1852 ALOGE("Unable to find color mode for active HWC1 config %d",
1853 config->getId());
1860 ALOGV("Unable to find active HWC1 config %u, defaulting to "
1861 "config 0", activeConfig);