Searched defs:paint (Results 26 - 50 of 157) sorted by path

1234567

/frameworks/base/core/java/android/webkit/
H A DWebView.java2874 public void setLayerType(int layerType, Paint paint) { argument
2875 super.setLayerType(layerType, paint);
2876 mProvider.getViewDelegate().setLayerType(layerType, paint);
H A DWebViewProvider.java413 public void setLayerType(int layerType, Paint paint); argument
/frameworks/base/core/java/android/widget/
H A DGridLayout.java892 private void drawLine(Canvas graphics, int x1, int y1, int x2, int y2, Paint paint) { argument
895 graphics.drawLine(width - x1, y1, width - x2, y2, paint);
897 graphics.drawLine(x1, y1, x2, y2, paint);
905 protected void onDebugDrawMargins(Canvas canvas, Paint paint) { argument
915 lp.onDebugDraw(c, canvas, paint);
924 Paint paint = new Paint();
925 paint.setStyle(Paint.Style.STROKE);
926 paint.setColor(Color.argb(50, 255, 255, 255));
939 drawLine(canvas, x, top, x, bottom, paint);
947 drawLine(canvas, left, y, right, y, paint);
[all...]
H A DRadialTimePickerView.java812 final Paint paint = mPaintSelector[SELECTOR_CIRCLE];
813 paint.setColor(mSelectorColor);
814 canvas.drawCircle(selCenterX, selCenterY, selRadius, paint);
877 private static void calculatePositions(Paint paint, float radius, float xCenter, float yCenter, argument
880 paint.setTextSize(textSize);
881 yCenter -= (paint.descent() + paint.ascent()) / 2;
893 ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint,
895 paint.setTextSize(textSize);
896 paint
892 drawTextElements(Canvas canvas, float textSize, Typeface typeface, ColorStateList textColor, String[] texts, float[] textX, float[] textY, Paint paint, int alpha, boolean showActivated, int activatedDegrees, boolean activatedOnly) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java210 float angle, Paint paint) {
217 canvas.drawOval(mReusableOvalRect, paint);
311 final Paint paint = ps.mTraceCurrent[i] ? mCurrentPointPaint : mPaint;
312 canvas.drawPoint(lastX, lastY, paint);
209 drawOval(Canvas canvas, float x, float y, float major, float minor, float angle, Paint paint) argument
/frameworks/base/core/jni/android/graphics/
H A DBitmap.cpp1279 const android::Paint* paint = reinterpret_cast<android::Paint*>(paintHandle); local
1284 src.extractAlpha(&dst, paint, &allocator, &offset);
H A DBitmapFactory.cpp539 SkPaint paint; local
543 paint.setBlendMode(SkBlendMode::kSrc);
544 paint.setFilterQuality(kLow_SkFilterQuality); // bilinear filtering
548 canvas.drawBitmap(decodingBitmap, 0.0f, 0.0f, &paint);
H A DCanvasProperty.cpp34 const Paint* paint = reinterpret_cast<const Paint*>(paintPtr); local
35 return reinterpret_cast<jlong>(new CanvasPropertyPaint(*paint));
H A DDrawFilter.cpp44 virtual bool filter(SkPaint* paint, Type type) { argument
45 SkPaintFlagsDrawFilter::filter(paint, type);
46 paint->setFilterQuality(fDesiredQuality);
H A DHarfBuzzNGFaceSkia.cpp55 explicit HarfBuzzFontData(SkPaint* paint) : m_paint(paint) { } argument
59 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* width, hb_glyph_extents_t* extents) argument
62 paint->setTextEncoding(SkPaint::kGlyphID_TextEncoding);
68 paint->getTextWidths(&glyph, sizeof(glyph), &skWidth, &skBounds);
86 SkPaint* paint = hbFontData->m_paint; local
87 paint->setTextEncoding(SkPaint::kUTF32_TextEncoding);
95 paint->textToGlyphs(&unichar, sizeof(unichar), &glyph16);
166 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY) { argument
175 HarfBuzzFontData* data = new HarfBuzzFontData(paint);
[all...]
H A DPaint.cpp68 static void defaultSettingsForAndroid(Paint* paint) { argument
70 paint->setTextEncoding(Paint::kGlyphID_TextEncoding);
78 static void deletePaint(Paint* paint) { argument
79 delete paint;
103 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
104 Paint* obj = new Paint(*paint);
108 static int breakText(JNIEnv* env, const Paint& paint, Typeface* typeface, const jchar text[], argument
115 MinikinUtils::measureText(&paint, bidiFlags, typeface, text, 0, count, count,
145 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
163 count = breakText(env, *paint, typefac
174 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
184 doTextAdvances(JNIEnv *env, Paint *paint, Typeface* typeface, const jchar *text, jint start, jint count, jint contextCount, jint bidiFlags, jfloatArray advances, jint advancesIndex) argument
219 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
232 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
242 doTextRunCursor(JNIEnv *env, Paint* paint, Typeface* typeface, const jchar *text, jint start, jint count, jint dir, jint offset, jint opt) argument
257 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
269 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
280 GetTextFunctor(const minikin::Layout& layout, SkPath* path, jfloat x, jfloat y, Paint* paint, uint16_t* glyphs, SkPoint* pos) argument
303 Paint* paint; member in class:android::PaintGlue::GetTextFunctor
309 getTextPath(JNIEnv* env, Paint* paint, Typeface* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument
331 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
342 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
350 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, Typeface* typeface, jint bidiFlags) argument
369 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
378 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
428 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
501 doRunAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jint offset) argument
517 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
527 doOffsetForAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jfloat advance) argument
539 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
560 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
576 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
702 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
713 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
848 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
923 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
928 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
933 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
938 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
943 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
948 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
966 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
977 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
[all...]
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp91 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
93 return static_cast<jint>(get_canvas(canvasHandle)->saveLayer(l, t, r, b, paint, flags));
219 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
220 get_canvas(canvasHandle)->drawPaint(*paint);
225 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
226 get_canvas(canvasHandle)->drawPoint(x, y, *paint);
241 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
242 get_canvas(canvasHandle)->drawPoints(floats + offset, count, *paint);
247 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
248 get_canvas(canvasHandle)->drawLine(startX, startY, stopX, stopY, *paint);
263 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
269 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
276 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
282 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
288 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
294 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
301 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
309 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
338 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
350 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
379 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
412 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
422 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
458 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
469 const Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
478 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
489 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
501 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
515 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
532 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
547 Paint* paint = reinterpret_cast<Paint*>(paintHandle); local
[all...]
H A Dandroid_text_StaticLayout.cpp162 Paint* paint = reinterpret_cast<Paint*>(nativePaint); local
166 minikin::FontStyle style = MinikinUtils::prepareMinikinPaint(&minikinPaint, paint,
H A Dandroid_view_HardwareLayer.cpp56 Paint* paint = reinterpret_cast<Paint*>(paintPtr); local
57 layer->setPaint(paint);
H A Dandroid_view_RenderNode.cpp101 Paint* paint = reinterpret_cast<Paint*>(paintPtr); local
102 return SET_AND_DIRTY(mutateLayerProperties().setFromPaint, paint, RenderNode::GENERIC);
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java45 FontMetricsInt fmi = b.paint.getFontMetricsInt();
47 // check default paint
48 Log.i("TG1:paint", fmi.toString());
72 FontMetricsInt fmi = b.paint.getFontMetricsInt();
88 FontMetricsInt fmi = b.paint.getFontMetricsInt();
106 FontMetricsInt fmi = b.paint.getFontMetricsInt();
126 b.paint.setTextSize(36);
127 FontMetricsInt fmi = b.paint.getFontMetricsInt();
155 FontMetricsInt fmi = b.paint.getFontMetricsInt();
176 FontMetricsInt fmi = b.paint
238 TextPaint paint = new TextPaint(); // default field in class:StaticLayoutTest.LayoutBuilder
250 setPaint(TextPaint paint) argument
326 moveCursorToRightCursorableOffset(EditorState state, TextPaint paint) argument
333 moveCursorToLeftCursorableOffset(EditorState state, TextPaint paint) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DBaseCanvas.java84 float sweepAngle, boolean useCenter, @NonNull Paint paint) {
85 throwIfHasHwBitmapInSwMode(paint);
87 useCenter, paint.getNativeInstance());
91 @NonNull Paint paint) {
92 throwIfHasHwBitmapInSwMode(paint);
94 paint);
101 public void drawBitmap(@NonNull Bitmap bitmap, float left, float top, @Nullable Paint paint) { argument
103 throwIfHasHwBitmapInSwMode(paint);
105 paint != null ? paint
83 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument
90 drawArc(@onNull RectF oval, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument
109 drawBitmap(@onNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) argument
115 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull Rect dst, @Nullable Paint paint) argument
141 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull RectF dst, @Nullable Paint paint) argument
168 drawBitmap(@onNull int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
197 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
204 drawBitmapMesh(@onNull Bitmap bitmap, int meshWidth, int meshHeight, @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset, @Nullable Paint paint) argument
226 drawCircle(float cx, float cy, float radius, @NonNull Paint paint) argument
239 drawLine(float startX, float startY, float stopX, float stopY, @NonNull Paint paint) argument
245 drawLines(@izemultiple = 4) @onNull float[] pts, int offset, int count, @NonNull Paint paint) argument
251 drawLines(@izemultiple = 4) @onNull float[] pts, @NonNull Paint paint) argument
256 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument
261 drawOval(@onNull RectF oval, @NonNull Paint paint) argument
269 drawPaint(@onNull Paint paint) argument
273 drawPatch(@onNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) argument
283 drawPatch(@onNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) argument
293 drawPath(@onNull Path path, @NonNull Paint paint) argument
302 drawPoint(float x, float y, @NonNull Paint paint) argument
307 drawPoints(@izemultiple = 2) float[] pts, int offset, int count, @NonNull Paint paint) argument
313 drawPoints(@izemultiple = 2) @onNull float[] pts, @NonNull Paint paint) argument
319 drawPosText(@onNull char[] text, int index, int count, @NonNull @Size(multiple = 2) float[] pos, @NonNull Paint paint) argument
332 drawPosText(@onNull String text, @NonNull @Size(multiple = 2) float[] pos, @NonNull Paint paint) argument
338 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument
343 drawRect(@onNull Rect r, @NonNull Paint paint) argument
348 drawRect(@onNull RectF rect, @NonNull Paint paint) argument
358 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument
365 drawRoundRect(@onNull RectF rect, float rx, float ry, @NonNull Paint paint) argument
370 drawText(@onNull char[] text, int index, int count, float x, float y, @NonNull Paint paint) argument
381 drawText(@onNull CharSequence text, int start, int end, float x, float y, @NonNull Paint paint) argument
403 drawText(@onNull String text, float x, float y, @NonNull Paint paint) argument
409 drawText(@onNull String text, int start, int end, float x, float y, @NonNull Paint paint) argument
419 drawTextOnPath(@onNull char[] text, int index, int count, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument
430 drawTextOnPath(@onNull String text, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument
439 drawTextRun(@onNull char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, boolean isRtl, @NonNull Paint paint) argument
459 drawTextRun(@onNull CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) argument
492 drawVertices(@onNull VertexMode mode, int vertexCount, @NonNull float[] verts, int vertOffset, @Nullable float[] texs, int texOffset, @Nullable int[] colors, int colorOffset, @Nullable short[] indices, int indexOffset, int indexCount, @NonNull Paint paint) argument
[all...]
H A DBitmap.java793 Paint paint;
824 paint = null; // not needed
841 paint = new Paint();
842 paint.setFilterBitmap(filter);
844 paint.setAntiAlias(true);
859 canvas.drawBitmap(source, srcR, dstR, paint);
1817 * taken from the paint that is passed to the draw call.
1834 * paint contains a blur of radius 2, then offsetXY[] would contains
1841 * @param paint Optional paint use
1852 extractAlpha(Paint paint, int[] offsetXY) argument
[all...]
H A DCanvas.java40 * Path, text, Bitmap), and a paint (to describe the colors and styles for the
435 * @param paint This is copied, and is applied to the offscreen when
441 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { argument
445 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags);
470 * @param paint This is copied, and is applied to the offscreen when
474 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint) { argument
475 return saveLayer(bounds, paint, ALL_SAVE_FLAG);
483 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, argument
486 paint != null ? paint
494 saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) argument
1321 drawArc(@onNull RectF oval, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument
1350 drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean useCenter, @NonNull Paint paint) argument
1385 drawBitmap(@onNull Bitmap bitmap, float left, float top, @Nullable Paint paint) argument
1408 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull RectF dst, @Nullable Paint paint) argument
1432 drawBitmap(@onNull Bitmap bitmap, @Nullable Rect src, @NonNull Rect dst, @Nullable Paint paint) argument
1459 drawBitmap(@onNull int[] colors, int offset, int stride, float x, float y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
1473 drawBitmap(@onNull int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, @Nullable Paint paint) argument
1485 drawBitmap(@onNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) argument
1509 drawBitmapMesh(@onNull Bitmap bitmap, int meshWidth, int meshHeight, @NonNull float[] verts, int vertOffset, @Nullable int[] colors, int colorOffset, @Nullable Paint paint) argument
1525 drawCircle(float cx, float cy, float radius, @NonNull Paint paint) argument
1564 drawLine(float startX, float startY, float stopX, float stopY, @NonNull Paint paint) argument
1582 drawLines(@izemultiple = 4) @onNull float[] pts, int offset, int count, @NonNull Paint paint) argument
1587 drawLines(@izemultiple = 4) @onNull float[] pts, @NonNull Paint paint) argument
1597 drawOval(@onNull RectF oval, @NonNull Paint paint) argument
1605 drawOval(float left, float top, float right, float bottom, @NonNull Paint paint) argument
1616 drawPaint(@onNull Paint paint) argument
1628 drawPatch(@onNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) argument
1640 drawPatch(@onNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) argument
1651 drawPath(@onNull Path path, @NonNull Paint paint) argument
1658 drawPoint(float x, float y, @NonNull Paint paint) argument
1675 drawPoints(@izemultiple = 2) float[] pts, int offset, int count, @NonNull Paint paint) argument
1683 drawPoints(@izemultiple = 2) @onNull float[] pts, @NonNull Paint paint) argument
1700 drawPosText(@onNull char[] text, int index, int count, @NonNull @Size(multiple = 2) float[] pos, @NonNull Paint paint) argument
1717 drawPosText(@onNull String text, @NonNull @Size(multiple = 2) float[] pos, @NonNull Paint paint) argument
1729 drawRect(@onNull RectF rect, @NonNull Paint paint) argument
1740 drawRect(@onNull Rect r, @NonNull Paint paint) argument
1754 drawRect(float left, float top, float right, float bottom, @NonNull Paint paint) argument
1779 drawRoundRect(@onNull RectF rect, float rx, float ry, @NonNull Paint paint) argument
1791 drawRoundRect(float left, float top, float right, float bottom, float rx, float ry, @NonNull Paint paint) argument
1805 drawText(@onNull char[] text, int index, int count, float x, float y, @NonNull Paint paint) argument
1819 drawText(@onNull String text, float x, float y, @NonNull Paint paint) argument
1834 drawText(@onNull String text, int start, int end, float x, float y, @NonNull Paint paint) argument
1850 drawText(@onNull CharSequence text, int start, int end, float x, float y, @NonNull Paint paint) argument
1865 drawTextOnPath(@onNull char[] text, int index, int count, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument
1880 drawTextOnPath(@onNull String text, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument
1907 drawTextRun(@onNull char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, boolean isRtl, @NonNull Paint paint) argument
1945 drawTextRun(@onNull CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) argument
1978 drawVertices(@onNull VertexMode mode, int vertexCount, @NonNull float[] verts, int vertOffset, @Nullable float[] texs, int texOffset, @Nullable int[] colors, int colorOffset, @Nullable short[] indices, int indexOffset, int indexCount, @NonNull Paint paint) argument
[all...]
H A DColorSpace.java3943 Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
3956 drawBox(canvas, width, height, paint, path);
3958 drawLocus(canvas, width, height, paint, path, primaries);
3959 drawGamuts(canvas, width, height, paint, path, primaries, whitePoint);
3960 drawPoints(canvas, width, height, paint);
3972 * @param paint A pre-allocated paint used to avoid temporary allocations
3975 @NonNull Paint paint) {
3977 paint.setStyle(Paint.Style.FILL);
3990 paint
3974 drawPoints(@onNull Canvas canvas, int width, int height, @NonNull Paint paint) argument
4015 drawGamuts( @onNull Canvas canvas, int width, int height, @NonNull Paint paint, @NonNull Path path, @NonNull @Size(6) float[] primaries, @NonNull @Size(2) float[] whitePoint) argument
4092 drawLocus( @onNull Canvas canvas, int width, int height, @NonNull Paint paint, @NonNull Path path, @NonNull @Size(6) float[] primaries) argument
4168 drawBox(@onNull Canvas canvas, int width, int height, @NonNull Paint paint, @NonNull Path path) argument
[all...]
H A DLayerRasterizer.java28 the specified paint, but will not retain a reference to the paint
31 public void addLayer(Paint paint, float dx, float dy) { } argument
33 public void addLayer(Paint paint) { } argument
H A DMovie.java42 public void draw(Canvas canvas, float x, float y, Paint paint) { argument
44 paint != null ? paint.getNativeInstance() : 0);
H A DNinePatch.java153 * Returns the paint used to draw this NinePatch. The paint can be null.
164 * Sets the paint to use when drawing the NinePatch.
166 * @param p The paint that will be used to draw this NinePatch.
184 * Draws the NinePatch. This method will use the paint returned by {@link #getPaint()}.
194 * Draws the NinePatch. This method will use the paint returned by {@link #getPaint()}.
204 * Draws the NinePatch. This method will ignore the paint returned
205 * by {@link #getPaint()} and use the specified paint instead.
209 * @param paint The Paint to draw through.
211 public void draw(Canvas canvas, Rect location, Paint paint) { argument
[all...]
H A DPaint.java54 // The approximate size of a native paint object.
224 // These flags are always set on a new/reset paint, even if flags 0 is passed.
370 * stroke-related settings in the paint.
375 * the stroke-related fields on the paint.
381 * the paint. This mode can give unexpected results if the geometry
468 * Create a new paint with default settings.
475 * Create a new paint with the specified flags. Use setFlags() to change
476 * these after the paint is created.
493 * Create a new paint, initialized with the attributes in the specified
494 * paint paramete
499 Paint(Paint paint) argument
552 setClassVariablesFrom(Paint paint) argument
2753 nInitWithPaint(long paint) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DBitmapDrawable.java201 * Returns the paint used to render this drawable.
486 final Paint paint = state.mPaint;
491 paint.setShader(null);
493 paint.setShader(new BitmapShader(bitmap,
511 if (mTintFilter != null && paint.getColorFilter() == null) {
512 paint.setColorFilter(mTintFilter);
519 final Shader shader = paint.getShader();
529 canvas.drawBitmap(bitmap, null, mDstRect, paint);
535 updateShaderMatrix(bitmap, paint, shader, needMirroring);
536 canvas.drawRect(mDstRect, paint);
557 updateShaderMatrix(@onNull Bitmap bitmap, @NonNull Paint paint, @NonNull Shader shader, boolean needMirroring) argument
[all...]

Completed in 348 milliseconds

1234567