/frameworks/base/core/jni/ |
android_view_RenderNode.cpp | 30 #include <RenderNode.h> 42 (reinterpret_cast<RenderNode*>(renderNodePtr)->mutateStagingProperties().prop(val) \ 43 ? (reinterpret_cast<RenderNode*>(renderNodePtr)->setPropertyFieldsDirty(dirtyFlag), true) \ 62 // a strong ref to RenderNode which holds a strong ref to this. 81 void onRenderNodeRemoved(JNIEnv* env, RenderNode* node) { 100 RenderNode* renderNode = reinterpret_cast<RenderNode*>(renderNodePtr); 101 renderNode->output(); 106 RenderNode* renderNode = reinterpret_cast<RenderNode*>(renderNodePtr) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/view/ |
RenderNode_Delegate.java | 25 * Delegate implementing the native methods of {@link RenderNode} 27 * Through the layoutlib_create tool, some native methods of RenderNode have been replaced by calls 58 /*package*/ static long nCreate(RenderNode thisRenderNode, String name) { 65 /*package*/ static void nDestroyRenderNode(long renderNode) { 66 sManager.removeJavaReferenceFor(renderNode); 70 /*package*/ static boolean nSetElevation(long renderNode, float lift) { 71 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); 80 /*package*/ static float nGetElevation(long renderNode) { 81 RenderNode_Delegate delegate = sManager.getDelegate(renderNode); 89 /*package*/ static boolean nSetTranslationX(long renderNode, float translationX) [all...] |
/frameworks/base/libs/hwui/ |
LayerUpdateQueue.h | 29 class RenderNode; 35 Entry(RenderNode* renderNode, const Rect& damage) 36 : renderNode(renderNode) 38 RenderNode* renderNode; 43 void enqueueLayerWithDamage(RenderNode* renderNode, Rect dirty);
|
LayerUpdateQueue.cpp | 19 #include "RenderNode.h" 28 void LayerUpdateQueue::enqueueLayerWithDamage(RenderNode* renderNode, Rect damage) { 30 damage.doIntersect(0, 0, renderNode->getWidth(), renderNode->getHeight()); 33 if (CC_UNLIKELY(entry.renderNode == renderNode)) { 38 mEntries.emplace_back(renderNode, damage);
|
Animator.h | 37 class RenderNode; 79 void attach(RenderNode* target); 97 RenderNode* target() { return mTarget; } 98 RenderNode* stagingTarget() { return mStagingTarget; } 130 virtual float getValue(RenderNode* target) const = 0; 131 virtual void setValue(RenderNode* target, float value) = 0; 139 RenderNode* mTarget; 140 RenderNode* mStagingTarget; 211 virtual float getValue(RenderNode* target) const override; 212 virtual void setValue(RenderNode* target, float value) override [all...] |
Layer.cpp | 23 #include "RenderNode.h" 32 (renderNode.get() != NULL) ? renderNode->getName() : "", \ 163 void Layer::updateDeferred(RenderNode* renderNode, int left, int top, int right, int bottom) { 165 this->renderNode = renderNode; 235 RenderNode::kReplayFlag_ClipChildren); 240 renderNode->computeOrdering(); 241 renderNode->defer(deferredState, 0) [all...] |
AnimatorManager.h | 31 class RenderNode; 34 // Responsible for managing the animators for a single RenderNode 38 AnimatorManager(RenderNode& parent); 67 RenderNode& mParent;
|
RenderNode.h | 74 class RenderNode; 85 * Note that DisplayList is swapped out from beneath an individual RenderNode when a view's 86 * recorded stream of canvas operations is refreshed. The RenderNode (and its properties) stay 89 class RenderNode : public VirtualLightRefBase { 110 ANDROID_API RenderNode(); 111 ANDROID_API virtual ~RenderNode(); 133 void copyTo(proto::RenderNode* node); 238 // Called when the RenderNode's position changes 239 virtual void onPositionUpdated(RenderNode& node, const TreeInfo& info) = 0; 240 // Called when the RenderNode no longer has a position. As in, it' [all...] |
AnimationContext.h | 33 class RenderNode; 49 // Called by the RenderNode when it has internally pulsed its own animations 53 // Stops tracking the RenderNode and destroys the handle. The node must be 61 AnimationHandle(RenderNode& animatingNode, AnimationContext& context); 67 sp<RenderNode> mRenderNode; 89 ANDROID_API void addAnimatingRenderNode(RenderNode& node); 96 // as part of the standard RenderNode:prepareTree pass.
|
FrameBuilder.h | 54 * traversal within a DisplayList, and for out of order RenderNode traversal for Z and projection. 72 void deferRenderNode(RenderNode& renderNode); 74 void deferRenderNode(float tx, float ty, Rect clipRect, RenderNode& renderNode); 76 void deferRenderNodeScene(const std::vector< sp<RenderNode> >& nodes, 123 if (layer.renderNode) { 179 const BeginLayerOp* beginLayerOp, RenderNode* renderNode); 193 void deferNodePropsAndOps(RenderNode& node) [all...] |
Animator.cpp | 24 #include "RenderNode.h" 85 void BaseRenderNodeAnimator::attach(RenderNode* target) { 155 RenderNode* oldTarget = mTarget; 311 RenderNode::DirtyPropertyMask dirtyMask; 318 {RenderNode::TRANSLATION_X, &RenderProperties::getTranslationX, &RenderProperties::setTranslationX }, 319 {RenderNode::TRANSLATION_Y, &RenderProperties::getTranslationY, &RenderProperties::setTranslationY }, 320 {RenderNode::TRANSLATION_X, &RenderProperties::getTranslationZ, &RenderProperties::setTranslationZ }, 321 {RenderNode::SCALE_X, &RenderProperties::getScaleX, &RenderProperties::setScaleX }, 322 {RenderNode::SCALE_Y, &RenderProperties::getScaleY, &RenderProperties::setScaleY }, 323 {RenderNode::ROTATION, &RenderProperties::getRotation, &RenderProperties::setRotation } [all...] |
DamageAccumulator.cpp | 21 #include "RenderNode.h" 37 const RenderNode* renderNode; 61 currentFrame->renderNode->applyViewPropertyTransforms(*outMatrix); 90 void DamageAccumulator::pushTransform(const RenderNode* transform) { 93 mHead->renderNode = transform; 172 && frame->renderNode->hasProjectionReceiver()) { 184 mapRect(frame->renderNode->properties(), *rect, rect); 197 const RenderProperties& props = frame->renderNode->properties(); 214 // First, find our parent RenderNode [all...] |
LayerBuilder.h | 39 class RenderNode; 79 // saveLayer, renderNode is present for a HW layer. 81 const Rect& repaintRect, const BeginLayerOp* beginLayerOp, RenderNode* renderNode); 113 const RenderNode* renderNode;
|
/frameworks/base/libs/hwui/tests/unit/ |
LayerUpdateQueueTests.cpp | 20 #include <RenderNode.h> 33 static sp<RenderNode> createSyncedNode(uint32_t width, uint32_t height) { 34 sp<RenderNode> node = TestUtils::createNode(0, 0, width, height, nullptr); 40 sp<RenderNode> a = createSyncedNode(100, 100); 41 sp<RenderNode> b = createSyncedNode(200, 200); 42 sp<RenderNode> c = createSyncedNode(200, 200); 51 EXPECT_EQ(a.get(), queue.entries()[0].renderNode); 53 EXPECT_EQ(b.get(), queue.entries()[1].renderNode); 55 EXPECT_EQ(c.get(), queue.entries()[2].renderNode); 60 sp<RenderNode> a = createSyncedNode(100, 100) [all...] |
/frameworks/base/core/java/android/view/ |
RenderNode.java | 129 public class RenderNode { 136 private RenderNode(String name, View owningView) { 145 * @see RenderNode#adopt(long) 147 private RenderNode(long nativePtr) { 153 * Creates a new RenderNode that can be used to record batches of 156 * @param name The name of the RenderNode, used for debugging purpose. May be null. 158 * @return A new RenderNode. 160 public static RenderNode create(String name, @Nullable View owningView) { 161 return new RenderNode(name, owningView); 170 public static RenderNode adopt(long nativePtr) [all...] |
/frameworks/base/libs/hwui/tests/common/scenes/ |
HwLayerAnimation.cpp | 30 sp<RenderNode> card; 44 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y);
|
OvalAnimation.cpp | 30 sp<RenderNode> card; 47 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y);
|
ShadowGrid2Animation.cpp | 30 std::vector< sp<RenderNode> > cards; 37 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); 50 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); 54 sp<RenderNode> createCard(int x, int y, int width, int height) {
|
ShadowGridAnimation.cpp | 30 std::vector< sp<RenderNode> > cards; 37 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); 50 cards[ci]->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); 54 sp<RenderNode> createCard(int x, int y, int width, int height) {
|
RectGridAnimation.cpp | 31 sp<RenderNode> card; 59 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
ProjectionActivity.java | 11 import android.view.RenderNode; 49 RenderNode renderNode = updateDisplayListIfDirty(); 50 if (renderNode != null) { 51 renderNode.setProjectBackwards(value);
|