/frameworks/base/tools/aapt2/compile/ |
H A D | NinePatch_test.cpp | 186 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 D | Image.h | 115 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 D | NinePatch.cpp | 143 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 D | Png.h | 100 const NinePatch* nine_patch, io::OutputStream* out,
|
H A D | PngCrunch.cpp | 436 const NinePatch* nine_patch) { 481 const NinePatch* nine_patch, io::OutputStream* out,
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 20 * 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 D | BitmapFactory.java | 669 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np);
|
H A D | Bitmap.java | 74 private NinePatch.InsetStruct mNinePatchInsets; // may be null 117 byte[] ninePatchChunk, NinePatch.InsetStruct ninePatchInsets) { 1195 public NinePatch.InsetStruct getNinePatchInsets() {
|
H A D | BaseCanvas.java | 273 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 D | Canvas.java | 1628 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 D | NinePatchDrawable.java | 31 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 D | Drawable.java | 41 import android.graphics.NinePatch; 1198 if (np == null || !NinePatch.isNinePatchChunk(np)) {
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 71 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load(
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 22 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 D | ResourceHelper.java | 29 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 D | Compile.cpp | 487 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 D | RecordingCanvas.java | 28 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 D | Resources_Delegate.java | 34 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 D | preloaded-classes | 769 android.graphics.NinePatch 770 android.graphics.NinePatch$InsetStruct
|
H A D | compiled-classes-phone | 1325 android.graphics.NinePatch 1326 android.graphics.NinePatch$InsetStruct
|