summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChung-yih Wang <cywang@google.com>2011-02-10 15:20:41 +0800
committerChung-yih Wang <cywang@google.com>2011-02-17 15:06:08 +0800
commit9e25df44631e3c7881a6816cf26f34ea24055c72 (patch)
tree06a8fab71076f0d90210f7627c1410696d3e696a
parent88083d4f2b9c2dc66ba39bd2c4ffa0ff7c1fbcd4 (diff)
downloadframeworks_base-9e25df44631e3c7881a6816cf26f34ea24055c72.zip
frameworks_base-9e25df44631e3c7881a6816cf26f34ea24055c72.tar.gz
frameworks_base-9e25df44631e3c7881a6816cf26f34ea24055c72.tar.bz2
Make SIP AuthName APIs public.
bug:3326867 Change-Id: I766e6e28f6ad3e84de2c9e24850d472ad00271cc
-rw-r--r--api/current.xml24
-rw-r--r--voip/java/android/net/sip/SipProfile.java9
2 files changed, 28 insertions, 5 deletions
diff --git a/api/current.xml b/api/current.xml
index e56bff8..baf1ed3 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -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"
diff --git a/voip/java/android/net/sip/SipProfile.java b/voip/java/android/net/sip/SipProfile.java
index c7e18df..34d91dd 100644
--- a/voip/java/android/net/sip/SipProfile.java
+++ b/voip/java/android/net/sip/SipProfile.java
@@ -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;