Night Mode Sensor Service
Create CarNightService to automatically register for the vehicle
night sensor and provide updates to the UIModeManager to enter
and exit night mode.
bug: 25262432
Change-Id: I7826b9b42f10614e437c8ba1918272d1325b4004
diff --git a/service/src/com/android/car/ICarImpl.java b/service/src/com/android/car/ICarImpl.java
index 455a3fd..5cbdf8d 100644
--- a/service/src/com/android/car/ICarImpl.java
+++ b/service/src/com/android/car/ICarImpl.java
@@ -49,6 +49,7 @@
private final CarAudioService mCarAudioService;
private final CarHvacService mCarHvacService;
private final CarRadioService mCarRadioService;
+ private final CarNightService mCarNightService;
private final AppContextService mAppContextService;
private final CarPackageManagerService mCarPackageManagerService;
private final GarageModeService mGarageModeService;
@@ -89,6 +90,7 @@
mCarAudioService = new CarAudioService(serviceContext, mAppContextService);
mCarHvacService = new CarHvacService(serviceContext);
mCarRadioService = new CarRadioService(serviceContext);
+ mCarNightService = new CarNightService(serviceContext);
mCarPackageManagerService = new CarPackageManagerService(serviceContext);
// Be careful with order. Service depending on other service should be inited later.
@@ -102,6 +104,7 @@
mCarAudioService,
mCarHvacService,
mCarRadioService,
+ mCarNightService,
};
}