/frameworks/base/core/jni/android/graphics/ |
H A D | NinePatchPeeker.cpp | 25 Res_png_9patch* patch = (Res_png_9patch*) data; local 26 size_t patchSize = patch->serializedSize(); 30 memcpy(patchNew, patch, patchSize); 36 //printf("9patch: (%d,%d)-(%d,%d)\n", 41 // 'cause we don't want 565 predithered, since as a 9patch, we know
|
H A D | NinePatch.cpp | 18 #define LOG_TAG "9patch" 38 * IMPORTANT NOTE: 9patch chunks can be manipuated either as an array of bytes 40 * array required to hold a 9patch chunk is greater than sizeof(Res_png_9patch). 78 static void finalize(JNIEnv* env, jobject, int8_t* patch) { argument 81 Res_png_9patch* p = (Res_png_9patch*) patch; 86 delete[] patch; 92 ALOGV("Drawing unscaled 9-patch: (%g,%g)-(%g,%g)", 107 ALOGV("Drawing scaled 9-patch: (%g,%g)-(%g,%g) srcDensity=%d destDensity=%d",
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | NinePatch.java | 26 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">2D 51 * @param chunk The 9-patch data chunk describing how the underlying bitmap 62 * @param chunk The 9-patch data chunk describing how the underlying 75 public NinePatch(NinePatch patch) { argument 76 mBitmap = patch.mBitmap; 77 mSrcName = patch.mSrcName; 78 if (patch.mPaint != null) { 79 mPaint = new Paint(patch.mPaint); 81 // No need to validate the 9patch chunk again, it was done by 83 mNativeChunk = patch [all...] |
H A D | Canvas.java | 1094 * Draws the specified bitmap as an N-patch (most often, a 9-patches.) 1096 * @param patch The ninepatch object to render 1102 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { argument 1103 patch.drawSoftware(this, dst, paint); 1107 * Draws the specified bitmap as an N-patch (most often, a 9-patches.) 1109 * @param patch The ninepatch object to render 1115 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { argument 1116 patch.drawSoftware(this, dst, paint);
|
/frameworks/base/libs/hwui/ |
H A D | PatchCache.cpp | 38 INIT_LOGD(" Setting patch cache size to %skB", property); 41 INIT_LOGD(" Using default patch cache size of %.2fkB", DEFAULT_PATCH_CACHE_SIZE); 110 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { argument 114 if (key.getPatch() == patch) { 120 void PatchCache::removeDeferred(Res_png_9patch* patch) { argument 122 mGarbage.push(patch); 143 const Patch* patch = pair.getSecond(); local 144 BufferBlock* block = new BufferBlock(patch->offset, patch->getSize()); 148 mSize -= patch 224 get(const AssetAtlas::Entry* entry, const uint32_t bitmapWidth, const uint32_t bitmapHeight, const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) argument [all...] |
H A D | PatchCache.h | 59 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch); 79 * Removes the entries associated with the specified 9-patch. This is meant 83 void removeDeferred(Res_png_9patch* patch); 98 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch): 99 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight), 144 * The patch cache maintains a linked-list of buffer blocks 164 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch); 97 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) argument
|
H A D | Patch.cpp | 50 float width, float height, const Res_png_9patch* patch) { 52 return createMesh(bitmapWidth, bitmapHeight, width, height, mapper, patch); 56 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) { 60 mColors = patch->colors; 62 const int8_t numColors = patch->numColors; 73 uint32_t xCount = patch->numXDivs; 74 uint32_t yCount = patch->numYDivs; 82 const int32_t* xDivs = patch->xDivs; 83 const int32_t* yDivs = patch->yDivs; 49 createMesh(const float bitmapWidth, const float bitmapHeight, float width, float height, const Res_png_9patch* patch) argument 55 createMesh(const float bitmapWidth, const float bitmapHeight, float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) argument
|
H A D | Patch.h | 36 // 9-patch structures 44 * Returns the size of this patch's mesh in bytes. 58 float width, float height, const Res_png_9patch* patch); 60 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch);
|
H A D | DisplayListRenderer.h | 106 virtual status_t drawPatch(SkBitmap* bitmap, Res_png_9patch* patch, 325 inline Res_png_9patch* refPatch(Res_png_9patch* patch) { argument 326 mPatchResources.add(patch); 327 mCaches.resourceCache.incrementRefcount(patch); 328 return patch;
|
H A D | DisplayListRenderer.cpp | 321 status_t DisplayListRenderer::drawPatch(SkBitmap* bitmap, Res_png_9patch* patch, argument 324 patch = refPatch(patch); 327 addDrawOp(new (alloc()) DrawPatchOp(bitmap, patch, left, top, right, bottom, paint));
|
H A D | ResourceCache.cpp | 386 int8_t* patch = (int8_t*) resource; local 387 delete[] patch;
|
H A D | DisplayListOp.h | 953 DrawPatchOp(SkBitmap* bitmap, Res_png_9patch* patch, argument 956 mBitmap(bitmap), mPatch(patch), mGenerationId(0), mMesh(NULL), 985 * and transforming the vertices of each 9-patch in the batch. This method 1009 // 9-patch objects that are part of the batch. Note that onDefer() 1035 // Dirty the current layer if possible. When the 9-patch does not 1071 OP_LOG("Draw patch "RECT_STRING, RECT_ARGS(mLocalBounds));
|
H A D | OpenGLRenderer.h | 298 virtual status_t drawPatch(SkBitmap* bitmap, Res_png_9patch* patch,
|
H A D | OpenGLRenderer.cpp | 2412 status_t OpenGLRenderer::drawPatch(SkBitmap* bitmap, Res_png_9patch* patch, argument 2420 right - left, bottom - top, patch); 2445 // Mark the current layer dirty where we are going to draw the patch 2485 * Important note: this method is intended to draw batches of 9-patch objects and
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | NinePatchDrawable.java | 49 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch"> 52 * <a href="{@docRoot}guide/developing/tools/draw9patch.html">Draw 9-patch</a> tool guide.</p></div> 74 * Create drawable from raw nine-patch data, not dealing with density. 84 * Create drawable from raw nine-patch data, setting initial target density 94 * Create drawable from raw nine-patch data, setting initial target density 106 * Create drawable from existing nine-patch, not dealing with density. 111 public NinePatchDrawable(NinePatch patch) { argument 112 this(new NinePatchState(patch, new Rect()), null); 116 * Create drawable from existing nine-patch, setting initial target density 119 public NinePatchDrawable(Resources res, NinePatch patch) { argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ThinPatchesActivity.java | 54 mPatch1 = resources.getDrawable(R.drawable.patch);
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 777 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { argument 778 Bitmap bitmap = patch.getBitmap(); 784 nDrawPatch(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, patch.mNativeChunk, 792 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { argument 793 Bitmap bitmap = patch.getBitmap(); 799 nDrawPatch(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, patch.mNativeChunk,
|
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 450 OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, Res_png_9patch* patch, 455 renderer->drawPatch(bitmap, patch, left, top, right, bottom, paint); 449 android_view_GLES20Canvas_drawPatch(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, SkBitmap* bitmap, jbyteArray buffer, Res_png_9patch* patch, float left, float top, float right, float bottom, SkPaint* paint) argument
|
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 205 char* patch = (char*) inData; local 207 memmove(&outData->wasDeserialized, patch, 4); // copy wasDeserialized, numXDivs, numYDivs, numColors 208 memmove(&outData->paddingLeft, patch + 12, 4); // copy wasDeserialized, numXDivs, numYDivs, numColors
|