Add car navigation status API
Bug: 25265715
Change-Id: I76755119dd20e86df69074372f3237f80d546544
diff --git a/service/src/com/android/car/ICarImpl.java b/service/src/com/android/car/ICarImpl.java
index 5cbdf8d..8c19e6c 100644
--- a/service/src/com/android/car/ICarImpl.java
+++ b/service/src/com/android/car/ICarImpl.java
@@ -53,6 +53,7 @@
private final AppContextService mAppContextService;
private final CarPackageManagerService mCarPackageManagerService;
private final GarageModeService mGarageModeService;
+ private final CarNavigationStatusService mCarNavigationStatusService;
/** Test only service. Populate it only when necessary. */
@GuardedBy("this")
@@ -92,6 +93,7 @@
mCarRadioService = new CarRadioService(serviceContext);
mCarNightService = new CarNightService(serviceContext);
mCarPackageManagerService = new CarPackageManagerService(serviceContext);
+ mCarNavigationStatusService = new CarNavigationStatusService(serviceContext);
// Be careful with order. Service depending on other service should be inited later.
mAllServices = new CarServiceBase[] {
@@ -105,6 +107,7 @@
mCarHvacService,
mCarRadioService,
mCarNightService,
+ mCarNavigationStatusService,
};
}
@@ -188,6 +191,10 @@
case CarSystem.RADIO_SERVICE:
assertRadioPermission(mContext);
return mCarRadioService;
+
+ case Car.CAR_NAVIGATION_SERVICE:
+ return mCarNavigationStatusService;
+
case CarSystemTest.TEST_SERVICE: {
assertVehicleHalMockPermission(mContext);
synchronized (this) {