Set notification icon color for dialer

Explicitly set the color of the dialer app icon in notifications with
new color attribute "notification_app_icon_color" that can be overriden
by OEMs.

Bug: 169666082
Test: Manual - built on flame_car
Change-Id: Ia82be50e2f59172ab6e69eda7f6959fefde5a81e
diff --git a/res/values/colors.xml b/res/values/colors.xml
index 5370346..36c564d 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -14,6 +14,9 @@
      limitations under the License.
 -->
 <resources>
+    <!-- Color to tint the app icon for notifications -->
+    <color name="notification_app_icon_color">@*android:color/car_accent</color>
+
     <!-- InCall page -->
     <color name="phone_call">@color/car_green_700</color>
     <color name="phone_end_call">@color/car_red_500a</color>
diff --git a/src/com/android/car/dialer/notification/InCallNotificationController.java b/src/com/android/car/dialer/notification/InCallNotificationController.java
index 464787b..ffe1cbe 100644
--- a/src/com/android/car/dialer/notification/InCallNotificationController.java
+++ b/src/com/android/car/dialer/notification/InCallNotificationController.java
@@ -99,7 +99,8 @@
         mNotificationManager.createNotificationChannel(notificationChannel);
 
         mNotificationBuilder = new Notification.Builder(mContext, CHANNEL_ID)
-                .setSmallIcon(R.drawable.ic_app_icon)
+                .setSmallIcon(R.drawable.ic_phone)
+                .setColor(mContext.getColor(R.color.notification_app_icon_color))
                 .setCategory(Notification.CATEGORY_CALL)
                 .setOngoing(true)
                 .setAutoCancel(false);
diff --git a/src/com/android/car/dialer/notification/MissedCallNotificationController.java b/src/com/android/car/dialer/notification/MissedCallNotificationController.java
index 715ab5e..62f3066 100644
--- a/src/com/android/car/dialer/notification/MissedCallNotificationController.java
+++ b/src/com/android/car/dialer/notification/MissedCallNotificationController.java
@@ -149,6 +149,7 @@
                     int callLogSize = callLog.getAllCallRecords().size();
                     Notification.Builder builder = new Notification.Builder(mContext, CHANNEL_ID)
                             .setSmallIcon(R.drawable.ic_phone)
+                            .setColor(mContext.getColor(R.color.notification_app_icon_color))
                             .setLargeIcon(pair.second)
                             .setContentTitle(mContext.getResources().getQuantityString(
                                     R.plurals.notification_missed_call, callLogSize, callLogSize))