Searched refs:patch (Results 26 - 49 of 49) sorted by relevance

12

/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/libs/hwui/
H A DGlopBuilder.h59 GlopBuilder& setMeshPatchQuads(const Patch& 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 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.cpp535 void RecordingCanvas::drawNinePatch(const SkBitmap& bitmap, const android::Res_png_9patch& patch, argument
542 refPaint(paint), refBitmap(bitmap), refPatch(&patch)));
H A DBakedOpDispatcher.cpp109 op.unmappedBounds.getWidth(), op.unmappedBounds.getHeight(), op.patch);
120 // 9-patch objects that are part of the batch. Note that onDefer()
130 op.unmappedBounds.getWidth(), op.unmappedBounds.getHeight(), op.patch);
152 // Dirty the current layer if possible. When the 9-patch does not
605 op.unmappedBounds.getWidth(), op.unmappedBounds.getHeight(), op.patch);
H A DDisplayListOp.h773 DrawPatchOp(const SkBitmap* bitmap, const Res_png_9patch* patch, argument
776 mBitmap(bitmap), mPatch(patch), mGenerationId(0), mMesh(nullptr),
800 * and transforming the vertices of each 9-patch in the batch. This method
824 // 9-patch objects that are part of the batch. Note that onDefer()
850 // Dirty the current layer if possible. When the 9-patch does not
886 OP_LOG("Draw patch " RECT_STRING "%s", RECT_ARGS(mLocalBounds),
/frameworks/av/services/audiopolicy/
H A DAudioPolicyInterface.h206 virtual status_t createAudioPatch(const struct audio_patch *patch,
319 /* Create a patch between several source and sink ports */
320 virtual status_t createAudioPatch(const struct audio_patch *patch,
324 /* Release a patch */
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java1281 * Draws the specified bitmap as an N-patch (most often, a 9-patches.)
1283 * @param patch The ninepatch object to render
1289 public void drawPatch(@NonNull NinePatch patch, @NonNull Rect dst, @Nullable Paint paint) { argument
1290 Bitmap bitmap = patch.getBitmap();
1293 native_drawNinePatch(mNativeCanvasWrapper, bitmap.getNativeInstance(), patch.mNativeChunk,
1295 mDensity, patch.getDensity());
1299 * Draws the specified bitmap as an N-patch (most often, a 9-patches.)
1301 * @param patch The ninepatch object to render
1307 public void drawPatch(@NonNull NinePatch patch, @NonNull RectF dst, @Nullable Paint paint) { argument
1308 Bitmap bitmap = 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/media/java/android/media/
H A DAudioSystem.java282 * recording configurations (2*3 ints), followed by the patch handle:
289 * 6: patch handle
707 public static native int createAudioPatch(AudioPatch[] patch, argument
709 public static native int releaseAudioPatch(AudioPatch patch); argument
H A DAudioManager.java3607 * NOTE: current implementation is limited to one source and one sink per patch.
3608 * @param patch AudioPatch array where the newly created patch will be returned.
3609 * As input, if patch[0] is not null, the specified patch will be replaced by the
3610 * new patch created. This avoids calling releaseAudioPatch() when modifying a
3611 * patch and allows the implementation to optimize transitions.
3619 * a patch.
3621 * - {@link #ERROR} if patch cannot be connected for any other reason.
3623 * patch[
3626 createAudioPatch(AudioPatch[] patch, AudioPortConfig[] sources, AudioPortConfig[] sinks) argument
3643 releaseAudioPatch(AudioPatch patch) argument
[all...]
/frameworks/av/services/audioflinger/
H A DThreads.cpp780 const struct audio_patch *patch,
784 sp<ConfigEvent> configEvent = (ConfigEvent *)new CreateAudioPatchConfigEvent(*patch, *handle);
3452 status_t AudioFlinger::MixerThread::createAudioPatch_l(const struct audio_patch *patch, argument
3460 status = PlaybackThread::createAudioPatch_l(patch, handle);
3462 status = PlaybackThread::createAudioPatch_l(patch, handle);
3467 status_t AudioFlinger::PlaybackThread::createAudioPatch_l(const struct audio_patch *patch, argument
3474 for (unsigned int i = 0; i < patch->num_sinks; i++) {
3475 type |= patch->sinks[i].ext.device.type;
3506 // the thread is created so that the first patch creation triggers an ioConfigChanged callback
3509 mPatch = *patch;
779 sendCreateAudioPatchConfigEvent( const struct audio_patch *patch, audio_patch_handle_t *handle) argument
7570 createAudioPatch_l(const struct audio_patch *patch, audio_patch_handle_t *handle) argument
[all...]
H A DAudioFlinger.h244 /* Create an audio patch between several source and sink ports */
245 virtual status_t createAudioPatch(const struct audio_patch *patch,
248 /* Release an audio patch */
/frameworks/av/include/media/
H A DIAudioFlinger.h227 /* Create an audio patch between several source and sink ports */
228 virtual status_t createAudioPatch(const struct audio_patch *patch,
231 /* Release an audio patch */
H A DIAudioPolicyService.h137 /* Create an audio patch between several source and sink ports */
138 virtual status_t createAudioPatch(const struct audio_patch *patch,
141 /* Release an audio patch */
H A DAudioSystem.h307 /* Create an audio patch between several source and sink ports */
308 static status_t createAudioPatch(const struct audio_patch *patch,
311 /* Release an audio patch */
/frameworks/av/media/libmedia/
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);
H A DAudioSystem.cpp1044 status_t AudioSystem::createAudioPatch(const struct audio_patch *patch, argument
1049 return aps->createAudioPatch(patch, handle);
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp137 static void fill9patchOffsets(Res_png_9patch* patch) { argument
138 patch->xDivsOffset = sizeof(Res_png_9patch);
139 patch->yDivsOffset = patch->xDivsOffset + (patch->numXDivs * sizeof(int32_t));
140 patch->colorsOffset = patch->yDivsOffset + (patch->numYDivs * sizeof(int32_t));
203 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, argument
208 void* newData = calloc(1, patch
213 serialize(const Res_png_9patch& patch, const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, void* outData) argument
409 Res_png_9patch* patch = reinterpret_cast<Res_png_9patch*>(inData); local
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImpl.cpp608 status_t AudioPolicyService::createAudioPatch(const struct audio_patch *patch, argument
618 return mAudioPolicyManager->createAudioPatch(patch, handle,
H A DAudioPolicyInterfaceImplLegacy.cpp542 status_t AudioPolicyService::createAudioPatch(const struct audio_patch *patch __unused,
/frameworks/native/vulkan/include/vulkan/
H A Dvulkan.h33 #define VK_MAKE_VERSION(major, minor, patch) \
34 (((major) << 22) | ((minor) << 12) | (patch))

Completed in 476 milliseconds

12