Searched defs:patch (Results 1 - 25 of 33) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
H A DNinePatchPeeker.cpp26 Res_png_9patch* patch = (Res_png_9patch*) data; local
27 size_t patchSize = patch->serializedSize();
33 memcpy(patchNew, patch, patchSize);
H A DNinePatch.cpp18 #define LOG_TAG "9patch"
40 * IMPORTANT NOTE: 9patch chunks can be manipuated either as an array of bytes
42 * array required to hold a 9patch chunk is greater than sizeof(Res_png_9patch).
81 int8_t* patch = reinterpret_cast<int8_t*>(patchHandle); local
83 Res_png_9patch* p = (Res_png_9patch*) patch;
86 delete[] patch;
/frameworks/av/services/audioflinger/
H A DPatchPanel.h37 /* Create a patch between several source and sink ports */
38 status_t createAudioPatch(const struct audio_patch *patch,
41 /* Release a patch */
51 status_t createPatchConnections(Patch *patch,
53 void clearPatchConnections(Patch *patch);
57 Patch(const struct audio_patch *patch) : argument
58 mAudioPatch(*patch), mHandle(AUDIO_PATCH_HANDLE_NONE),
H A DPatchPanel.cpp69 /* Connect a patch between several source and sink ports */
70 status_t AudioFlinger::createAudioPatch(const struct audio_patch *patch, argument
75 return mPatchPanel->createAudioPatch(patch, handle);
80 /* Disconnect a patch */
138 /* Connect a patch between several source and sink ports */
139 status_t AudioFlinger::PatchPanel::createAudioPatch(const struct audio_patch *patch, argument
145 if (handle == NULL || patch == NULL) {
149 patch->num_sources, patch->num_sinks, *handle);
154 if (patch
383 createPatchConnections(Patch *patch, const struct audio_patch *audioPatch) argument
481 clearPatchConnections(Patch *patch) argument
558 struct audio_patch *patch = &removedPatch->mAudioPatch; local
[all...]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPatch.cpp30 AudioPatch::AudioPatch(const struct audio_patch *patch, uid_t uid) : argument
32 mPatch(*patch),
44 snprintf(buffer, SIZE, "%*sAudio patch %d:\n", spaces, "", index+1);
88 const sp<AudioPatch>& patch)
93 ALOGW("addAudioPatch() patch %d already in", handle);
96 add(handle, patch);
99 handle, patch->mAfPatchHandle, patch->mPatch.num_sources, patch->mPatch.num_sinks,
100 patch
87 addAudioPatch(audio_patch_handle_t handle, const sp<AudioPatch>& patch) argument
135 const sp<AudioPatch> patch = valueAt(patchIndex); local
[all...]
/frameworks/base/libs/hwui/
H A DResourceCache.cpp143 int8_t* patch = (int8_t*) resource; local
144 delete[] patch;
H A DDisplayListCanvas.h329 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { argument
330 mDisplayList->patchResources.push_back(patch);
331 mResourceCache.incrementRefcount(patch);
332 return patch;
H A DPatch.cpp39 float width, float height, const UvMapper& mapper, const Res_png_9patch* patch)
40 : mColors(patch->getColors()) {
43 const int8_t numColors = patch->numColors;
54 uint32_t xCount = patch->numXDivs;
55 uint32_t yCount = patch->numYDivs;
63 const int32_t* xDivs = patch->getXDivs();
64 const int32_t* yDivs = patch->getYDivs();
38 Patch(const float bitmapWidth, const float bitmapHeight, float width, float height, const UvMapper& mapper, const Res_png_9patch* patch) argument
H A DPatchCache.cpp106 void PatchCache::remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch) { argument
110 if (key.getPatch() == patch) {
116 void PatchCache::removeDeferred(Res_png_9patch* patch) { argument
119 // Assert that patch is not already garbage
122 if (patch == mGarbage[i]) {
123 patch = nullptr;
127 LOG_ALWAYS_FATAL_IF(patch == nullptr);
129 mGarbage.push(patch);
139 Res_png_9patch* patch = mGarbage[i]; local
140 remove(patchesToRemove, patch);
154 Patch* patch = pair.getSecond(); local
239 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 DPatchCache.h60 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch);
80 * Removes the entries associated with the specified 9-patch. This is meant
84 void removeDeferred(Res_png_9patch* patch);
99 const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch):
100 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight),
145 * The patch cache maintains a linked-list of buffer blocks
165 void remove(Vector<patch_pair_t>& patchesToRemove, Res_png_9patch* patch);
98 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, const float pixelWidth, const float pixelHeight, const Res_png_9patch* patch) argument
H A DRecordingCanvas.h299 inline const Res_png_9patch* refPatch(const Res_png_9patch* patch) { argument
300 mDisplayList->patchResources.push_back(patch);
301 mResourceCache.incrementRefcount(patch);
302 return patch;
H A DGlopBuilder.cpp216 GlopBuilder& GlopBuilder::setMeshPatchQuads(const Patch& patch) { argument
224 (void*)patch.positionOffset, (void*)patch.textureOffset, nullptr,
226 mOutGlop->mesh.elementCount = patch.indexCount;
H A DRecordedOp.h294 PatchOp(BASE_PARAMS, const SkBitmap* bitmap, const Res_png_9patch* patch) argument
297 , patch(patch) {}
299 const Res_png_9patch* patch; member in struct:android::uirenderer::PatchOp
H A DDisplayListCanvas.cpp323 void DisplayListCanvas::drawNinePatch(const SkBitmap& bitmap, const Res_png_9patch& patch, argument
326 const Res_png_9patch* patchPtr = refPatch(&patch);
H A DRecordingCanvas.cpp517 void RecordingCanvas::drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& patch, argument
524 refPaint(paint), refBitmap(bitmap), refPatch(&patch)));
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyClientImpl.cpp186 status_t AudioPolicyService::AudioPolicyClient::createAudioPatch(const struct audio_patch *patch, argument
190 return mAudioPolicyService->clientCreateAudioPatch(patch, handle, delayMs);
H A DAudioPolicyInterfaceImpl.cpp608 status_t AudioPolicyService::createAudioPatch(const struct audio_patch *patch, argument
618 return mAudioPolicyManager->createAudioPatch(patch, handle,
H A DAudioPolicyService.cpp260 status_t AudioPolicyService::clientCreateAudioPatch(const struct audio_patch *patch, argument
264 return mAudioCommandThread->createAudioPatchCommand(patch, handle, delayMs);
540 ALOGV("AudioCommandThread() processing create audio patch");
550 ALOGV("AudioCommandThread() processing release audio patch");
569 ALOGV("AudioCommandThread() processing update audio patch list");
798 const struct audio_patch *patch,
807 data->mPatch = *patch;
811 ALOGV("AudioCommandThread() adding create patch delay %d", delayMs);
828 ALOGV("AudioCommandThread() adding release patch delay %d", delayMs);
844 ALOGV("AudioCommandThread() adding update audio patch lis
797 createAudioPatchCommand( const struct audio_patch *patch, audio_patch_handle_t *handle, int delayMs) argument
995 struct audio_patch patch; local
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DNinePatch.java25 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">2D
35 * Struct of inset information attached to a 9 patch bitmap.
37 * Present on a 9 patch bitmap if it optical insets were manually included,
96 * @param chunk The 9-patch data chunk describing how the underlying bitmap
107 * @param chunk The 9-patch data chunk describing how the underlying
120 public NinePatch(NinePatch patch) { argument
121 mBitmap = patch.mBitmap;
122 mSrcName = patch.mSrcName;
123 if (patch.mPaint != null) {
124 mPaint = new Paint(patch
[all...]
/frameworks/av/services/audiopolicy/managerdefault/
H A DAudioPolicyManager.h204 virtual status_t createAudioPatch(const struct audio_patch *patch,
456 virtual status_t addAudioPatch(audio_patch_handle_t handle, const sp<AudioPatch>& patch) argument
458 return mAudioPatches.addAudioPatch(handle, patch);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DNinePatchDrawable.java62 * <a href="{@docRoot}guide/topics/graphics/2d-graphics.html#nine-patch">
65 * <a href="{@docRoot}guide/developing/tools/draw9patch.html">Draw 9-patch</a> tool guide.</p></div>
94 * Create drawable from raw nine-patch data, not dealing with density.
105 * Create drawable from raw nine-patch data, setting initial target density
114 * Create drawable from raw nine-patch data, setting initial target density
126 * Create drawable from existing nine-patch, not dealing with density.
133 public NinePatchDrawable(@NonNull NinePatch patch) { argument
134 this(new NinePatchState(patch, new Rect()), null);
138 * Create drawable from existing nine-patch, setting initial target density
141 public NinePatchDrawable(@Nullable Resources res, @NonNull NinePatch patch) { argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java205 public void drawPatch(NinePatch patch, Rect dst, Paint paint) { argument
209 public void drawPatch(NinePatch patch, RectF dst, Paint paint) { argument
/frameworks/av/media/libmedia/
H A DAudioSystem.cpp1044 status_t AudioSystem::createAudioPatch(const struct audio_patch *patch, argument
1049 return aps->createAudioPatch(patch, handle);
H A DIAudioFlinger.cpp843 virtual status_t createAudioPatch(const struct audio_patch *patch, argument
846 if (patch == NULL || handle == NULL) {
851 data.write(patch, sizeof(struct audio_patch));
1381 struct audio_patch patch; local
1382 data.read(&patch, sizeof(struct audio_patch));
1387 status_t status = createAudioPatch(&patch, &handle);
H A DIAudioPolicyService.cpp571 virtual status_t createAudioPatch(const struct audio_patch *patch, argument
574 if (patch == NULL || handle == NULL) {
579 data.write(patch, sizeof(struct audio_patch));
1201 struct audio_patch patch; local
1202 data.read(&patch, sizeof(struct audio_patch));
1207 status_t status = createAudioPatch(&patch, &handle);

Completed in 497 milliseconds

12