Lines Matching defs:thread

264                     sp<ThreadBase> thread =
266 newPatch->mPlaybackThread = (MixerThread *)thread.get();
267 if (thread == 0) {
268 ALOGW("createAudioPatch() cannot get playback thread");
277 sp<ThreadBase> thread = audioflinger->openOutput_l(
284 newPatch->mPlaybackThread = (PlaybackThread *)thread.get();
314 sp<ThreadBase> thread = audioflinger->openInput_l(srcModule,
321 newPatch->mRecordThread = (RecordThread *)thread.get();
334 sp<ThreadBase> thread = audioflinger->checkRecordThread_l(
336 if (thread == 0) {
337 thread = audioflinger->checkMmapThread_l(patch->sinks[0].ext.mix.handle);
338 if (thread == 0) {
345 status = thread->sendCreateAudioPatchConfigEvent(patch, &halHandle);
381 sp<ThreadBase> thread =
383 if (thread == 0) {
384 thread = audioflinger->checkMmapThread_l(patch->sources[0].ext.mix.handle);
385 if (thread == 0) {
392 if (thread == audioflinger->primaryPlaybackThread_l()) {
399 status = thread->sendCreateAudioPatchConfigEvent(patch, &halHandle);
423 // create patch from source device to record thread input
438 // create patch from playback thread output to sink device
463 // create a special record track to capture from record thread
487 // create a special playback track to render to playback thread.
552 // if num sources == 2 we are reusing an existing playback thread so we do not close it
614 sp<ThreadBase> thread = audioflinger->checkRecordThread_l(
616 if (thread == 0) {
617 thread = audioflinger->checkMmapThread_l(patch->sinks[0].ext.mix.handle);
618 if (thread == 0) {
625 status = thread->sendReleaseAudioPatchConfigEvent(removedPatch->mHalHandle);
640 sp<ThreadBase> thread =
642 if (thread == 0) {
643 thread = audioflinger->checkMmapThread_l(patch->sources[0].ext.mix.handle);
644 if (thread == 0) {
651 status = thread->sendReleaseAudioPatchConfigEvent(removedPatch->mHalHandle);