Home
last modified time | relevance | path

Searched refs:patch (Results 1 – 25 of 82) 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
145 if (handle == NULL || patch == NULL) { in createAudioPatch()
149 patch->num_sources, patch->num_sinks, *handle); in createAudioPatch()
154 if (patch->num_sources == 0 || patch->num_sources > AUDIO_PATCH_PORTS_MAX || in createAudioPatch()
155 (patch->num_sinks == 0 && patch->num_sources != 2) || in createAudioPatch()
156 patch->num_sinks > AUDIO_PATCH_PORTS_MAX) { in createAudioPatch()
161 if (patch->num_sources > 2) { in createAudioPatch()
186 ((patch->sources[0].type != AUDIO_PORT_TYPE_DEVICE) || 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()
273 status_t sendCreateAudioPatchConfigEvent(const struct audio_patch *patch,
278 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
767 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
922 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
1315 virtual status_t createAudioPatch_l(const struct audio_patch *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()
88 const sp<AudioPatch>& patch) in addAudioPatch() argument
96 add(handle, patch); in addAudioPatch()
99 handle, patch->mAfPatchHandle, patch->mPatch.num_sources, patch->mPatch.num_sinks, in addAudioPatch()
100 patch->mPatch.sources[0].id, patch->mPatch.sinks[0].id); in addAudioPatch()
135 const sp<AudioPatch> patch = valueAt(patchIndex); in listAudioPatches() local
137 for (size_t srcIndex = 0; srcIndex < patch->mPatch.num_sources && !skip; srcIndex++) { in listAudioPatches()
138 if (patch->mPatch.sources[srcIndex].type == AUDIO_PORT_TYPE_DEVICE && in listAudioPatches()
139 patch->mPatch.sources[srcIndex].ext.device.type == AUDIO_DEVICE_IN_STUB) { in listAudioPatches()
[all …]
/frameworks/base/libs/hwui/
DPatchCache.cpp106 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { in remove() argument
110 if (key.getPatch() == patch) { in remove()
116 void PatchCache::removeDeferred(Res_png_9patch* patch) { in removeDeferred() argument
122 if (patch == mGarbage[i]) { in removeDeferred()
123 patch = nullptr; in removeDeferred()
127 LOG_ALWAYS_FATAL_IF(patch == nullptr); in removeDeferred()
129 mGarbage.push(patch); in removeDeferred()
139 Res_png_9patch* patch = mGarbage[i]; in clearGarbage() local
140 remove(patchesToRemove, patch); in clearGarbage()
143 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.cpp39 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) in Patch() argument
40 : mColors(patch->getColors()) { in Patch()
43 const int8_t numColors = patch->numColors; in Patch()
54 uint32_t xCount = patch->numXDivs; in Patch()
55 uint32_t yCount = patch->numYDivs; in Patch()
63 const int32_t* xDivs = patch->getXDivs(); in Patch()
64 const int32_t* yDivs = patch->getYDivs(); in Patch()
DResourceCache.cpp143 int8_t* patch = (int8_t*) resource; in deleteResourceReferenceLocked() local
144 delete[] patch; in deleteResourceReferenceLocked()
DDisplayListCanvas.h329 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { in refPatch() argument
330 mDisplayList->patchResources.push_back(patch); in refPatch()
331 mResourceCache.incrementRefcount(patch); in refPatch()
332 return patch; in refPatch()
DRecordingCanvas.h299 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { in refPatch() argument
300 mDisplayList->patchResources.push_back(patch); in refPatch()
301 mResourceCache.incrementRefcount(patch); in refPatch()
302 return patch; in refPatch()
DRecordedOp.h294 PatchOp(BASE_PARAMS, const SkBitmap* bitmap, const Res_png_9patch* patch) in PatchOp()
297 , patch(patch) {} in PatchOp()
299 const Res_png_9patch* patch; member
DPatch.h44 const UvMapper& mapper, const Res_png_9patch* patch);
/frameworks/base/graphics/java/android/graphics/
DNinePatch.java120 public NinePatch(NinePatch patch) { in NinePatch() argument
121 mBitmap = patch.mBitmap; in NinePatch()
122 mSrcName = patch.mSrcName; in NinePatch()
123 if (patch.mPaint != null) { in NinePatch()
124 mPaint = new Paint(patch.mPaint); in NinePatch()
128 mNativeChunk = patch.mNativeChunk; in NinePatch()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp362 struct audio_patch patch; in updateCallRouting() local
364 patch.num_sources = 1; in updateCallRouting()
365 patch.num_sinks = 1; in updateCallRouting()
375 rxSourceDeviceDesc->toAudioPortConfig(&patch.sources[0]); in updateCallRouting()
376 rxSinkDeviceDesc->toAudioPortConfig(&patch.sinks[0]); in updateCallRouting()
388 outputDesc->toAudioPortConfig(&patch.sources[1]); in updateCallRouting()
389 patch.sources[1].ext.mix.usecase.stream = AUDIO_STREAM_PATCH; in updateCallRouting()
390 patch.num_sources = 2; in updateCallRouting()
394 status = mpClientInterface->createAudioPatch(&patch, &afPatchHandle, delayMs); in updateCallRouting()
398 mCallRxPatch = new AudioPatch(&patch, mUidCached); in updateCallRouting()
[all …]
/frameworks/base/core/jni/android/graphics/
DNinePatchPeeker.cpp26 Res_png_9patch* patch = (Res_png_9patch*) data; in readChunk() local
27 size_t patchSize = patch->serializedSize(); in readChunk()
33 memcpy(patchNew, patch, patchSize); in readChunk()
DNinePatch.cpp81 int8_t* patch = reinterpret_cast<int8_t*>(patchHandle); in finalize() local
83 Res_png_9patch* p = (Res_png_9patch*) patch; in finalize()
86 delete[] patch; in finalize()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java161 String patch = Build.VERSION.SECURITY_PATCH; in getSecurityPatch() local
162 if (!"".equals(patch)) { in getSecurityPatch()
165 Date patchDate = template.parse(patch); in getSecurityPatch()
167 patch = DateFormat.format(format, patchDate).toString(); in getSecurityPatch()
171 return patch; in getSecurityPatch()
/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/media/java/android/media/
DAudioRecordingConfiguration.java134 final AudioPatch patch = patches.get(i); in getAudioDevice() local
135 if (patch.id() == mPatchHandle) { in getAudioDevice()
136 final AudioPortConfig[] sources = patch.sources(); in getAudioDevice()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Settings/
Dvolumes.pfw15 /Policy/policy/streams/patch/applicable_volume_profile/volume_profile = 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.cpp258 status_t AudioPolicyService::clientCreateAudioPatch(const struct audio_patch *patch, in clientCreateAudioPatch() argument
262 return mAudioCommandThread->createAudioPatchCommand(patch, handle, delayMs); in clientCreateAudioPatch()
796 const struct audio_patch *patch, in createAudioPatchCommand() argument
805 data->mPatch = *patch; in createAudioPatchCommand()
1005 struct audio_patch patch; in insertCommand_l() local
1008 patch = ((CreateAudioPatchData *)command->mParam.get())->mPatch; in insertCommand_l()
1027 if (patch.num_sources == patch2.num_sources) { in insertCommand_l()
1028 for (unsigned count = 0; count < patch.num_sources; count++) { in insertCommand_l()
1029 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()
/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 …]

1234