diff options
author | Artur Satayev <satayev@google.com> | 2019-11-15 19:12:49 +0000 |
---|---|---|
committer | Artur Satayev <satayev@google.com> | 2019-11-19 15:05:35 +0000 |
commit | 751e55114ccdd19e462aa6771b5a0b0ec3ce9c68 (patch) | |
tree | 2353506a7d71b6897f05f0a5e85d268ee52fe46f /telephony/java | |
parent | 7c93dc5e45ba7420c877b4e80fd517360068ab1f (diff) |
Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt
These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.
This is partial merge of aosp/Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09. Telephony greylist cleanup has been done separately. Note that annotations outside of frameworks/base/ have been merged from AOSP.
Bug: 137350495
Test: m
Exempt-From-Owner-Approval: merge
Change-Id: I015c466e8b69cc0fed5e9d394ba865aad11d8ba6
Diffstat (limited to 'telephony/java')
6 files changed, 29 insertions, 7 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 864bf03c1448..edb45de0b42c 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -290,6 +290,8 @@ public class TelephonyManager { * TSTS - Triple SIM Triple Standby **/ /** @hide */ + @UnsupportedAppUsage(implicitMember = + "values()[Landroid/telephony/TelephonyManager$MultiSimVariants;") public enum MultiSimVariants { @UnsupportedAppUsage DSDS, diff --git a/telephony/java/android/telephony/ims/compat/ImsService.java b/telephony/java/android/telephony/ims/compat/ImsService.java index 2750e51fc3d4..97a8517afea9 100644 --- a/telephony/java/android/telephony/ims/compat/ImsService.java +++ b/telephony/java/android/telephony/ims/compat/ImsService.java @@ -113,6 +113,10 @@ public class ImsService extends Service { } }; + @UnsupportedAppUsage + public ImsService() { + } + /** * @hide */ diff --git a/telephony/java/android/telephony/ims/compat/feature/MMTelFeature.java b/telephony/java/android/telephony/ims/compat/feature/MMTelFeature.java index 40ea208e4578..3fd356a510e6 100644 --- a/telephony/java/android/telephony/ims/compat/feature/MMTelFeature.java +++ b/telephony/java/android/telephony/ims/compat/feature/MMTelFeature.java @@ -16,12 +16,16 @@ package android.telephony.ims.compat.feature; +import android.annotation.UnsupportedAppUsage; import android.app.PendingIntent; import android.os.Message; import android.os.RemoteException; - -import android.annotation.UnsupportedAppUsage; import android.telephony.ims.ImsCallProfile; +import android.telephony.ims.ImsCallSession; +import android.telephony.ims.stub.ImsEcbmImplBase; +import android.telephony.ims.stub.ImsMultiEndpointImplBase; +import android.telephony.ims.stub.ImsUtImplBase; + import com.android.ims.internal.IImsCallSession; import com.android.ims.internal.IImsCallSessionListener; import com.android.ims.internal.IImsConfig; @@ -30,11 +34,6 @@ import com.android.ims.internal.IImsMMTelFeature; import com.android.ims.internal.IImsMultiEndpoint; import com.android.ims.internal.IImsRegistrationListener; import com.android.ims.internal.IImsUt; -import android.telephony.ims.ImsCallSession; -import android.telephony.ims.compat.stub.ImsCallSessionImplBase; -import android.telephony.ims.stub.ImsEcbmImplBase; -import android.telephony.ims.stub.ImsMultiEndpointImplBase; -import android.telephony.ims.stub.ImsUtImplBase; /** * Base implementation for MMTel. @@ -49,6 +48,10 @@ public class MMTelFeature extends ImsFeature { // Lock for feature synchronization private final Object mLock = new Object(); + @UnsupportedAppUsage + public MMTelFeature() { + } + private final IImsMMTelFeature mImsMMTelBinder = new IImsMMTelFeature.Stub() { @Override diff --git a/telephony/java/android/telephony/ims/compat/stub/ImsCallSessionImplBase.java b/telephony/java/android/telephony/ims/compat/stub/ImsCallSessionImplBase.java index 38566fe6d811..d77f78ea9e88 100644 --- a/telephony/java/android/telephony/ims/compat/stub/ImsCallSessionImplBase.java +++ b/telephony/java/android/telephony/ims/compat/stub/ImsCallSessionImplBase.java @@ -16,6 +16,7 @@ package android.telephony.ims.compat.stub; +import android.annotation.UnsupportedAppUsage; import android.os.Message; import android.os.RemoteException; import android.telephony.CallQuality; @@ -41,6 +42,10 @@ import com.android.ims.internal.IImsVideoCallProvider; public class ImsCallSessionImplBase extends IImsCallSession.Stub { + @UnsupportedAppUsage + public ImsCallSessionImplBase() { + } + @Override // convert to old implementation of listener public final void setListener(IImsCallSessionListener listener) diff --git a/telephony/java/android/telephony/ims/compat/stub/ImsUtListenerImplBase.java b/telephony/java/android/telephony/ims/compat/stub/ImsUtListenerImplBase.java index ae113f2f46c8..e2024742c058 100644 --- a/telephony/java/android/telephony/ims/compat/stub/ImsUtListenerImplBase.java +++ b/telephony/java/android/telephony/ims/compat/stub/ImsUtListenerImplBase.java @@ -16,6 +16,7 @@ package android.telephony.ims.compat.stub; +import android.annotation.UnsupportedAppUsage; import android.os.Bundle; import android.os.RemoteException; import android.telephony.ims.ImsCallForwardInfo; @@ -39,6 +40,10 @@ import com.android.ims.internal.IImsUtListener; public class ImsUtListenerImplBase extends IImsUtListener.Stub { + @UnsupportedAppUsage + public ImsUtListenerImplBase() { + } + /** * Notifies the result of the supplementary service configuration udpate. */ diff --git a/telephony/java/com/android/ims/ImsUtInterface.java b/telephony/java/com/android/ims/ImsUtInterface.java index c9d440551631..e80087d8924e 100644 --- a/telephony/java/com/android/ims/ImsUtInterface.java +++ b/telephony/java/com/android/ims/ImsUtInterface.java @@ -21,6 +21,8 @@ import android.os.Message; import android.telephony.ims.ImsCallForwardInfo; import android.telephony.ims.ImsSsInfo; +import dalvik.annotation.compat.UnsupportedAppUsage; + /** * Provides APIs for the supplementary service settings using IMS (Ut interface). * It is created from 3GPP TS 24.623 (XCAP(XML Configuration Access Protocol) @@ -121,6 +123,7 @@ public interface ImsUtInterface { * Retrieves the configuration of the call forward. * The return value of ((AsyncResult)result.obj) is an array of {@link ImsCallForwardInfo}. */ + @UnsupportedAppUsage public void queryCallForward(int condition, String number, Message result); /** |