From c310a9049516aada4dda24d1ec035a54bcc20cbe Mon Sep 17 00:00:00 2001 From: Chris Phoenix Date: Thu, 19 Jan 2017 15:54:28 -0800 Subject: [PATCH] vibrator 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 Bug: 33844934 Change-Id: I7ad730bc5b52b9bd3c63410f6f926cbc08d0b73c --- services/core/jni/com_android_server_VibratorService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/jni/com_android_server_VibratorService.cpp b/services/core/jni/com_android_server_VibratorService.cpp index 118562fc71475..50bae79435746 100644 --- a/services/core/jni/com_android_server_VibratorService.cpp +++ b/services/core/jni/com_android_server_VibratorService.cpp @@ -43,7 +43,7 @@ static void vibratorInit(JNIEnv /* env */, jobject /* clazz */) if (mHal != nullptr) { return; } - mHal = IVibrator::getService("vibrator"); + mHal = IVibrator::getService(); } static jboolean vibratorExists(JNIEnv* /* env */, jobject /* clazz */)