Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1f9f7e5 authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Merge "Add telecom event for skip ringing." am: a780c6ed

am: 6bb2ec13

Change-Id: I1fdf4dbbcf2216c6408af4fb871015cc229149e8
parents c4ad07b0 6bb2ec13
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ public class Ringer {

        if (endEarly) {
            if (letDialerHandleRinging) {
                Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING);
                Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "Dialer handles");
            }
            Log.i(this, "Ending early -- isTheaterModeOn=%s, letDialerHandleRinging=%s, " +
                    "isSelfManaged=%s, hasExternalRinger=%s", isTheaterModeOn,
@@ -188,9 +188,11 @@ public class Ringer {
            mRingtonePlayer.play(mRingtoneFactory, foregroundCall);
            effect = getVibrationEffectForCall(mRingtoneFactory, foregroundCall);
        } else {
            Log.i(this, "startRinging: skipping because ringer would not be audible. " +
            String reason = String.format(
                    "isVolumeOverZero=%s, shouldRingForContact=%s, isRingtonePresent=%s",
                    isVolumeOverZero, shouldRingForContact, isRingtonePresent);
            Log.i(this, "startRinging: skipping because ringer would not be audible. " + reason);
            Log.addEvent(foregroundCall, LogUtils.Events.SKIP_RINGING, "Inaudible: " + reason);
            effect = mDefaultVibrationEffect;
        }

@@ -224,7 +226,7 @@ public class Ringer {
        }

        if (mInCallController.doesConnectedDialerSupportRinging()) {
            Log.addEvent(call, LogUtils.Events.SKIP_RINGING);
            Log.addEvent(call, LogUtils.Events.SKIP_RINGING, "Dialer handles");
            return;
        }