Home
last modified time | relevance | path

Searched refs:shape (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DRoundRectShape.java108 RoundRectShape shape = (RoundRectShape) super.clone(); in clone() local
109 shape.mOuterRadii = mOuterRadii != null ? mOuterRadii.clone() : null; in clone()
110 shape.mInnerRadii = mInnerRadii != null ? mInnerRadii.clone() : null; in clone()
111 shape.mInset = new RectF(mInset); in clone()
112 shape.mInnerRect = new RectF(mInnerRect); in clone()
113 shape.mPath = new Path(mPath); in clone()
114 return shape; in clone()
DRectShape.java56 final RectShape shape = (RectShape) super.clone(); in clone() local
57 shape.mRect = new RectF(mRect); in clone()
58 return shape; in clone()
DPathShape.java70 PathShape shape = (PathShape) super.clone(); in clone() local
71 shape.mPath = new Path(mPath); in clone()
72 return shape; in clone()
/frameworks/base/docs/html/training/graphics/opengl/
Ddraw.jd66 <p>Drawing a defined shape using OpenGL ES 2.0 requires a significant amount of code, because you
71 <li><em>Vertex Shader</em> - OpenGL ES graphics code for rendering the vertices of a shape.</li>
72 <li><em>Fragment Shader</em> - OpenGL ES code for rendering the face of a shape with colors or
78 <p>You need at least one vertex shader to draw a shape and one fragment shader to color that shape.
80 the shape. Here is an example of how to define basic shaders you can use to draw a shape:</p>
115 <p>In order to draw your shape, you must compile the shader code, add them to a OpenGL ES program
138 <p>At this point, you are ready to add the actual calls that draw your shape. Drawing shapes with
140 to draw and how to draw it. Since drawing options can vary by shape, it's a good idea to have your
141 shape classes contain their own drawing logic.</p>
143 <p>Create a {@code draw()} method for drawing the shape. This code sets the position and
[all …]
Dshapes.jd41 basics of defining a shape, shape faces, as well as defining a triangle and a square.</p>
69 // initialize vertex byte buffer for shape coordinates
92 <p>Note that the coordinates of this shape are defined in a counterclockwise order. The drawing
93 order is important because it defines which side is the front face of the shape, which you typically
103 shape in OpenGL ES is to use two triangles drawn together:</p>
110 represent this shape, and put the values in a {@link java.nio.ByteBuffer}. In order to avoid
112 OpenGL ES graphics pipeline how to draw these vertices. Here’s the code for this shape:</p>
130 // initialize vertex byte buffer for shape coordinates
Dprojection.jd101 are then passed to the drawn shape.</p>
114 // Draw shape
124 transformation matrix and apply it to the shape:</p>
130 // get handle to shape's transformation matrix
Dmotion.jd43 to a shape with rotation.</p>
78 rotates the shape only one increment and then waits for a call to {@link
/frameworks/base/graphics/java/android/graphics/
DPathDashPathEffect.java42 public PathDashPathEffect(Path shape, float advance, float phase, in PathDashPathEffect() argument
44 native_instance = nativeCreate(shape.ni(), advance, phase, in PathDashPathEffect()
/frameworks/base/core/jni/android/graphics/
DPathEffect.cpp43 const SkPath* shape, float advance, float phase, int style) { in OneD_constructor() argument
44 SkASSERT(shape != NULL); in OneD_constructor()
45 return new SkPath1DPathEffect(*shape, SkFloatToScalar(advance), in OneD_constructor()
/frameworks/base/icu4j/java/android/icu/text/
DArabicShaping.java97 public int shape(char[] source, int sourceStart, int sourceLength, in shape() method in ArabicShaping
154 public void shape(char[] source, int start, int length) throws ArabicShapingException { in shape() method in ArabicShaping
158 shape(source, start, length, source, start, length); in shape()
169 public String shape(String text) throws ArabicShapingException { in shape() method in ArabicShaping
177 int len = shape(src, 0, src.length, dest, 0, dest.length); in shape()
1728 int shape = shapeTable[nextLink & LINK_MASK] in shapeUnicode() local
1733 shape &= 0x1; in shapeUnicode()
1743 shape = 1; in shapeUnicode()
1745 shape = 0; in shapeUnicode()
1754 dest[i] = (char)('\uFE70' + irrelevantPos[dest[i] - '\u064B'] + shape); in shapeUnicode()
[all …]
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
DPlaybackGraphs.java267 for (ShapeDrawable shape : mShapes) { in drawVerticalShiftedShapes()
268 shape.draw(canvas); in drawVerticalShiftedShapes()
270 for (ShapeDrawable shape : shapes) { in drawVerticalShiftedShapes()
271 shape.draw(canvas); in drawVerticalShiftedShapes()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DColladaParser.java166 private void getRenderable(Element shape, Transform t) { in getRenderable() argument
167 String geoURL = shape.getAttribute("url").substring(1); in getRenderable()
175 NodeList nl = shape.getElementsByTagName("instance_material"); in getRenderable()
205 private void updateLight(Element shape, Transform t) { in updateLight() argument
206 String lightURL = shape.getAttribute("url"); in updateLight()
216 private void updateCamera(Element shape, Transform t) { in updateCamera() argument
217 String camURL = shape.getAttribute("url"); in updateCamera()
DScene.java203 Renderable shape = (Renderable)mRenderables.get(i); in assignRenderStateToMaterial() local
204 Matcher m = pattern.matcher(shape.mMaterialName); in assignRenderStateToMaterial()
206 shape.setRenderState(renderState); in assignRenderStateToMaterial()
214 Renderable shape = (Renderable)mRenderables.get(i); in assignRenderState() local
215 shape.setRenderState(renderState); in assignRenderState()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java194 public void clip(Shape shape) { in clip() argument
195 mGraphics.clip(shape); in clip()
482 public boolean clip(Shape shape, int regionOp) { in clip() argument
488 layer.clip(shape); in clip()
498 area = new Area(shape); in clip()
500 area = Region_Delegate.combineShapes(getClip(), shape, regionOp); in clip()
/frameworks/base/docs/html/guide/topics/resources/
Ddrawable-resource.jd52 <dd>An XML file that defines a geometric shape, including colors and gradients.
1429 <p>This is a generic shape defined in XML.</p>
1452 &lt;<a href="#shape-element">shape</a>
1454 android:shape=["rectangle" | "oval" | "line" | "ring"] >
1486 &lt;/shape>
1495 <dt id="shape-element"><code>&lt;shape&gt;</code></dt>
1496 <dd>The shape drawable. This must be the root element.
1502 <dt><code>android:shape</code></dt>
1503 <dd><em>Keyword</em>. Defines the type of shape. Valid values are:
1507 <td>A rectangle that fills the containing View. This is the default shape.</td></tr>
[all …]
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_dialog.jd100 <li>Dialog icons have a 1 pixel safeframe. The base shape must fit within the
101 safeframe, but the anti-alias of a round shape can overlap the safeframe.</li>
162 <li>Import the shape into a tool like Adobe Photoshop and scale to fit an image
Dicon_design_tab.jd245 …owrap>Inner content:</td><td>Inner content should subtract from the outer shape and consist purely…
265 …owrap>Inner content:</td><td>Inner content should subtract from the outer shape and consist purely…
322 of the anti-alias of a round shape.</li>
394 <li>Import the shape to a tool like Adobe Photoshop and scale to fit an image of
452 <li>Create the basic shape using a tool like Adobe Illustrator.</li>
453 <li>Import the shape into a tool like Adobe Photoshop and scale to fit a 32x32
Dicon_design_list.jd103 safeframe area for the edge of the anti-alias of a round shape.</li>
164 <li>Import the shape into a tool like Adobe Photoshop and scale to fit an image
Dicon_design_status_bar.jd179 status bar icon can contain a 44 x 44 pixel shape with 2 pixels on each side for padding.</p>
204 the outer shape and consist purely of transparent pixels.</td></tr>
355 …owrap>Inner content:</td><td>Inner content should subtract from the outer shape and consist purely…
404 <li>Rounded corners must always be applied to the base shape and to the details
499 <li>In a tool like Adobe Photoshop, create the base shape within a 25x25 px
Dwidget_design.jd217 do not add any extra margins outside of your app widget's background shape in Android
228 <p>Most widgets will have a solid background rectangle or rounded rectangle shape. It is a best
229 practice to define this shape using nine patches; one for each screen density (see <a
233 graphics editing program such as Adobe&reg; Photoshop. This will allow the widget background shape
Dicon_design_action_bar.jd147 the outer shape and consist purely of transparent pixels.</td></tr>
169 the outer shape and consist purely of transparent pixels.</td></tr>
/frameworks/base/graphics/java/android/graphics/drawable/
DShapeDrawable.java208 protected void onDraw(Shape shape, Canvas canvas, Paint paint) { in onDraw() argument
209 shape.draw(canvas, paint); in onDraw()
DGradientDrawable.java297 public void setShape(int shape) { in setShape() argument
300 mGradientState.setShape(shape); in setShape()
1140 public void setShape(int shape) {
1141 mShape = shape;
/frameworks/base/docs/html/training/custom-views/
Dcustom-drawing.jd76 each shape you
117 perform multiple layout calculations depending on the size and shape of their area on screen. You
239 Define a shape by adding lines and curves to a
241 android.graphics.Path} object, then draw the shape using {@link
/frameworks/base/docs/html/guide/topics/graphics/
Dopengl.jd210 vary in size and shape. OpenGL assumes a square, uniform coordinate system and, by default, happily
390 <p>In OpenGL, the face of a shape is a surface defined by three or more points in three-dimensional
393 answer has to do with winding, or, the direction in which you define the points of a shape.</p>
402 direction for the shape. By default, in OpenGL, the face which is drawn counterclockwise is the
404 the shape (as interpreted by OpenGL) and the other side is the back face.</p>
406 <p>Why is it important to know which face of a shape is the front face? The answer has to do with a
409 shape, saving time, memory and processing cycles:</p>

12