tv_cec 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: I64e028573f3cf5959cbe251bf351ce4d238d50c5
This commit is contained in:
Chris Phoenix
2017-01-20 18:42:41 -08:00
committed by Yifan Hong
parent 977e656e49
commit 7e6627eade

View File

@@ -336,7 +336,7 @@ Return<void> HdmiCecController::HdmiCecCallback::onHotplugEvent(const HotplugEve
static jlong nativeInit(JNIEnv* env, jclass clazz, jobject callbacksObj,
jobject messageQueueObj) {
// TODO(b/31632518)
sp<IHdmiCec> hdmiCec = IHdmiCec::getService("tv.cec");
sp<IHdmiCec> hdmiCec = IHdmiCec::getService();
if (hdmiCec == nullptr) {
ALOGE("Couldn't get tv.cec service.");
return 0;