Convert LazyServiceRegistrar usage to singleton
Test: lshal Bug: 139376253 Change-Id: Id3c5f7d4f66af5bdab99c9ecfce4ceef9cfd5b75
This commit is contained in:
@@ -34,7 +34,7 @@ int main(int /* argc */, char** /* argv */) {
|
||||
configureRpcThreadpool(8, true /* callerWillJoin */);
|
||||
|
||||
// Setup hwbinder service
|
||||
LazyServiceRegistrar serviceRegistrar;
|
||||
auto serviceRegistrar = LazyServiceRegistrar::getInstance();
|
||||
CHECK_EQ(serviceRegistrar.registerService(drmFactory, "widevine"), android::NO_ERROR)
|
||||
<< "Failed to register Widevine Factory HAL";
|
||||
CHECK_EQ(serviceRegistrar.registerService(cryptoFactory, "widevine"), android::NO_ERROR)
|
||||
|
||||
Reference in New Issue
Block a user