Lines Matching defs:std

43             device->callHotplug(std::move(display), connected);
55 device->callRefresh(std::move(display));
67 device->callVsync(std::move(display), timestamp);
178 std::string Device::dump() const
183 std::vector<char> buffer(numBytes);
186 return std::string(buffer.data(), buffer.size());
195 android_pixel_format_t* format, std::shared_ptr<Display>* outDisplay)
224 mHotplug(std::move(display), connected);
232 mRefresh(std::move(pending));
242 mVsync(std::move(display), timestamp);
248 void Device::callHotplug(std::shared_ptr<Display> display, Connection connected)
261 mHotplug(std::move(display), connected);
264 mPendingHotplugs.emplace_back(std::move(display), connected);
268 void Device::callRefresh(std::shared_ptr<Display> display)
271 mRefresh(std::move(display));
274 mPendingRefreshes.emplace_back(std::move(display));
278 void Device::callVsync(std::shared_ptr<Display> display, nsecs_t timestamp)
281 mVsync(std::move(display), timestamp);
284 mPendingVsyncs.emplace_back(std::move(display), timestamp);
290 std::shared_ptr<Display> Device::getDisplayById(hwc2_display_t id) {
295 auto display = std::make_shared<Display>(*this, id);
315 return std::find(mCapabilities.cbegin(), mCapabilities.cend(),
473 auto longDimension = std::max(mConfig->mWidth, mConfig->mHeight);
489 Error Display::createLayer(std::shared_ptr<Layer>* outLayer)
498 auto layer = std::make_shared<Layer>(shared_from_this(), layerId);
500 *outLayer = std::move(layer);
505 std::shared_ptr<const Display::Config>* outConfig) const
531 std::unordered_map<std::shared_ptr<Layer>, Composition>* outTypes)
541 std::vector<hwc2_layer_t> layerIds(numElements);
542 std::vector<int32_t> types(numElements);
568 Error Display::getColorModes(std::vector<int32_t>* outModes) const
578 std::vector<int32_t> modes(numModes);
586 std::swap(*outModes, modes);
590 std::vector<std::shared_ptr<const Display::Config>> Display::getConfigs() const
592 std::vector<std::shared_ptr<const Config>> configs;
599 Error Display::getName(std::string* outName) const
609 std::vector<char> rawName(size);
617 *outName = std::string(rawName.cbegin(), rawName.cend());
622 std::unordered_map<std::shared_ptr<Layer>, LayerRequest>*
634 std::vector<hwc2_layer_t> layerIds(numElements);
635 std::vector<int32_t> layerRequests(numElements);
690 std::unique_ptr<HdrCapabilities>* outCapabilities) const
704 std::vector<int32_t> types(numTypes);
712 *outCapabilities = std::make_unique<HdrCapabilities>(std::move(types),
718 std::unordered_map<std::shared_ptr<Layer>, sp<Fence>>* outFences) const
728 std::vector<hwc2_layer_t> layerIds(numElements);
729 std::vector<int32_t> fenceFds(numElements);
737 std::unordered_map<std::shared_ptr<Layer>, sp<Fence>> releaseFences;
743 releaseFences.emplace(std::move(layer), fence);
751 *outFences = std::move(releaseFences);
769 Error Display::setActiveConfig(const std::shared_ptr<const Config>& config)
875 mConfigs.emplace(configId, std::move(config));
892 std::vector<hwc2_config_t> configIds(numConfigs);
921 std::shared_ptr<Layer> Display::getLayerById(hwc2_layer_t id) const
933 Layer::Layer(const std::shared_ptr<Display>& display, hwc2_layer_t id)
979 std::vector<hwc_rect_t> hwcRects;
1075 std::vector<hwc_rect_t> hwcRects;