TvInput 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; verify HAL still works

In support of b/33844934

Change-Id: Iaf379982c1e8e03b46a1fddf5f047c70cd3e6938
This commit is contained in:
Chris Phoenix
2017-01-18 18:48:06 -08:00
parent 0e39a438bf
commit 3526a10c43

View File

@@ -327,7 +327,7 @@ JTvInputHal::~JTvInputHal() {
JTvInputHal* JTvInputHal::createInstance(JNIEnv* env, jobject thiz, const sp<Looper>& looper) {
// TODO(b/31632518)
sp<ITvInput> tvInput = ITvInput::getService("tv.input");
sp<ITvInput> tvInput = ITvInput::getService();
if (tvInput == nullptr) {
ALOGE("Couldn't get tv.input service.");
return nullptr;