Home
last modified time | relevance | path

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

123

/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 explicit Patch(const struct audio_patch *patch) : in Patch() argument
58 mAudioPatch(*patch), mHandle(AUDIO_PATCH_HANDLE_NONE), in Patch()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp32 AudioPatch::AudioPatch(const struct audio_patch *patch, uid_t uid) : in AudioPatch() argument
34 mPatch(*patch), in AudioPatch()
90 const sp<AudioPatch>& patch) in addAudioPatch() argument
98 add(handle, patch); in addAudioPatch()
101 handle, patch->mAfPatchHandle, patch->mPatch.num_sources, patch->mPatch.num_sinks, in addAudioPatch()
102 patch->mPatch.sources[0].id, patch->mPatch.sinks[0].id); in addAudioPatch()
137 const sp<AudioPatch> patch = valueAt(patchIndex); in listAudioPatches() local
139 for (size_t srcIndex = 0; srcIndex < patch->mPatch.num_sources && !skip; srcIndex++) { in listAudioPatches()
140 if (patch->mPatch.sources[srcIndex].type == AUDIO_PORT_TYPE_DEVICE && in listAudioPatches()
141 patch->mPatch.sources[srcIndex].ext.device.type == AUDIO_DEVICE_IN_STUB) { in listAudioPatches()
[all …]
/frameworks/base/libs/hwui/
DPatchCache.cpp89 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { in remove() argument
93 if (key.getPatch() == patch) { in remove()
99 void PatchCache::removeDeferred(Res_png_9patch* patch) { in removeDeferred() argument
105 if (patch == mGarbage[i]) { in removeDeferred()
106 patch = nullptr; in removeDeferred()
110 LOG_ALWAYS_FATAL_IF(patch == nullptr); in removeDeferred()
112 mGarbage.push(patch); in removeDeferred()
122 Res_png_9patch* patch = mGarbage[i]; in clearGarbage() local
123 remove(patchesToRemove, patch); in clearGarbage()
126 delete[] (int8_t*) patch; in clearGarbage()
[all …]
DPatchCache.h57 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): in PatchDescription()
93 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight), in PatchDescription()
158 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()
DRecordedOp.h294 PatchOp(BASE_PARAMS, Bitmap* bitmap, const Res_png_9patch* patch) in PatchOp()
297 , patch(patch) {} in PatchOp()
299 const Res_png_9patch* patch; member
DRecordingCanvas.h301 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { in refPatch() argument
302 mDisplayList->patchResources.push_back(patch); in refPatch()
303 mResourceCache.incrementRefcount(patch); in refPatch()
304 return patch; in refPatch()
/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()
DBaseCanvas.java273 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { in drawPatch() argument
274 Bitmap bitmap = patch.getBitmap(); in drawPatch()
278 nDrawNinePatch(mNativeCanvasWrapper, bitmap.getNativeInstance(), patch.mNativeChunk, in drawPatch()
280 mDensity, patch.getDensity()); in drawPatch()
283 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { in drawPatch() argument
284 Bitmap bitmap = patch.getBitmap(); in drawPatch()
288 nDrawNinePatch(mNativeCanvasWrapper, bitmap.getNativeInstance(), patch.mNativeChunk, in drawPatch()
290 mDensity, patch.getDensity()); in drawPatch()
/frameworks/base/core/jni/android/graphics/
DNinePatchPeeker.cpp25 Res_png_9patch* patch = (Res_png_9patch*) data; in readChunk() local
26 size_t patchSize = patch->serializedSize(); in readChunk()
32 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/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp419 struct audio_patch patch; in updateCallRouting() local
421 patch.num_sources = 1; in updateCallRouting()
422 patch.num_sinks = 1; in updateCallRouting()
432 rxSourceDeviceDesc->toAudioPortConfig(&patch.sources[0]); in updateCallRouting()
433 rxSinkDeviceDesc->toAudioPortConfig(&patch.sinks[0]); in updateCallRouting()
445 outputDesc->toAudioPortConfig(&patch.sources[1]); in updateCallRouting()
446 patch.sources[1].ext.mix.usecase.stream = AUDIO_STREAM_PATCH; in updateCallRouting()
447 patch.num_sources = 2; in updateCallRouting()
451 status = mpClientInterface->createAudioPatch(&patch, &afPatchHandle, delayMs); in updateCallRouting()
455 mCallRxPatch = new AudioPatch(&patch, mUidCached); in updateCallRouting()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DDeviceInfoUtils.java160 String patch = Build.VERSION.SECURITY_PATCH; in getSecurityPatch() local
161 if (!"".equals(patch)) { in getSecurityPatch()
164 Date patchDate = template.parse(patch); in getSecurityPatch()
166 patch = DateFormat.format(format, patchDate).toString(); in getSecurityPatch()
170 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/av/media/libaudiohal/
DDeviceHalLocal.cpp159 audio_patch_handle_t *patch) { in createAudioPatch() argument
162 mDev, num_sources, sources, num_sinks, sinks, patch); in createAudioPatch()
168 status_t DeviceHalLocal::releaseAudioPatch(audio_patch_handle_t patch) { in releaseAudioPatch() argument
170 return mDev->release_audio_patch(mDev, patch); in releaseAudioPatch()
DDeviceHalLocal.h92 audio_patch_handle_t *patch);
95 virtual status_t releaseAudioPatch(audio_patch_handle_t patch);
DDeviceHalHidl.h97 audio_patch_handle_t *patch);
100 virtual status_t releaseAudioPatch(audio_patch_handle_t patch);
DDeviceHalHidl.cpp306 audio_patch_handle_t *patch) { in createAudioPatch() argument
317 *patch = static_cast<audio_patch_handle_t>(hidlPatch); in createAudioPatch()
323 status_t DeviceHalHidl::releaseAudioPatch(audio_patch_handle_t patch) { in releaseAudioPatch() argument
325 return processReturn("releaseAudioPatch", mDevice->releaseAudioPatch(patch)); in releaseAudioPatch()
/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/av/media/libaudiohal/include/
DDeviceHalInterface.h97 audio_patch_handle_t *patch) = 0;
100 virtual status_t releaseAudioPatch(audio_patch_handle_t patch) = 0;
/frameworks/base/core/java/android/view/
DRecordingCanvas.java257 public final void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, in drawPatch() argument
259 Bitmap bitmap = patch.getBitmap(); in drawPatch()
262 nDrawNinePatch(mNativeCanvasWrapper, bitmap.getNativeInstance(), patch.mNativeChunk, in drawPatch()
264 mDensity, patch.getDensity()); in drawPatch()
268 public final void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, in drawPatch() argument
270 Bitmap bitmap = patch.getBitmap(); in drawPatch()
273 nDrawNinePatch(mNativeCanvasWrapper, bitmap.getNativeInstance(), patch.mNativeChunk, in drawPatch()
275 mDensity, patch.getDensity()); in drawPatch()
/frameworks/webview/chromium/plat_support/
Ddraw_sw.h51 typedef void (SkiaVersionFunction)(int* major, int* minor, int* patch);

123