From 5d1dc850a3f7b4847fe364bbc44307e6bd7b710f Mon Sep 17 00:00:00 2001 From: Chris Phoenix Date: Fri, 20 Jan 2017 14:49:46 -0800 Subject: [PATCH] thermal 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: If9599b83526779cc38b1550698487f6240e26e45 --- thermal/1.0/default/service.cpp | 2 +- thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/thermal/1.0/default/service.cpp b/thermal/1.0/default/service.cpp index ea86de4301..b83cbf82fa 100644 --- a/thermal/1.0/default/service.cpp +++ b/thermal/1.0/default/service.cpp @@ -23,5 +23,5 @@ using android::hardware::thermal::V1_0::IThermal; using android::hardware::defaultPassthroughServiceImplementation; int main() { - return defaultPassthroughServiceImplementation("thermal"); + return defaultPassthroughServiceImplementation(); } diff --git a/thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp b/thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp index 3c887c8986..5bdd2c2217 100644 --- a/thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp +++ b/thermal/1.0/vts/functional/thermal_hidl_hal_test.cpp @@ -40,7 +40,6 @@ using ::android::hardware::Return; using ::android::hardware::Void; using ::android::sp; -#define THERMAL_SERVICE_NAME "thermal" #define MONITORING_OPERATION_NUMBER 10 #define MAX_DEVICE_TEMPERATURE 200 @@ -50,7 +49,7 @@ using ::android::sp; class ThermalHidlTest : public ::testing::Test { public: virtual void SetUp() override { - thermal_ = IThermal::getService(THERMAL_SERVICE_NAME); + thermal_ = IThermal::getService(); ASSERT_NE(thermal_, nullptr); baseSize_ = 0; names_.clear();