diff options
| author | 2017-01-18 18:48:06 -0800 | |
|---|---|---|
| committer | 2017-01-18 18:48:06 -0800 | |
| commit | 3526a10c43789beba45c348ad8bbde06006224dc (patch) | |
| tree | ff1aa7da6b8ecd44e7046fe7b6be5c8dbe433c66 | |
| parent | 0e39a438bfa5c279d361cf59e745df1d326c57ba (diff) | |
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
| -rw-r--r-- | services/core/jni/com_android_server_tv_TvInputHal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/jni/com_android_server_tv_TvInputHal.cpp b/services/core/jni/com_android_server_tv_TvInputHal.cpp index 179fba073e75..9f528b1bec6a 100644 --- a/services/core/jni/com_android_server_tv_TvInputHal.cpp +++ b/services/core/jni/com_android_server_tv_TvInputHal.cpp @@ -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; |