Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e86011d authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 12072601 from 8cd9a639 to 24Q4-release

Change-Id: Ib3164d6e3f23747f30cbc915e3de8be860b179c3
parents 39ca9870 8cd9a639
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -11394,7 +11394,7 @@ package android.content {
    field public static final String EXTRA_LOCALE_LIST = "android.intent.extra.LOCALE_LIST";
    field public static final String EXTRA_LOCAL_ONLY = "android.intent.extra.LOCAL_ONLY";
    field public static final String EXTRA_LOCUS_ID = "android.intent.extra.LOCUS_ID";
    field @FlaggedApi("android.service.chooser.enable_sharesheet_metadata_extra") public static final String EXTRA_METADATA_TEXT = "android.intent.extra.METADATA_TEXT";
    field public static final String EXTRA_METADATA_TEXT = "android.intent.extra.METADATA_TEXT";
    field public static final String EXTRA_MIME_TYPES = "android.intent.extra.MIME_TYPES";
    field public static final String EXTRA_NOT_UNKNOWN_SOURCE = "android.intent.extra.NOT_UNKNOWN_SOURCE";
    field public static final String EXTRA_ORIGINATING_URI = "android.intent.extra.ORIGINATING_URI";
@@ -11603,6 +11603,7 @@ package android.content {
    method public static android.content.IntentSender readIntentSenderOrNullFromParcel(android.os.Parcel);
    method public void sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler) throws android.content.IntentSender.SendIntentException;
    method public void sendIntent(android.content.Context, int, android.content.Intent, android.content.IntentSender.OnFinished, android.os.Handler, String) throws android.content.IntentSender.SendIntentException;
    method @FlaggedApi("com.android.window.flags.bal_send_intent_with_options") public void sendIntent(@Nullable android.content.Context, int, @Nullable android.content.Intent, @Nullable String, @Nullable android.os.Bundle, @Nullable java.util.concurrent.Executor, @Nullable android.content.IntentSender.OnFinished) throws android.content.IntentSender.SendIntentException;
    method public static void writeIntentSenderOrNullToParcel(android.content.IntentSender, android.os.Parcel);
    method public void writeToParcel(android.os.Parcel, int);
    field @NonNull public static final android.os.Parcelable.Creator<android.content.IntentSender> CREATOR;
+4 −0
Original line number Diff line number Diff line
@@ -2774,6 +2774,10 @@ public abstract class ContentProvider implements ContentInterface, ComponentCall
                        + " provider from user:" + mContext.getUserId());
            }
            if (userId != UserHandle.USER_CURRENT
                    // getUserIdFromAuthority can return USER_NULL when can't cast the userId to
                    // an int, which can cause high volume of binder calls.
                    && (!android.multiuser.Flags.fixGetUserPropertyCache()
                        || userId != UserHandle.USER_NULL)
                    && userId != mContext.getUserId()
                    // Since userId specified in content uri, the provider userId would be
                    // determined from it.
+0 −2
Original line number Diff line number Diff line
@@ -20,7 +20,6 @@ import static android.app.sdksandbox.SdkSandboxManager.ACTION_START_SANDBOXED_AC
import static android.content.ContentProvider.maybeAddUserId;
import static android.os.Flags.FLAG_ALLOW_PRIVATE_PROFILE;
import static android.security.Flags.FLAG_FRP_ENFORCEMENT;
import static android.service.chooser.Flags.FLAG_ENABLE_SHARESHEET_METADATA_EXTRA;
import android.Manifest;
import android.accessibilityservice.AccessibilityService;
@@ -6252,7 +6251,6 @@ public class Intent implements Parcelable, Cloneable {
     * <p>e.g. When sharing a photo, metadata could inform the user that location data is included
     * in the photo they are sharing.</p>
     */
    @FlaggedApi(FLAG_ENABLE_SHARESHEET_METADATA_EXTRA)
    public static final String EXTRA_METADATA_TEXT = "android.intent.extra.METADATA_TEXT";
    /**
+44 −39
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package android.content;

import android.annotation.FlaggedApi;
import android.annotation.Nullable;
import android.app.ActivityManager;
import android.app.ActivityManager.PendingIntentInfo;
@@ -32,6 +33,10 @@ import android.os.RemoteException;
import android.os.UserHandle;
import android.util.AndroidException;

import com.android.window.flags.Flags;

import java.util.concurrent.Executor;

/**
 * A description of an Intent and target action to perform with it.
 * The returned object can be
@@ -114,15 +119,15 @@ public class IntentSender implements Parcelable {
            implements Runnable {
        private final IntentSender mIntentSender;
        private final OnFinished mWho;
        private final Handler mHandler;
        private final Executor mExecutor;
        private Intent mIntent;
        private int mResultCode;
        private String mResultData;
        private Bundle mResultExtras;
        FinishedDispatcher(IntentSender pi, OnFinished who, Handler handler) {
        FinishedDispatcher(IntentSender pi, OnFinished who, Executor executor) {
            mIntentSender = pi;
            mWho = who;
            mHandler = handler;
            mExecutor = executor;
        }
        public void performReceive(Intent intent, int resultCode, String data,
                Bundle extras, boolean serialized, boolean sticky, int sendingUser) {
@@ -130,10 +135,10 @@ public class IntentSender implements Parcelable {
            mResultCode = resultCode;
            mResultData = data;
            mResultExtras = extras;
            if (mHandler == null) {
            if (mExecutor == null) {
                run();
            } else {
                mHandler.post(this);
                mExecutor.execute(this);
            }
        }
        public void run() {
@@ -147,16 +152,16 @@ public class IntentSender implements Parcelable {
     * caller to specify information about the Intent to use and be notified
     * when the send has completed.
     *
     * @param context The Context of the caller.  This may be null if
     * <var>intent</var> is also null.
     * @param context The Context of the caller.  This may be {@code null} if
     * <var>intent</var> is also {@code null}.
     * @param code Result code to supply back to the IntentSender's target.
     * @param intent Additional Intent data.  See {@link Intent#fillIn
     * Intent.fillIn()} for information on how this is applied to the
     * original Intent.  Use null to not modify the original Intent.
     * original Intent.  Use {@code null} to not modify the original Intent.
     * @param onFinished The object to call back on when the send has
     * completed, or null for no callback.
     * completed, or {@code null} for no callback.
     * @param handler Handler identifying the thread on which the callback
     * should happen.  If null, the callback will happen from the thread
     * should happen.  If {@code null}, the callback will happen from the thread
     * pool of the process.
     *
     *
@@ -165,8 +170,8 @@ public class IntentSender implements Parcelable {
     */
    public void sendIntent(Context context, int code, Intent intent,
            OnFinished onFinished, Handler handler) throws SendIntentException {
        sendIntent(context, code, intent, onFinished, handler, null,
                SEND_INTENT_DEFAULT_OPTIONS);
        sendIntent(context, code, intent, null, SEND_INTENT_DEFAULT_OPTIONS,
                handler == null ? null : handler::post, onFinished);
    }

    /**
@@ -174,22 +179,22 @@ public class IntentSender implements Parcelable {
     * caller to specify information about the Intent to use and be notified
     * when the send has completed.
     *
     * @param context The Context of the caller.  This may be null if
     * <var>intent</var> is also null.
     * @param context The Context of the caller.  This may be {@code null} if
     * <var>intent</var> is also {@code null}.
     * @param code Result code to supply back to the IntentSender's target.
     * @param intent Additional Intent data.  See {@link Intent#fillIn
     * Intent.fillIn()} for information on how this is applied to the
     * original Intent.  Use null to not modify the original Intent.
     * original Intent.  Use {@code null} to not modify the original Intent.
     * @param onFinished The object to call back on when the send has
     * completed, or null for no callback.
     * completed, or {@code null} for no callback.
     * @param handler Handler identifying the thread on which the callback
     * should happen.  If null, the callback will happen from the thread
     * should happen.  If {@code null}, the callback will happen from the thread
     * pool of the process.
     * @param requiredPermission Name of permission that a recipient of the PendingIntent
     * is required to hold.  This is only valid for broadcast intents, and
     * corresponds to the permission argument in
     * {@link Context#sendBroadcast(Intent, String) Context.sendOrderedBroadcast(Intent, String)}.
     * If null, no permission is required.
     * If {@code null}, no permission is required.
     *
     *
     * @throws SendIntentException Throws CanceledIntentException if the IntentSender
@@ -198,8 +203,8 @@ public class IntentSender implements Parcelable {
    public void sendIntent(Context context, int code, Intent intent,
            OnFinished onFinished, Handler handler, String requiredPermission)
            throws SendIntentException {
        sendIntent(context, code, intent, onFinished, handler, requiredPermission,
                SEND_INTENT_DEFAULT_OPTIONS);
        sendIntent(context, code, intent, requiredPermission, SEND_INTENT_DEFAULT_OPTIONS,
                handler == null ? null : handler::post, onFinished);
    }

    /**
@@ -207,32 +212,32 @@ public class IntentSender implements Parcelable {
     * caller to specify information about the Intent to use and be notified
     * when the send has completed.
     *
     * @param context The Context of the caller.  This may be null if
     * <var>intent</var> is also null.
     * @param context The Context of the caller.  This may be {@code null} if
     * <var>intent</var> is also {@code null}.
     * @param code Result code to supply back to the IntentSender's target.
     * @param intent Additional Intent data.  See {@link Intent#fillIn
     * Intent.fillIn()} for information on how this is applied to the
     * original Intent.  Use null to not modify the original Intent.
     * original Intent.  Use {@code null} to not modify the original Intent.
     * @param onFinished The object to call back on when the send has
     * completed, or null for no callback.
     * @param handler Handler identifying the thread on which the callback
     * should happen.  If null, the callback will happen from the thread
     * completed, or {@code null} for no callback.
     * @param executor Executor identifying the thread on which the callback
     * should happen.  If {@code null}, the callback will happen from the thread
     * pool of the process.
     * @param requiredPermission Name of permission that a recipient of the PendingIntent
     * is required to hold.  This is only valid for broadcast intents, and
     * corresponds to the permission argument in
     * {@link Context#sendBroadcast(Intent, String) Context.sendOrderedBroadcast(Intent, String)}.
     * If null, no permission is required.
     * If {@code null}, no permission is required.
     * @param options Additional options the caller would like to provide to modify the sending
     * behavior.  May be built from an {@link ActivityOptions} to apply to an activity start.
     * behavior.  Typically built from using {@link ActivityOptions} to apply to an activity start.
     *
     * @throws SendIntentException Throws CanceledIntentException if the IntentSender
     * is no longer allowing more intents to be sent through it.
     * @hide
     */
    public void sendIntent(Context context, int code, Intent intent,
            OnFinished onFinished, Handler handler, String requiredPermission,
            @Nullable Bundle options)
    @FlaggedApi(Flags.FLAG_BAL_SEND_INTENT_WITH_OPTIONS)
    public void sendIntent(@Nullable Context context, int code, @Nullable Intent intent,
            @Nullable String requiredPermission, @Nullable Bundle options,
            @Nullable Executor executor, @Nullable OnFinished onFinished)
            throws SendIntentException {
        try {
            String resolvedType = intent != null ?
@@ -243,7 +248,7 @@ public class IntentSender implements Parcelable {
            int res = ActivityManager.getService().sendIntentSender(app, mTarget, mWhitelistToken,
                    code, intent, resolvedType,
                    onFinished != null
                            ? new FinishedDispatcher(this, onFinished, handler)
                            ? new FinishedDispatcher(this, onFinished, executor)
                            : null,
                    requiredPermission, options);
            if (res < 0) {
@@ -268,7 +273,7 @@ public class IntentSender implements Parcelable {
     * sending the Intent.  The returned string is supplied by the system, so
     * that an application can not spoof its package.
     *
     * @return The package name of the PendingIntent, or null if there is
     * @return The package name of the PendingIntent, or {@code null} if there is
     * none associated with it.
     */
    public String getCreatorPackage() {
@@ -296,7 +301,7 @@ public class IntentSender implements Parcelable {
     * {@link android.os.Process#myUserHandle() Process.myUserHandle()} for
     * more explanation of user handles.
     *
     * @return The user handle of the PendingIntent, or null if there is
     * @return The user handle of the PendingIntent,  {@code null} if there is
     * none associated with it.
     */
    public UserHandle getCreatorUserHandle() {
@@ -355,11 +360,11 @@ public class IntentSender implements Parcelable {
    };

    /**
     * Convenience function for writing either a IntentSender or null pointer to
     * Convenience function for writing either a IntentSender or {@code null} pointer to
     * a Parcel.  You must use this with {@link #readIntentSenderOrNullFromParcel}
     * for later reading it.
     *
     * @param sender The IntentSender to write, or null.
     * @param sender The IntentSender to write, or {@code null}.
     * @param out Where to write the IntentSender.
     */
    public static void writeIntentSenderOrNullToParcel(IntentSender sender,
@@ -369,13 +374,13 @@ public class IntentSender implements Parcelable {
    }

    /**
     * Convenience function for reading either a Messenger or null pointer from
     * Convenience function for reading either a Messenger or {@code null} pointer from
     * a Parcel.  You must have previously written the Messenger with
     * {@link #writeIntentSenderOrNullToParcel}.
     *
     * @param in The Parcel containing the written Messenger.
     *
     * @return Returns the Messenger read from the Parcel, or null if null had
     * @return Returns the Messenger read from the Parcel, or @code null} if @code null} had
     * been written.
     */
    public static IntentSender readIntentSenderOrNullFromParcel(Parcel in) {
+3 −0
Original line number Diff line number Diff line
@@ -91,6 +91,9 @@ public abstract class ShortcutServiceInternal {
    public abstract void addShortcutChangeCallback(
            @NonNull LauncherApps.ShortcutChangeCallback callback);

    public abstract void removeShortcutChangeCallback(
            @NonNull LauncherApps.ShortcutChangeCallback callback);

    public abstract int getShortcutIconResId(int launcherUserId, @NonNull String callingPackage,
            @NonNull String packageName, @NonNull String shortcutId, int userId);

Loading