Home
last modified time | relevance | path

Searched refs:NinePatch (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/graphics/java/android/graphics/
DNinePatch.java33 public class NinePatch { class
99 public NinePatch(Bitmap bitmap, byte[] chunk) { in NinePatch() method in NinePatch
111 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { in NinePatch() method in NinePatch
120 public NinePatch(NinePatch patch) { in NinePatch() method in NinePatch
DBitmap.java76 private NinePatch.InsetStruct mNinePatchInsets; // may be null
113 byte[] ninePatchChunk, NinePatch.InsetStruct ninePatchInsets) { in Bitmap()
1024 public NinePatch.InsetStruct getNinePatchInsets() { in getNinePatchInsets()
DBitmapFactory.java574 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np); in setDensityFromOptions()
DCanvas.java1289 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { in drawPatch()
1307 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { in drawPatch()
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java31 import android.graphics.NinePatch;
101 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); in NinePatchDrawable()
110 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); in NinePatchDrawable()
121 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets), in NinePatchDrawable()
133 public NinePatchDrawable(@NonNull NinePatch patch) { in NinePatchDrawable()
141 public NinePatchDrawable(@Nullable Resources res, @NonNull NinePatch patch) { in NinePatchDrawable()
286 final NinePatch.InsetStruct insets = in getOutline()
454 state.mNinePatch = new NinePatch(bitmap, bitmap.getNinePatchChunk()); in updateStateFromTypedArray()
582 NinePatch mNinePatch = null;
597 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding) { in NinePatchState()
[all …]
DDrawable.java40 import android.graphics.NinePatch;
1155 if (np == null || !NinePatch.isNinePatchChunk(np)) { in createFromResourceStream()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java71 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load( in nativeDecodeStream()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java22 import android.graphics.NinePatch;
205 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { in drawPatch()
209 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { in drawPatch()
/frameworks/base/libs/hwui/utils/
DNinePatch.h29 class ANDROID_API NinePatch {
DNinePatchImpl.cpp98 void NinePatch::Draw(SkCanvas* canvas, const SkRect& bounds, in Draw()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java29 import com.android.ninepatch.NinePatch;
289 if (lowerCaseValue.endsWith(NinePatch.EXTENSION_9PATCH)) { in getDrawable()
380 NinePatch ninePatch = NinePatch.load(inputStream, true /*is9Patch*/, in getNinePatchDrawable()
/frameworks/base/core/jni/android/graphics/
DNinePatch.cpp102 NinePatch::Draw(NULL, bounds, bitmap, *chunk, NULL, &region); in getTransparentRegion()
/frameworks/base/docs/html-intl/intl/es/training/multiscreen/
Dscreensizes.jd24 <li><a href="#TaskUse9Patch">Cómo utilizar mapas de bits de la clase NinePatch</a></li>
254 <h2 id="TaskUse9Patch">Cómo utilizar mapas de bits de la clase NinePatch</h2>
258 …irarán o estrecharán. La solución es utilizar mapas de bits de la clase NinePatch, que son archivo…
260 …tiliza siempre mapas de bits de la clase NinePatch. Para convertir un mapa de bits en uno de la cl…
273 …, de este modo, el marco detecta que se trata de una imagen de la clase NinePatch, en lugar de una…
278 <p class="img-caption"><strong>Figura 6.</strong> Botón que utiliza la clase NinePatch <code>button…
Dindex.jd56 …de orientación y tamaño de pantalla, filtros de alias y mapas de bits de la clase NinePatch).</dd>
/frameworks/base/docs/html/guide/topics/graphics/
D2d-graphics.jd437 An example use of a NinePatch is the backgrounds used by standard Android buttons &mdash;
438 buttons must stretch to accommodate strings of various lengths. A NinePatch drawable is a
454 If a View object sets the NinePatch as its background and then specifies the
465 Here is a sample NinePatch file used to define a button:
469 <p>This NinePatch defines one stretchable area with the left and top lines
480 an extremely handy way to create your NinePatch images, using a WYSIWYG graphics editor. It
487 <p>Here's some sample layout XML that demonstrates how to add a NinePatch image to a
488 couple of buttons. (The NinePatch image is saved as
513 <p>Below are the two buttons rendered from the XML and NinePatch image shown above.
/frameworks/base/docs/html-intl/intl/ru/training/material/
Ddrawables.jd34 …х версий можно тонировать растровые изображения и изображения в формате NinePatch, определенные как
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java33 import com.android.ninepatch.NinePatch;
838 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) { in openRawResource()
871 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) { in openRawResource()
/frameworks/base/core/jni/
DAndroid.mk121 android/graphics/NinePatch.cpp \
/frameworks/base/libs/hwui/
DSkiaCanvas.cpp747 NinePatch::Draw(mCanvas, bounds, bitmap, chunk, paint, nullptr); in drawNinePatch()
/frameworks/base/docs/html/guide/topics/resources/
Ddrawable-resource.jd24 <dt><a href="#NinePatch">Nine-Patch File</a></dt>
307 <h2 id="NinePatch">Nine-Patch</h2>
309 <p>A {@link android.graphics.NinePatch} is a PNG image in which you can define stretchable regions
/frameworks/base/docs/html/sdk/
DOLD_RELEASENOTES.jd178 …ls/help/draw9patch.html">Draw 9-patch</a> allows you to easily create a NinePatch graphic using a …
/frameworks/base/
Dpreloaded-classes842 android.graphics.NinePatch
843 android.graphics.NinePatch$InsetStruct
Dcompiled-classes-phone1224 android.graphics.NinePatch
1225 android.graphics.NinePatch$InsetStruct
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt10923 public class NinePatch {
10924 ctor public NinePatch(android.graphics.Bitmap, byte[]);
10925 ctor public NinePatch(android.graphics.Bitmap, byte[], java.lang.String);
11881 ctor public deprecated NinePatchDrawable(android.graphics.NinePatch);
11882 ctor public NinePatchDrawable(android.content.res.Resources, android.graphics.NinePatch);
/frameworks/base/api/
Dcurrent.txt11957 public class NinePatch {
11958 ctor public NinePatch(android.graphics.Bitmap, byte[]);
11959 ctor public NinePatch(android.graphics.Bitmap, byte[], java.lang.String);
13003 ctor public deprecated NinePatchDrawable(android.graphics.NinePatch);
13004 ctor public NinePatchDrawable(android.content.res.Resources, android.graphics.NinePatch);

12