OSDN Git Service

Car HAL uses "default" service name
authorChris Phoenix <cphoenix@google.com>
Thu, 12 Jan 2017 02:49:16 +0000 (18:49 -0800)
committerYifan Hong <elsk@google.com>
Thu, 23 Feb 2017 02:47:14 +0000 (18:47 -0800)
the getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: builds

Bug: 33844934

Change-Id: I1fc92a29178befc1b2232cfcc4b13058d57cd798

automotive/vehicle/2.0/default/VehicleService.cpp

index f88ce7b..95057cc 100644 (file)
@@ -34,7 +34,7 @@ int main(int /* argc */, char* /* argv */ []) {
     configureRpcThreadpool(1, true /* callerWillJoin */);
 
     ALOGI("Registering as service...");
-    service->registerAsService("Vehicle");
+    service->registerAsService();
 
     ALOGI("Ready");
     joinRpcThreadpool();