summaryrefslogtreecommitdiff
path: root/repackaged/libphonenumber/src/com/android/i18n
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2018-12-06 13:59:49 +0000
committerPaul Duffin <paulduffin@google.com>2018-12-07 10:54:55 +0000
commit1db53e981f51415b9ae9cd3e139c10d01badfe8b (patch)
treef75ee9653b917373c029062063c33f810645f206 /repackaged/libphonenumber/src/com/android/i18n
parent6d46b20325e34e1553828ea261baf83f5242a7e4 (diff)
downloadlibphonenumber-1db53e981f51415b9ae9cd3e139c10d01badfe8b.tar.gz
Switch implicit hidden api methods to use UnsupportedAppUsage
Implicit methods are not present in the source and so have no place on which to add an annotation. Instead UnsupportedAppUsage annotations are added to the class and use the implicitMember property to specify the signature of the implicit members. This was tested by making and then manually checking that the generated out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the same (after sorting) before and after this change. Bug: 117818301 Bug: 119861512 Test: as above Change-Id: I904c34985baab6b80bbc3c1cfd576a4dc782a023
Diffstat (limited to 'repackaged/libphonenumber/src/com/android/i18n')
-rw-r--r--repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberUtil.java3
-rw-r--r--repackaged/libphonenumber/src/com/android/i18n/phonenumbers/Phonenumber.java1
2 files changed, 4 insertions, 0 deletions
diff --git a/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberUtil.java b/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberUtil.java
index dfed4561..f494f475 100644
--- a/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberUtil.java
+++ b/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/PhoneNumberUtil.java
@@ -394,6 +394,7 @@ public class PhoneNumberUtil {
* use the PhoneNumber class.
* @hide This class is not part of the Android public SDK API
*/
+ @dalvik.annotation.compat.UnsupportedAppUsage(implicitMember = "values()[Lcom/android/i18n/phonenumbers/PhoneNumberUtil$PhoneNumberFormat;")
public enum PhoneNumberFormat {
@dalvik.annotation.compat.UnsupportedAppUsage
E164,
@@ -409,6 +410,7 @@ public class PhoneNumberUtil {
* Type of phone numbers.
* @hide This class is not part of the Android public SDK API
*/
+ @dalvik.annotation.compat.UnsupportedAppUsage(implicitMember = "values()[Lcom/android/i18n/phonenumbers/PhoneNumberUtil$PhoneNumberType;")
public enum PhoneNumberType {
@dalvik.annotation.compat.UnsupportedAppUsage
FIXED_LINE,
@@ -454,6 +456,7 @@ public class PhoneNumberUtil {
* Types of phone number matches. See detailed description beside the isNumberMatch() method.
* @hide This class is not part of the Android public SDK API
*/
+ @dalvik.annotation.compat.UnsupportedAppUsage(implicitMember = "values()[Lcom/android/i18n/phonenumbers/PhoneNumberUtil$MatchType;")
public enum MatchType {
@dalvik.annotation.compat.UnsupportedAppUsage
NOT_A_NUMBER,
diff --git a/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/Phonenumber.java b/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/Phonenumber.java
index dbdb1d23..fca9467e 100644
--- a/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/Phonenumber.java
+++ b/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/Phonenumber.java
@@ -38,6 +38,7 @@ public final class Phonenumber {
/**
* @hide This class is not part of the Android public SDK API
*/
+ @dalvik.annotation.compat.UnsupportedAppUsage(implicitMember = "values()[Lcom/android/i18n/phonenumbers/Phonenumber$PhoneNumber$CountryCodeSource;")
public enum CountryCodeSource {
@dalvik.annotation.compat.UnsupportedAppUsage
FROM_NUMBER_WITH_PLUS_SIGN,