sensors 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: I83295febf0fd9e63cbbbc0b3c57962ec5961cee5
diff --git a/services/sensorservice/SensorDeviceTreble.cpp b/services/sensorservice/SensorDeviceTreble.cpp
index 2877589..0a75400 100644
--- a/services/sensorservice/SensorDeviceTreble.cpp
+++ b/services/sensorservice/SensorDeviceTreble.cpp
@@ -55,7 +55,7 @@
}
SensorDevice::SensorDevice() {
- mSensors = ISensors::getService("sensors");
+ mSensors = ISensors::getService();
if (mSensors == NULL) {
return;
@@ -630,4 +630,3 @@
// ---------------------------------------------------------------------------
}; // namespace android
-