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

Commit 4a5813cd authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5845810 from 2048ba8f to qt-qpr1-release

Change-Id: Iff10f2aa3ff0a2e910a0a4028ee8549034d8003a
parents c24353d6 2048ba8f
Loading
Loading
Loading
Loading
+32 −3
Original line number Diff line number Diff line
@@ -503,9 +503,38 @@ public class LauncherApps {
    }

    /**
     * Retrieves a list of launchable activities that match {@link Intent#ACTION_MAIN} and
     * {@link Intent#CATEGORY_LAUNCHER}, for a specified user. Result may include
     * synthesized activities like app details Activity injected by system.
     * Retrieves a list of activities that specify {@link Intent#ACTION_MAIN} and
     * {@link Intent#CATEGORY_LAUNCHER}, across all apps, for a specified user. If an app doesn't
     * have any activities that specify <code>ACTION_MAIN</code> or <code>CATEGORY_LAUNCHER</code>,
     * the system adds a synthesized activity to the list. This synthesized activity represents the
     * app's details page within system settings.
     *
     * <p class="note"><b>Note: </b>It's possible for system apps, such as app stores, to prevent
     * the system from adding synthesized activities to the returned list.</p>
     *
     * <p>As of <a href="/reference/android/os/Build.VERSION_CODES.html#Q">Android Q</a>, at least
     * one of the app's activities or synthesized activities appears in the returned list unless the
     * app satisfies at least one of the following conditions:</p>
     * <ul>
     * <li>The app is a system app.</li>
     * <li>The app doesn't request any <a href="/guide/topics/permissions/overview">permissions</a>.
     * </li>
     * <li>The <code>&lt;application&gt;</code> tag in the app's manifest doesn't contain any child
     * elements that represent
     * <a href="/guide/components/fundamentals#DeclaringComponents">app components</a>.</li>
     * </ul>
     *
     * <p>Additionally, the system hides synthesized activities for some or all apps in the
     * following enterprise-related cases:</p>
     * <ul>
     * <li>If the device is a
     * <a href="https://developers.google.com/android/work/overview#company-owned-devices-for-knowledge-workers">fully
     * managed device</a>, no synthesized activities for any app appear in the returned list.</li>
     * <li>If the current user has a
     * <a href="https://developers.google.com/android/work/overview#employee-owned-devices-byod">work
     * profile</a>, no synthesized activities for the user's work apps appear in the returned
     * list.</li>
     * </ul>
     *
     * @param packageName The specific package to query. If null, it checks all installed packages
     *            in the profile.
+3 −3
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ public abstract class VibrationEffect implements Parcelable {
    public static final int MAX_AMPLITUDE = 255;

    /**
     * A click effect.
     * A click effect. Use this effect as a baseline, as it's the most common type of click effect.
     *
     * @see #get(int)
     */
@@ -67,7 +67,7 @@ public abstract class VibrationEffect implements Parcelable {
    public static final int EFFECT_DOUBLE_CLICK = Effect.DOUBLE_CLICK;

    /**
     * A tick effect.
     * A tick effect. This effect is less strong compared to {@link #EFFECT_CLICK}.
     * @see #get(int)
     */
    public static final int EFFECT_TICK = Effect.TICK;
@@ -89,7 +89,7 @@ public abstract class VibrationEffect implements Parcelable {
    public static final int EFFECT_POP = Effect.POP;

    /**
     * A heavy click effect.
     * A heavy click effect. This effect is stronger than {@link #EFFECT_CLICK}.
     * @see #get(int)
     */
    public static final int EFFECT_HEAVY_CLICK = Effect.HEAVY_CLICK;
+1 −6
Original line number Diff line number Diff line
@@ -14423,13 +14423,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
        notifyAppearedOrDisappearedForContentCaptureIfNeeded(isVisible);
        // Update the gesture exclusion rects only if they are set
        final ListenerInfo info = getListenerInfo();
        if (info != null && info.mSystemGestureExclusionRects != null) {
        updateSystemGestureExclusionRects();
    }
    }
    /**
     * Returns the current visibility of the window this view is attached to
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ public class GradientDrawable extends Drawable {
    }

    public GradientDrawable() {
        this(new GradientState(Orientation.TOP_BOTTOM, null), null);
        this(new GradientState(Orientation.LEFT_RIGHT, null), null);
    }

    /**
+19 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import static android.content.pm.PackageManager.PERMISSION_GRANTED;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.UserIdInt;
import android.app.prediction.AppPredictionContext;
import android.app.prediction.AppPredictionSessionId;
import android.app.prediction.AppTargetEvent;
@@ -61,7 +62,8 @@ public class AppPredictionManagerService extends

    public AppPredictionManagerService(Context context) {
        super(context, new FrameworkResourcesServiceNameResolver(context,
                com.android.internal.R.string.config_defaultAppPredictionService), null);
                com.android.internal.R.string.config_defaultAppPredictionService), null,
                PACKAGE_UPDATE_POLICY_NO_REFRESH | PACKAGE_RESTART_POLICY_NO_REFRESH);
        mActivityTaskManagerInternal = LocalServices.getService(ActivityTaskManagerInternal.class);
    }

@@ -80,6 +82,22 @@ public class AppPredictionManagerService extends
        getContext().enforceCallingPermission(MANAGE_APP_PREDICTIONS, TAG);
    }

    @Override // from AbstractMasterSystemService
    protected void onServicePackageUpdatedLocked(@UserIdInt int userId) {
        final AppPredictionPerUserService service = peekServiceForUserLocked(userId);
        if (service != null) {
            service.onPackageUpdatedLocked();
        }
    }

    @Override // from AbstractMasterSystemService
    protected void onServicePackageRestartedLocked(@UserIdInt int userId) {
        final AppPredictionPerUserService service = peekServiceForUserLocked(userId);
        if (service != null) {
            service.onPackageRestartedLocked();
        }
    }

    @Override
    protected int getMaximumTemporaryServiceDurationMs() {
        return MAX_TEMP_SERVICE_DURATION_MS;
Loading