Home
last modified time | relevance | path

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

1234

/frameworks/av/services/audioflinger/
DPatchPanel.cpp70 status_t AudioFlinger::createAudioPatch(const struct audio_patch *patch, in createAudioPatch() argument
75 return mPatchPanel->createAudioPatch(patch, handle); in createAudioPatch()
139 status_t AudioFlinger::PatchPanel::createAudioPatch(const struct audio_patch *patch, in createAudioPatch() argument
143 patch->num_sources, patch->num_sinks, *handle); in createAudioPatch()
151 if (handle == NULL || patch == NULL) { in createAudioPatch()
154 if (patch->num_sources == 0 || patch->num_sources > AUDIO_PATCH_PORTS_MAX || in createAudioPatch()
155 patch->num_sinks == 0 || patch->num_sinks > AUDIO_PATCH_PORTS_MAX) { in createAudioPatch()
160 if (patch->num_sources > 2) { in createAudioPatch()
177 Patch *newPatch = new Patch(patch); in createAudioPatch()
179 switch (patch->sources[0].type) { in createAudioPatch()
[all …]
DPatchPanel.h38 status_t createAudioPatch(const struct audio_patch *patch,
51 status_t createPatchConnections(Patch *patch,
53 void clearPatchConnections(Patch *patch);
57 Patch(const struct audio_patch *patch) : in Patch() argument
58 mAudioPatch(*patch), mHandle(AUDIO_PATCH_HANDLE_NONE), in Patch()
DThreads.h174 CreateAudioPatchConfigEventData(const struct audio_patch patch, in CreateAudioPatchConfigEventData() argument
176 mPatch(patch), mHandle(handle) {} in CreateAudioPatchConfigEventData()
188 CreateAudioPatchConfigEvent(const struct audio_patch patch, in CreateAudioPatchConfigEvent() argument
191 mData = new CreateAudioPatchConfigEventData(patch, handle); in CreateAudioPatchConfigEvent()
269 status_t sendCreateAudioPatchConfigEvent(const struct audio_patch *patch,
274 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
731 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
889 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
1260 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
/frameworks/base/libs/hwui/
DPatchCache.cpp116 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { in remove() argument
120 if (key.getPatch() == patch) { in remove()
126 void PatchCache::removeDeferred(Res_png_9patch* patch) { in removeDeferred() argument
132 if (patch == mGarbage[i]) { in removeDeferred()
133 patch = nullptr; in removeDeferred()
137 LOG_ALWAYS_FATAL_IF(patch == nullptr); in removeDeferred()
139 mGarbage.push(patch); in removeDeferred()
149 Res_png_9patch* patch = mGarbage[i]; in clearGarbage() local
150 remove(patchesToRemove, patch); in clearGarbage()
153 delete[] (int8_t*) patch; in clearGarbage()
[all …]
DPatchCache.h60 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()
100 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight), in PatchDescription()
165 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch);
DPatch.cpp41 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) in Patch() argument
42 : mColors(patch->getColors()) { in Patch()
45 const int8_t numColors = patch->numColors; in Patch()
56 uint32_t xCount = patch->numXDivs; in Patch()
57 uint32_t yCount = patch->numYDivs; in Patch()
65 const int32_t* xDivs = patch->getXDivs(); in Patch()
66 const int32_t* yDivs = patch->getYDivs(); in Patch()
DDisplayListCanvas.h101 void drawPatch(const SkBitmap& bitmap, const Res_png_9patch* patch,
362 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { in refPatch() argument
363 mDisplayListData->patchResources.add(patch); in refPatch()
364 mResourceCache.incrementRefcount(patch); in refPatch()
365 return patch; in refPatch()
DResourceCache.cpp145 int8_t* patch = (int8_t*) resource; in deleteResourceReferenceLocked() local
146 delete[] patch; in deleteResourceReferenceLocked()
DPatch.h44 const UvMapper& mapper, const Res_png_9patch* patch);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp30 AudioPatch::AudioPatch(const struct audio_patch *patch, uid_t uid) : in AudioPatch() argument
32 mPatch(*patch), in AudioPatch()
86 const sp<AudioPatch>& patch) in addAudioPatch() argument
94 add(handle, patch); in addAudioPatch()
97 handle, patch->mAfPatchHandle, patch->mPatch.num_sources, patch->mPatch.num_sinks, in addAudioPatch()
98 patch->mPatch.sources[0].id, patch->mPatch.sinks[0].id); in addAudioPatch()
130 const sp<AudioPatch> patch = valueAt(i); in listAudioPatches() local
131 patches[patchesWritten] = patch->mPatch; in listAudioPatches()
132 patches[patchesWritten++].id = patch->mHandle; in listAudioPatches()
134 i, patch->mPatch.num_sources, patch->mPatch.num_sinks); in listAudioPatches()
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java107 public NinePatch(NinePatch patch) { in NinePatch() argument
108 mBitmap = patch.mBitmap; in NinePatch()
109 mSrcName = patch.mSrcName; in NinePatch()
110 if (patch.mPaint != null) { in NinePatch()
111 mPaint = new Paint(patch.mPaint); in NinePatch()
115 mNativeChunk = patch.mNativeChunk; in NinePatch()
/frameworks/base/docs/html/tools/help/
Ddraw9patch.jd1 page.title=Draw 9-patch
5 <p>The Draw 9-patch tool is a WYSIWYG editor that allows you to create bitmap images that
10 <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">Canvas and Drawables</a>
16 <p>Here's a quick guide to create a NinePatch graphic using the Draw 9-patch tool.
21 <code>sdk/tools</code> directory to launch the Draw 9-patch tool.
23 <li>Drag your PNG image into the Draw 9-patch window
24 (or <strong>File</strong> > <strong>Open 9-patch...</strong> to locate the file).
34 <li>When done, select <strong>File</strong> > <strong>Save 9-patch...</strong>
60 stretchable patch).</li>
63 <li><strong>Show bad patches</strong>: Adds a red border around patch areas that may
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp298 struct audio_patch patch; in updateCallRouting() local
299 patch.num_sources = 1; in updateCallRouting()
300 patch.num_sinks = 1; in updateCallRouting()
344 rxSourceDeviceDesc->toAudioPortConfig(&patch.sources[0]); in updateCallRouting()
345 rxSinkDeviceDesc->toAudioPortConfig(&patch.sinks[0]); in updateCallRouting()
357 outputDesc->toAudioPortConfig(&patch.sources[1]); in updateCallRouting()
358 patch.sources[1].ext.mix.usecase.stream = AUDIO_STREAM_PATCH; in updateCallRouting()
359 patch.num_sources = 2; in updateCallRouting()
363 status = mpClientInterface->createAudioPatch(&patch, &afPatchHandle, 0); in updateCallRouting()
367 mCallRxPatch = new AudioPatch(&patch, mUidCached); in updateCallRouting()
[all …]
/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()
32 memcpy(patchNew, patch, patchSize); in peek()
DNinePatch.cpp82 int8_t* patch = reinterpret_cast<int8_t*>(patchHandle); in finalize() local
84 Res_png_9patch* p = (Res_png_9patch*) patch; in finalize()
87 delete[] patch; in finalize()
/frameworks/base/core/java/android/view/
DDisplayListCanvas.java271 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { in drawPatch() argument
272 Bitmap bitmap = patch.getBitmap(); in drawPatch()
275 nDrawPatch(mNativeCanvasWrapper, bitmap, patch.mNativeChunk, in drawPatch()
281 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { in drawPatch() argument
282 Bitmap bitmap = patch.getBitmap(); in drawPatch()
285 nDrawPatch(mNativeCanvasWrapper, bitmap, patch.mNativeChunk, in drawPatch()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPatch.h30 AudioPatch(const struct audio_patch *patch, uid_t uid);
46 status_t addAudioPatch(audio_patch_handle_t handle, const sp<AudioPatch>& patch);
/frameworks/base/docs/html-intl/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>
/frameworks/webview/chromium/plat_support/
Ddraw_sw.h51 typedef void (SkiaVersionFunction)(int* major, int* minor, int* patch);
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp215 status_t AudioPolicyService::clientCreateAudioPatch(const struct audio_patch *patch, in clientCreateAudioPatch() argument
219 return mAudioCommandThread->createAudioPatchCommand(patch, handle, delayMs); in clientCreateAudioPatch()
742 const struct audio_patch *patch, in createAudioPatchCommand() argument
751 data->mPatch = *patch; in createAudioPatchCommand()
919 struct audio_patch patch; in insertCommand_l() local
922 patch = ((CreateAudioPatchData *)command->mParam.get())->mPatch; in insertCommand_l()
941 if (patch.num_sources == patch2.num_sources) { in insertCommand_l()
942 for (unsigned count = 0; count < patch.num_sources; count++) { in insertCommand_l()
943 if (patch.sources[count].id != patch2.sources[count].id) { in insertCommand_l()
DAudioPolicyClientImpl.cpp186 status_t AudioPolicyService::AudioPolicyClient::createAudioPatch(const struct audio_patch *patch, in createAudioPatch() argument
190 return mAudioPolicyService->clientCreateAudioPatch(patch, handle, delayMs); in createAudioPatch()
DAudioPolicyService.h178 virtual status_t createAudioPatch(const struct audio_patch *patch,
212 status_t clientCreateAudioPatch(const struct audio_patch *patch,
288 status_t createAudioPatchCommand(const struct audio_patch *patch,
480 virtual status_t createAudioPatch(const struct audio_patch *patch,
/frameworks/base/docs/html/google/play/
Dexpansion-files.jd95 <li>The <strong>patch</strong> expansion file is optional and intended for small updates to the
100 expansion file deliver the primary assets and should rarely if ever updated; the patch expansion
101 file should be smaller and serve as a “patch carrier,” getting updated with each major
104 <p>However, even if your application update requires only a new patch expansion file, you still must
110 <p class="note"><strong>Note:</strong> The patch expansion file is semantically the same as the
112 not use the patch expansion file to perform patching for your app. You must perform patching
125 [main|patch].&lt;expansion-version&gt;.&lt;package-name&gt;.obb
131 <dt>{@code main} or {@code patch}</dt>
132 <dd>Specifies whether the file is the main or patch expansion file. There can be
133 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/av/services/audiopolicy/
DAudioPolicyInterface.h206 virtual status_t createAudioPatch(const struct audio_patch *patch,
316 virtual status_t createAudioPatch(const struct audio_patch *patch,

1234