support more audio type using custom Bundle in AudioAttributes
- define car specific stream using Bundle in AudioAttributes
- revamp related code to use CAR_AUDIO_USAGE
bug: 27111558
Change-Id: Ib50ae374e3947d94ad59752389b4248d07b7426b
diff --git a/service/src/com/android/car/ICarImpl.java b/service/src/com/android/car/ICarImpl.java
index 8c19e6c..7f83db2 100644
--- a/service/src/com/android/car/ICarImpl.java
+++ b/service/src/com/android/car/ICarImpl.java
@@ -173,28 +173,24 @@
@Override
public IBinder getCarService(String serviceName) {
switch (serviceName) {
+ case Car.AUDIO_SERVICE:
+ return mCarAudioService;
case Car.SENSOR_SERVICE:
return mCarSensorService;
case Car.INFO_SERVICE:
return mCarInfoService;
-
case Car.APP_CONTEXT_SERVICE:
return mAppContextService;
-
case Car.PACKAGE_SERVICE:
return mCarPackageManagerService;
-
case CarSystem.HVAC_SERVICE:
assertHvacPermission(mContext);
return mCarHvacService;
-
case CarSystem.RADIO_SERVICE:
assertRadioPermission(mContext);
return mCarRadioService;
-
case Car.CAR_NAVIGATION_SERVICE:
return mCarNavigationStatusService;
-
case CarSystemTest.TEST_SERVICE: {
assertVehicleHalMockPermission(mContext);
synchronized (this) {