Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1323b81 authored by Ashok Mutyala's avatar Ashok Mutyala
Browse files

Check for Location Feature and GNSS HAL Support

Test: CtsCarHostTestCases#testPowerPolicyChange or STR without Location Feature & GNSS HAL

Bug: 289962111
Change-Id: I87211a954862cbc57ee1f63d04b6de448dfd66e9
parent dbced385
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1321,8 +1321,10 @@ public class LocationManagerService extends ILocationManager.Stub implements
                    "setAutomotiveGnssSuspended only allowed on automotive devices");
        }

        if (mGnssManagerService != null) {
              mGnssManagerService.setAutomotiveGnssSuspended(suspended);
        }
    }

    @android.annotation.EnforcePermission(android.Manifest.permission.CONTROL_AUTOMOTIVE_GNSS)
    @Override
@@ -1336,8 +1338,11 @@ public class LocationManagerService extends ILocationManager.Stub implements
                    "isAutomotiveGnssSuspended only allowed on automotive devices");
        }

        if (mGnssManagerService != null) {
              return mGnssManagerService.isAutomotiveGnssSuspended();
        }
        return false;
    }

    @Override
    public boolean geocoderIsPresent() {