Home
last modified time | relevance | path

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

/frameworks/base/core/jni/android/graphics/
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.cpp55 if (env->GetArrayLength(obj) < (int)sizeof(Res_png_9patch)) { in isNinePatchChunk()
60 const Res_png_9patch* chunk = reinterpret_cast<const Res_png_9patch*>(array); in isNinePatchChunk()
70 if (chunkSize < (int) (sizeof(Res_png_9patch))) { in validateNinePatchChunk()
79 return reinterpret_cast<jlong>(Res_png_9patch::deserialize(storage)); in validateNinePatchChunk()
89 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); in getTransparentRegion()
DNinePatchPeeker.h49 Res_png_9patch* mPatch;
/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.h132 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk, float dstLeft,
DSkiaCanvas.cpp655 void SkiaCanvas::drawNinePatch(Bitmap& bitmap, const Res_png_9patch& chunk, float dstLeft, in drawNinePatch()
/frameworks/base/tools/aapt2/compile/
DPng.cpp51 void* serialized = android::Res_png_9patch::serialize(info9Patch, xDivs, in serialize9Patch()
53 reinterpret_cast<android::Res_png_9patch*>(serialized)->deviceToFile(); in serialize9Patch()
62 android::Res_png_9patch info9Patch;
160 static void checkNinePatchSerialization(android::Res_png_9patch* inPatch, in checkNinePatchSerialization()
165 android::Res_png_9patch* outPatch = inPatch->deserialize(newData); in checkNinePatchSerialization()
953 return android::Res_png_9patch::TRANSPARENT_COLOR; in getColor()
961 return android::Res_png_9patch::NO_COLOR; in getColor()
965 return android::Res_png_9patch::NO_COLOR; in getColor()
972 return android::Res_png_9patch::TRANSPARENT_COLOR; in getColor()
1198 if (c != android::Res_png_9patch::NO_COLOR) { in do9Patch()
DNinePatch.cpp314 return android::Res_png_9patch::NO_COLOR; in GetRegionColor()
317 return android::Res_png_9patch::NO_COLOR; in GetRegionColor()
323 return android::Res_png_9patch::TRANSPARENT_COLOR; in GetRegionColor()
609 android::Res_png_9patch data; in SerializeBase()
619 android::Res_png_9patch::serialize( in SerializeBase()
624 reinterpret_cast<android::Res_png_9patch*>(buffer.get())->deviceToFile(); in SerializeBase()
DNinePatch_test.cpp290 (uint32_t)android::Res_png_9patch::NO_COLOR, in TEST()
292 (uint32_t)android::Res_png_9patch::TRANSPARENT_COLOR, in TEST()
/frameworks/base/tools/aapt/
DImages.cpp58 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); in serialize9patch()
59 reinterpret_cast<Res_png_9patch*>(serialized)->deviceToFile(); in serialize9patch()
69 Res_png_9patch info9Patch;
517 return Res_png_9patch::TRANSPARENT_COLOR; in get_color()
525 return Res_png_9patch::NO_COLOR; in get_color()
529 return Res_png_9patch::NO_COLOR; in get_color()
536 return Res_png_9patch::TRANSPARENT_COLOR; in get_color()
760 if (c != Res_png_9patch::NO_COLOR) in do_9patch()
796 static void checkNinePatchSerialization(Res_png_9patch* inPatch, void* data) in checkNinePatchSerialization()
801 Res_png_9patch* outPatch = inPatch->deserialize(newData); in checkNinePatchSerialization()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaRecordingCanvas.h53 virtual void drawNinePatch(Bitmap& hwuiBitmap, const android::Res_png_9patch& chunk,
DSkiaRecordingCanvas.cpp225 void SkiaRecordingCanvas::drawNinePatch(Bitmap& bitmap, const Res_png_9patch& chunk, float dstLeft, in drawNinePatch()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h120 struct alignas(uintptr_t) Res_png_9patch struct
122 Res_png_9patch() : wasDeserialized(false), xDivsOffset(0), in Res_png_9patch() argument
159 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs, argument
162 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
165 static Res_png_9patch* deserialize(void* data);
/frameworks/base/libs/hwui/hwui/
DCanvas.h262 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk, float dstLeft,
/frameworks/base/libs/androidfw/
DResourceTypes.cpp139 static void fill9patchOffsets(Res_png_9patch* patch) { in fill9patchOffsets()
140 patch->xDivsOffset = sizeof(Res_png_9patch); in fill9patchOffsets()
153 void Res_png_9patch::deviceToFile() in deviceToFile()
173 void Res_png_9patch::fileToDevice() in fileToDevice()
193 size_t Res_png_9patch::serializedSize() const in serializedSize()
205 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize()
215 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize()
229 fill9patchOffsets(reinterpret_cast<Res_png_9patch*>(outData)); in serialize()
408 Res_png_9patch* Res_png_9patch::deserialize(void* inData) in deserialize()
411 Res_png_9patch* patch = reinterpret_cast<Res_png_9patch*>(inData); in deserialize()
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp406 const android::Res_png_9patch* chunk = reinterpret_cast<android::Res_png_9patch*>(chunkHandle); in drawNinePatch()