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

Commit 94f8e738 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5781865 from 46b82fd3 to qt-c2f2-release

Change-Id: Ida5e974abcd32891cda02de003605e782f4198cd
parents 32095db9 46b82fd3
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -119,17 +119,6 @@ public abstract class ActivityManagerInternal {
     */
    public abstract void setHasOverlayUi(int pid, boolean hasOverlayUi);

    /**
     * Sets if the given pid is currently running a remote animation, which is taken a signal for
     * determining oom adjustment and scheduling behavior.
     *
     * @param pid The pid we are setting overlay UI for.
     * @param runningRemoteAnimation True if the process is running a remote animation, false
     *                               otherwise.
     * @see RemoteAnimationAdapter
     */
    public abstract void setRunningRemoteAnimation(int pid, boolean runningRemoteAnimation);

    /**
     * Called after the network policy rules are updated by
     * {@link com.android.server.net.NetworkPolicyManagerService} for a specific {@param uid} and
+14 −0
Original line number Diff line number Diff line
@@ -337,6 +337,20 @@ public final class DeviceConfig {
        String KEY_SYSTEM_GESTURES_EXCLUDED_BY_PRE_Q_STICKY_IMMERSIVE =
                "system_gestures_excluded_by_pre_q_sticky_immersive";

        /**
         * The minimum duration between gesture exclusion logging for a given window in
         * milliseconds.
         *
         * Events that happen in-between will be silently dropped.
         *
         * A non-positive value disables logging.
         *
         * @see android.provider.DeviceConfig#NAMESPACE_WINDOW_MANAGER
         * @hide
         */
        String KEY_SYSTEM_GESTURE_EXCLUSION_LOG_DEBOUNCE_MILLIS =
                "system_gesture_exclusion_log_debounce_millis";

        /**
         * Key for controlling which packages are explicitly blocked from running at refresh rates
         * higher than 60hz.
+9 −2
Original line number Diff line number Diff line
@@ -28,7 +28,14 @@ oneway interface ISystemGestureExclusionListener {
     * Called when the system gesture exclusion for the given display changed.
     * @param displayId the display whose system gesture exclusion changed
     * @param systemGestureExclusion a {@code Region} where the app would like priority over the
     *                               system gestures, in display coordinates.
     *                               system gestures, in display coordinates. Certain restrictions
     *                               might be applied such that apps don't get all the exclusions
     *                               they request.
     * @param systemGestureExclusionUnrestricted a {@code Region} where the app would like priority
     *                               over the system gestures, in display coordinates, without
     *                               any restrictions applied. Null if no restrictions have been
     *                               applied.
     */
    void onSystemGestureExclusionChanged(int displayId, in Region systemGestureExclusion);
    void onSystemGestureExclusionChanged(int displayId, in Region systemGestureExclusion,
            in Region systemGestureExclusionUnrestricted);
}
 No newline at end of file
+11 −2
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ public class RemoteAnimationAdapter implements Parcelable {

    /** @see #getCallingPid */
    private int mCallingPid;
    private int mCallingUid;

    /**
     * @param runner The interface that gets notified when we actually need to start the animation.
@@ -103,10 +104,11 @@ public class RemoteAnimationAdapter implements Parcelable {
    }

    /**
     * To be called by system_server to keep track which pid is running this animation.
     * To be called by system_server to keep track which pid and uid is running this animation.
     */
    public void setCallingPid(int pid) {
    public void setCallingPidUid(int pid, int uid) {
        mCallingPid = pid;
        mCallingUid = uid;
    }

    /**
@@ -116,6 +118,13 @@ public class RemoteAnimationAdapter implements Parcelable {
        return mCallingPid;
    }

    /**
     * @return The uid of the process running the animation.
     */
    public int getCallingUid() {
        return mCallingUid;
    }

    @Override
    public int describeContents() {
        return 0;
+2 −2
Original line number Diff line number Diff line
@@ -118,9 +118,9 @@ public class RemoteAnimationDefinition implements Parcelable {
     * To be called by system_server to keep track which pid is running the remote animations inside
     * this definition.
     */
    public void setCallingPid(int pid) {
    public void setCallingPidUid(int pid, int uid) {
        for (int i = mTransitionAnimationMap.size() - 1; i >= 0; i--) {
            mTransitionAnimationMap.valueAt(i).adapter.setCallingPid(pid);
            mTransitionAnimationMap.valueAt(i).adapter.setCallingPidUid(pid, uid);
        }
    }

Loading