memtrack 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: I6cf3f24500228985ddf581ad5a98886585a3fcfe
This commit is contained in:
Chris Phoenix 2017-01-23 14:00:27 -08:00
parent 778b8870dc
commit bb1083ed6c

View file

@ -44,7 +44,7 @@ struct memtrack_proc {
//TODO(b/31632518)
static android::sp<IMemtrack> get_instance() {
static android::sp<IMemtrack> module = IMemtrack::getService("memtrack");
static android::sp<IMemtrack> module = IMemtrack::getService();
if (module == nullptr) {
ALOGE("Couldn't load memtrack module");
}