context_hub 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: I5640441f5cfc7846e854f7ea23abb76ab3628d52
This commit is contained in:
Chris Phoenix
2017-01-23 17:50:47 -08:00
parent 28952f5933
commit 8f9c6cd6ef

View File

@@ -23,5 +23,5 @@ using android::hardware::contexthub::V1_0::IContexthub;
using android::hardware::defaultPassthroughServiceImplementation;
int main() {
return defaultPassthroughServiceImplementation<IContexthub>("context_hub");
return defaultPassthroughServiceImplementation<IContexthub>();
}