Home
last modified time | relevance | path

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

/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,
/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()
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()
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()
DCanvas.java1884 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { in drawPatch()
1896 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { in drawPatch()
DImageDecoder.java1800 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeDrawableImpl()
1875 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/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/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.java33 import com.android.ninepatch.NinePatch;
330 if (lowerCaseValue.endsWith(NinePatch.EXTENSION_9PATCH)) { in getDrawable()
458 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/libs/hwui/
DAndroid.bp281 "jni/NinePatch.cpp",
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java40 import com.android.ninepatch.NinePatch;
1033 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) { in openRawResource()
/frameworks/base/config/
Dboot-image-profile.txt7237 HSPLandroid/graphics/BaseRecordingCanvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/…
7254 HSPLandroid/graphics/Bitmap;-><init>(JIIIZ[BLandroid/graphics/NinePatch$InsetStruct;Z)V
7289 HSPLandroid/graphics/Bitmap;->getNinePatchInsets()Landroid/graphics/NinePatch$InsetStruct;
7717 HSPLandroid/graphics/NinePatch$InsetStruct;-><init>(IIIIIIIIFIF)V
7718 HSPLandroid/graphics/NinePatch$InsetStruct;->scaleInsets(IIIIF)Landroid/graphics/Rect;
7719 HSPLandroid/graphics/NinePatch;-><init>(Landroid/graphics/Bitmap;[B)V
7720 HSPLandroid/graphics/NinePatch;-><init>(Landroid/graphics/Bitmap;[BLjava/lang/String;)V
7721 HSPLandroid/graphics/NinePatch;->draw(Landroid/graphics/Canvas;Landroid/graphics/Rect;Landroid/grap…
7722 HSPLandroid/graphics/NinePatch;->finalize()V
7723 HSPLandroid/graphics/NinePatch;->getBitmap()Landroid/graphics/Bitmap;
[all …]
Dpreloaded-classes1945 android.graphics.NinePatch$InsetStruct
1946 android.graphics.NinePatch
/frameworks/base/api/
Dcurrent.txt14884 public class NinePatch {
14885 ctor public NinePatch(android.graphics.Bitmap, byte[]);
14886 ctor public NinePatch(android.graphics.Bitmap, byte[], String);
15346 …method public final void drawPatch(@NonNull android.graphics.NinePatch, @NonNull android.graphics.…
15347 …method public final void drawPatch(@NonNull android.graphics.NinePatch, @NonNull android.graphics.…
16141 ctor @Deprecated public NinePatchDrawable(@NonNull android.graphics.NinePatch);
16142 …ic NinePatchDrawable(@Nullable android.content.res.Resources, @NonNull android.graphics.NinePatch);
/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/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...