Searched refs:shape (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DRectShape.java24 * Defines a rectangle shape.
56 final RectShape shape = (RectShape) super.clone();
57 shape.mRect = new RectF(mRect);
58 return shape;
H A DRoundRectShape.java26 * can be included (to make a sort of "O" shape).
108 RoundRectShape shape = (RoundRectShape) super.clone();
109 shape.mOuterRadii = mOuterRadii != null ? mOuterRadii.clone() : null;
110 shape.mInnerRadii = mInnerRadii != null ? mInnerRadii.clone() : null;
111 shape.mInset = new RectF(mInset);
112 shape.mInnerRect = new RectF(mInnerRect);
113 shape.mPath = new Path(mPath);
114 return shape;
H A DPathShape.java40 * @param path a Path that defines the geometric paths for this shape
41 * @param stdWidth the standard width for the shape. Any changes to the
44 * @param stdHeight the standard height for the shape. Any changes to the
70 PathShape shape = (PathShape) super.clone();
71 shape.mPath = new Path(mPath);
72 return shape;
/frameworks/base/graphics/java/android/graphics/
H A DPathDashPathEffect.java22 TRANSLATE(0), //!< translate the shape to each position
23 ROTATE(1), //!< rotate the shape about its center
33 * Dash the drawn path by stamping it with the specified shape. This only
37 * @param shape The path to stamp along
38 * @param advance spacing between each stamp of shape
39 * @param phase amount to offset before the first shape is stamped
40 * @param style how to transform the shape at each position as it is stamped
42 public PathDashPathEffect(Path shape, float advance, float phase, argument
44 native_instance = nativeCreate(shape.ni(), advance, phase,
/frameworks/base/libs/hwui/
H A DPathCache.cpp51 memset(&shape, 0, sizeof(Shape));
62 memset(&shape, 0, sizeof(Shape));
73 hash = JenkinsHashMixBytes(hash, (uint8_t*) &shape, sizeof(Shape));
360 (key.shape.path.mPath == pair.getFirst() ||
361 key.shape.path.mPath == pair.getSecond())) {
405 entry.shape.path.mPath = path;
447 entry.shape.path.mPath = path;
489 entry.shape.roundRect.mWidth = width;
490 entry.shape.roundRect.mHeight = height;
491 entry.shape
[all...]
H A DPathCache.h145 } shape; member in struct:android::uirenderer::PathDescription
177 * A simple LRU shape cache. The cache has a maximum size expressed in bytes.
/frameworks/base/core/jni/android/graphics/
H A DPathEffect.cpp43 const SkPath* shape, float advance, float phase, int style) {
44 SkASSERT(shape != NULL);
45 return new SkPath1DPathEffect(*shape, SkFloatToScalar(advance),
42 OneD_constructor(JNIEnv* env, jobject, const SkPath* shape, float advance, float phase, int style) argument
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
H A DPlaybackGraphs.java267 for (ShapeDrawable shape : mShapes) {
268 shape.draw(canvas);
270 for (ShapeDrawable shape : shapes) {
271 shape.draw(canvas);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DScene.java203 Renderable shape = (Renderable)mRenderables.get(i);
204 Matcher m = pattern.matcher(shape.mMaterialName);
206 shape.setRenderState(renderState);
214 Renderable shape = (Renderable)mRenderables.get(i);
215 shape.setRenderState(renderState);
H A DColladaParser.java166 private void getRenderable(Element shape, Transform t) { argument
167 String geoURL = shape.getAttribute("url").substring(1);
175 NodeList nl = shape.getElementsByTagName("instance_material");
205 private void updateLight(Element shape, Transform t) { argument
206 String lightURL = shape.getAttribute("url");
216 private void updateCamera(Element shape, Transform t) { argument
217 String camURL = shape.getAttribute("url");
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java179 * @param clipShape the shape to use a the clip shape.
182 // because setClip is only guaranteed to work with rectangle shape,
190 * Clips the layer with the given shape. This performs an intersect between the current
191 * clip shape and the given shape.
192 * @param shape the new clip shape.
194 public void clip(Shape shape) { argument
195 mGraphics.clip(shape);
482 clip(Shape shape, int regionOp) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DShapeDrawable.java37 * <p>This object can be defined in an XML file with the <code>&lt;shape></code> element.</p>
42 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#shape-drawable">
116 * Returns the Paint used to draw the shape.
123 * Sets padding for the shape.
143 * Sets padding for this shape, defined by a Rect object.
159 * Sets the intrinsic (default) width for this shape.
169 * Sets the intrinsic (default) height for this shape.
205 * to draw the shape at (0,0). Subclasses can override for special effects
208 protected void onDraw(Shape shape, Canvas canvas, Paint paint) { argument
209 shape
[all...]
H A DGradientDrawable.java45 * <p>It can be defined in an XML file with the <code>&lt;shape></code> element. For more
179 * is honored only when the shape is of type {@link #RECTANGLE}.</p>
200 * is honored only when the shape is of type {@link #RECTANGLE}.</p>
205 * @param radius The radius in pixels of the corners of the rectangle shape
269 * <p>Sets the size of the shape drawn by this drawable.</p>
274 * @param width The width of the shape used by this drawable
275 * @param height The height of the shape used by this drawable
287 * <p>Sets the type of shape used to draw the gradient.</p>
292 * @param shape The desired shape fo
297 setShape(int shape) argument
1161 setShape(int shape) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DPath_Delegate.java74 public void setJavaShape(Shape shape) { argument
76 mPath.append(shape, false /*connect*/);
704 * @param oval The bounds of oval defining shape and size of the arc
H A DCanvas_Delegate.java802 Shape shape = pathDelegate.getJavaShape();
807 graphics.fill(shape);
812 graphics.draw(shape);

Completed in 428 milliseconds