Home
last modified time | relevance | path

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

12

/frameworks/base/core/jni/android/graphics/
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.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()
DNinePatchPeeker.h45 Res_png_9patch* mPatch;
DBitmapFactory.cpp117 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, in scaleNinePatchChunk()
/frameworks/base/libs/hwui/
DPatchCache.h60 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch);
84 void removeDeferred(Res_png_9patch* patch);
99 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch): in PatchDescription()
106 const Res_png_9patch* getPatch() const { return mPatch; } in getPatch()
133 const Res_png_9patch* mPatch;
165 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch);
184 Vector<Res_png_9patch*> mGarbage;
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);
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.cpp106 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { in remove()
116 void PatchCache::removeDeferred(Res_png_9patch* patch) { in removeDeferred()
139 Res_png_9patch* patch = mGarbage[i]; in clearGarbage()
241 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) { in get()
DPatch.h44 const UvMapper& mapper, const Res_png_9patch* patch);
DDisplayListCanvas.h206 virtual void drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
329 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { in refPatch()
DRecordingCanvas.h187 virtual void drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
299 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { in refPatch()
DDisplayList.h193 LsaVector<const Res_png_9patch*> patchResources;
DRecordedOp.h294 PatchOp(BASE_PARAMS, const SkBitmap* 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()
DDisplayListCanvas.cpp323 void DisplayListCanvas::drawNinePatch(const SkBitmap& bitmap, const Res_png_9patch& patch, in drawNinePatch()
326 const Res_png_9patch* patchPtr = refPatch(&patch); in drawNinePatch()
DSkiaCanvas.cpp146 virtual void drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& chunk,
745 void SkiaCanvas::drawNinePatch(const SkBitmap& bitmap, const Res_png_9patch& chunk, in drawNinePatch()
DRecordingCanvas.cpp535 void RecordingCanvas::drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& patch, in drawNinePatch()
/frameworks/base/tools/aapt2/compile/
DPng.cpp48 void* serialized = android::Res_png_9patch::serialize(info9Patch, xDivs, yDivs, in serialize9Patch()
50 reinterpret_cast<android::Res_png_9patch*>(serialized)->deviceToFile(); in serialize9Patch()
59 android::Res_png_9patch info9Patch;
153 static void checkNinePatchSerialization(android::Res_png_9patch* inPatch, void* data) { in checkNinePatchSerialization()
157 android::Res_png_9patch* outPatch = inPatch->deserialize(newData); in checkNinePatchSerialization()
916 return android::Res_png_9patch::TRANSPARENT_COLOR; in getColor()
924 return android::Res_png_9patch::NO_COLOR; in getColor()
928 return android::Res_png_9patch::NO_COLOR; in getColor()
935 return android::Res_png_9patch::TRANSPARENT_COLOR; in getColor()
1156 if (c != android::Res_png_9patch::NO_COLOR) { in do9Patch()
/frameworks/base/libs/hwui/utils/
DNinePatch.h32 const Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion);
DNinePatchImpl.cpp68 if (colorHint != android::Res_png_9patch::NO_COLOR) { in drawStretchyPatch()
99 const SkBitmap& bitmap, const Res_png_9patch& chunk, in Draw()
289 if (color == android::Res_png_9patch::TRANSPARENT_COLOR && !hasXfer) { in Draw()
/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/include/androidfw/
DResourceTypes.h118 struct alignas(uintptr_t) Res_png_9patch struct
120 Res_png_9patch() : wasDeserialized(false), xDivsOffset(0), in Res_png_9patch() argument
157 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs, argument
160 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
163 static Res_png_9patch* deserialize(void* data);
/frameworks/base/libs/hwui/hwui/
DCanvas.h207 virtual void drawNinePatch(const SkBitmap& 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.cpp347 const android::Res_png_9patch* chunk = reinterpret_cast<android::Res_png_9patch*>(chunkHandle); in drawNinePatch()

12