Add redirections for audio route drawables.

Make it more flexible to customize.
Fixes: 140491722
Test: manually

Change-Id: Ia1c76a4da6ff0cb244f97033bee32dd37f8e4af3
diff --git a/res/values/redirections.xml b/res/values/redirections.xml
new file mode 100644
index 0000000..fe3238f
--- /dev/null
+++ b/res/values/redirections.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright (C) 2019 The Android Open Source Project
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  -->
+
+<resources>
+    <!-- Redirections for audio route drawable to make it customizable.-->
+    <drawable name="ic_audio_route_headset">@drawable/ic_smartphone</drawable>
+    <drawable name="ic_audio_route_headset_activatable">@drawable/ic_smartphone_activatable
+    </drawable>
+    <drawable name="ic_audio_route_earpiece">@drawable/ic_smartphone</drawable>
+    <drawable name="ic_audio_route_earpiece_activatable">@drawable/ic_smartphone_activatable
+    </drawable>
+    <drawable name="ic_audio_route_vehicle">@drawable/ic_bluetooth</drawable>
+    <drawable name="ic_audio_route_vehicle_activatable">@drawable/ic_bluetooth_activatable
+    </drawable>
+    <drawable name="ic_audio_route_speaker">@drawable/ic_speaker_phone</drawable>
+    <drawable name="ic_audio_route_speaker_activatable">@drawable/ic_speaker_phone_activatable
+    </drawable>
+</resources>
diff --git a/src/com/android/car/dialer/ui/activecall/OnGoingCallControllerBarFragment.java b/src/com/android/car/dialer/ui/activecall/OnGoingCallControllerBarFragment.java
index b6e31fe..642156b 100644
--- a/src/com/android/car/dialer/ui/activecall/OnGoingCallControllerBarFragment.java
+++ b/src/com/android/car/dialer/ui/activecall/OnGoingCallControllerBarFragment.java
@@ -56,20 +56,20 @@
             ImmutableMap.<Integer, AudioRouteInfo>builder()
                     .put(CallAudioState.ROUTE_WIRED_HEADSET, new AudioRouteInfo(
                             R.string.audio_route_handset,
-                            R.drawable.ic_smartphone,
-                            R.drawable.ic_smartphone_activatable))
+                            R.drawable.ic_audio_route_headset,
+                            R.drawable.ic_audio_route_headset_activatable))
                     .put(CallAudioState.ROUTE_EARPIECE, new AudioRouteInfo(
                             R.string.audio_route_handset,
-                            R.drawable.ic_smartphone,
-                            R.drawable.ic_smartphone_activatable))
+                            R.drawable.ic_audio_route_earpiece,
+                            R.drawable.ic_audio_route_earpiece_activatable))
                     .put(CallAudioState.ROUTE_BLUETOOTH, new AudioRouteInfo(
                             R.string.audio_route_vehicle,
-                            R.drawable.ic_bluetooth,
-                            R.drawable.ic_bluetooth_activatable))
+                            R.drawable.ic_audio_route_vehicle,
+                            R.drawable.ic_audio_route_vehicle_activatable))
                     .put(CallAudioState.ROUTE_SPEAKER, new AudioRouteInfo(
                             R.string.audio_route_phone_speaker,
-                            R.drawable.ic_speaker_phone,
-                            R.drawable.ic_speaker_phone_activatable))
+                            R.drawable.ic_audio_route_speaker,
+                            R.drawable.ic_audio_route_speaker_activatable))
                     .build();
 
     private AlertDialog mAudioRouteSelectionDialog;