/frameworks/base/core/jni/android/graphics/ |
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.cpp | 25 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()
|
D | NinePatchPeeker.h | 45 Res_png_9patch* mPatch;
|
D | BitmapFactory.cpp | 117 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale, in scaleNinePatchChunk()
|
/frameworks/base/libs/hwui/ |
D | PatchCache.h | 60 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;
|
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 | 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 | 106 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()
|
D | Patch.h | 44 const UvMapper& mapper, const Res_png_9patch* patch);
|
D | DisplayListCanvas.h | 206 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()
|
D | RecordingCanvas.h | 187 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()
|
D | DisplayList.h | 193 LsaVector<const Res_png_9patch*> patchResources;
|
D | RecordedOp.h | 294 PatchOp(BASE_PARAMS, const SkBitmap* 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 | DisplayListCanvas.cpp | 323 void DisplayListCanvas::drawNinePatch(const SkBitmap& bitmap, const Res_png_9patch& patch, in drawNinePatch() 326 const Res_png_9patch* patchPtr = refPatch(&patch); in drawNinePatch()
|
D | SkiaCanvas.cpp | 146 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()
|
D | RecordingCanvas.cpp | 535 void RecordingCanvas::drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& patch, in drawNinePatch()
|
/frameworks/base/tools/aapt2/compile/ |
D | Png.cpp | 48 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/ |
D | NinePatch.h | 32 const Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion);
|
D | NinePatchImpl.cpp | 68 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/ |
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/include/androidfw/ |
D | ResourceTypes.h | 118 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/ |
D | Canvas.h | 207 virtual void drawNinePatch(const SkBitmap& 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 | 347 const android::Res_png_9patch* chunk = reinterpret_cast<android::Res_png_9patch*>(chunkHandle); in drawNinePatch()
|