• Home
  • Raw
  • Download

Lines Matching refs:Layer

87 std::atomic<int32_t> Layer::sSequence{1};
89 Layer::Layer(const LayerCreationArgs& args) in Layer() function in android::Layer
164 void Layer::onFirstRef() { in onFirstRef()
168 Layer::~Layer() { in ~Layer()
208 void Layer::onLayerDisplayed(const sp<Fence>& /*releaseFence*/) {} in onLayerDisplayed()
210 void Layer::removeRelativeZ(const std::vector<Layer*>& layersInTree) { in removeRelativeZ()
215 sp<Layer> strongRelative = mDrawingState.zOrderRelativeOf.promote(); in removeRelativeZ()
228 void Layer::removeFromCurrentState() { in removeFromCurrentState()
237 sp<Layer> Layer::getRootLayer() { in getRootLayer()
238 sp<Layer> parent = getParent(); in getRootLayer()
245 void Layer::onRemovedFromCurrentState() { in onRemovedFromCurrentState()
250 traverse(LayerVector::StateSet::Current, [&](Layer* layer) { in onRemovedFromCurrentState()
256 void Layer::addToCurrentState() { in addToCurrentState()
272 bool Layer::getPremultipledAlpha() const { in getPremultipledAlpha()
276 sp<IBinder> Layer::getHandle() { in getHandle()
308 Rect Layer::getScreenBounds(bool reduceTransparentRegion) const { in getScreenBounds()
320 FloatRect Layer::getBounds() const { in getBounds()
325 FloatRect Layer::getBounds(const Region& activeTransparentRegion) const { in getBounds()
330 void Layer::computeBounds(FloatRect parentBounds, ui::Transform parentTransform, in computeBounds()
366 for (const sp<Layer>& child : mDrawingChildren) { in computeBounds()
371 Rect Layer::getCroppedBufferSize(const State& s) const { in getCroppedBufferSize()
382 void Layer::setupRoundedCornersCropCoordinates(Rect win, in setupRoundedCornersCropCoordinates()
392 void Layer::prepareBasicGeometryCompositionState() { in prepareBasicGeometryCompositionState()
428 void Layer::prepareGeometryCompositionState() { in prepareGeometryCompositionState()
433 sp<Layer> parent = mDrawingParent.promote(); in prepareGeometryCompositionState()
475 void Layer::preparePerFrameCompositionState() { in preparePerFrameCompositionState()
502 void Layer::prepareCursorCompositionState() { in prepareCursorCompositionState()
516 sp<compositionengine::LayerFE> Layer::asLayerFE() const { in asLayerFE()
521 sp<compositionengine::LayerFE> Layer::getCompositionEngineLayerFE() const { in getCompositionEngineLayerFE()
525 compositionengine::LayerFECompositionState* Layer::editCompositionState() { in editCompositionState()
529 const compositionengine::LayerFECompositionState* Layer::getCompositionState() const { in getCompositionState()
533 bool Layer::onPreComposition(nsecs_t) { in onPreComposition()
537 void Layer::prepareCompositionState(compositionengine::LayerFE::StateSubset subset) { in prepareCompositionState()
561 const char* Layer::getDebugName() const { in getDebugName()
569 std::optional<compositionengine::LayerFE::LayerSettings> Layer::prepareClientComposition( in prepareClientComposition()
621 void Layer::prepareClearClientComposition(LayerFE::LayerSettings& layerSettings, in prepareClearClientComposition()
637 std::vector<compositionengine::LayerFE::LayerSettings> Layer::prepareClientCompositionList( in prepareClientCompositionList()
658 Hwc2::IComposerClient::Composition Layer::getCompositionType(const DisplayDevice& display) const { in getCompositionType()
674 bool Layer::isSecure() const { in isSecure()
688 uint32_t Layer::doTransaction(uint32_t flags) { in doTransaction()
699 flags |= Layer::eVisibleRegion; in doTransaction()
717 void Layer::commitTransaction(State&) { in commitTransaction()
731 uint32_t Layer::getTransactionFlags(uint32_t flags) { in getTransactionFlags()
737 uint32_t Layer::setTransactionFlags(uint32_t flags) { in setTransactionFlags()
741 bool Layer::setPosition(float x, float y) { in setPosition()
751 bool Layer::setChildLayer(const sp<Layer>& childLayer, int32_t z) { in setChildLayer()
764 bool Layer::setChildRelativeLayer(const sp<Layer>& childLayer, in setChildRelativeLayer()
778 bool Layer::setLayer(int32_t z) { in setLayer()
788 sp<Layer> strongRelative = mDrawingState.zOrderRelativeOf.promote(); in setLayer()
798 void Layer::removeZOrderRelative(const wp<Layer>& relative) { in removeZOrderRelative()
805 void Layer::addZOrderRelative(const wp<Layer>& relative) { in addZOrderRelative()
812 void Layer::setZOrderRelativeOf(const wp<Layer>& relativeOf) { in setZOrderRelativeOf()
821 bool Layer::setRelativeLayer(const sp<IBinder>& relativeToHandle, int32_t relativeZ) { in setRelativeLayer()
826 sp<Layer> relative = handle->owner.promote(); in setRelativeLayer()
854 bool Layer::setTrustedOverlay(bool isTrustedOverlay) { in setTrustedOverlay()
863 bool Layer::isTrustedOverlay() const { in isTrustedOverlay()
871 bool Layer::setSize(uint32_t w, uint32_t h) { in setSize()
885 bool Layer::setAlpha(float alpha) { in setAlpha()
894 bool Layer::setBackgroundColor(const half3& color, float alpha, ui::Dataspace dataspace) { in setBackgroundColor()
932 bool Layer::setCornerRadius(float cornerRadius) { in setCornerRadius()
942 bool Layer::setBackgroundBlurRadius(int backgroundBlurRadius) { in setBackgroundBlurRadius()
952 bool Layer::setMatrix(const layer_state_t::matrix22_t& matrix, in setMatrix()
970 bool Layer::setTransparentRegionHint(const Region& transparent) { in setTransparentRegionHint()
977 bool Layer::setBlurRegions(const std::vector<BlurRegion>& blurRegions) { in setBlurRegions()
984 bool Layer::setFlags(uint32_t flags, uint32_t mask) { in setFlags()
994 bool Layer::setCrop(const Rect& crop) { in setCrop()
1005 bool Layer::setMetadata(const LayerMetadata& data) { in setMetadata()
1012 bool Layer::setLayerStack(uint32_t layerStack) { in setLayerStack()
1021 bool Layer::setColorSpaceAgnostic(const bool agnostic) { in setColorSpaceAgnostic()
1032 bool Layer::setFrameRateSelectionPriority(int32_t priority) { in setFrameRateSelectionPriority()
1041 int32_t Layer::getFrameRateSelectionPriority() const { in getFrameRateSelectionPriority()
1047 sp<Layer> parent = getParent(); in getFrameRateSelectionPriority()
1052 return Layer::PRIORITY_UNSET; in getFrameRateSelectionPriority()
1055 bool Layer::isLayerFocusedBasedOnPriority(int32_t priority) { in isLayerFocusedBasedOnPriority()
1059 uint32_t Layer::getLayerStack() const { in getLayerStack()
1067 bool Layer::setShadowRadius(float shadowRadius) { in setShadowRadius()
1079 bool Layer::setFixedTransformHint(ui::Transform::RotationFlags fixedTransformHint) { in setFixedTransformHint()
1091 bool Layer::setStretchEffect(const StretchEffect& effect) { in setStretchEffect()
1104 StretchEffect Layer::getStretchEffect() const { in getStretchEffect()
1109 sp<Layer> parent = getParent(); in getStretchEffect()
1120 bool Layer::propagateFrameRateForLayerTree(FrameRate parentFrameRate, bool* transactionNeeded) { in propagateFrameRateForLayerTree()
1135 for (const sp<Layer>& child : mCurrentChildren) { in propagateFrameRateForLayerTree()
1160 void Layer::updateTreeHasFrameRateVote() { in updateTreeHasFrameRateVote()
1161 const auto root = [&]() -> sp<Layer> { in updateTreeHasFrameRateVote()
1162 sp<Layer> layer = this; in updateTreeHasFrameRateVote()
1178 bool Layer::setFrameRate(FrameRate frameRate) { in setFrameRate()
1196 void Layer::setFrameTimelineVsyncForBufferTransaction(const FrameTimelineInfo& info, in setFrameTimelineVsyncForBufferTransaction()
1217 void Layer::setFrameTimelineVsyncForBufferlessTransaction(const FrameTimelineInfo& info, in setFrameTimelineVsyncForBufferlessTransaction()
1248 void Layer::addSurfaceFrameDroppedForBuffer( in addSurfaceFrameDroppedForBuffer()
1255 void Layer::addSurfaceFramePresentedForBuffer( in addSurfaceFramePresentedForBuffer()
1264 std::shared_ptr<frametimeline::SurfaceFrame> Layer::createSurfaceFrameForTransaction( in createSurfaceFrameForTransaction()
1282 std::shared_ptr<frametimeline::SurfaceFrame> Layer::createSurfaceFrameForBuffer( in createSurfaceFrameForBuffer()
1299 bool Layer::setFrameRateForLayerTree(FrameRate frameRate) { in setFrameRateForLayerTree()
1318 Layer::FrameRate Layer::getFrameRateForLayerTree() const { in getFrameRateForLayerTree()
1322 bool Layer::isHiddenByPolicy() const { in isHiddenByPolicy()
1339 uint32_t Layer::getEffectiveUsage(uint32_t usage) const { in getEffectiveUsage()
1352 void Layer::updateTransformHint(ui::Transform::RotationFlags transformHint) { in updateTransformHint()
1365 LayerDebugInfo Layer::getLayerDebugInfo(const DisplayDevice* display) const { in getLayerDebugInfo()
1371 sp<Layer> parent = mDrawingParent.promote(); in getLayerDebugInfo()
1415 void Layer::miniDumpHeader(std::string& result) { in miniDumpHeader()
1430 std::string Layer::frameRateCompatibilityString(Layer::FrameRateCompatibility compatibility) { in frameRateCompatibilityString()
1443 void Layer::miniDump(std::string& result, const DisplayDevice& display) const { in miniDump()
1494 void Layer::dumpFrameStats(std::string& result) const { in dumpFrameStats()
1498 void Layer::clearFrameStats() { in clearFrameStats()
1502 void Layer::logFrameStats() { in logFrameStats()
1506 void Layer::getFrameStats(FrameStats* outStats) const { in getFrameStats()
1510 void Layer::dumpFrameEvents(std::string& result) { in dumpFrameEvents()
1517 void Layer::dumpCallingUidPid(std::string& result) const { in dumpCallingUidPid()
1522 void Layer::onDisconnect() { in onDisconnect()
1530 void Layer::addAndGetFrameTimestamps(const NewFrameEventsEntry* newTimestamps, in addAndGetFrameTimestamps()
1557 size_t Layer::getChildrenCount() const { in getChildrenCount()
1559 for (const sp<Layer>& child : mCurrentChildren) { in getChildrenCount()
1565 void Layer::setGameModeForTree(int parentGameMode) { in setGameModeForTree()
1572 for (const sp<Layer>& child : mCurrentChildren) { in setGameModeForTree()
1577 void Layer::addChild(const sp<Layer>& layer) { in addChild()
1587 ssize_t Layer::removeChild(const sp<Layer>& layer) { in removeChild()
1601 void Layer::setChildrenDrawingParent(const sp<Layer>& newParent) { in setChildrenDrawingParent()
1602 for (const sp<Layer>& child : mDrawingChildren) { in setChildrenDrawingParent()
1609 bool Layer::reparent(const sp<IBinder>& newParentHandle) { in reparent()
1610 sp<Layer> newParent; in reparent()
1624 sp<Layer> parent = getParent(); in reparent()
1643 bool Layer::setColorTransform(const mat4& matrix) { in setColorTransform()
1657 mat4 Layer::getColorTransform() const { in getColorTransform()
1659 if (sp<Layer> parent = mDrawingParent.promote(); parent != nullptr) { in getColorTransform()
1665 bool Layer::hasColorTransform() const { in hasColorTransform()
1667 if (sp<Layer> parent = mDrawingParent.promote(); parent != nullptr) { in hasColorTransform()
1673 bool Layer::isLegacyDataSpace() const { in isLegacyDataSpace()
1680 void Layer::setParent(const sp<Layer>& layer) { in setParent()
1684 int32_t Layer::getZ(LayerVector::StateSet) const { in getZ()
1688 bool Layer::usingRelativeZ(LayerVector::StateSet stateSet) const { in usingRelativeZ()
1694 __attribute__((no_sanitize("unsigned-integer-overflow"))) LayerVector Layer::makeTraversalList( in makeTraversalList()
1708 for (const wp<Layer>& weakRelative : state.zOrderRelatives) { in makeTraversalList()
1709 sp<Layer> strongRelative = weakRelative.promote(); in makeTraversalList()
1715 for (const sp<Layer>& child : children) { in makeTraversalList()
1728 void Layer::traverseInZOrder(LayerVector::StateSet stateSet, const LayerVector::Visitor& visitor) { in traverseInZOrder()
1765 void Layer::traverseInReverseZOrder(LayerVector::StateSet stateSet, in traverseInReverseZOrder()
1796 void Layer::traverse(LayerVector::StateSet state, const LayerVector::Visitor& visitor) { in traverse()
1800 for (const sp<Layer>& child : children) { in traverse()
1805 LayerVector Layer::makeChildrenTraversalList(LayerVector::StateSet stateSet, in makeChildrenTraversalList()
1806 const std::vector<Layer*>& layersInTree) { in makeChildrenTraversalList()
1814 for (const wp<Layer>& weakRelative : state.zOrderRelatives) { in makeChildrenTraversalList()
1815 sp<Layer> strongRelative = weakRelative.promote(); in makeChildrenTraversalList()
1823 for (const sp<Layer>& child : children) { in makeChildrenTraversalList()
1838 void Layer::traverseChildrenInZOrderInner(const std::vector<Layer*>& layersInTree, in traverseChildrenInZOrderInner()
1859 std::vector<Layer*> Layer::getLayersInTree(LayerVector::StateSet stateSet) { in getLayersInTree()
1863 std::vector<Layer*> layersInTree = {this}; in getLayersInTree()
1866 std::vector<Layer*> childLayers = child->getLayersInTree(stateSet); in getLayersInTree()
1873 void Layer::traverseChildrenInZOrder(LayerVector::StateSet stateSet, in traverseChildrenInZOrder()
1875 std::vector<Layer*> layersInTree = getLayersInTree(stateSet); in traverseChildrenInZOrder()
1880 ui::Transform Layer::getTransform() const { in getTransform()
1884 half Layer::getAlpha() const { in getAlpha()
1891 ui::Transform::RotationFlags Layer::getFixedTransformHint() const { in getFixedTransformHint()
1901 half4 Layer::getColor() const { in getColor()
1906 int32_t Layer::getBackgroundBlurRadius() const { in getBackgroundBlurRadius()
1913 const std::vector<BlurRegion> Layer::getBlurRegions() const { in getBlurRegions()
1922 Layer::RoundedCornerState Layer::getRoundedCornerState() const { in getRoundedCornerState()
1946 void Layer::prepareShadowClientComposition(LayerFE::LayerSettings& caster, in prepareShadowClientComposition()
1979 void Layer::commitChildList() { in commitChildList()
1988 static wp<Layer> extractLayerFromBinder(const wp<IBinder>& weakBinderHandle) { in extractLayerFromBinder()
1996 sp<Layer::Handle> handle = static_cast<Layer::Handle*>(binderHandle.get()); in extractLayerFromBinder()
2003 void Layer::setInputInfo(const InputWindowInfo& info) { in setInputInfo()
2011 LayerProto* Layer::writeToProto(LayersProto& layersProto, uint32_t traceFlags, in writeToProto()
2025 for (const sp<Layer>& layer : mDrawingChildren) { in writeToProto()
2032 void Layer::writeToProtoDrawingState(LayerProto* layerInfo, uint32_t traceFlags, in writeToProtoDrawingState()
2082 void Layer::writeToProtoCommonState(LayerProto* layerInfo, LayerVector::StateSet stateSet, in writeToProtoCommonState()
2099 for (const wp<Layer>& weakRelative : state.zOrderRelatives) { in writeToProtoCommonState()
2100 sp<Layer> strongRelative = weakRelative.promote(); in writeToProtoCommonState()
2173 bool Layer::isRemovedFromCurrentState() const { in isRemovedFromCurrentState()
2177 ui::Transform Layer::getInputTransform() const { in getInputTransform()
2181 Rect Layer::getInputBounds() const { in getInputBounds()
2185 void Layer::fillInputFrameInfo(InputWindowInfo& info, const ui::Transform& toPhysicalDisplay) { in fillInputFrameInfo()
2280 void Layer::fillTouchOcclusionMode(InputWindowInfo& info) { in fillTouchOcclusionMode()
2281 sp<Layer> p = this; in fillTouchOcclusionMode()
2290 InputWindowInfo Layer::fillInputInfo(const sp<DisplayDevice>& display) { in fillInputInfo()
2350 sp<Layer> clonedRoot = getClonedRoot(); in fillInputInfo()
2360 sp<Layer> Layer::getClonedRoot() { in getClonedRoot()
2370 bool Layer::hasInputInfo() const { in hasInputInfo()
2374 bool Layer::canReceiveInput() const { in canReceiveInput()
2378 compositionengine::OutputLayer* Layer::findOutputLayerForDisplay( in findOutputLayerForDisplay()
2384 Region Layer::getVisibleRegion(const DisplayDevice* display) const { in getVisibleRegion()
2389 void Layer::setInitialValuesForClone(const sp<Layer>& clonedFrom) { in setInitialValuesForClone()
2395 void Layer::updateMirrorInfo() { in updateMirrorInfo()
2406 std::map<sp<Layer>, sp<Layer>> clonedLayersMap; in updateMirrorInfo()
2420 void Layer::updateClonedDrawingState(std::map<sp<Layer>, sp<Layer>>& clonedLayersMap) { in updateClonedDrawingState() argument
2425 sp<Layer> clonedFrom = getClonedFrom(); in updateClonedDrawingState()
2436 for (sp<Layer>& child : mDrawingChildren) { in updateClonedDrawingState()
2441 void Layer::updateClonedChildren(const sp<Layer>& mirrorRoot, in updateClonedChildren()
2442 std::map<sp<Layer>, sp<Layer>>& clonedLayersMap) { in updateClonedChildren() argument
2449 sp<Layer> clonedFrom = getClonedFrom(); in updateClonedChildren()
2450 for (sp<Layer>& child : clonedFrom->mDrawingChildren) { in updateClonedChildren()
2455 sp<Layer> clonedChild = clonedLayersMap[child]; in updateClonedChildren()
2465 void Layer::updateClonedInputInfo(const std::map<sp<Layer>, sp<Layer>>& clonedLayersMap) { in updateClonedInputInfo() argument
2473 const sp<Layer>& clonedCropLayer = clonedLayersMap.at(cropLayer); in updateClonedInputInfo()
2482 void Layer::updateClonedRelatives(const std::map<sp<Layer>, sp<Layer>>& clonedLayersMap) { in updateClonedRelatives() argument
2490 const sp<Layer>& clonedFrom = getClonedFrom(); in updateClonedRelatives()
2491 for (wp<Layer>& relativeWeak : clonedFrom->mDrawingState.zOrderRelatives) { in updateClonedRelatives()
2492 const sp<Layer>& relative = relativeWeak.promote(); in updateClonedRelatives()
2504 const sp<Layer>& relativeOf = clonedFrom->mDrawingState.zOrderRelativeOf.promote(); in updateClonedRelatives()
2506 const sp<Layer>& clonedRelativeOf = clonedLayersMap.at(relativeOf); in updateClonedRelatives()
2512 for (sp<Layer>& child : mDrawingChildren) { in updateClonedRelatives()
2517 void Layer::addChildToDrawing(const sp<Layer>& layer) { in addChildToDrawing()
2522 Layer::FrameRateCompatibility Layer::FrameRate::convertCompatibility(int8_t compatibility) { in convertCompatibility()
2536 scheduler::Seamlessness Layer::FrameRate::convertChangeFrameRateStrategy(int8_t strategy) { in convertChangeFrameRateStrategy()
2548 bool Layer::getPrimaryDisplayOnly() const { in getPrimaryDisplayOnly()
2554 sp<Layer> parent = mDrawingParent.promote(); in getPrimaryDisplayOnly()
2558 void Layer::setClonedChild(const sp<Layer>& clonedChild) { in setClonedChild()
2566 std::ostream& operator<<(std::ostream& stream, const Layer::FrameRate& rate) { in operator <<()
2568 << " type=" << Layer::frameRateCompatibilityString(rate.type) in operator <<()