Home
last modified time | relevance | path

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

/frameworks/base/core/jni/android/graphics/
DNinePatch.cpp35 const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion);
53 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()
84 Res_png_9patch* p = (Res_png_9patch*) patch; in finalize()
93 Res_png_9patch* chunk, const SkPaint* paint, jint destDensity, jint srcDensity) { in draw()
126 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); in drawF()
145 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); in drawI()
161 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); in getTransparentRegion()
DNinePatchPeeker.cpp24 if (!strcmp("npTc", tag) && length >= sizeof(Res_png_9patch)) { in peek()
25 Res_png_9patch* patch = (Res_png_9patch*) data; in peek()
29 Res_png_9patch* patchNew = (Res_png_9patch*) malloc(patchSize); in peek()
31 Res_png_9patch::deserialize(patchNew); in peek()
DNinePatchPeeker.h47 Res_png_9patch* mPatch;
DNinePatchImpl.cpp74 if (colorHint != android::Res_png_9patch::NO_COLOR) { in drawStretchyPatch()
106 const SkBitmap& bitmap, const android::Res_png_9patch& chunk, in NinePatch_Draw()
296 if (color == android::Res_png_9patch::TRANSPARENT_COLOR && !hasXfer) { in NinePatch_Draw()
DBitmapFactory.cpp115 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, in scaleNinePatchChunk()
/frameworks/base/libs/hwui/
DResourceCache.h71 void incrementRefcount(const Res_png_9patch* resource);
76 void incrementRefcountLocked(const Res_png_9patch* resource);
81 void decrementRefcount(const Res_png_9patch* resource);
86 void decrementRefcountLocked(const Res_png_9patch* resource);
91 void destructor(Res_png_9patch* resource);
95 void destructorLocked(Res_png_9patch* resource);
DPatchCache.h59 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch);
83 void removeDeferred(Res_png_9patch* patch);
98 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch): in PatchDescription()
105 const Res_png_9patch* getPatch() const { return mPatch; } in getPatch()
132 const Res_png_9patch* mPatch;
164 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch);
182 Vector<Res_png_9patch*> mGarbage;
DResourceCache.cpp74 void ResourceCache::incrementRefcount(const Res_png_9patch* patchResource) { in incrementRefcount()
102 void ResourceCache::incrementRefcountLocked(const Res_png_9patch* patchResource) { in incrementRefcountLocked()
125 void ResourceCache::decrementRefcount(const Res_png_9patch* patchResource) { in decrementRefcount()
156 void ResourceCache::decrementRefcountLocked(const Res_png_9patch* patchResource) { in decrementRefcountLocked()
210 void ResourceCache::destructor(Res_png_9patch* resource) { in destructor()
215 void ResourceCache::destructorLocked(Res_png_9patch* resource) { in destructorLocked()
299 Caches::getInstance().patchCache.removeDeferred((Res_png_9patch*) resource); in deleteResourceReferenceLocked()
DPatch.h59 float width, float height, const Res_png_9patch* patch);
61 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch);
DPatchCache.cpp110 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { in remove()
120 void PatchCache::removeDeferred(Res_png_9patch* patch) { in removeDeferred()
143 Res_png_9patch* patch = mGarbage[i]; in clearGarbage()
243 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) { in get()
DDisplayListRenderer.h117 virtual status_t drawPatch(const SkBitmap* bitmap, const Res_png_9patch* patch,
292 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { in refPatch()
DRenderer.h30 struct Res_png_9patch;
184 virtual status_t drawPatch(const SkBitmap* bitmap, const Res_png_9patch* patch,
DPatch.cpp51 float width, float height, const Res_png_9patch* patch) { in createMesh()
57 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) { in createMesh()
DDisplayList.h144 Vector<const Res_png_9patch*> patchResources;
DOpenGLRenderer.h181 virtual status_t drawPatch(const SkBitmap* bitmap, const Res_png_9patch* patch,
DDisplayListRenderer.cpp249 status_t DisplayListRenderer::drawPatch(const SkBitmap* bitmap, const Res_png_9patch* patch, in drawPatch()
DDisplayListOp.h836 DrawPatchOp(const SkBitmap* bitmap, const Res_png_9patch* patch, in DrawPatchOp()
970 const Res_png_9patch* mPatch;
DOpenGLRenderer.cpp2290 status_t OpenGLRenderer::drawPatch(const SkBitmap* bitmap, const Res_png_9patch* patch,
/frameworks/base/tools/aapt/
DImages.cpp57 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); in serialize9patch()
58 reinterpret_cast<Res_png_9patch*>(serialized)->deviceToFile(); in serialize9patch()
68 Res_png_9patch info9Patch;
512 return Res_png_9patch::TRANSPARENT_COLOR; in get_color()
520 return Res_png_9patch::NO_COLOR; in get_color()
524 return Res_png_9patch::NO_COLOR; in get_color()
531 return Res_png_9patch::TRANSPARENT_COLOR; in get_color()
785 NOISY(if (c != Res_png_9patch::NO_COLOR) hasColor = true); in do_9patch()
819 static void checkNinePatchSerialization(Res_png_9patch* inPatch, void* data) in checkNinePatchSerialization()
824 Res_png_9patch* outPatch = inPatch->deserialize(newData); in checkNinePatchSerialization()
/frameworks/base/include/androidfw/
DResourceTypes.h104 struct Res_png_9patch struct
106 Res_png_9patch() : wasDeserialized(false), xDivsOffset(0), in Res_png_9patch() argument
143 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs, argument
146 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
149 static Res_png_9patch* deserialize(void* data);
/frameworks/base/libs/androidfw/
DResourceTypes.cpp132 static void fill9patchOffsets(Res_png_9patch* patch) { in fill9patchOffsets()
133 patch->xDivsOffset = sizeof(Res_png_9patch); in fill9patchOffsets()
146 void Res_png_9patch::deviceToFile() in deviceToFile()
166 void Res_png_9patch::fileToDevice() in fileToDevice()
186 size_t Res_png_9patch::serializedSize() const in serializedSize()
198 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize()
208 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize()
222 fill9patchOffsets(reinterpret_cast<Res_png_9patch*>(outData)); in serialize()
401 Res_png_9patch* Res_png_9patch::deserialize(void* inData) in deserialize()
404 Res_png_9patch* patch = reinterpret_cast<Res_png_9patch*>(inData); in deserialize()
/frameworks/base/core/jni/
Dandroid_view_GLES20Canvas.cpp455 Res_png_9patch* patch = reinterpret_cast<Res_png_9patch*>(patchPtr); in android_view_GLES20Canvas_drawPatch()