From 799177d0fca5e7e9ad26412620cd30e6c1407430 Mon Sep 17 00:00:00 2001 From: Grace Jia Date: Wed, 15 Jan 2020 16:57:58 -0800 Subject: [PATCH] Cleanup hidden API usage of voip-common. 1) Expose SipManager#getListOfProfiles as system API. 2) Expose SipProfile#getCallingUid and SipProfile#setCallingUid Test: manual Bug: 145923259 Change-Id: Icccd17a15bdce44c42619405c9597e0a109beeb9 --- api/current.txt | 8 ++++++++ core/res/AndroidManifest.xml | 8 +++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/api/current.txt b/api/current.txt index 50202e1ba1cb1..ad5bc56b7cc3c 100644 --- a/api/current.txt +++ b/api/current.txt @@ -29750,6 +29750,7 @@ package android.net.sip { method public void close(String) throws android.net.sip.SipException; method public android.net.sip.SipSession createSipSession(android.net.sip.SipProfile, android.net.sip.SipSession.Listener) throws android.net.sip.SipException; method public static String getCallId(android.content.Intent); + method @NonNull public java.util.List getListOfProfiles() throws android.net.sip.SipException; method public static String getOfferSessionDescription(android.content.Intent); method public android.net.sip.SipSession getSessionFor(android.content.Intent) throws android.net.sip.SipException; method public static boolean isApiSupported(android.content.Context); @@ -29767,6 +29768,11 @@ package android.net.sip { method public void setRegistrationListener(String, android.net.sip.SipRegistrationListener) throws android.net.sip.SipException; method public android.net.sip.SipAudioCall takeAudioCall(android.content.Intent, android.net.sip.SipAudioCall.Listener) throws android.net.sip.SipException; method public void unregister(android.net.sip.SipProfile, android.net.sip.SipRegistrationListener) throws android.net.sip.SipException; + field public static final String ACTION_SIP_CALL_OPTION_CHANGED = "android.net.sip.action.SIP_CALL_OPTION_CHANGED"; + field public static final String ACTION_SIP_INCOMING_CALL = "android.net.sip.action.SIP_INCOMING_CALL"; + field public static final String ACTION_SIP_REMOVE_PROFILE = "android.net.sip.action.SIP_REMOVE_PROFILE"; + field public static final String ACTION_SIP_SERVICE_UP = "android.net.sip.action.SIP_SERVICE_UP"; + field public static final String ACTION_START_SIP = "android.net.sip.action.START_SIP"; field public static final String EXTRA_CALL_ID = "android:sipCallID"; field public static final String EXTRA_OFFER_SD = "android:sipOfferSD"; field public static final int INCOMING_CALL_RESULT_CODE = 101; // 0x65 @@ -29776,6 +29782,7 @@ package android.net.sip { method public int describeContents(); method public String getAuthUserName(); method public boolean getAutoRegistration(); + method public int getCallingUid(); method public String getDisplayName(); method public String getPassword(); method public int getPort(); @@ -29786,6 +29793,7 @@ package android.net.sip { method public String getSipDomain(); method public String getUriString(); method public String getUserName(); + method public void setCallingUid(int); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator CREATOR; } diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 9aa42ff9fff30..5c204aba49a17 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -556,10 +556,12 @@ - + - - + + + +