gatekeeper 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: I66ede7833e61d9cf255238888099aa73986b1946
This commit is contained in:
Chris Phoenix 2017-01-24 13:09:06 -08:00 committed by Yifan Hong
parent 8c171a5c58
commit 2e3821a2d0
2 changed files with 2 additions and 2 deletions

View file

@ -24,5 +24,5 @@ using android::hardware::gatekeeper::V1_0::IGatekeeper;
using android::hardware::defaultPassthroughServiceImplementation;
int main() {
return defaultPassthroughServiceImplementation<IGatekeeper>("gatekeeper");
return defaultPassthroughServiceImplementation<IGatekeeper>();
}

View file

@ -187,7 +187,7 @@ class GatekeeperHidlTest : public ::testing::Test {
GatekeeperHidlTest() : uid_(0) {}
virtual void SetUp() override {
GatekeeperResponse rsp;
gatekeeper_ = IGatekeeper::getService("gatekeeper");
gatekeeper_ = IGatekeeper::getService();
ASSERT_NE(nullptr, gatekeeper_.get());
doDeleteAllUsers(rsp);
}