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.cpp436 const NinePatch* nine_patch) { in WriteNinePatch()
481 const NinePatch* nine_patch, io::OutputStream* out, in WritePng()
/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.java79 private NinePatch.InsetStruct mNinePatchInsets; // may be null
122 byte[] ninePatchChunk, NinePatch.InsetStruct ninePatchInsets) { in Bitmap()
1292 public NinePatch.InsetStruct getNinePatchInsets() { in getNinePatchInsets()
DBitmapFactory.java675 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np); in setDensityFromOptions()
DBaseCanvas.java280 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { in drawPatch()
290 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { in drawPatch()
DCanvas.java1702 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { in drawPatch()
1714 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { in drawPatch()
DImageDecoder.java1692 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeDrawableImpl()
1767 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeBitmapImpl()
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java31 import android.graphics.NinePatch;
100 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null); in NinePatchDrawable()
109 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res); in NinePatchDrawable()
120 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets), in NinePatchDrawable()
132 public NinePatchDrawable(@NonNull NinePatch patch) { in NinePatchDrawable()
140 public NinePatchDrawable(@Nullable Resources res, @NonNull NinePatch patch) { in NinePatchDrawable()
286 final NinePatch.InsetStruct insets = in getOutline()
460 state.mNinePatch = new NinePatch(bitmap, bitmap.getNinePatchChunk()); in updateStateFromTypedArray()
594 NinePatch mNinePatch = null;
609 NinePatchState(@NonNull NinePatch ninePatch, @Nullable Rect padding) { in NinePatchState()
[all …]
DDrawable.java42 import android.graphics.NinePatch;
1208 if (np == null || !NinePatch.isNinePatchChunk(np)) { in createFromResourceStream()
/frameworks/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java71 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load( in nativeDecodeStream()
/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/com/android/layoutlib/bridge/impl/
DResourceHelper.java29 import com.android.ninepatch.NinePatch;
316 if (lowerCaseValue.endsWith(NinePatch.EXTENSION_9PATCH)) { in getDrawable()
418 NinePatch ninePatch = NinePatch.load(inputStream, true /*is9Patch*/, in getNinePatchDrawable()
/frameworks/base/core/java/android/view/
DRecordingCanvas.java28 import android.graphics.NinePatch;
258 public final void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, in drawPatch()
269 public final void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, in drawPatch()
/frameworks/base/tools/aapt2/
DAndroid.bp77 "compile/NinePatch.cpp",
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java34 import com.android.ninepatch.NinePatch;
964 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) { in openRawResource()
997 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) { in openRawResource()
/frameworks/base/core/jni/
DAndroid.bp143 "android/graphics/NinePatch.cpp",
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp538 std::unique_ptr<NinePatch> nine_patch; in CompilePng()
541 nine_patch = NinePatch::Create(image->rows.get(), image->width, image->height, &err); in CompilePng()
/frameworks/base/config/
Dhiddenapi-light-greylist.txt2137 Landroid/graphics/Bitmap;-><init>(JIIIZZ[BLandroid/graphics/NinePatch$InsetStruct;)V
2145 Landroid/graphics/Bitmap;->mNinePatchInsets:Landroid/graphics/NinePatch$InsetStruct;
2251 …ndroid/graphics/drawable/NinePatchDrawable$NinePatchState;->mNinePatch:Landroid/graphics/NinePatch;
2319 Landroid/graphics/NinePatch$InsetStruct;-><init>(IIIIIIIIFIF)V
2320 Landroid/graphics/NinePatch;->mBitmap:Landroid/graphics/Bitmap;
2321 Landroid/graphics/NinePatch;->mNativeChunk:J
Dpreloaded-classes1082 android.graphics.NinePatch
1083 android.graphics.NinePatch$InsetStruct
Dhiddenapi-public-dex.txt11510 …s/drawable/NinePatchDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/NinePatch;)V
11512 Landroid/graphics/drawable/NinePatchDrawable;-><init>(Landroid/graphics/NinePatch;)V
11929 Landroid/graphics/NinePatch;
11930 Landroid/graphics/NinePatch;-><init>(Landroid/graphics/Bitmap;[B)V
11931 Landroid/graphics/NinePatch;-><init>(Landroid/graphics/Bitmap;[BLjava/lang/String;)V
11932 Landroid/graphics/NinePatch;->draw(Landroid/graphics/Canvas;Landroid/graphics/Rect;)V
11933 Landroid/graphics/NinePatch;->draw(Landroid/graphics/Canvas;Landroid/graphics/Rect;Landroid/graphic…
11934 Landroid/graphics/NinePatch;->draw(Landroid/graphics/Canvas;Landroid/graphics/RectF;)V
11935 Landroid/graphics/NinePatch;->finalize()V
11936 Landroid/graphics/NinePatch;->getBitmap()Landroid/graphics/Bitmap;
[all …]
Dboot-image-profile.txt1990 HPLandroid/graphics/BaseCanvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/Rect;Landr…
2017 HPLandroid/graphics/Canvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/Rect;Landroid/…
19787 HSPLandroid/graphics/Bitmap;-><init>(JIIIZZ[BLandroid/graphics/NinePatch$InsetStruct;)V
20069 HSPLandroid/graphics/NinePatch$InsetStruct;-><init>(IIIIIIIIFIF)V
20070 HSPLandroid/graphics/NinePatch$InsetStruct;->scaleInsets(IIIIF)Landroid/graphics/Rect;
20071 HSPLandroid/graphics/NinePatch;->draw(Landroid/graphics/Canvas;Landroid/graphics/Rect;Landroid/grap…
20072 HSPLandroid/graphics/NinePatch;->finalize()V
20073 HSPLandroid/graphics/NinePatch;->getBitmap()Landroid/graphics/Bitmap;
20074 HSPLandroid/graphics/NinePatch;->getDensity()I
20075 HSPLandroid/graphics/NinePatch;->getHeight()I
[all …]

12