mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
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
This commit is contained in:
committed by
Yifan Hong
parent
9bb90a55d6
commit
5d1dc850a3
@@ -23,5 +23,5 @@ using android::hardware::thermal::V1_0::IThermal;
|
||||
using android::hardware::defaultPassthroughServiceImplementation;
|
||||
|
||||
int main() {
|
||||
return defaultPassthroughServiceImplementation<IThermal>("thermal");
|
||||
return defaultPassthroughServiceImplementation<IThermal>();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user