Update Telecomm to follow framework vibration api change.

Bug:15279516
Change-Id: Ie13f438154784481a5b6cef356e134a366a8a8d6
diff --git a/src/com/android/telecomm/Ringer.java b/src/com/android/telecomm/Ringer.java
index 0b54a2b..965c673 100644
--- a/src/com/android/telecomm/Ringer.java
+++ b/src/com/android/telecomm/Ringer.java
@@ -17,6 +17,7 @@
 package com.android.telecomm;
 
 import android.content.Context;
+import android.media.AudioAttributes;
 import android.media.AudioManager;
 import android.os.SystemVibrator;
 import android.os.Vibrator;
@@ -36,6 +37,11 @@
         1000, // How long to wait before vibrating again
     };
 
+    private static final AudioAttributes VIBRATION_ATTRIBUTES = new AudioAttributes.Builder()
+            .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)
+            .setUsage(AudioAttributes.USAGE_NOTIFICATION_TELEPHONY_RINGTONE)
+            .build();
+
     /** Indicate that we want the pattern to repeat at the step which turns on vibration. */
     private static final int VIBRATION_PATTERN_REPEAT = 1;
 
@@ -190,7 +196,7 @@
 
             if (shouldVibrate(TelecommApp.getInstance()) && !mIsVibrating) {
                 mVibrator.vibrate(VIBRATION_PATTERN, VIBRATION_PATTERN_REPEAT,
-                        AudioManager.STREAM_RING);
+                        VIBRATION_ATTRIBUTES);
                 mIsVibrating = true;
             }
         } else {