gnss 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: Ie6d52854ef3cf0695e3c57292683183bab008f2d
This commit is contained in:
Chris Phoenix
2017-01-23 15:15:15 -08:00
parent f1d9a7e6e4
commit f9133783ae

View File

@@ -969,7 +969,7 @@ static void android_location_GnssLocationProvider_class_init_native(JNIEnv* env,
}
// TODO(b/31632518)
gnssHal = IGnss::getService("gnss");
gnssHal = IGnss::getService();
if (gnssHal != nullptr) {
auto gnssXtra = gnssHal->getExtensionXtra();
if (!gnssXtra.isOk()) {