From de69003f072c0007679a6ad0c0e5f84fde6150d0 Mon Sep 17 00:00:00 2001 From: Chris Phoenix Date: Mon, 23 Jan 2017 17:59:14 -0800 Subject: [PATCH] context_hub 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: Ic35ae203244b77d26833f058b76fb4d46ade716d --- .../core/jni/com_android_server_location_ContextHubService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/jni/com_android_server_location_ContextHubService.cpp b/services/core/jni/com_android_server_location_ContextHubService.cpp index 05ef0d11e16cb..27d2b6d66aec3 100644 --- a/services/core/jni/com_android_server_location_ContextHubService.cpp +++ b/services/core/jni/com_android_server_location_ContextHubService.cpp @@ -558,7 +558,7 @@ void getHubsCb(const ::android::hardware::hidl_vec& hubs) { void initContextHubService() { db.hubInfo.numHubs = 0; - db.hubInfo.contextHub = IContexthub::getService("context_hub"); + db.hubInfo.contextHub = IContexthub::getService(); if (db.hubInfo.contextHub == nullptr) { ALOGE("Could not load context hub hal");