Home
last modified time | relevance | path

Searched refs:Res_png_9patch (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/libs/hwui/jni/
DNinePatchPeeker.cpp25 if (!strcmp("npTc", tag) && length >= sizeof(Res_png_9patch)) { in readChunk()
26 Res_png_9patch* patch = (Res_png_9patch*) data; in readChunk()
32 Res_png_9patch* patchNew = (Res_png_9patch*) malloc(patchSize); in readChunk()
34 Res_png_9patch::deserialize(patchNew); in readChunk()
DNinePatch.cpp53 if (env->GetArrayLength(obj) < (int)sizeof(Res_png_9patch)) { in isNinePatchChunk()
58 const Res_png_9patch* chunk = reinterpret_cast<const Res_png_9patch*>(array); in isNinePatchChunk()
68 if (chunkSize < (int) (sizeof(Res_png_9patch))) { in validateNinePatchChunk()
77 return reinterpret_cast<jlong>(Res_png_9patch::deserialize(storage)); in validateNinePatchChunk()
87 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); in getTransparentRegion()
DNinePatchPeeker.h49 Res_png_9patch* mPatch;
Dandroid_graphics_Canvas.cpp488 const android::Res_png_9patch* chunk = reinterpret_cast<android::Res_png_9patch*>(chunkHandle); in drawNinePatch()
/frameworks/base/libs/hwui/
DNinePatchUtils.h22 static inline void SetLatticeDivs(SkCanvas::Lattice* lattice, const Res_png_9patch& chunk, in SetLatticeDivs()
57 int numFlags, const Res_png_9patch& chunk, SkColor* colors) { in SetLatticeFlags()
86 if (Res_png_9patch::TRANSPARENT_COLOR == currentColor) { in SetLatticeFlags()
89 } else if (Res_png_9patch::NO_COLOR != currentColor) { in SetLatticeFlags()
DSkiaCanvas.h144 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk, float dstLeft,
DSkiaCanvas.cpp779 void SkiaCanvas::drawNinePatch(Bitmap& bitmap, const Res_png_9patch& chunk, float dstLeft, in drawNinePatch()
/frameworks/base/libs/androidfw/
DNinePatch.cpp308 return android::Res_png_9patch::NO_COLOR; in GetRegionColor()
311 return android::Res_png_9patch::NO_COLOR; in GetRegionColor()
317 return android::Res_png_9patch::TRANSPARENT_COLOR; in GetRegionColor()
589 android::Res_png_9patch data; in SerializeBase()
599 android::Res_png_9patch::serialize(data, (const int32_t*)horizontal_stretch_regions.data(), in SerializeBase()
603 reinterpret_cast<android::Res_png_9patch*>(buffer.get())->deviceToFile(); in SerializeBase()
DPng.cpp49 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors.data()); in serialize9Patch()
50 reinterpret_cast<Res_png_9patch*>(serialized)->deviceToFile(); in serialize9Patch()
59 Res_png_9patch info9Patch;
152 static void checkNinePatchSerialization(Res_png_9patch* inPatch, void* data) { in checkNinePatchSerialization()
156 Res_png_9patch* outPatch = inPatch->deserialize(newData); in checkNinePatchSerialization()
902 return Res_png_9patch::TRANSPARENT_COLOR; in getColor()
910 return Res_png_9patch::NO_COLOR; in getColor()
913 return Res_png_9patch::NO_COLOR; in getColor()
920 return Res_png_9patch::TRANSPARENT_COLOR; in getColor()
1138 if (c != Res_png_9patch::NO_COLOR) { in do9Patch()
DResourceTypes.cpp149 static void fill9patchOffsets(Res_png_9patch* patch) { in fill9patchOffsets()
150 patch->xDivsOffset = sizeof(Res_png_9patch); in fill9patchOffsets()
163 void Res_png_9patch::deviceToFile() in deviceToFile()
183 void Res_png_9patch::fileToDevice() in fileToDevice()
203 size_t Res_png_9patch::serializedSize() const in serializedSize()
215 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize()
225 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize()
239 fill9patchOffsets(reinterpret_cast<Res_png_9patch*>(outData)); in serialize()
450 Res_png_9patch* Res_png_9patch::deserialize(void* inData) in deserialize()
453 Res_png_9patch* patch = reinterpret_cast<Res_png_9patch*>(inData); in deserialize()
/frameworks/base/tools/aapt/
DImages.cpp59 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); in serialize9patch()
60 reinterpret_cast<Res_png_9patch*>(serialized)->deviceToFile(); in serialize9patch()
70 Res_png_9patch info9Patch;
518 return Res_png_9patch::TRANSPARENT_COLOR; in get_color()
526 return Res_png_9patch::NO_COLOR; in get_color()
530 return Res_png_9patch::NO_COLOR; in get_color()
537 return Res_png_9patch::TRANSPARENT_COLOR; in get_color()
761 if (c != Res_png_9patch::NO_COLOR) in do_9patch()
797 static void checkNinePatchSerialization(Res_png_9patch* inPatch, void* data) in checkNinePatchSerialization()
802 Res_png_9patch* outPatch = inPatch->deserialize(newData); in checkNinePatchSerialization()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaRecordingCanvas.h63 virtual void drawNinePatch(Bitmap& hwuiBitmap, const android::Res_png_9patch& chunk,
DSkiaRecordingCanvas.cpp298 void SkiaRecordingCanvas::drawNinePatch(Bitmap& bitmap, const Res_png_9patch& chunk, float dstLeft, in drawNinePatch()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h142 struct alignas(uintptr_t) Res_png_9patch struct
144 Res_png_9patch() : wasDeserialized(false), xDivsOffset(0), in Res_png_9patch() argument
181 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs, argument
184 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
187 static Res_png_9patch* deserialize(void* data);
/frameworks/base/libs/androidfw/tests/
DNinePatch_test.cpp260 NinePatch::PackRGBA((uint8_t*)RED), (uint32_t)android::Res_png_9patch::NO_COLOR, in TEST()
261 NinePatch::PackRGBA((uint8_t*)GREEN), (uint32_t)android::Res_png_9patch::TRANSPARENT_COLOR, in TEST()
/frameworks/base/libs/hwui/hwui/
DCanvas.h242 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk, float dstLeft,