/frameworks/base/tools/aapt2/compile/ |
D | NinePatch_test.cpp | 186 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 …]
|
D | Image.h | 115 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);
|
D | NinePatch.cpp | 143 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 …]
|
D | Png.h | 100 const NinePatch* nine_patch, io::OutputStream* out,
|
/frameworks/base/graphics/java/android/graphics/ |
D | NinePatch.java | 35 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
|
D | Bitmap.java | 84 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()
|
D | BitmapFactory.java | 708 final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np); in setDensityFromOptions()
|
D | BaseRecordingCanvas.java | 260 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()
|
D | BaseCanvas.java | 302 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()
|
D | Canvas.java | 1884 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()
|
D | ImageDecoder.java | 1800 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeDrawableImpl() 1875 if (np != null && NinePatch.isNinePatchChunk(np)) { in decodeBitmapImpl()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | NinePatchDrawable.java | 34 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 …]
|
D | Drawable.java | 40 import android.graphics.NinePatch; 1275 if (np == null || !NinePatch.isNinePatchChunk(np)) { in createFromResourceStream()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | BitmapFactory_Delegate.java | 72 com.android.ninepatch.NinePatch ninePatch = com.android.ninepatch.NinePatch.load( in nativeDecodeStream()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
D | NopCanvas.java | 22 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/ |
D | ResourceHelper.java | 33 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/ |
D | Android.bp | 82 "compile/NinePatch.cpp",
|
/frameworks/base/tools/aapt2/cmd/ |
D | Compile.cpp | 490 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/ |
D | Android.bp | 281 "jni/NinePatch.cpp",
|
/frameworks/layoutlib/bridge/src/android/content/res/ |
D | Resources_Delegate.java | 40 import com.android.ninepatch.NinePatch; 1033 if (path.toLowerCase().endsWith(NinePatch.EXTENSION_9PATCH)) { in openRawResource()
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 7237 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 …]
|
D | preloaded-classes | 1945 android.graphics.NinePatch$InsetStruct 1946 android.graphics.NinePatch
|
/frameworks/base/api/ |
D | current.txt | 14884 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/ |
D | android-22.txt | 10923 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/ |
D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |