Lines Matching refs:descriptor
54 ::aidl::android::hardware::audio::core::StreamDescriptor& descriptor, in StreamContextAidl() argument
56 : mFrameSizeBytes(descriptor.frameSizeBytes), in StreamContextAidl()
57 mCommandMQ(new CommandMQ(descriptor.command)), in StreamContextAidl()
58 mReplyMQ(new ReplyMQ(descriptor.reply)), in StreamContextAidl()
59 mBufferSizeFrames(descriptor.bufferSizeFrames), in StreamContextAidl()
60 mDataMQ(maybeCreateDataMQ(descriptor)), in StreamContextAidl()
62 mIsMmapped(isMmapped(descriptor)), in StreamContextAidl()
63 mMmapBufferDescriptor(maybeGetMmapBuffer(descriptor)) {} in StreamContextAidl()
106 const ::aidl::android::hardware::audio::core::StreamDescriptor& descriptor) { in maybeCreateDataMQ()
108 if (descriptor.audio.getTag() == Tag::fmq) { in maybeCreateDataMQ()
109 return std::make_unique<DataMQ>(descriptor.audio.get<Tag::fmq>()); in maybeCreateDataMQ()
114 const ::aidl::android::hardware::audio::core::StreamDescriptor& descriptor) { in isMmapped()
116 return descriptor.audio.getTag() == Tag::mmap; in isMmapped()
119 ::aidl::android::hardware::audio::core::StreamDescriptor& descriptor) { in maybeGetMmapBuffer() argument
121 if (descriptor.audio.getTag() == Tag::mmap) { in maybeGetMmapBuffer()
122 return std::move(descriptor.audio.get<Tag::mmap>()); in maybeGetMmapBuffer()