Lines Matching defs:hwcId
507 const auto hwcId = displayDevice->getHwcDisplayId();
508 auto& hwcInfo = mHwcLayers[hwcId];
678 void Layer::forceClientComposition(int32_t hwcId) {
679 if (mHwcLayers.count(hwcId) == 0) {
680 ALOGE("forceClientComposition: no HWC layer found (%d)", hwcId);
684 mHwcLayers[hwcId].forceClientComposition = true;
695 auto hwcId = displayDevice->getHwcDisplayId();
696 auto& hwcLayer = mHwcLayers[hwcId].layer;
713 setCompositionType(hwcId, HWC2::Composition::Sideband);
725 if (mHwcLayers[hwcId].forceClientComposition ||
728 setCompositionType(hwcId, HWC2::Composition::Client);
734 setCompositionType(hwcId, HWC2::Composition::SolidColor);
757 setCompositionType(hwcId, HWC2::Composition::Cursor);
760 setCompositionType(hwcId, HWC2::Composition::Device);
797 auto hwcId = displayDevice->getHwcDisplayId();
798 if (mHwcLayers.count(hwcId) == 0 ||
799 getCompositionType(hwcId) != HWC2::Composition::Cursor) {
822 auto error = mHwcLayers[hwcId].layer->setCursorPosition(position.left,
1057 void Layer::setCompositionType(int32_t hwcId, HWC2::Composition type,
1059 if (mHwcLayers.count(hwcId) == 0) {
1063 auto& hwcInfo = mHwcLayers[hwcId];
1080 HWC2::Composition Layer::getCompositionType(int32_t hwcId) const {
1081 if (hwcId == DisplayDevice::DISPLAY_ID_INVALID) {
1086 if (mHwcLayers.count(hwcId) == 0) {
1090 return mHwcLayers.at(hwcId).compositionType;
1093 void Layer::setClearClientTarget(int32_t hwcId, bool clear) {
1094 if (mHwcLayers.count(hwcId) == 0) {
1098 mHwcLayers[hwcId].clearClientTarget = clear;
1101 bool Layer::getClearClientTarget(int32_t hwcId) const {
1102 if (mHwcLayers.count(hwcId) == 0) {
1106 return mHwcLayers.at(hwcId).clearClientTarget;