Searched refs:NinePatch (Results 1 - 20 of 20) sorted by relevance

/frameworks/base/tools/aapt2/compile/
H A DNinePatch_test.cpp186 EXPECT_EQ(nullptr, NinePatch::Create(k2x2, 2, 2, &err));
192 EXPECT_EQ(nullptr, NinePatch::Create(kMixedNeutralColor3x3, 3, 3, &err));
199 NinePatch::Create(kTransparentNeutralColor3x3, 3, 3, &err));
204 std::unique_ptr<NinePatch> nine_patch =
205 NinePatch::Create(kSingleStretch7x6, 7, 6, &err);
217 std::unique_ptr<NinePatch> nine_patch =
218 NinePatch::Create(kMultipleStretch10x7, 10, 7, &err);
234 std::unique_ptr<NinePatch> nine_patch =
235 NinePatch::Create(kMultipleStretch10x7, 10, 7, &err);
242 std::unique_ptr<NinePatch> nine_patc
[all...]
H A DImage.h115 class NinePatch { class in namespace:aapt
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);
H A DNinePatch.cpp143 return NinePatch::PackRGBA(rows_[yoffset_] + (idx + xoffset_) * 4);
166 return NinePatch::PackRGBA(rows_[yoffset_ + idx] + (xoffset_ * 4));
190 return NinePatch::PackRGBA(rows_[yoffset_ + (idx * ystep_)] +
305 NinePatch::PackRGBA(rows[region.top] + region.left * 4);
309 const uint32_t color = NinePatch::PackRGBA(row + x * 4);
456 uint32_t NinePatch::PackRGBA(const uint8_t* pixel) {
460 std::unique_ptr<NinePatch> NinePatch::Create(uint8_t** rows,
487 auto nine_patch = std::unique_ptr<NinePatch>(new NinePatch());
[all...]
H A DPng.h100 const NinePatch* nine_patch, io::OutputStream* out,
H A DPngCrunch.cpp436 const NinePatch* nine_patch) {
481 const NinePatch* nine_patch, io::OutputStream* out,
/frameworks/base/graphics/java/android/graphics/
H A DNinePatch.java20 * The NinePatch class permits drawing a bitmap in nine or more sections.
23 * bounds of the graphic. For a thorough explanation of a NinePatch image,
29 * tool offers an extremely handy way to create your NinePatch images,
33 public class NinePatch { class
99 public NinePatch(Bitmap bitmap, byte[] chunk) { method in class:NinePatch
111 public NinePatch(Bitmap bitmap, byte[] chunk, String srcName) { method in class:NinePatch
120 public NinePatch(NinePatch patch) { method in class:NinePatch
145 * Returns the name of this NinePatch object if one was specified
153 * Returns the paint used to draw this NinePatch
[all...]
H A DBitmapFactory.java669 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np);
H A DBitmap.java74 private NinePatch.InsetStruct mNinePatchInsets; // may be null
117 byte[] ninePatchChunk, NinePatch.InsetStruct ninePatchInsets) {
1195 public NinePatch.InsetStruct getNinePatchInsets() {
H A DBaseCanvas.java273 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) {
283 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) {
H A DCanvas.java1628 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) {
1640 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) {
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java31 import android.graphics.NinePatch;
62 * Canvas and Drawables</a> developer guide. For information about creating a NinePatch image
100 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), null);
109 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding), res);
120 this(new NinePatchState(new NinePatch(bitmap, chunk, srcName), padding, opticalInsets),
127 * @deprecated Use {@link #NinePatchDrawable(Resources, NinePatch)}
132 public NinePatchDrawable(@NonNull NinePatch patch) {
140 public NinePatchDrawable(@Nullable Resources res, @NonNull NinePatch patch) {
285 final NinePatch.InsetStruct insets =
453 state.mNinePatch = new NinePatch(bitma
[all...]
H A DDrawable.java41 import android.graphics.NinePatch;
1198 if (np == null || !NinePatch.isNinePatchChunk(np)) {
/frameworks/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java71 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load(
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java22 import android.graphics.NinePatch;
209 public void drawPatch(NinePatch patch, Rect dst, Paint paint) {
213 public void drawPatch(NinePatch patch, RectF dst, Paint paint) {
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java29 import com.android.ninepatch.NinePatch;
337 if (lowerCaseValue.endsWith(NinePatch.EXTENSION_9PATCH)) {
490 NinePatch ninePatch = NinePatch.load(inputStream, true /*is9Patch*/,
/frameworks/base/tools/aapt2/cmd/
H A DCompile.cpp487 std::unique_ptr<NinePatch> nine_patch;
490 nine_patch = NinePatch::Create(image->rows.get(), image->width, image->height, &err);
496 // Remove the 1px border around the NinePatch.
/frameworks/base/core/java/android/view/
H A DRecordingCanvas.java28 import android.graphics.NinePatch;
257 public final void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst,
268 public final void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst,
/frameworks/layoutlib/bridge/src/android/content/res/
H A DResources_Delegate.java34 import com.android.ninepatch.NinePatch;
949 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) {
982 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) {
/frameworks/base/config/
H A Dpreloaded-classes769 android.graphics.NinePatch
770 android.graphics.NinePatch$InsetStruct
H A Dcompiled-classes-phone1325 android.graphics.NinePatch
1326 android.graphics.NinePatch$InsetStruct

Completed in 423 milliseconds