Rename registerServiceWithCallback
Rename registerServiceWithCallback to registerService. User cannot pass
a callback to registerServiceWithCallback, so its name is confusing.
Rename it to registerService. Because it is part of
LazyServiceRegistrar, it should be clear what this function does.
Test: Build and check that cas functions as a lazy hal as before
Change-Id: I766a413b5c85f3fba6b99cffd65aa1ec77d03764
diff --git a/transport/include/hidl/LegacySupport.h b/transport/include/hidl/LegacySupport.h
index d5b3ddb..1e983eb 100644
--- a/transport/include/hidl/LegacySupport.h
+++ b/transport/include/hidl/LegacySupport.h
@@ -110,7 +110,7 @@
return details::registerPassthroughServiceImplementation<Interface>(
[](const sp<Interface>& service, const std::string& name) {
- return serviceCounter->registerServiceWithCallback(service, name);
+ return serviceCounter->registerService(service, name);
},
name);
}