Hide IBase static maps.
Because sizeof(IBase) can't be changed, we have a couple of maps to
store data about IBase. Hiding these maps internally inside libhidl* so
that we can more easily remove them in the future if necessary.
Bug: 122472540
Test: hidl_test, checking logs
Change-Id: If283c1ccd468de54a45a8f8a5bdc6cb8d44a1749
diff --git a/generateCpp.cpp b/generateCpp.cpp
index a238838..015575b 100644
--- a/generateCpp.cpp
+++ b/generateCpp.cpp
@@ -1282,12 +1282,10 @@
<< "\") { \n";
out.indent();
out << "_hidl_mImpl = _hidl_impl;\n";
- out << "auto prio = ::android::hardware::details::gServicePrioMap->get("
- << "_hidl_impl, {SCHED_NORMAL, 0});\n";
+ out << "auto prio = ::android::hardware::getMinSchedulerPolicy(_hidl_impl);\n";
out << "mSchedPolicy = prio.sched_policy;\n";
out << "mSchedPriority = prio.prio;\n";
- out << "setRequestingSid(::android::hardware::details::gServiceSidMap->get(_hidl_impl, "
- "false));\n";
+ out << "setRequestingSid(::android::hardware::getRequestingSid(_hidl_impl));\n";
out.unindent();
out.unindent();