HomeSort by relevance Sort by last modified time
    Searched refs:Res_png_9patch (Results 1 - 25 of 27) sorted by null

1 2

  /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 41 * or as a Res_png_9patch instance. It is important to note that the size of the
42 * array required to hold a 9patch chunk is greater than sizeof(Res_png_9patch).
43 * The code below manipulates chunks as Res_png_9patch* types to draw and as
53 if (env->GetArrayLength(obj) < (int)sizeof(Res_png_9patch)) {
58 const Res_png_9patch* chunk = reinterpret_cast<const Res_png_9patch*>(array);
68 if (chunkSize < (int) (sizeof(Res_png_9patch))) {
77 return reinterpret_cast<jlong>(Res_png_9patch::deserialize(storage));
83 Res_png_9patch* p = (Res_png_9patch*) patch
    [all...]
NinePatchPeeker.h 45 Res_png_9patch* mPatch;
BitmapFactory.cpp 122 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 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):
99 const Res_png_9patch* getPatch() const { return mPatch; }
126 const Res_png_9patch* mPatch;
158 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch);
175 Vector<Res_png_9patch*> mGarbage;
ResourceCache.cpp 65 void ResourceCache::incrementRefcount(const Res_png_9patch* patchResource) {
84 void ResourceCache::decrementRefcount(const Res_png_9patch* patchResource) {
101 void ResourceCache::decrementRefcountLocked(const Res_png_9patch* patchResource) {
105 void ResourceCache::destructor(Res_png_9patch* resource) {
110 void ResourceCache::destructorLocked(Res_png_9patch* resource) {
118 // A Res_png_9patch is actually an array of byte that's larger
119 // than sizeof(Res_png_9patch). It must be freed as an array.
139 Caches::getInstance().patchCache.removeDeferred((Res_png_9patch*) resource);
141 // A Res_png_9patch is actually an array of byte that's larger
142 // than sizeof(Res_png_9patch). It must be freed as an array
    [all...]
Patch.h 44 const UvMapper& mapper, const Res_png_9patch* patch);
NinePatchUtils.h 22 static inline void SetLatticeDivs(SkCanvas::Lattice* lattice, const Res_png_9patch& chunk,
57 int numFlags, const Res_png_9patch& chunk) {
PatchCache.cpp 89 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) {
99 void PatchCache::removeDeferred(Res_png_9patch* patch) {
122 Res_png_9patch* patch = mGarbage[i];
124 // A Res_png_9patch is actually an array of byte that's larger
125 // than sizeof(Res_png_9patch). It must be freed as an array.
227 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) {
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) {
DisplayList.h 148 LsaVector<const Res_png_9patch*> patchResources;
RecordedOp.h 294 PatchOp(BASE_PARAMS, Bitmap* bitmap, const Res_png_9patch* patch)
299 const Res_png_9patch* patch;
Patch.cpp 39 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch)
SkiaCanvas.h 137 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk,
  /frameworks/base/libs/hwui/pipeline/skia/
SkiaRecordingCanvas.h 55 virtual void drawNinePatch(Bitmap& hwuiBitmap, const android::Res_png_9patch& chunk,
SkiaRecordingCanvas.cpp 211 void SkiaRecordingCanvas::drawNinePatch(Bitmap& hwuiBitmap, const Res_png_9patch& chunk,
  /frameworks/base/tools/aapt2/compile/
NinePatch.cpp 314 return android::Res_png_9patch::NO_COLOR;
317 return android::Res_png_9patch::NO_COLOR;
323 return android::Res_png_9patch::TRANSPARENT_COLOR;
609 android::Res_png_9patch data;
619 android::Res_png_9patch::serialize(
624 reinterpret_cast<android::Res_png_9patch*>(buffer.get())->deviceToFile();
Png.cpp 50 void* serialized = android::Res_png_9patch::serialize(info9Patch, xDivs,
52 reinterpret_cast<android::Res_png_9patch*>(serialized)->deviceToFile();
61 android::Res_png_9patch info9Patch;
159 static void checkNinePatchSerialization(android::Res_png_9patch* inPatch,
164 android::Res_png_9patch* outPatch = inPatch->deserialize(newData);
952 return android::Res_png_9patch::TRANSPARENT_COLOR;
960 return android::Res_png_9patch::NO_COLOR;
964 return android::Res_png_9patch::NO_COLOR;
971 return android::Res_png_9patch::TRANSPARENT_COLOR;
    [all...]
NinePatch_test.cpp 290 (uint32_t)android::Res_png_9patch::NO_COLOR,
292 (uint32_t)android::Res_png_9patch::TRANSPARENT_COLOR,
  /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/libs/androidfw/include/androidfw/
ResourceTypes.h 117 struct alignas(uintptr_t) Res_png_9patch
119 Res_png_9patch() : wasDeserialized(false), xDivsOffset(0),
131 // of the Res_png_9patch struct.
156 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
159 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
162 static Res_png_9patch* deserialize(void* data);
    [all...]
  /frameworks/base/libs/hwui/hwui/
Canvas.h 245 virtual void drawNinePatch(Bitmap& bitmap, const android::Res_png_9patch& chunk,
  /frameworks/base/core/jni/
android_graphics_Canvas.cpp 349 const android::Res_png_9patch* chunk = reinterpret_cast<android::Res_png_9patch*>(chunkHandle);
  /frameworks/base/libs/androidfw/
ResourceTypes.cpp 137 static void fill9patchOffsets(Res_png_9patch* patch) {
138 patch->xDivsOffset = sizeof(Res_png_9patch);
151 void Res_png_9patch::deviceToFile()
171 void Res_png_9patch::fileToDevice()
191 size_t Res_png_9patch::serializedSize() const
203 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs,
213 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs,
227 fill9patchOffsets(reinterpret_cast<Res_png_9patch*>(outData))
    [all...]

Completed in 535 milliseconds

1 2