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

Commit e9543e6c authored by Hwayoung Helen Kim's avatar Hwayoung Helen Kim Committed by Helen
Browse files

Add prefix to the definition of Anbr Api

Bug: 259254356
Test: Build
Change-Id: I0332f4acfa3f724d4757e0f28fa9c4565754bc46
parent 71d7b807
Loading
Loading
Loading
Loading
+6 −47
Original line number Original line Diff line number Diff line
@@ -16,7 +16,6 @@


package android.telephony.ims;
package android.telephony.ims;


import android.annotation.IntDef;
import android.annotation.IntRange;
import android.annotation.IntRange;
import android.annotation.NonNull;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.Nullable;
@@ -27,12 +26,12 @@ import android.telephony.CallQuality;
import android.telephony.ServiceState;
import android.telephony.ServiceState;
import android.telephony.ims.aidl.IImsCallSessionListener;
import android.telephony.ims.aidl.IImsCallSessionListener;
import android.telephony.ims.stub.ImsCallSessionImplBase;
import android.telephony.ims.stub.ImsCallSessionImplBase;
import android.telephony.ims.stub.ImsCallSessionImplBase.MediaStreamDirection;
import android.telephony.ims.stub.ImsCallSessionImplBase.MediaStreamType;
import android.util.Log;
import android.util.Log;


import com.android.ims.internal.IImsCallSession;
import com.android.ims.internal.IImsCallSession;


import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.ArrayList;
import java.util.Objects;
import java.util.Objects;
import java.util.Set;
import java.util.Set;
@@ -814,55 +813,15 @@ public class ImsCallSessionListener {
        }
        }
    }
    }


    /** @hide */
    @IntDef(flag = true,
    value = {
        MEDIA_STREAM_TYPE_AUDIO,
        MEDIA_STREAM_TYPE_VIDEO,
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface MediaStreamType {}

    /**
     * Media Stream Type - Audio
     * @hide
     */
    public static final int MEDIA_STREAM_TYPE_AUDIO = 1;
    /**
     * Media Stream Type - Video
     * @hide
     */
    public static final int MEDIA_STREAM_TYPE_VIDEO = 2;

    /** @hide */
    @IntDef(flag = true,
            value = {
            MEDIA_STREAM_DIRECTION_UPLINK,
            MEDIA_STREAM_DIRECTION_DOWNLINK,
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface MediaStreamDirection {}

    /**
     * Media Stream Direction - Uplink
     * @hide
     */
    public static final int MEDIA_STREAM_DIRECTION_UPLINK = 1;
    /**
     * Media Stream Direction - Downlink
     * @hide
     */
    public static final int MEDIA_STREAM_DIRECTION_DOWNLINK = 2;

    /**
    /**
     * Access Network Bitrate Recommendation Query (ANBRQ), see 3GPP TS 26.114.
     * Access Network Bitrate Recommendation Query (ANBRQ), see 3GPP TS 26.114.
     * This API triggers radio to send ANBRQ message to the access network to query the
     * This API triggers radio to send ANBRQ message to the access network to query the
     * desired bitrate.
     * desired bitrate.
     *
     *
     * @param mediaType {@link MediaStreamType} is used to identify media stream such as
     * @param mediaType {@link ImsCallSessionImplBase.MediaStreamType} is used to identify
     *        audio or video.
     *        media stream such as audio or video.
     * @param direction {@link MediaStreamDirection} of this packet stream (e.g. uplink
     * @param direction {@link ImsCallSessionImplBase.MediaStreamDirection} of this packet
     *        or downlink).
     *        stream (e.g. uplink or downlink).
     * @param bitsPerSecond This value is the bitrate requested by the other party UE through
     * @param bitsPerSecond This value is the bitrate requested by the other party UE through
     *        RTP CMR, RTCPAPP or TMMBR, and ImsStack converts this value to the MAC bitrate
     *        RTP CMR, RTCPAPP or TMMBR, and ImsStack converts this value to the MAC bitrate
     *        (defined in TS36.321, range: 0 ~ 8000 kbit/s).
     *        (defined in TS36.321, range: 0 ~ 8000 kbit/s).
+2 −0
Original line number Original line Diff line number Diff line
@@ -74,6 +74,7 @@ public class ImsCallSessionImplBase implements AutoCloseable {


    /** @hide */
    /** @hide */
    @IntDef(
    @IntDef(
        prefix = "MEDIA_STREAM_TYPE_",
        value = {
        value = {
            MEDIA_STREAM_TYPE_AUDIO,
            MEDIA_STREAM_TYPE_AUDIO,
            MEDIA_STREAM_TYPE_VIDEO
            MEDIA_STREAM_TYPE_VIDEO
@@ -94,6 +95,7 @@ public class ImsCallSessionImplBase implements AutoCloseable {


    /** @hide */
    /** @hide */
    @IntDef(
    @IntDef(
        prefix = "MEDIA_STREAM_DIRECTION_",
        value = {
        value = {
            MEDIA_STREAM_DIRECTION_UPLINK,
            MEDIA_STREAM_DIRECTION_UPLINK,
            MEDIA_STREAM_DIRECTION_DOWNLINK
            MEDIA_STREAM_DIRECTION_DOWNLINK