From e9d42decca90dd31b8768ab85b0c48c1721e2ae7 Mon Sep 17 00:00:00 2001 From: Chris Phoenix Date: Mon, 23 Jan 2017 14:18:26 -0800 Subject: [PATCH] light 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: Id22d27d7e401de426b1a236067c1b4c7f6c99a3e --- services/core/jni/com_android_server_lights_LightsService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/jni/com_android_server_lights_LightsService.cpp b/services/core/jni/com_android_server_lights_LightsService.cpp index 2fd0603c8f892..74af639cd9af3 100644 --- a/services/core/jni/com_android_server_lights_LightsService.cpp +++ b/services/core/jni/com_android_server_lights_LightsService.cpp @@ -81,7 +81,7 @@ static void setLight_native( // TODO(b/31632518) if (gLight == nullptr) { - gLight = ILight::getService("light"); + gLight = ILight::getService(); } if (gLight == nullptr) {