Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/libs/hwui/
DPatchCache.cpp110 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { in remove() argument
114 if (key.getPatch() == patch) { in remove()
120 void PatchCache::removeDeferred(Res_png_9patch* patch) { in removeDeferred() argument
122 mGarbage.push(patch); in removeDeferred()
143 const Patch* patch = pair.getSecond(); in clearGarbage() local
144 BufferBlock* block = new BufferBlock(patch->offset, patch->getSize()); in clearGarbage()
148 mSize -= patch->getSize(); in clearGarbage()
226 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) { in get() argument
228 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); in get()
238 pixelWidth, pixelHeight, entry->uvMapper, patch); in get()
[all …]
DPatch.cpp50 float width, float height, const Res_png_9patch* patch) { in createMesh() argument
52 return createMesh(bitmapWidth, bitmapHeight, width, height, mapper, patch); in createMesh()
56 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) { in createMesh() argument
60 mColors = patch->colors; in createMesh()
62 const int8_t numColors = patch->numColors; in createMesh()
73 uint32_t xCount = patch->numXDivs; in createMesh()
74 uint32_t yCount = patch->numYDivs; in createMesh()
82 const int32_t* xDivs = patch->xDivs; in createMesh()
83 const int32_t* yDivs = patch->yDivs; in createMesh()
DPatchCache.h59 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch);
83 void removeDeferred(Res_png_9patch* patch);
98 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch): in PatchDescription()
99 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight), in PatchDescription()
164 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch);
DPatch.h58 float width, float height, const Res_png_9patch* patch);
60 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch);
DDisplayListRenderer.h106 virtual status_t drawPatch(SkBitmap* bitmap, Res_png_9patch* patch,
325 inline Res_png_9patch* refPatch(Res_png_9patch* patch) { in refPatch() argument
326 mPatchResources.add(patch); in refPatch()
327 mCaches.resourceCache.incrementRefcount(patch); in refPatch()
328 return patch; in refPatch()
DDisplayListRenderer.cpp321 status_t DisplayListRenderer::drawPatch(SkBitmap* bitmap, Res_png_9patch* patch, in drawPatch() argument
324 patch = refPatch(patch); in drawPatch()
327 addDrawOp(new (alloc()) DrawPatchOp(bitmap, patch, left, top, right, bottom, paint)); in drawPatch()
DResourceCache.cpp386 int8_t* patch = (int8_t*) resource; in deleteResourceReferenceLocked() local
387 delete[] patch; in deleteResourceReferenceLocked()
/frameworks/base/docs/html/tools/help/
Ddraw9patch.jd1 page.title=Draw 9-patch
5 <p>The Draw 9-patch tool allows you to easily create a
7 <p>For an introduction to Nine-patch graphics and how they work, please read
8 the section about Nine-patch in the
9 <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">2D Graphics</a>
15 <p>Here's a quick guide to create a Nine-patch graphic using the Draw 9-patch tool.
22 <li>Drag your PNG image into the Draw 9-patch window
23 (or <strong>File</strong> > <strong>Open 9-patch...</strong> to locate the file).
33 <li>When done, select <strong>File</strong> > <strong>Save 9-patch...</strong>
40 A previously saved 9-patch file (<code>*.9.png</code>) will be loaded as-is,
[all …]
Djobb.jd79 intended for creating patch versions of previously generated OBB files. Files within an
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java75 public NinePatch(NinePatch patch) { in NinePatch() argument
76 mBitmap = patch.mBitmap; in NinePatch()
77 mSrcName = patch.mSrcName; in NinePatch()
78 if (patch.mPaint != null) { in NinePatch()
79 mPaint = new Paint(patch.mPaint); in NinePatch()
83 mNativeChunk = patch.mNativeChunk; in NinePatch()
DCanvas.java1102 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { in drawPatch() argument
1103 patch.drawSoftware(this, dst, paint); in drawPatch()
1115 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { in drawPatch() argument
1116 patch.drawSoftware(this, dst, paint); in drawPatch()
/frameworks/base/core/jni/android/graphics/
DNinePatchPeeker.cpp25 Res_png_9patch* patch = (Res_png_9patch*) data; in peek() local
26 size_t patchSize = patch->serializedSize(); in peek()
30 memcpy(patchNew, patch, patchSize); in peek()
DNinePatch.cpp78 static void finalize(JNIEnv* env, jobject, int8_t* patch) { in finalize() argument
81 Res_png_9patch* p = (Res_png_9patch*) patch; in finalize()
86 delete[] patch; in finalize()
/frameworks/base/docs/html-intl/ru/training/multiscreen/
Dscreensizes.jd24 <li><a href="#TaskUse9Patch">Использование растровых изображений nine-patch</a></li>
254 <h2 id="TaskUse9Patch">Использование растровых изображений nine-patch</h2>
258 …далек от идеального. Решением являются растровые изображения формата nine-patch&nbsp;– специальные…
260 …ne-patch. На рис.&nbsp;4 показано обычное растровое изображение (увеличенное в 4&nbsp;раза для наг…
273 … именно в таком виде, чтобы система могла определить, что это формат nine-patch, а не обычный PNG-…
278 …</strong>. Кнопки разных размеров с файлом фона <code>button.9.png</code> в формате nine-patch.</p>
Dindex.jd57 …икаторы размера и ориентации, фильтры псевдонимов и растровые изображений формата nine-patch.</dd>
/frameworks/base/graphics/java/android/graphics/drawable/
DNinePatchDrawable.java111 public NinePatchDrawable(NinePatch patch) { in NinePatchDrawable() argument
112 this(new NinePatchState(patch, new Rect()), null); in NinePatchDrawable()
119 public NinePatchDrawable(Resources res, NinePatch patch) { in NinePatchDrawable() argument
120 this(new NinePatchState(patch, new Rect()), res); in NinePatchDrawable()
/frameworks/base/docs/html/google/play/
Dexpansion-files.jd93 <li>The <strong>patch</strong> expansion file is optional and intended for small updates to the
98 expansion file deliver the primary assets and should rarely if ever updated; the patch expansion
99 file should be smaller and serve as a “patch carrier,” getting updated with each major
102 <p>However, even if your application update requires only a new patch expansion file, you still must
108 <p class="note"><strong>Note:</strong> The patch expansion file is semantically the same as the
110 not use the patch expansion file to perform patching for your app. You must perform patching
123 [main|patch].&lt;expansion-version&gt;.&lt;package-name&gt;.obb
129 <dt>{@code main} or {@code patch}</dt>
130 <dd>Specifies whether the file is the main or patch expansion file. There can be
131 only one main file and one patch file for each APK.</dd>
[all …]
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dwidget_design.jd118 Layouts and Background Graphics</a> below, using nine-patch backgrounds and flexible layouts for app
197 <p>If there is any inherent content padding in your widget background nine-patch, you should add to
235 to take up the entire available space. The nine-patch should be edge-to-edge with no transparent
245 <img src="{@docRoot}images/ninepatch_raw.png" alt="Nine-patch border pixels" id="ninepatch_raw">
247 <p class="img-caption"><strong>Figure 5.</strong> Nine-patch border pixels indicating stretchable
252 background. For this case, each individual item in the StackView should use a nine-patch background
323 look at the widget design templates below. The downloadable package below includes nine-patch
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DThinPatchesActivity.java54 mPatch1 = resources.getDrawable(R.drawable.patch); in PatchView()
/frameworks/base/docs/html/training/multiscreen/
Dscreensizes.jd24 <li><a href="#TaskUse9Patch">Use Nine-patch Bitmaps</a></li>
331 <h2 id="TaskUse9Patch">Use Nine-patch Bitmaps</h2>
339 runtime will stretch or shrink your images uniformly. The solution is using nine-patch bitmaps,
344 variable size, always use nine-patches. To convert a bitmap into a nine-patch,
366 extension, since this is how the framework detects that this is a nine-patch
376 nine-patch in various sizes.</p>
Dindex.jd73 alias filters, and nine-patch bitmaps).</dd>
/frameworks/base/core/java/android/view/
DGLES20Canvas.java777 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { in drawPatch() argument
778 Bitmap bitmap = patch.getBitmap(); in drawPatch()
784 nDrawPatch(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, patch.mNativeChunk, in drawPatch()
792 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { in drawPatch() argument
793 Bitmap bitmap = patch.getBitmap(); in drawPatch()
799 nDrawPatch(mRenderer, bitmap.mNativeBitmap, bitmap.mBuffer, patch.mNativeChunk, in drawPatch()
/frameworks/base/docs/html/guide/topics/ui/controls/
Dbutton.jd191 href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">Nine-patch</a> bitmaps.</p>
/frameworks/base/docs/html/guide/topics/graphics/
D2d-graphics.jd23 <li><a href="#nine-patch">Nine-patch</a></li>
431 <h2 id="nine-patch">Nine-patch</h2>
479 <p>The <a href="{@docRoot}tools/help/draw9patch.html">Draw 9-patch</a> tool offers
/frameworks/base/docs/html/google/play/licensing/
Dlicensing-reference.jd311 <td>The URL for an expansion file (1 is for the main file, 2 is the patch file). Use this to
316 <td>The expansion file's name (1 is for the main file, 2 is the patch file). You must use this
321 <td>The size of the file in bytes (1 is for the main file, 2 is the patch file). Use this to

12