Lines Matching refs:in_args
854 ndk::ScopedAStatus Module::openInputStream(const OpenInputStreamArguments& in_args, in openInputStream() argument
856 LOG(DEBUG) << __func__ << ": " << mType << ": port config id " << in_args.portConfigId in openInputStream()
857 << ", buffer size " << in_args.bufferSizeFrames << " frames"; in openInputStream()
859 RETURN_STATUS_IF_ERROR(findPortIdForNewStream(in_args.portConfigId, &port)); in openInputStream()
861 LOG(ERROR) << __func__ << ": " << mType << ": port config id " << in_args.portConfigId in openInputStream()
866 RETURN_STATUS_IF_ERROR(createStreamContext(in_args.portConfigId, in_args.bufferSizeFrames, in openInputStream()
870 RETURN_STATUS_IF_ERROR(createInputStream(std::move(context), in_args.sinkMetadata, in openInputStream()
873 if (auto patchIt = mPatches.find(in_args.portConfigId); patchIt != mPatches.end()) { in openInputStream()
875 streamWrapper.setConnectedDevices(findConnectedDevices(in_args.portConfigId))); in openInputStream()
880 mStreams.insert(port->id, in_args.portConfigId, std::move(streamWrapper)); in openInputStream()
885 ndk::ScopedAStatus Module::openOutputStream(const OpenOutputStreamArguments& in_args, in openOutputStream() argument
887 LOG(DEBUG) << __func__ << ": " << mType << ": port config id " << in_args.portConfigId in openOutputStream()
888 << ", has offload info? " << (in_args.offloadInfo.has_value()) << ", buffer size " in openOutputStream()
889 << in_args.bufferSizeFrames << " frames"; in openOutputStream()
891 RETURN_STATUS_IF_ERROR(findPortIdForNewStream(in_args.portConfigId, &port)); in openOutputStream()
893 LOG(ERROR) << __func__ << ": " << mType << ": port config id " << in_args.portConfigId in openOutputStream()
899 if (isOffload && !in_args.offloadInfo.has_value()) { in openOutputStream()
906 if (isNonBlocking && in_args.callback == nullptr) { in openOutputStream()
912 RETURN_STATUS_IF_ERROR(createStreamContext(in_args.portConfigId, in_args.bufferSizeFrames, in openOutputStream()
913 isNonBlocking ? in_args.callback : nullptr, in openOutputStream()
914 in_args.eventCallback, &context)); in openOutputStream()
917 RETURN_STATUS_IF_ERROR(createOutputStream(std::move(context), in_args.sourceMetadata, in openOutputStream()
918 in_args.offloadInfo, &stream)); in openOutputStream()
920 if (auto patchIt = mPatches.find(in_args.portConfigId); patchIt != mPatches.end()) { in openOutputStream()
922 streamWrapper.setConnectedDevices(findConnectedDevices(in_args.portConfigId))); in openOutputStream()
927 mStreams.insert(port->id, in_args.portConfigId, std::move(streamWrapper)); in openOutputStream()