Merge "Add getSelfManagedPhoneAccounts TelecomManager API."
diff --git a/src/com/android/server/telecom/Ringer.java b/src/com/android/server/telecom/Ringer.java
index c6056fa..c5817e7 100644
--- a/src/com/android/server/telecom/Ringer.java
+++ b/src/com/android/server/telecom/Ringer.java
@@ -116,6 +116,11 @@
             return isRingerAudible;
         }
 
+        if (foregroundCall.isSelfManaged()) {
+            Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "Self-managed");
+            return false;
+        }
+
         stopCallWaiting();
 
         if (!shouldRingForContact(foregroundCall.getContactUri())) {
@@ -161,6 +166,11 @@
             return;
         }
 
+        if (call.isSelfManaged()) {
+            Log.addEvent(call, LogUtils.Events.SKIP_RINGING, "Self-managed");
+            return;
+        }
+
         Log.v(this, "Playing call-waiting tone.");
 
         stopRinging();