Home
last modified time | relevance | path

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

12

/frameworks/base/core/jni/android/graphics/
DNinePatchPeeker.cpp24 if (!strcmp("npTc", tag) && length >= sizeof(Res_png_9patch)) { in readChunk()
25 Res_png_9patch* patch = (Res_png_9patch*) data; in readChunk()
31 Res_png_9patch* patchNew = (Res_png_9patch*) malloc(patchSize); in readChunk()
33 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()
83 Res_png_9patch* p = (Res_png_9patch*) patch; in finalize()
92 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); in getTransparentRegion()
DNinePatchPeeker.h45 Res_png_9patch* mPatch;
DBitmapFactory.cpp122 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, in scaleNinePatchChunk()
/frameworks/base/libs/hwui/
DResourceCache.h69 void incrementRefcount(const Res_png_9patch* resource);
71 void decrementRefcount(const Res_png_9patch* resource);
73 void decrementRefcountLocked(const Res_png_9patch* resource);
75 void destructor(Res_png_9patch* resource);
77 void destructorLocked(Res_png_9patch* resource);
DPatchCache.h57 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch);
77 void removeDeferred(Res_png_9patch* patch);
92 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch): in PatchDescription()
99 const Res_png_9patch* getPatch() const { return mPatch; } in getPatch()
126 const Res_png_9patch* mPatch;
158 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch);
175 Vector<Res_png_9patch*> mGarbage;
DResourceCache.cpp65 void ResourceCache::incrementRefcount(const Res_png_9patch* patchResource) { in incrementRefcount()
84 void ResourceCache::decrementRefcount(const Res_png_9patch* patchResource) { in decrementRefcount()
101 void ResourceCache::decrementRefcountLocked(const Res_png_9patch* patchResource) { in decrementRefcountLocked()
105 void ResourceCache::destructor(Res_png_9patch* resource) { in destructor()
110 void ResourceCache::destructorLocked(Res_png_9patch* resource) { in destructorLocked()
139 Caches::getInstance().patchCache.removeDeferred((Res_png_9patch*) resource); in deleteResourceReferenceLocked()
DPatchCache.cpp89 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { in remove()
99 void PatchCache::removeDeferred(Res_png_9patch* patch) { in removeDeferred()
122 Res_png_9patch* patch = mGarbage[i]; in clearGarbage()
227 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) { in get()
DNinePatchUtils.h22 static inline void SetLatticeDivs(SkCanvas::Lattice* lattice, const Res_png_9patch& chunk, in SetLatticeDivs()
57 int numFlags, const Res_png_9patch& chunk) { in SetLatticeFlags()
DPatch.h44 const UvMapper& mapper, const Res_png_9patch* patch);
DRecordingCanvas.h186 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk,
301 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { in refPatch()
DDisplayList.h148 LsaVector<const Res_png_9patch*> patchResources;
DRecordedOp.h294 PatchOp(BASE_PARAMS, Bitmap* bitmap, const Res_png_9patch* patch) in PatchOp()
299 const Res_png_9patch* patch;
DPatch.cpp39 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) in Patch()
DSkiaCanvas.h137 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk,
/frameworks/base/tools/aapt2/compile/
DPng.cpp50 void* serialized = android::Res_png_9patch::serialize(info9Patch, xDivs, in serialize9Patch()
52 reinterpret_cast<android::Res_png_9patch*>(serialized)->deviceToFile(); in serialize9Patch()
61 android::Res_png_9patch info9Patch;
159 static void checkNinePatchSerialization(android::Res_png_9patch* inPatch, in checkNinePatchSerialization()
164 android::Res_png_9patch* outPatch = inPatch->deserialize(newData); in checkNinePatchSerialization()
952 return android::Res_png_9patch::TRANSPARENT_COLOR; in getColor()
960 return android::Res_png_9patch::NO_COLOR; in getColor()
964 return android::Res_png_9patch::NO_COLOR; in getColor()
971 return android::Res_png_9patch::TRANSPARENT_COLOR; in getColor()
1197 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.h55 virtual void drawNinePatch(Bitmap& hwuiBitmap, const android::Res_png_9patch& chunk,
DSkiaRecordingCanvas.cpp211 void SkiaRecordingCanvas::drawNinePatch(Bitmap& hwuiBitmap, const Res_png_9patch& chunk, in drawNinePatch()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h117 struct alignas(uintptr_t) Res_png_9patch struct
119 Res_png_9patch() : wasDeserialized(false), xDivsOffset(0), in Res_png_9patch() function
156 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs, argument
159 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
162 static Res_png_9patch* deserialize(void* data);
/frameworks/base/libs/hwui/hwui/
DCanvas.h245 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk,
/frameworks/base/libs/androidfw/
DResourceTypes.cpp137 static void fill9patchOffsets(Res_png_9patch* patch) { in fill9patchOffsets()
138 patch->xDivsOffset = sizeof(Res_png_9patch); in fill9patchOffsets()
151 void Res_png_9patch::deviceToFile() in deviceToFile()
171 void Res_png_9patch::fileToDevice() in fileToDevice()
191 size_t Res_png_9patch::serializedSize() const in serializedSize()
203 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize()
213 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize()
227 fill9patchOffsets(reinterpret_cast<Res_png_9patch*>(outData)); in serialize()
406 Res_png_9patch* Res_png_9patch::deserialize(void* inData) in deserialize()
409 Res_png_9patch* patch = reinterpret_cast<Res_png_9patch*>(inData); in deserialize()
/frameworks/base/core/jni/
Dandroid_graphics_Canvas.cpp349 const android::Res_png_9patch* chunk = reinterpret_cast<android::Res_png_9patch*>(chunkHandle); in drawNinePatch()

12