dumpstate HAL uses "default" service name

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: I4415e38d0f50884e31feedddf8e4236fa69f1a31
This commit is contained in:
Chris Phoenix 2017-01-24 23:05:55 -08:00 committed by Yifan Hong
parent 5ba36270ea
commit 888c2300de

View file

@ -29,6 +29,6 @@ using ::android::sp;
int main (int /* argc */, char * /* argv */ []) {
sp<IDumpstateDevice> dumpstate = new DumpstateDevice;
configureRpcThreadpool(1, true);
dumpstate->registerAsService("dumpstate");
dumpstate->registerAsService();
joinRpcThreadpool();
}