Merge "Suppress all hidden abstract methods in constructable classes."
This commit is contained in:
@@ -154,6 +154,7 @@ public abstract class JobScheduler {
|
||||
* @param tag Debugging tag for dumps associated with this job (instead of the service class)
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.UPDATE_DEVICE_STATS)
|
||||
public abstract @Result int scheduleAsPackage(@NonNull JobInfo job, @NonNull String packageName,
|
||||
@@ -196,6 +197,7 @@ public abstract class JobScheduler {
|
||||
* Returns a list of all currently-executing jobs.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract List<JobInfo> getStartedJobs();
|
||||
|
||||
/**
|
||||
@@ -205,5 +207,6 @@ public abstract class JobScheduler {
|
||||
* <p class="note">This is a slow operation, so it should be called sparingly.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract List<JobSnapshot> getAllJobSnapshots();
|
||||
}
|
||||
@@ -835,6 +835,7 @@ public abstract class ContentResolver implements ContentInterface {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
protected abstract IContentProvider acquireProvider(Context c, String name);
|
||||
|
||||
@@ -851,15 +852,19 @@ public abstract class ContentResolver implements ContentInterface {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean releaseProvider(IContentProvider icp);
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
protected abstract IContentProvider acquireUnstableProvider(Context c, String name);
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean releaseUnstableProvider(IContentProvider icp);
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void unstableProviderDied(IContentProvider icp);
|
||||
|
||||
|
||||
@@ -800,6 +800,7 @@ public abstract class Context {
|
||||
* case {@link #getOpPackageName()} will be the name of the primary package in
|
||||
* that process (so that app ops uid verification will work with the name).
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract String getBasePackageName();
|
||||
|
||||
@@ -916,6 +917,7 @@ public abstract class Context {
|
||||
* @see #MODE_PRIVATE
|
||||
* @removed
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract SharedPreferences getSharedPreferences(File file, @PreferencesMode int mode);
|
||||
|
||||
/**
|
||||
@@ -946,6 +948,7 @@ public abstract class Context {
|
||||
public abstract boolean deleteSharedPreferences(String name);
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void reloadSharedPreferences();
|
||||
|
||||
/**
|
||||
@@ -1034,6 +1037,7 @@ public abstract class Context {
|
||||
* @see #getSharedPreferences(String, int)
|
||||
* @removed
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract File getSharedPreferencesPath(String name);
|
||||
|
||||
/**
|
||||
@@ -1505,6 +1509,7 @@ public abstract class Context {
|
||||
* There is no guarantee when these files will be deleted.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@SystemApi
|
||||
public abstract File getPreloadsFileCache();
|
||||
@@ -2173,6 +2178,7 @@ public abstract class Context {
|
||||
* @see #sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user,
|
||||
String[] receiverPermissions);
|
||||
|
||||
@@ -2203,6 +2209,7 @@ public abstract class Context {
|
||||
* @see #sendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, int, String, Bundle)
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract void sendBroadcast(Intent intent,
|
||||
@Nullable String receiverPermission,
|
||||
@@ -2213,6 +2220,7 @@ public abstract class Context {
|
||||
* of an associated app op as per {@link android.app.AppOpsManager}.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void sendBroadcast(Intent intent,
|
||||
String receiverPermission, int appOp);
|
||||
@@ -2328,6 +2336,7 @@ public abstract class Context {
|
||||
* @see android.app.Activity#RESULT_OK
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract void sendOrderedBroadcast(@NonNull Intent intent,
|
||||
@Nullable String receiverPermission, @Nullable Bundle options,
|
||||
@@ -2340,6 +2349,7 @@ public abstract class Context {
|
||||
* of an associated app op as per {@link android.app.AppOpsManager}.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void sendOrderedBroadcast(Intent intent,
|
||||
String receiverPermission, int appOp, BroadcastReceiver resultReceiver,
|
||||
@@ -2393,6 +2403,7 @@ public abstract class Context {
|
||||
* @see #sendBroadcast(Intent, String, Bundle)
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
public abstract void sendBroadcastAsUser(@RequiresPermission Intent intent,
|
||||
@@ -2415,6 +2426,7 @@ public abstract class Context {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public abstract void sendBroadcastAsUser(@RequiresPermission Intent intent,
|
||||
@@ -2461,6 +2473,7 @@ public abstract class Context {
|
||||
* BroadcastReceiver, Handler, int, String, Bundle)
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public abstract void sendOrderedBroadcastAsUser(Intent intent, UserHandle user,
|
||||
@@ -2474,6 +2487,7 @@ public abstract class Context {
|
||||
* BroadcastReceiver, Handler, int, String, Bundle)
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
@UnsupportedAppUsage
|
||||
public abstract void sendOrderedBroadcastAsUser(Intent intent, UserHandle user,
|
||||
@@ -2688,6 +2702,7 @@ public abstract class Context {
|
||||
* @hide
|
||||
* This is just here for sending CONNECTIVITY_ACTION.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Deprecated
|
||||
@RequiresPermission(allOf = {
|
||||
android.Manifest.permission.INTERACT_ACROSS_USERS,
|
||||
@@ -2978,6 +2993,7 @@ public abstract class Context {
|
||||
* @see #sendBroadcast
|
||||
* @see #unregisterReceiver
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL)
|
||||
@UnsupportedAppUsage
|
||||
@@ -3088,6 +3104,7 @@ public abstract class Context {
|
||||
/**
|
||||
* @hide like {@link #startForegroundService(Intent)} but for a specific user.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
public abstract ComponentName startForegroundServiceAsUser(Intent service, UserHandle user);
|
||||
@@ -3126,6 +3143,7 @@ public abstract class Context {
|
||||
/**
|
||||
* @hide like {@link #startService(Intent)} but for a specific user.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
@UnsupportedAppUsage
|
||||
@@ -3134,6 +3152,7 @@ public abstract class Context {
|
||||
/**
|
||||
* @hide like {@link #stopService(Intent)} but for a specific user.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
public abstract boolean stopServiceAsUser(Intent service, UserHandle user);
|
||||
|
||||
@@ -5190,6 +5209,7 @@ public abstract class Context {
|
||||
public abstract int checkPermission(@NonNull String permission, int pid, int uid);
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@PackageManager.PermissionResult
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public abstract int checkPermission(@NonNull String permission, int pid, int uid,
|
||||
@@ -5417,6 +5437,7 @@ public abstract class Context {
|
||||
@Intent.AccessUriMode int modeFlags);
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@PackageManager.PermissionResult
|
||||
public abstract int checkUriPermission(Uri uri, int pid, int uid,
|
||||
@Intent.AccessUriMode int modeFlags, IBinder callerToken);
|
||||
@@ -5701,6 +5722,7 @@ public abstract class Context {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract Context createApplicationContext(ApplicationInfo application,
|
||||
@CreatePackageOptions int flags) throws PackageManager.NameNotFoundException;
|
||||
@@ -5920,6 +5942,7 @@ public abstract class Context {
|
||||
* @see #isCredentialProtectedStorage()
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract Context createCredentialProtectedStorageContext();
|
||||
|
||||
@@ -5932,6 +5955,7 @@ public abstract class Context {
|
||||
* @return The compatibility info holder, or null if not required by the application.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract DisplayAdjustments getDisplayAdjustments(int displayId);
|
||||
|
||||
/**
|
||||
@@ -5966,12 +5990,14 @@ public abstract class Context {
|
||||
* @see #getDisplay()
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@TestApi
|
||||
public abstract int getDisplayId();
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void updateDisplay(int displayId);
|
||||
|
||||
/**
|
||||
@@ -6000,6 +6026,7 @@ public abstract class Context {
|
||||
* @see #createCredentialProtectedStorageContext()
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract boolean isCredentialProtectedStorage();
|
||||
|
||||
@@ -6007,6 +6034,7 @@ public abstract class Context {
|
||||
* Returns true if the context can load unsafe resources, e.g. fonts.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract boolean canLoadUnsafeResources();
|
||||
|
||||
/**
|
||||
|
||||
@@ -3796,6 +3796,7 @@ public abstract class PackageManager {
|
||||
* found on the system.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@RequiresPermission(Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
@UnsupportedAppUsage
|
||||
public abstract PackageInfo getPackageInfoAsUser(@NonNull String packageName,
|
||||
@@ -3862,6 +3863,7 @@ public abstract class PackageManager {
|
||||
* does not contain such an activity.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract @Nullable Intent getCarLaunchIntentForPackage(@NonNull String packageName);
|
||||
|
||||
/**
|
||||
@@ -3927,6 +3929,7 @@ public abstract class PackageManager {
|
||||
* found on the system.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getPackageUidAsUser(@NonNull String packageName, @UserIdInt int userId)
|
||||
throws NameNotFoundException;
|
||||
@@ -3945,6 +3948,7 @@ public abstract class PackageManager {
|
||||
* found on the system.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getPackageUidAsUser(@NonNull String packageName,
|
||||
@PackageInfoFlags int flags, @UserIdInt int userId) throws NameNotFoundException;
|
||||
@@ -3987,6 +3991,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract boolean arePermissionsIndividuallyControlled();
|
||||
|
||||
@@ -3995,6 +4000,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract boolean isWirelessConsentModeEnabled();
|
||||
|
||||
/**
|
||||
@@ -4047,6 +4053,7 @@ public abstract class PackageManager {
|
||||
@ApplicationInfoFlags int flags) throws NameNotFoundException;
|
||||
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract ApplicationInfo getApplicationInfoAsUser(@NonNull String packageName,
|
||||
@@ -4228,6 +4235,7 @@ public abstract class PackageManager {
|
||||
* deleted with {@code DELETE_KEEP_DATA} flag set).
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL)
|
||||
@@ -4276,6 +4284,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
@NonNull
|
||||
@TestApi
|
||||
@@ -4389,6 +4398,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS)
|
||||
public abstract void grantRuntimePermission(@NonNull String packageName,
|
||||
@@ -4415,6 +4425,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS)
|
||||
public abstract void revokeRuntimePermission(@NonNull String packageName,
|
||||
@@ -4459,6 +4470,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(anyOf = {
|
||||
android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS,
|
||||
@@ -4481,6 +4493,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(anyOf = {
|
||||
android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS,
|
||||
@@ -4704,6 +4717,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean shouldShowRequestPermissionRationale(@NonNull String permName);
|
||||
|
||||
@@ -4819,6 +4833,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@TestApi
|
||||
public abstract @Nullable String[] getNamesForUids(int[] uids);
|
||||
|
||||
@@ -4835,6 +4850,7 @@ public abstract class PackageManager {
|
||||
* found on the system.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getUidForSharedUser(@NonNull String sharedUserName)
|
||||
throws NameNotFoundException;
|
||||
@@ -4878,6 +4894,7 @@ public abstract class PackageManager {
|
||||
* deleted with {@code DELETE_KEEP_DATA} flag set).
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@TestApi
|
||||
public abstract List<ApplicationInfo> getInstalledApplicationsAsUser(
|
||||
@@ -4890,6 +4907,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(Manifest.permission.ACCESS_INSTANT_APPS)
|
||||
public abstract @NonNull List<InstantAppInfo> getInstantApps();
|
||||
@@ -4901,6 +4919,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(Manifest.permission.ACCESS_INSTANT_APPS)
|
||||
public abstract @Nullable Drawable getInstantAppIcon(String packageName);
|
||||
@@ -4949,6 +4968,7 @@ public abstract class PackageManager {
|
||||
* deprecated
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract int getInstantAppCookieMaxSize();
|
||||
|
||||
/**
|
||||
@@ -5006,6 +5026,7 @@ public abstract class PackageManager {
|
||||
/**
|
||||
* @removed
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract boolean setInstantAppCookie(@Nullable byte[] cookie);
|
||||
|
||||
/**
|
||||
@@ -5044,6 +5065,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract @NonNull List<SharedLibraryInfo> getSharedLibrariesAsUser(
|
||||
@InstallFlags int flags, @UserIdInt int userId);
|
||||
|
||||
@@ -5056,6 +5078,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@RequiresPermission(Manifest.permission.ACCESS_SHARED_LIBRARIES)
|
||||
@SystemApi
|
||||
@@ -5075,6 +5098,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
@TestApi
|
||||
public abstract @NonNull String getServicesSystemSharedLibraryPackageName();
|
||||
@@ -5086,6 +5110,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
@TestApi
|
||||
public abstract @NonNull String getSharedSystemSharedLibraryPackageName();
|
||||
@@ -5192,6 +5217,7 @@ public abstract class PackageManager {
|
||||
* containing something else, such as the activity resolver.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@UnsupportedAppUsage
|
||||
public abstract ResolveInfo resolveActivityAsUser(@NonNull Intent intent,
|
||||
@@ -5233,6 +5259,7 @@ public abstract class PackageManager {
|
||||
* empty list is returned.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract List<ResolveInfo> queryIntentActivitiesAsUser(@NonNull Intent intent,
|
||||
@@ -5256,6 +5283,7 @@ public abstract class PackageManager {
|
||||
* empty list is returned.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@RequiresPermission(Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
@SystemApi
|
||||
@@ -5318,6 +5346,7 @@ public abstract class PackageManager {
|
||||
* no matching receivers, an empty list or null is returned.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@SystemApi
|
||||
@RequiresPermission(Manifest.permission.INTERACT_ACROSS_USERS)
|
||||
@@ -5329,6 +5358,7 @@ public abstract class PackageManager {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract List<ResolveInfo> queryBroadcastReceiversAsUser(@NonNull Intent intent,
|
||||
@@ -5367,6 +5397,7 @@ public abstract class PackageManager {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
public abstract ResolveInfo resolveServiceAsUser(@NonNull Intent intent,
|
||||
@ResolveInfoFlags int flags, @UserIdInt int userId);
|
||||
@@ -5399,6 +5430,7 @@ public abstract class PackageManager {
|
||||
* empty list or null is returned.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract List<ResolveInfo> queryIntentServicesAsUser(@NonNull Intent intent,
|
||||
@@ -5437,6 +5469,7 @@ public abstract class PackageManager {
|
||||
* no matching services, an empty list or null is returned.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract List<ResolveInfo> queryIntentContentProvidersAsUser(
|
||||
@@ -5504,6 +5537,7 @@ public abstract class PackageManager {
|
||||
* provider. If a provider was not found, returns null.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@UnsupportedAppUsage
|
||||
public abstract ProviderInfo resolveContentProviderAsUser(@NonNull String providerName,
|
||||
@@ -5888,6 +5922,7 @@ public abstract class PackageManager {
|
||||
* @return the drawable or null if no drawable is required.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@UnsupportedAppUsage
|
||||
public abstract Drawable getUserBadgeForDensity(@NonNull UserHandle user, int density);
|
||||
@@ -5906,6 +5941,7 @@ public abstract class PackageManager {
|
||||
* @return the drawable or null if no drawable is required.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@UnsupportedAppUsage
|
||||
public abstract Drawable getUserBadgeForDensityNoBackground(@NonNull UserHandle user,
|
||||
@@ -6030,6 +6066,7 @@ public abstract class PackageManager {
|
||||
throws NameNotFoundException;
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract Resources getResourcesForApplicationAsUser(@NonNull String packageName,
|
||||
@@ -6075,6 +6112,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @deprecated use {@link PackageInstaller#installExistingPackage()} instead.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Deprecated
|
||||
@SystemApi
|
||||
public abstract int installExistingPackage(@NonNull String packageName)
|
||||
@@ -6087,6 +6125,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @deprecated use {@link PackageInstaller#installExistingPackage()} instead.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Deprecated
|
||||
@SystemApi
|
||||
public abstract int installExistingPackage(@NonNull String packageName,
|
||||
@@ -6099,6 +6138,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @deprecated use {@link PackageInstaller#installExistingPackage()} instead.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Deprecated
|
||||
@RequiresPermission(anyOf = {
|
||||
Manifest.permission.INSTALL_EXISTING_PACKAGES,
|
||||
@@ -6179,6 +6219,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.INTENT_FILTER_VERIFICATION_AGENT)
|
||||
public abstract void verifyIntentFilter(int verificationId, int verificationCode,
|
||||
@@ -6204,6 +6245,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(Manifest.permission.INTERACT_ACROSS_USERS_FULL)
|
||||
public abstract int getIntentVerificationStatusAsUser(@NonNull String packageName,
|
||||
@@ -6229,6 +6271,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS)
|
||||
public abstract boolean updateIntentVerificationStatusAsUser(@NonNull String packageName,
|
||||
@@ -6246,6 +6289,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@SystemApi
|
||||
public abstract List<IntentFilterVerificationInfo> getIntentFilterVerifications(
|
||||
@@ -6262,6 +6306,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@SystemApi
|
||||
public abstract List<IntentFilter> getAllIntentFilters(@NonNull String packageName);
|
||||
@@ -6276,6 +6321,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@SystemApi
|
||||
@RequiresPermission(Manifest.permission.INTERACT_ACROSS_USERS_FULL)
|
||||
@@ -6293,6 +6339,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(allOf = {
|
||||
Manifest.permission.SET_PREFERRED_APPLICATIONS,
|
||||
@@ -6319,6 +6366,7 @@ public abstract class PackageManager {
|
||||
@Nullable String installerPackageName);
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(Manifest.permission.INSTALL_PACKAGES)
|
||||
public abstract void setUpdateAvailable(@NonNull String packageName, boolean updateAvaialble);
|
||||
@@ -6339,6 +6387,7 @@ public abstract class PackageManager {
|
||||
* indicate that no callback is desired.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@RequiresPermission(Manifest.permission.DELETE_PACKAGES)
|
||||
@UnsupportedAppUsage
|
||||
public abstract void deletePackage(@NonNull String packageName,
|
||||
@@ -6359,6 +6408,7 @@ public abstract class PackageManager {
|
||||
* @param userId The user Id
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@RequiresPermission(anyOf = {
|
||||
Manifest.permission.DELETE_PACKAGES,
|
||||
Manifest.permission.INTERACT_ACROSS_USERS_FULL})
|
||||
@@ -6376,6 +6426,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @deprecated use {@link #getInstallSourceInfo(String)} instead
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Deprecated
|
||||
@Nullable
|
||||
public abstract String getInstallerPackageName(@NonNull String packageName);
|
||||
@@ -6415,6 +6466,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void clearApplicationUserData(@NonNull String packageName,
|
||||
@Nullable IPackageDataObserver observer);
|
||||
@@ -6434,6 +6486,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void deleteApplicationCacheFiles(@NonNull String packageName,
|
||||
@Nullable IPackageDataObserver observer);
|
||||
@@ -6456,6 +6509,7 @@ public abstract class PackageManager {
|
||||
* callback is desired.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void deleteApplicationCacheFilesAsUser(@NonNull String packageName,
|
||||
@UserIdInt int userId, @Nullable IPackageDataObserver observer);
|
||||
@@ -6489,6 +6543,7 @@ public abstract class PackageManager {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void freeStorageAndNotify(@Nullable String volumeUuid, long freeStorageSize,
|
||||
@Nullable IPackageDataObserver observer);
|
||||
@@ -6522,6 +6577,7 @@ public abstract class PackageManager {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void freeStorage(@Nullable String volumeUuid, long freeStorageSize,
|
||||
@Nullable IntentSender pi);
|
||||
@@ -6545,6 +6601,7 @@ public abstract class PackageManager {
|
||||
* @deprecated use {@link StorageStatsManager} instead.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Deprecated
|
||||
@UnsupportedAppUsage
|
||||
public abstract void getPackageSizeInfoAsUser(@NonNull String packageName,
|
||||
@@ -6676,6 +6733,7 @@ public abstract class PackageManager {
|
||||
* an app to be responsible for a particular role and to check current role
|
||||
* holders, see {@link android.app.role.RoleManager}.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Deprecated
|
||||
@UnsupportedAppUsage
|
||||
public abstract void replacePreferredActivity(@NonNull IntentFilter filter, int match,
|
||||
@@ -6772,6 +6830,7 @@ public abstract class PackageManager {
|
||||
* default, if any.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@UnsupportedAppUsage
|
||||
public abstract ComponentName getHomeActivities(@NonNull List<ResolveInfo> outActivities);
|
||||
@@ -6873,6 +6932,7 @@ public abstract class PackageManager {
|
||||
* @param userId Ther userId of the user whose restrictions are to be flushed.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void flushPackageRestrictionsAsUser(@UserIdInt int userId);
|
||||
|
||||
@@ -6883,6 +6943,7 @@ public abstract class PackageManager {
|
||||
* or by installing it, such as with {@link #installExistingPackage(String)}
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean setApplicationHiddenSettingAsUser(@NonNull String packageName,
|
||||
boolean hidden, @NonNull UserHandle userHandle);
|
||||
@@ -6892,6 +6953,7 @@ public abstract class PackageManager {
|
||||
* @see #setApplicationHiddenSettingAsUser(String, boolean, UserHandle)
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean getApplicationHiddenSettingAsUser(@NonNull String packageName,
|
||||
@NonNull UserHandle userHandle);
|
||||
@@ -6918,6 +6980,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(Manifest.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS)
|
||||
public abstract void addOnPermissionsChangeListener(
|
||||
@@ -6930,6 +6993,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@RequiresPermission(Manifest.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS)
|
||||
public abstract void removeOnPermissionsChangeListener(
|
||||
@@ -6943,6 +7007,7 @@ public abstract class PackageManager {
|
||||
* application's AndroidManifest.xml.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract KeySet getKeySetByAlias(@NonNull String packageName, @NonNull String alias);
|
||||
@@ -6950,6 +7015,7 @@ public abstract class PackageManager {
|
||||
/** Return the signing {@link KeySet} for this application.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract KeySet getSigningKeySet(@NonNull String packageName);
|
||||
@@ -6961,6 +7027,7 @@ public abstract class PackageManager {
|
||||
* Compare to {@link #isSignedByExactly(String packageName, KeySet ks)}.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean isSignedBy(@NonNull String packageName, @NonNull KeySet ks);
|
||||
|
||||
@@ -6970,6 +7037,7 @@ public abstract class PackageManager {
|
||||
* {@link #isSignedBy(String packageName, KeySet ks)}.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean isSignedByExactly(@NonNull String packageName, @NonNull KeySet ks);
|
||||
|
||||
@@ -7187,6 +7255,7 @@ public abstract class PackageManager {
|
||||
* @throws IllegalArgumentException if the package was not found.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean isPackageSuspendedForUser(@NonNull String packageName, int userId);
|
||||
|
||||
@@ -7262,6 +7331,7 @@ public abstract class PackageManager {
|
||||
* @param packageName the package to change the category hint for.
|
||||
* @param categoryHint the category hint to set.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void setApplicationCategoryHint(@NonNull String packageName,
|
||||
@ApplicationInfo.Category int categoryHint);
|
||||
|
||||
@@ -7277,34 +7347,43 @@ public abstract class PackageManager {
|
||||
}
|
||||
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract int getMoveStatus(int moveId);
|
||||
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void registerMoveCallback(@NonNull MoveCallback callback,
|
||||
@NonNull Handler handler);
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void unregisterMoveCallback(@NonNull MoveCallback callback);
|
||||
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public abstract int movePackage(@NonNull String packageName, @NonNull VolumeInfo vol);
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public abstract @Nullable VolumeInfo getPackageCurrentVolume(@NonNull ApplicationInfo app);
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
public abstract List<VolumeInfo> getPackageCandidateVolumes(
|
||||
@NonNull ApplicationInfo app);
|
||||
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract int movePrimaryStorage(@NonNull VolumeInfo vol);
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract @Nullable VolumeInfo getPrimaryStorageCurrentVolume();
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract @NonNull List<VolumeInfo> getPrimaryStorageCandidateVolumes();
|
||||
|
||||
/**
|
||||
@@ -7314,6 +7393,7 @@ public abstract class PackageManager {
|
||||
* @return identity that uniquely identifies current device
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
public abstract VerifierDeviceIdentity getVerifierDeviceIdentity();
|
||||
|
||||
@@ -7322,6 +7402,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean isUpgrade();
|
||||
|
||||
@@ -7351,6 +7432,7 @@ public abstract class PackageManager {
|
||||
* {@link #ONLY_IF_NO_MATCH_FOUND}.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void addCrossProfileIntentFilter(@NonNull IntentFilter filter,
|
||||
@UserIdInt int sourceUserId, @UserIdInt int targetUserId, int flags);
|
||||
@@ -7362,12 +7444,14 @@ public abstract class PackageManager {
|
||||
* @param sourceUserId The source user id.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void clearCrossProfileIntentFilters(@UserIdInt int sourceUserId);
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract Drawable loadItemIcon(@NonNull PackageItemInfo itemInfo,
|
||||
@@ -7376,12 +7460,14 @@ public abstract class PackageManager {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@NonNull
|
||||
@UnsupportedAppUsage
|
||||
public abstract Drawable loadUnbadgedItemIcon(@NonNull PackageItemInfo itemInfo,
|
||||
@Nullable ApplicationInfo appInfo);
|
||||
|
||||
/** {@hide} */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean isPackageAvailable(@NonNull String packageName);
|
||||
|
||||
@@ -7599,6 +7685,7 @@ public abstract class PackageManager {
|
||||
* user, {@code INSTALL_REASON_UNKNOWN} is returned.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@TestApi
|
||||
@InstallReason
|
||||
public abstract int getInstallReason(@NonNull String packageName, @NonNull UserHandle user);
|
||||
@@ -7627,6 +7714,7 @@ public abstract class PackageManager {
|
||||
* @see {@link android.content.Intent#ACTION_INSTANT_APP_RESOLVER_SETTINGS}
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@SystemApi
|
||||
public abstract ComponentName getInstantAppResolverSettingsComponent();
|
||||
@@ -7638,6 +7726,7 @@ public abstract class PackageManager {
|
||||
* @see {@link android.content.Intent#ACTION_INSTALL_INSTANT_APP_PACKAGE}
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
@SystemApi
|
||||
public abstract ComponentName getInstantAppInstallerComponent();
|
||||
@@ -7648,6 +7737,7 @@ public abstract class PackageManager {
|
||||
* @see {@link android.provider.Settings.Secure#ANDROID_ID}
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@Nullable
|
||||
public abstract String getInstantAppAndroidId(@NonNull String packageName,
|
||||
@NonNull UserHandle user);
|
||||
@@ -7692,6 +7782,7 @@ public abstract class PackageManager {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract void registerDexModule(@NonNull String dexModulePath,
|
||||
@Nullable DexModuleRegisterCallback callback);
|
||||
|
||||
@@ -188,6 +188,7 @@ public abstract class CameraCaptureSession implements AutoCloseable {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void prepare(int maxCount, @NonNull Surface surface)
|
||||
throws CameraAccessException;
|
||||
|
||||
@@ -227,6 +228,7 @@ public abstract class CameraCaptureSession implements AutoCloseable {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void tearDown(@NonNull Surface surface) throws CameraAccessException;
|
||||
|
||||
/**
|
||||
|
||||
@@ -257,6 +257,7 @@ public abstract class RadioTuner {
|
||||
* @throws IllegalArgumentException if id==0
|
||||
* @hide This API is not thoroughly elaborated yet
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract @Nullable Bitmap getMetadataImage(int id);
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,6 +45,7 @@ public abstract class InternalTransformation implements Transformation, Parcelab
|
||||
* @param template the {@link RemoteViews presentation template}.
|
||||
* @param childViewId resource id of the child view inside the template.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
abstract void apply(@NonNull ValueFinder finder, @NonNull RemoteViews template,
|
||||
int childViewId) throws Exception;
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ public abstract class ViewStructure {
|
||||
public abstract void setVisibility(int visibility);
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void setAssistBlocked(boolean state);
|
||||
|
||||
/**
|
||||
@@ -431,6 +432,7 @@ public abstract class ViewStructure {
|
||||
public abstract void asyncCommit();
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract Rect getTempRect();
|
||||
|
||||
/**
|
||||
|
||||
@@ -1384,6 +1384,7 @@ public abstract class Window {
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void alwaysReadCloseOnTouchAttr();
|
||||
|
||||
@@ -1564,6 +1565,7 @@ public abstract class Window {
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void clearContentView();
|
||||
|
||||
/**
|
||||
@@ -2632,18 +2634,21 @@ public abstract class Window {
|
||||
* Called when the activity changes from fullscreen mode to multi-window mode and visa-versa.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void onMultiWindowModeChanged();
|
||||
|
||||
/**
|
||||
* Called when the activity changes to/from picture-in-picture mode.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void onPictureInPictureModeChanged(boolean isInPictureInPictureMode);
|
||||
|
||||
/**
|
||||
* Called when the activity just relaunched.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void reportActivityRelaunched();
|
||||
|
||||
/**
|
||||
|
||||
@@ -154,6 +154,7 @@ public abstract class CookieManager {
|
||||
* HTTP request header
|
||||
* @hide Used by Browser and by WebViewProvider implementations.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract String getCookie(String url, boolean privateBrowsing);
|
||||
|
||||
@@ -230,6 +231,7 @@ public abstract class CookieManager {
|
||||
* @param privateBrowsing whether to use the private browsing cookie jar
|
||||
* @hide Used by Browser and WebViewProvider implementations.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract boolean hasCookies(boolean privateBrowsing);
|
||||
|
||||
@@ -264,6 +266,7 @@ public abstract class CookieManager {
|
||||
*
|
||||
* @hide Only for use by WebViewProvider implementations
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
protected abstract boolean allowFileSchemeCookiesImpl();
|
||||
|
||||
@@ -299,6 +302,7 @@ public abstract class CookieManager {
|
||||
*
|
||||
* @hide Only for use by WebViewProvider implementations
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
protected abstract void setAcceptFileSchemeCookiesImpl(boolean accept);
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ public abstract class WebHistoryItem implements Cloneable {
|
||||
* @deprecated This method is now obsolete.
|
||||
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@Deprecated
|
||||
public abstract int getId();
|
||||
|
||||
@@ -75,6 +75,7 @@ public abstract class WebIconDatabase {
|
||||
|
||||
/** {@hide}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract void bulkRequestIconForPageUrl(ContentResolver cr, String where,
|
||||
IconListener listener);
|
||||
|
||||
@@ -268,6 +268,7 @@ public abstract class WebSettings {
|
||||
* @deprecated This method is now obsolete.
|
||||
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@Deprecated
|
||||
public abstract void setNavDump(boolean enabled);
|
||||
@@ -280,6 +281,7 @@ public abstract class WebSettings {
|
||||
* @deprecated This method is now obsolete.
|
||||
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@Deprecated
|
||||
public abstract boolean getNavDump();
|
||||
@@ -457,6 +459,7 @@ public abstract class WebSettings {
|
||||
* @deprecated This method is now obsolete.
|
||||
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@Deprecated
|
||||
public abstract void setUseWebViewBackgroundForOverscrollBackground(boolean view);
|
||||
@@ -469,6 +472,7 @@ public abstract class WebSettings {
|
||||
* @deprecated This method is now obsolete.
|
||||
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@Deprecated
|
||||
public abstract boolean getUseWebViewBackgroundForOverscrollBackground();
|
||||
@@ -534,6 +538,7 @@ public abstract class WebSettings {
|
||||
* Developers should access this via {@link CookieManager#setShouldAcceptThirdPartyCookies}.
|
||||
* @hide Internal API.
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract void setAcceptThirdPartyCookies(boolean accept);
|
||||
|
||||
@@ -542,6 +547,7 @@ public abstract class WebSettings {
|
||||
* Developers should access this via {@link CookieManager#getShouldAcceptThirdPartyCookies}.
|
||||
* @hide Internal API
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract boolean getAcceptThirdPartyCookies();
|
||||
|
||||
@@ -669,6 +675,7 @@ public abstract class WebSettings {
|
||||
* @deprecated Please use {@link #setUserAgentString} instead.
|
||||
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@Deprecated
|
||||
public abstract void setUserAgent(int ua);
|
||||
@@ -687,6 +694,7 @@ public abstract class WebSettings {
|
||||
* @deprecated Please use {@link #getUserAgentString} instead.
|
||||
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@Deprecated
|
||||
public abstract int getUserAgent();
|
||||
@@ -1050,6 +1058,7 @@ public abstract class WebSettings {
|
||||
* {@link #setPluginState}
|
||||
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR2}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@Deprecated
|
||||
public abstract void setPluginsEnabled(boolean flag);
|
||||
@@ -1259,6 +1268,7 @@ public abstract class WebSettings {
|
||||
* @deprecated This method has been replaced by {@link #getPluginState}
|
||||
* @hide Since API level {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR2}
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
@Deprecated
|
||||
public abstract boolean getPluginsEnabled();
|
||||
@@ -1445,6 +1455,7 @@ public abstract class WebSettings {
|
||||
* WebView.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract void setVideoOverlayForEmbeddedEncryptedVideoEnabled(boolean flag);
|
||||
|
||||
@@ -1455,6 +1466,7 @@ public abstract class WebSettings {
|
||||
* @see #setVideoOverlayForEmbeddedEncryptedVideoEnabled
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@SystemApi
|
||||
public abstract boolean getVideoOverlayForEmbeddedEncryptedVideoEnabled();
|
||||
|
||||
|
||||
@@ -5346,6 +5346,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
||||
*
|
||||
* @param down true if the scroll is going down, false if it is going up
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
abstract void fillGap(boolean down);
|
||||
|
||||
void hideSelector() {
|
||||
@@ -5383,6 +5384,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
||||
* @param y Where the user touched
|
||||
* @return The position of the first (or only) item in the row containing y
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
abstract int findMotionRow(int y);
|
||||
|
||||
@@ -5430,6 +5432,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
||||
*
|
||||
* @param position the position of the new selection
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
abstract void setSelectionInt(int position);
|
||||
|
||||
/**
|
||||
|
||||
@@ -310,6 +310,7 @@ public abstract class AbsSpinner extends AdapterView<SpinnerAdapter> {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
abstract void layout(int delta, boolean animate);
|
||||
|
||||
@Override
|
||||
|
||||
@@ -200,6 +200,7 @@ public abstract class Image implements AutoCloseable {
|
||||
* @return The window transformation that needs to be applied for this frame.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract int getTransform();
|
||||
|
||||
/**
|
||||
@@ -207,6 +208,7 @@ public abstract class Image implements AutoCloseable {
|
||||
* @return The scaling mode that needs to be applied for this frame.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract int getScalingMode();
|
||||
|
||||
/**
|
||||
|
||||
@@ -680,6 +680,7 @@ public abstract class InCallService extends Service {
|
||||
public static abstract class VideoCall {
|
||||
|
||||
/** @hide */
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void destroy();
|
||||
|
||||
/**
|
||||
|
||||
@@ -98,12 +98,14 @@ public abstract class CellLocation {
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract void fillInNotifierBundle(Bundle bundle);
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
@UnsupportedAppUsage
|
||||
public abstract boolean isEmpty();
|
||||
|
||||
@@ -111,6 +113,7 @@ public abstract class CellLocation {
|
||||
* Invalidate this object. The location area code and the cell id are set to -1.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract void setStateInvalid();
|
||||
|
||||
/**
|
||||
|
||||
@@ -509,6 +509,7 @@ public abstract class ImsFeature {
|
||||
* @return true if the capability is enabled, false otherwise.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
public abstract boolean queryCapabilityConfiguration(int capability, int radioTech);
|
||||
|
||||
/**
|
||||
@@ -547,5 +548,6 @@ public abstract class ImsFeature {
|
||||
* @return Binder instance that the framework will use to communicate with this feature.
|
||||
* @hide
|
||||
*/
|
||||
@SuppressWarnings("HiddenAbstractMethod")
|
||||
protected abstract IInterface getBinder();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user