Add MQDescriptorSync as a predefined HIDL type.
Also, MQDescriptor is no longer a predefined HIDL type.
Bug: 31550963
Test: Used MQDescriptorSync in
hardware/interfaces/tests/msgq/1.0/ITestMsgQ.hal and
hardware/interfaces/benchmarks/msgq/1.0/IBenchmarkMsgQ.hal,
built and ran existing unit tests and benchmarks.
Change-Id: I0e48074d5f46a29786425868a5ee6e1ee2b65d58
diff --git a/AST.cpp b/AST.cpp
index 83db92e..c2bfc68 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -259,8 +259,9 @@
if (resolvedType == nullptr
&& fqName.package().empty()
&& fqName.version().empty()
- && fqName.name() == "MQDescriptor") {
- return new PredefinedType("::android::hardware::MQDescriptor");
+ && fqName.name() == "MQDescriptorSync") {
+ return new PredefinedType(
+ "::android::hardware::MQDescriptorSync");
}
if (resolvedType) {