aboutsummaryrefslogtreecommitdiff
path: root/generateCpp.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-09-18 12:05:36 -0700
committerSteven Moreland <smoreland@google.com>2019-09-18 12:07:51 -0700
commit0e0935c81f55e8d26b06be5ce4a137c6a43c8a5d (patch)
treebd45d3e82286e91a3be1a77b930a7e2726012bf6 /generateCpp.cpp
parent612cd02ea09e173b6b3c64645dcadcc2d1a5f2a4 (diff)
downloadhidl-0e0935c81f55e8d26b06be5ce4a137c6a43c8a5d.tar.gz
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
Diffstat (limited to 'generateCpp.cpp')
-rw-r--r--generateCpp.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/generateCpp.cpp b/generateCpp.cpp
index a2388381..015575bb 100644
--- a/generateCpp.cpp
+++ b/generateCpp.cpp
@@ -1282,12 +1282,10 @@ void AST::generateStubSource(Formatter& out, const Interface* iface) const {
<< "\") { \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();