Home
last modified time | relevance | path

Searched refs:NinePatch (Results 1 – 23 of 23) 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,
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()
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()
DImageDecoder.java1785 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeDrawableImpl()
1860 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeBitmapImpl()
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.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()
/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()
457 NinePatch ninePatch = NinePatch.load(stream, true /*is9Patch*/, in getNinePatchDrawable()
/frameworks/base/tools/aapt2/
DAndroid.bp81 "compile/NinePatch.cpp",
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp489 std::unique_ptr<NinePatch> nine_patch; in CompilePng()
492 nine_patch = NinePatch::Create(image->rows.get(), image->width, image->height, &err); in CompilePng()
/frameworks/base/core/jni/
DAndroid.bp140 "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
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...