diff options
| author | 2018-08-01 08:49:18 +0000 | |
|---|---|---|
| committer | 2018-08-01 08:49:18 +0000 | |
| commit | 35ba945c5030e51f820a9783515aa637e647ab12 (patch) | |
| tree | 99f56f5247452b48a9762ddc7a4a084140c389f0 | |
| parent | ea77ee39f5399705743443bcf94e49997e2e6237 (diff) | |
| parent | e8c8d5ebab683ceccf5cbd64849e0b54be66a560 (diff) | |
Merge "Add @UnsupportedAppUsage annotations"
| -rw-r--r-- | config/hiddenapi-light-greylist.txt | 4 | ||||
| -rw-r--r-- | config/hiddenapi-vendor-list.txt | 2 | ||||
| -rw-r--r-- | core/java/android/print/PrintDocumentAdapter.java | 3 | ||||
| -rw-r--r-- | core/java/android/print/PrintJobInfo.java | 3 | ||||
| -rw-r--r-- | core/java/android/print/PrintManager.java | 2 | ||||
| -rw-r--r-- | core/java/android/print/PrinterId.java | 2 |
6 files changed, 10 insertions, 6 deletions
diff --git a/config/hiddenapi-light-greylist.txt b/config/hiddenapi-light-greylist.txt index 143a0fbd6955..28580badb35e 100644 --- a/config/hiddenapi-light-greylist.txt +++ b/config/hiddenapi-light-greylist.txt @@ -4286,10 +4286,6 @@ Landroid/preference/VolumePreference$VolumeStore;->originalVolume:I Landroid/preference/VolumePreference$VolumeStore;->volume:I Landroid/preference/VolumePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V Landroid/preference/VolumePreference;->mStreamType:I -Landroid/print/PrinterId;->getServiceName()Landroid/content/ComponentName; -Landroid/print/PrintJobInfo;->getAdvancedOptions()Landroid/os/Bundle; -Landroid/print/PrintJobInfo;->getDocumentInfo()Landroid/print/PrintDocumentInfo; -Landroid/print/PrintManager;->addPrintJobStateChangeListener(Landroid/print/PrintManager$PrintJobStateChangeListener;)V Landroid/provider/Browser;->getVisitedHistory(Landroid/content/ContentResolver;)[Ljava/lang/String; Landroid/provider/Browser;->sendString(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V Landroid/provider/BrowserContract$Accounts;->CONTENT_URI:Landroid/net/Uri; diff --git a/config/hiddenapi-vendor-list.txt b/config/hiddenapi-vendor-list.txt index 781f6e63fc24..b02d0f81c3f2 100644 --- a/config/hiddenapi-vendor-list.txt +++ b/config/hiddenapi-vendor-list.txt @@ -362,8 +362,6 @@ Landroid/os/SystemVibrator;-><init>()V Landroid/os/UserHandle;->isSameApp(II)Z Landroid/os/UserManager;->hasUserRestriction(Ljava/lang/String;Landroid/os/UserHandle;)Z Landroid/os/UserManager;->isAdminUser()Z -Landroid/print/PrintDocumentAdapter$LayoutResultCallback;-><init>()V -Landroid/print/PrintDocumentAdapter$WriteResultCallback;-><init>()V Landroid/provider/CalendarContract$Events;->PROVIDER_WRITABLE_COLUMNS:[Ljava/lang/String; Landroid/provider/ContactsContract$CommonDataKinds$Phone;->getDisplayLabel(Landroid/content/Context;ILjava/lang/CharSequence;)Ljava/lang/CharSequence; Landroid/provider/Settings$Global;->getStringForUser(Landroid/content/ContentResolver;Ljava/lang/String;I)Ljava/lang/String; diff --git a/core/java/android/print/PrintDocumentAdapter.java b/core/java/android/print/PrintDocumentAdapter.java index 2bb7c2e5f1c3..d1b6efc70a2a 100644 --- a/core/java/android/print/PrintDocumentAdapter.java +++ b/core/java/android/print/PrintDocumentAdapter.java @@ -16,6 +16,7 @@ package android.print; +import android.annotation.UnsupportedAppUsage; import android.os.Bundle; import android.os.CancellationSignal; import android.os.ParcelFileDescriptor; @@ -260,6 +261,7 @@ public abstract class PrintDocumentAdapter { /** * @hide */ + @UnsupportedAppUsage public WriteResultCallback() { /* do nothing - hide constructor */ } @@ -304,6 +306,7 @@ public abstract class PrintDocumentAdapter { /** * @hide */ + @UnsupportedAppUsage public LayoutResultCallback() { /* do nothing - hide constructor */ } diff --git a/core/java/android/print/PrintJobInfo.java b/core/java/android/print/PrintJobInfo.java index 3d094f7d09f4..5ebc1897da22 100644 --- a/core/java/android/print/PrintJobInfo.java +++ b/core/java/android/print/PrintJobInfo.java @@ -23,6 +23,7 @@ import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.StringRes; import android.annotation.TestApi; +import android.annotation.UnsupportedAppUsage; import android.content.pm.PackageManager; import android.content.res.Resources; import android.os.Bundle; @@ -543,6 +544,7 @@ public final class PrintJobInfo implements Parcelable { * * @hide */ + @UnsupportedAppUsage public PrintDocumentInfo getDocumentInfo() { return mDocumentInfo; } @@ -624,6 +626,7 @@ public final class PrintJobInfo implements Parcelable { * * @hide */ + @UnsupportedAppUsage public Bundle getAdvancedOptions() { return mAdvancedOptions; } diff --git a/core/java/android/print/PrintManager.java b/core/java/android/print/PrintManager.java index 51b77980fcf4..9a0bc4ca215c 100644 --- a/core/java/android/print/PrintManager.java +++ b/core/java/android/print/PrintManager.java @@ -21,6 +21,7 @@ import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.annotation.SystemApi; import android.annotation.SystemService; +import android.annotation.UnsupportedAppUsage; import android.app.Activity; import android.app.Application.ActivityLifecycleCallbacks; import android.content.ComponentName; @@ -308,6 +309,7 @@ public final class PrintManager { * @param listener The listener to add. * @hide */ + @UnsupportedAppUsage public void addPrintJobStateChangeListener(PrintJobStateChangeListener listener) { if (mService == null) { Log.w(LOG_TAG, "Feature android.software.print not available"); diff --git a/core/java/android/print/PrinterId.java b/core/java/android/print/PrinterId.java index ff9c0df58f91..659e56f19c79 100644 --- a/core/java/android/print/PrinterId.java +++ b/core/java/android/print/PrinterId.java @@ -17,6 +17,7 @@ package android.print; import android.annotation.NonNull; +import android.annotation.UnsupportedAppUsage; import android.content.ComponentName; import android.os.Parcel; import android.os.Parcelable; @@ -57,6 +58,7 @@ public final class PrinterId implements Parcelable { * * @hide */ + @UnsupportedAppUsage public @NonNull ComponentName getServiceName() { return mServiceName; } |