power 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: I2f296bc40e36082d8889d2796cf839cb41a21fc3
This commit is contained in:
Chris Phoenix
2017-01-23 13:18:39 -08:00
parent f1d9a7e6e4
commit 717d36e051

View File

@@ -110,7 +110,7 @@ void android_server_PowerManagerService_userActivity(nsecs_t eventTime, int32_t
static void nativeInit(JNIEnv* env, jobject obj) {
gPowerManagerServiceObj = env->NewGlobalRef(obj);
gPowerHal = IPower::getService("power");
gPowerHal = IPower::getService();
if (gPowerHal == nullptr) {
ALOGE("Couldn't load PowerHAL module");
}