Initial implementation of UserHalService.
This CL doesn't add implement any real method yet, it only creates
the initial plumbing and unit tests, so it can be used as a template
for new HAL services.
Test: atest CarServiceUnitTest:com.android.car.hal.UserHalServiceTest
Bug: 146207078
Bug: 149099817
Change-Id: I34c077860e013f28cf4c6da5cb6a9d6b18c347ba
diff --git a/service/src/com/android/car/ICarImpl.java b/service/src/com/android/car/ICarImpl.java
index c13234d..40f863a 100644
--- a/service/src/com/android/car/ICarImpl.java
+++ b/service/src/com/android/car/ICarImpl.java
@@ -171,8 +171,8 @@
(UserManager) serviceContext.getSystemService(Context.USER_SERVICE);
int maxRunningUsers = res.getInteger(
com.android.internal.R.integer.config_multiuserMaxRunningUsers);
- mCarUserService = new CarUserService(serviceContext, mUserManagerHelper, userManager,
- ActivityManager.getService(), maxRunningUsers);
+ mCarUserService = new CarUserService(serviceContext, mHal.getUserHal(),
+ mUserManagerHelper, userManager, ActivityManager.getService(), maxRunningUsers);
}
mCarOccupantZoneService = new CarOccupantZoneService(serviceContext);
mSystemActivityMonitoringService = new SystemActivityMonitoringService(serviceContext);