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

Commit 9e25df44 authored by Chung-yih Wang's avatar Chung-yih Wang
Browse files

Make SIP AuthName APIs public.

bug:3326867
Change-Id: I766e6e28f6ad3e84de2c9e24850d472ad00271cc
parent 88083d4f
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -118943,6 +118943,17 @@
 visibility="public"
>
</method>
<method name="getAuthUserName"
 return="java.lang.String"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getAutoRegistration"
 return="boolean"
 abstract="false"
@@ -119145,6 +119156,19 @@
 visibility="public"
>
</method>
<method name="setAuthUserName"
 return="android.net.sip.SipProfile.Builder"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="name" type="java.lang.String">
</parameter>
</method>
<method name="setAutoRegistration"
 return="android.net.sip.SipProfile.Builder"
 abstract="false"
+4 −5
Original line number Diff line number Diff line
@@ -150,9 +150,8 @@ public class SipProfile implements Parcelable, Serializable, Cloneable {
        /**
         * Sets the username used for authentication.
         *
         * @param name auth. name of the profile
         * @param name authentication username of the profile
         * @return this builder object
         * @hide // TODO: remove when we make it public
         */
        public Builder setAuthUserName(String name) {
            mProfile.mAuthUserName = name;
@@ -391,10 +390,10 @@ public class SipProfile implements Parcelable, Serializable, Cloneable {

    /**
     * Gets the username for authentication. If it is null, then the username
     * should be used in authentication instead.
     * is used in authentication instead.
     *
     * @return the auth. username
     * @hide // TODO: remove when we make it public
     * @return the authentication username
     * @see #getUserName
     */
    public String getAuthUserName() {
        return mAuthUserName;