/frameworks/base/core/jni/android/graphics/ |
D | NinePatchPeeker.cpp | 24 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()
|
D | NinePatch.cpp | 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() 83 Res_png_9patch* p = (Res_png_9patch*) patch; in finalize() 92 Res_png_9patch* chunk = reinterpret_cast<Res_png_9patch*>(chunkHandle); in getTransparentRegion()
|
D | NinePatchPeeker.h | 45 Res_png_9patch* mPatch;
|
D | BitmapFactory.cpp | 122 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, in scaleNinePatchChunk()
|
/frameworks/base/libs/hwui/ |
D | ResourceCache.h | 69 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);
|
D | PatchCache.h | 57 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;
|
D | ResourceCache.cpp | 65 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()
|
D | PatchCache.cpp | 89 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()
|
D | NinePatchUtils.h | 22 static inline void SetLatticeDivs(SkCanvas::Lattice* lattice, const Res_png_9patch& chunk, in SetLatticeDivs() 57 int numFlags, const Res_png_9patch& chunk) { in SetLatticeFlags()
|
D | Patch.h | 44 const UvMapper& mapper, const Res_png_9patch* patch);
|
D | RecordingCanvas.h | 186 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()
|
D | DisplayList.h | 148 LsaVector<const Res_png_9patch*> patchResources;
|
D | RecordedOp.h | 294 PatchOp(BASE_PARAMS, Bitmap* bitmap, const Res_png_9patch* patch) in PatchOp() 299 const Res_png_9patch* patch;
|
D | Patch.cpp | 39 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) in Patch()
|
D | SkiaCanvas.h | 137 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk,
|
/frameworks/base/tools/aapt2/compile/ |
D | Png.cpp | 50 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()
|
D | NinePatch.cpp | 314 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()
|
D | NinePatch_test.cpp | 290 (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/ |
D | Images.cpp | 58 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/ |
D | SkiaRecordingCanvas.h | 55 virtual void drawNinePatch(Bitmap& hwuiBitmap, const android::Res_png_9patch& chunk,
|
D | SkiaRecordingCanvas.cpp | 211 void SkiaRecordingCanvas::drawNinePatch(Bitmap& hwuiBitmap, const Res_png_9patch& chunk, in drawNinePatch()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 117 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/ |
D | Canvas.h | 245 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk,
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 137 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/ |
D | android_graphics_Canvas.cpp | 349 const android::Res_png_9patch* chunk = reinterpret_cast<android::Res_png_9patch*>(chunkHandle); in drawNinePatch()
|