summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chen Xu <fionaxu@google.com> 2020-01-01 22:46:48 -0800
committer evitayan <evitayan@google.com> 2020-01-08 14:17:15 -0800
commitbcc31107cd7e501a035e161eb5ec89ee3acda50e (patch)
tree1f549fbfb45bff6c2b2782d6f5c7ef540c5a77ea
parente22e47f48e860992e5f3822f8cae9417afd1ba6e (diff)
move UiccAppType to annotation class
this is to allow non-telephony mainline module statically link to telephony annotatons. Bug: 135956699 Test: Manual Change-Id: I1207418cc83217cefc603589496660aa0d4be202 (cherry picked from commit d1b06a2090b63143481a706aed5659b5a341f2fe) Merged-In: I1207418cc83217cefc603589496660aa0d4be202
-rw-r--r--telephony/java/android/telephony/Annotation.java13
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java14
2 files changed, 14 insertions, 13 deletions
diff --git a/telephony/java/android/telephony/Annotation.java b/telephony/java/android/telephony/Annotation.java
index 7482ecc85324..9e6dfef0608b 100644
--- a/telephony/java/android/telephony/Annotation.java
+++ b/telephony/java/android/telephony/Annotation.java
@@ -596,4 +596,17 @@ public class Annotation {
@Retention(RetentionPolicy.SOURCE)
public @interface ImsAudioCodec {
}
+
+ /**
+ * UICC SIM Application Types
+ */
+ @IntDef(prefix = { "APPTYPE_" }, value = {
+ TelephonyManager.APPTYPE_SIM,
+ TelephonyManager.APPTYPE_USIM,
+ TelephonyManager.APPTYPE_RUIM,
+ TelephonyManager.APPTYPE_CSIM,
+ TelephonyManager.APPTYPE_ISIM
+ })
+ @Retention(RetentionPolicy.SOURCE)
+ public @interface UiccAppType{}
}
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 87bdaa9a9fe4..60b2b1f8e07f 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -77,6 +77,7 @@ import android.telephony.Annotation.DataState;
import android.telephony.Annotation.NetworkType;
import android.telephony.Annotation.RadioPowerState;
import android.telephony.Annotation.SimActivationState;
+import android.telephony.Annotation.UiccAppType;
import android.telephony.VisualVoicemailService.VisualVoicemailTask;
import android.telephony.data.ApnSetting;
import android.telephony.emergency.EmergencyNumber;
@@ -6621,19 +6622,6 @@ public class TelephonyManager {
}
}
- /**
- * UICC SIM Application Types
- * @hide
- */
- @IntDef(prefix = { "APPTYPE_" }, value = {
- APPTYPE_SIM,
- APPTYPE_USIM,
- APPTYPE_RUIM,
- APPTYPE_CSIM,
- APPTYPE_ISIM
- })
- @Retention(RetentionPolicy.SOURCE)
- public @interface UiccAppType{}
/** UICC application type is SIM */
public static final int APPTYPE_SIM = PhoneConstants.APPTYPE_SIM;
/** UICC application type is USIM */