vibrator 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: service registers correctly as default

Bug: 33844934
Change-Id: Ic0e9ff98b16bfb66e67222054653b7347442bacb
This commit is contained in:
Chris Phoenix 2017-01-26 09:28:58 -08:00 committed by Steven Moreland
parent 0e9b1d9f1f
commit 79f18a280a

View file

@ -22,5 +22,5 @@ using android::hardware::vibrator::V1_0::IVibrator;
using android::hardware::defaultPassthroughServiceImplementation;
int main() {
return defaultPassthroughServiceImplementation<IVibrator>("vibrator");
return defaultPassthroughServiceImplementation<IVibrator>();
}