Lines Matching defs:child
46 /*package*/ static boolean drawChild(ViewGroup thisVG, Canvas canvas, View child,
48 if (child.getZ() > thisVG.getZ()) {
51 child.setBackgroundBounds();
52 ViewOutlineProvider outlineProvider = child.getOutlineProvider();
53 Outline outline = child.mAttachInfo.mTmpOutline;
54 outlineProvider.getOutline(child, outline);
56 int restoreTo = transformCanvas(thisVG, canvas, child);
57 drawShadow(thisVG, canvas, child, outline);
61 return thisVG.drawChild_Original(canvas, child, drawingTime);
64 private static void drawShadow(ViewGroup parent, Canvas canvas, View child,
66 float elevation = getElevation(child, parent);
88 private static float getElevation(View child, ViewGroup parent) {
89 return child.getZ() - parent.getZ();
108 private static int transformCanvas(ViewGroup thisVG, Canvas canvas, View child) {
110 final boolean childHasIdentityMatrix = child.hasIdentityMatrix();
116 final boolean hasTransform = thisVG.getChildStaticTransformation(child, t);
125 child.computeScroll();
126 int sx = child.mScrollX;
127 int sy = child.mScrollY;
129 canvas.translate(child.mLeft - sx, child.mTop - sy);
130 float alpha = child.getAlpha() * child.getTransitionAlpha();
147 canvas.concat(child.getMatrix());