/frameworks/av/services/audioflinger/ |
H A D | Threads.h | 174 CreateAudioPatchConfigEventData(const struct audio_patch patch, argument 176 mPatch(patch), mHandle(handle) {} 188 CreateAudioPatchConfigEvent(const struct audio_patch patch, argument 191 mData = new CreateAudioPatchConfigEventData(patch, handle); 273 status_t sendCreateAudioPatchConfigEvent(const struct audio_patch *patch, 278 virtual status_t createAudioPatch_l(const struct audio_patch *patch, 743 virtual status_t createAudioPatch_l(const struct audio_patch *patch, 896 virtual status_t createAudioPatch_l(const struct audio_patch *patch, 1283 virtual status_t createAudioPatch_l(const struct audio_patch *patch,
|
H A D | Threads.cpp | 780 const struct audio_patch *patch, 784 sp<ConfigEvent> configEvent = (ConfigEvent *)new CreateAudioPatchConfigEvent(*patch, *handle); 3295 status_t AudioFlinger::MixerThread::createAudioPatch_l(const struct audio_patch *patch, argument 3300 status_t status = PlaybackThread::createAudioPatch_l(patch, handle); 3305 status_t AudioFlinger::PlaybackThread::createAudioPatch_l(const struct audio_patch *patch, argument 3312 for (unsigned int i = 0; i < patch->num_sinks; i++) { 3313 type |= patch->sinks[i].ext.device.type; 3344 // the thread is created so that the first patch creation triggers an ioConfigChanged callback 3347 mPatch = *patch; 3352 patch 779 sendCreateAudioPatchConfigEvent( const struct audio_patch *patch, audio_patch_handle_t *handle) argument 7289 createAudioPatch_l(const struct audio_patch *patch, audio_patch_handle_t *handle) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListOp.h | 773 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/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 1281 * 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/base/media/java/android/media/ |
H A D | AudioSystem.java | 282 * 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 D | AudioManager.java | 3599 * NOTE: current implementation is limited to one source and one sink per patch. 3600 * @param patch AudioPatch array where the newly created patch will be returned. 3601 * As input, if patch[0] is not null, the specified patch will be replaced by the 3602 * new patch created. This avoids calling releaseAudioPatch() when modifying a 3603 * patch and allows the implementation to optimize transitions. 3611 * a patch. 3613 * - {@link #ERROR} if patch cannot be connected for any other reason. 3615 * patch[ 3618 createAudioPatch(AudioPatch[] patch, AudioPortConfig[] sources, AudioPortConfig[] sinks) argument 3635 releaseAudioPatch(AudioPatch patch) argument [all...] |
/frameworks/av/services/audiopolicy/managerdefault/ |
H A D | AudioPolicyManager.cpp | 332 // release existing RX patch if any 337 // release TX patch if any 349 // of it due to legacy implementation. If not, create a patch. 354 } else { // create RX path audio patch 355 struct audio_patch patch; local 357 patch.num_sources = 1; 358 patch.num_sinks = 1; 368 rxSourceDeviceDesc->toAudioPortConfig(&patch.sources[0]); 369 rxSinkDeviceDesc->toAudioPortConfig(&patch.sinks[0]); 381 outputDesc->toAudioPortConfig(&patch 398 struct audio_patch patch; local 2114 sp<AudioPatch> patch = mAudioPatches.valueFor(desc->getPatchHandle()); local 2400 createAudioPatch(const struct audio_patch *patch, audio_patch_handle_t *handle, uid_t uid) argument 2683 struct audio_patch *patch = &patchDesc->mPatch; local 2965 struct audio_patch *patch = &sourceDesc->mPatchDesc->mPatch; local 4660 struct audio_patch patch; local 4761 struct audio_patch patch; local [all...] |
/frameworks/base/libs/androidfw/ |
H A D | ResourceTypes.cpp | 137 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...] |