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

Commit 0deba940 authored by Santiago Seifert's avatar Santiago Seifert Committed by Android (Google) Code Review
Browse files

Merge "Replace literal with constant in annotation"

parents f44c1f80 0acd7893
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4389,7 +4389,7 @@ package android.media {
  }
  public class MediaPlayer implements android.media.AudioRouting android.media.VolumeAutomation {
    method @RequiresPermission("android.permission.BIND_IMS_SERVICE") public void setOnRtpRxNoticeListener(@NonNull android.content.Context, @NonNull android.media.MediaPlayer.OnRtpRxNoticeListener, @Nullable android.os.Handler);
    method @RequiresPermission(android.Manifest.permission.BIND_IMS_SERVICE) public void setOnRtpRxNoticeListener(@NonNull android.content.Context, @NonNull android.media.MediaPlayer.OnRtpRxNoticeListener, @Nullable android.os.Handler);
  }
  public static interface MediaPlayer.OnRtpRxNoticeListener {
+2 −2
Original line number Diff line number Diff line
@@ -4237,14 +4237,14 @@ public class MediaPlayer extends PlayerBase
     * @hide
     */
    @SystemApi
    @RequiresPermission("android.permission.BIND_IMS_SERVICE")
    @RequiresPermission(BIND_IMS_SERVICE)
    public void setOnRtpRxNoticeListener(
            @NonNull Context context,
            @NonNull OnRtpRxNoticeListener listener, @Nullable Handler handler) {
        Objects.requireNonNull(context);
        Preconditions.checkArgument(
                context.checkSelfPermission(BIND_IMS_SERVICE) == PERMISSION_GRANTED,
                "android.permission.BIND_IMS_SERVICE permission not granted.");
                BIND_IMS_SERVICE + " permission not granted.");
        mOnRtpRxNoticeListener = Objects.requireNonNull(listener);
        mOnRtpRxNoticeHandler = handler;
    }