Break ::android::hardware namespace assumption.
Test: make test.vendor@1.0
Bug: 32579492
Change-Id: I7afd1d83af5f4c0d1c49b828b9e489c111937dcd
diff --git a/generateCpp.cpp b/generateCpp.cpp
index 380f21d..f17025c 100644
--- a/generateCpp.cpp
+++ b/generateCpp.cpp
@@ -1492,7 +1492,7 @@
out.indent();
out << "explicit "
<< klassName
- << "(const sp<"
+ << "(const ::android::sp<"
<< ifaceName
<< "> impl);\n";
@@ -1507,7 +1507,7 @@
out.unindent();
out << "private:\n";
out.indent();
- out << "const sp<" << ifaceName << "> mImpl;\n";
+ out << "const ::android::sp<" << ifaceName << "> mImpl;\n";
if (supportOneway) {
out << "::android::hardware::TaskRunner mOnewayQueue;\n";
@@ -1601,7 +1601,7 @@
out << klassName
<< "::"
<< klassName
- << "(const sp<"
+ << "(const ::android::sp<"
<< iface->fullName()
<< "> impl) : ::android::hardware::HidlInstrumentor(\""
<< iface->fqName().string()