IServiceManager/ITokenManager 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: boots
Test: hidl_test

Bug: 33844934
Change-Id: I5774469712d70de4b2629258fe54d7f8c280d9d0
This commit is contained in:
Yifan Hong
2017-02-24 17:12:53 -08:00
parent 3dd51ad2e4
commit 9ecbc04c23

View File

@@ -117,7 +117,7 @@ public class UsbPortManager {
public UsbPortManager(Context context) {
mContext = context;
try {
boolean ret = IServiceManager.getService("manager")
boolean ret = IServiceManager.getService()
.registerForNotifications("android.hardware.usb@1.0::IUsb",
"", mServiceNotification);
if (!ret) {