/frameworks/base/core/jni/android/graphics/ |
NinePatchPeeker.cpp | 24 if (!strcmp("npTc", tag) && length >= sizeof(Res_png_9patch)) { 25 Res_png_9patch* patch = (Res_png_9patch*) data; 31 Res_png_9patch* patchNew = (Res_png_9patch*) malloc(patchSize); 33 Res_png_9patch::deserialize(patchNew);
|
NinePatch.cpp | 36 const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion); 42 * or as a Res_png_9patch instance. It is important to note that the size of the 43 * array required to hold a 9patch chunk is greater than sizeof(Res_png_9patch). 44 * The code below manipulates chunks as Res_png_9patch* types to draw and as 54 if (env->GetArrayLength(obj) < (int)sizeof(Res_png_9patch)) { 59 const Res_png_9patch* chunk = reinterpret_cast<const Res_png_9patch*>(array); 69 if (chunkSize < (int) (sizeof(Res_png_9patch))) { 78 return reinterpret_cast<jlong>(Res_png_9patch::deserialize(storage)); 84 Res_png_9patch* p = (Res_png_9patch*) patch [all...] |
NinePatchPeeker.h | 47 Res_png_9patch* mPatch;
|
NinePatchImpl.cpp | 70 if (colorHint != android::Res_png_9patch::NO_COLOR) { 101 const SkBitmap& bitmap, const android::Res_png_9patch& chunk, 291 if (color == android::Res_png_9patch::TRANSPARENT_COLOR && !hasXfer) {
|
BitmapFactory.cpp | 110 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale,
|
/frameworks/base/libs/hwui/ |
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);
|
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): 106 const Res_png_9patch* getPatch() const { return mPatch; } 133 const Res_png_9patch* mPatch; 165 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch); 184 Vector<Res_png_9patch*> mGarbage;
|
ResourceCache.cpp | 67 void ResourceCache::incrementRefcount(const Res_png_9patch* patchResource) { 86 void ResourceCache::decrementRefcount(const Res_png_9patch* patchResource) { 103 void ResourceCache::decrementRefcountLocked(const Res_png_9patch* patchResource) { 107 void ResourceCache::destructor(Res_png_9patch* resource) { 112 void ResourceCache::destructorLocked(Res_png_9patch* resource) { 120 // A Res_png_9patch is actually an array of byte that's larger 121 // than sizeof(Res_png_9patch). It must be freed as an array. 141 Caches::getInstance().patchCache.removeDeferred((Res_png_9patch*) resource); 143 // A Res_png_9patch is actually an array of byte that's larger 144 // than sizeof(Res_png_9patch). It must be freed as an array [all...] |
Patch.h | 44 const UvMapper& mapper, const Res_png_9patch* patch);
|
PatchCache.cpp | 116 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { 126 void PatchCache::removeDeferred(Res_png_9patch* patch) { 149 Res_png_9patch* patch = mGarbage[i]; 151 // A Res_png_9patch is actually an array of byte that's larger 152 // than sizeof(Res_png_9patch). It must be freed as an array. 251 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) {
|
DisplayList.h | 138 Vector<const Res_png_9patch*> patchResources;
|
DisplayListCanvas.h | 101 void drawPatch(const SkBitmap& bitmap, const Res_png_9patch* patch, 362 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) {
|
Patch.cpp | 41 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch)
|
DisplayListOp.h | 791 DrawPatchOp(const SkBitmap* bitmap, const Res_png_9patch* patch, [all...] |
DisplayListCanvas.cpp | 333 void DisplayListCanvas::drawPatch(const SkBitmap& bitmap, const Res_png_9patch* patch,
|
/frameworks/base/tools/aapt/ |
Images.cpp | 58 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); 59 reinterpret_cast<Res_png_9patch*>(serialized)->deviceToFile(); 69 Res_png_9patch info9Patch; 517 return Res_png_9patch::TRANSPARENT_COLOR; 525 return Res_png_9patch::NO_COLOR; 529 return Res_png_9patch::NO_COLOR; 536 return Res_png_9patch::TRANSPARENT_COLOR; 760 if (c != Res_png_9patch::NO_COLOR) 796 static void checkNinePatchSerialization(Res_png_9patch* inPatch, void* data) 801 Res_png_9patch* outPatch = inPatch->deserialize(newData) [all...] |
/frameworks/base/tools/aapt2/ |
Png.cpp | 49 void* serialized = android::Res_png_9patch::serialize(info9Patch, xDivs, yDivs, 51 reinterpret_cast<android::Res_png_9patch*>(serialized)->deviceToFile(); 60 android::Res_png_9patch info9Patch; 155 static void checkNinePatchSerialization(android::Res_png_9patch* inPatch, void* data) { 159 android::Res_png_9patch* outPatch = inPatch->deserialize(newData); 918 return android::Res_png_9patch::TRANSPARENT_COLOR; 926 return android::Res_png_9patch::NO_COLOR; 930 return android::Res_png_9patch::NO_COLOR; 937 return android::Res_png_9patch::TRANSPARENT_COLOR; [all...] |
/frameworks/base/core/jni/ |
android_view_DisplayListCanvas.cpp | 122 Res_png_9patch* patch = reinterpret_cast<Res_png_9patch*>(patchPtr);
|
/frameworks/base/include/androidfw/ |
ResourceTypes.h | 115 struct alignas(uintptr_t) Res_png_9patch 117 Res_png_9patch() : wasDeserialized(false), xDivsOffset(0), 129 // of the Res_png_9patch struct. 154 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs, 157 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs, 160 static Res_png_9patch* deserialize(void* data); [all...] |
/frameworks/base/libs/androidfw/ |
ResourceTypes.cpp | 135 static void fill9patchOffsets(Res_png_9patch* patch) { 136 patch->xDivsOffset = sizeof(Res_png_9patch); 149 void Res_png_9patch::deviceToFile() 169 void Res_png_9patch::fileToDevice() 189 size_t Res_png_9patch::serializedSize() const 201 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, 211 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, 225 fill9patchOffsets(reinterpret_cast<Res_png_9patch*>(outData)) [all...] |