Home
last modified time | relevance | path

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

12

/frameworks/base/tools/aapt2/compile/
DNinePatch_test.cpp186 EXPECT_EQ(nullptr, NinePatch::Create(k2x2, 2, 2, &err)); in TEST()
192 EXPECT_EQ(nullptr, NinePatch::Create(kMixedNeutralColor3x3, 3, 3, &err)); in TEST()
199 NinePatch::Create(kTransparentNeutralColor3x3, 3, 3, &err)); in TEST()
204 std::unique_ptr<NinePatch> nine_patch = in TEST()
205 NinePatch::Create(kSingleStretch7x6, 7, 6, &err); in TEST()
217 std::unique_ptr<NinePatch> nine_patch = in TEST()
218 NinePatch::Create(kMultipleStretch10x7, 10, 7, &err); in TEST()
234 std::unique_ptr<NinePatch> nine_patch = in TEST()
235 NinePatch::Create(kMultipleStretch10x7, 10, 7, &err); in TEST()
242 std::unique_ptr<NinePatch> nine_patch = in TEST()
[all …]
DImage.h115 class NinePatch {
117 static std::unique_ptr<NinePatch> Create(uint8_t** rows, const int32_t width,
198 explicit NinePatch() = default;
200 DISALLOW_COPY_AND_ASSIGN(NinePatch);
205 ::std::ostream& operator<<(::std::ostream& out, const NinePatch& nine_patch);
DNinePatch.cpp143 return NinePatch::PackRGBA(rows_[yoffset_] + (idx + xoffset_) * 4); in GetColor()
166 return NinePatch::PackRGBA(rows_[yoffset_ + idx] + (xoffset_ * 4)); in GetColor()
190 return NinePatch::PackRGBA(rows_[yoffset_ + (idx * ystep_)] + in GetColor()
305 NinePatch::PackRGBA(rows[region.top] + region.left * 4); in GetRegionColor()
309 const uint32_t color = NinePatch::PackRGBA(row + x * 4); in GetRegionColor()
456 uint32_t NinePatch::PackRGBA(const uint8_t* pixel) { in PackRGBA()
460 std::unique_ptr<NinePatch> NinePatch::Create(uint8_t** rows, in Create()
487 auto nine_patch = std::unique_ptr<NinePatch>(new NinePatch()); in Create()
608 std::unique_ptr<uint8_t[]> NinePatch::SerializeBase(size_t* outLen) const { in SerializeBase()
630 std::unique_ptr<uint8_t[]> NinePatch::SerializeLayoutBounds( in SerializeLayoutBounds()
[all …]
DPng.h100 const NinePatch* nine_patch, io::OutputStream* out,
DPngCrunch.cpp439 const NinePatch* nine_patch) { in WriteNinePatch()
484 const NinePatch* nine_patch, io::OutputStream* out, in WritePng()
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java35 public class NinePatch { class
104 public NinePatch(Bitmap bitmap, byte[] chunk) { in NinePatch() method in NinePatch
116 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { in NinePatch() method in NinePatch
125 public NinePatch(NinePatch patch) { in NinePatch() method in NinePatch
DBitmap.java84 private NinePatch.InsetStruct mNinePatchInsets; // may be null
132 NinePatch.InsetStruct ninePatchInsets) { in Bitmap()
140 NinePatch.InsetStruct ninePatchInsets, boolean fromMalloc) { in Bitmap()
1354 public NinePatch.InsetStruct getNinePatchInsets() { in getNinePatchInsets()
DBitmapFactory.java708 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np); in setDensityFromOptions()
DBaseCanvas.java302 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { in drawPatch()
312 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { in drawPatch()
DBaseRecordingCanvas.java260 public final void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, in drawPatch()
271 public final void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, in drawPatch()
DCanvas.java1824 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { in drawPatch()
1836 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { in drawPatch()
DImageDecoder.java1785 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeDrawableImpl()
1860 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeBitmapImpl()
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java34 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()
287 final NinePatch.InsetStruct insets = in getOutline()
460 state.mNinePatch = new NinePatch(bitmap, bitmap.getNinePatchChunk()); in updateStateFromTypedArray()
596 NinePatch mNinePatch = null;
611 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding) { in NinePatchState()
[all …]
DDrawable.java40 import android.graphics.NinePatch;
1275 if (np == null || !NinePatch.isNinePatchChunk(np)) { in createFromResourceStream()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
DNopCanvas.java22 import android.graphics.NinePatch;
209 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { in drawPatch()
213 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { in drawPatch()
/frameworks/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java72 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load( in nativeDecodeStream()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DResourceHelper.java33 import com.android.ninepatch.NinePatch;
330 if (lowerCaseValue.endsWith(NinePatch.EXTENSION_9PATCH)) { in getDrawable()
457 NinePatch ninePatch = NinePatch.load(stream, true /*is9Patch*/, in getNinePatchDrawable()
/frameworks/base/tools/aapt2/
DAndroid.bp82 "compile/NinePatch.cpp",
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp490 std::unique_ptr<NinePatch> nine_patch; in CompilePng()
493 nine_patch = NinePatch::Create(image->rows.get(), image->width, image->height, &err); in CompilePng()
/frameworks/base/core/jni/
DAndroid.bp141 "android/graphics/NinePatch.cpp",
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java40 import com.android.ninepatch.NinePatch;
1032 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) { in openRawResource()
/frameworks/base/config/
Dpreloaded-classes1213 android.graphics.NinePatch$InsetStruct
1214 android.graphics.NinePatch
Dboot-image-profile.txt5442 HSPLandroid/graphics/BaseRecordingCanvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/…
5462 HSPLandroid/graphics/Bitmap;-><init>(JIIIZ[BLandroid/graphics/NinePatch$InsetStruct;Z)V
5779 HSPLandroid/graphics/NinePatch$InsetStruct;-><init>(IIIIIIIIFIF)V
5780 HSPLandroid/graphics/NinePatch$InsetStruct;->scaleInsets(IIIIF)Landroid/graphics/Rect;
5781 HSPLandroid/graphics/NinePatch;->draw(Landroid/graphics/Canvas;Landroid/graphics/Rect;Landroid/grap…
5782 HSPLandroid/graphics/NinePatch;->finalize()V
5783 HSPLandroid/graphics/NinePatch;->getBitmap()Landroid/graphics/Bitmap;
5784 HSPLandroid/graphics/NinePatch;->getDensity()I
5785 HSPLandroid/graphics/NinePatch;->getHeight()I
5786 HSPLandroid/graphics/NinePatch;->getWidth()I
[all …]
Dhiddenapi-greylist-max-o.txt18982 Landroid/graphics/BaseCanvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/Rect;Landroi…
18983 Landroid/graphics/BaseCanvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/RectF;Landro…
19051 Landroid/graphics/Bitmap;->getNinePatchInsets()Landroid/graphics/NinePatch$InsetStruct;
19135 Landroid/graphics/Canvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/Rect;Landroid/gr…
19136 Landroid/graphics/Canvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/RectF;Landroid/g…
20064 Landroid/graphics/drawable/NinePatchDrawable$NinePatchState;-><init>(Landroid/graphics/NinePatch;La…
20065 Landroid/graphics/drawable/NinePatchDrawable$NinePatchState;-><init>(Landroid/graphics/NinePatch;La…
20066 Landroid/graphics/drawable/NinePatchDrawable$NinePatchState;-><init>(Landroid/graphics/NinePatch;La…
20889 Landroid/graphics/NinePatch$InsetStruct;->opticalRect:Landroid/graphics/Rect;
20890 Landroid/graphics/NinePatch$InsetStruct;->outlineAlpha:F
[all …]
/frameworks/base/non-updatable-api/
Dcurrent.txt14424 public class NinePatch {
14425 ctor public NinePatch(android.graphics.Bitmap, byte[]);
14426 ctor public NinePatch(android.graphics.Bitmap, byte[], String);
14884 …method public final void drawPatch(@NonNull android.graphics.NinePatch, @NonNull android.graphics.…
14885 …method public final void drawPatch(@NonNull android.graphics.NinePatch, @NonNull android.graphics.…
15676 ctor @Deprecated public NinePatchDrawable(@NonNull android.graphics.NinePatch);
15677 …ic NinePatchDrawable(@Nullable android.content.res.Resources, @NonNull android.graphics.NinePatch);

12