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

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

Snap for 12273892 from 79675a50 to 24Q4-release

Change-Id: I08177a9d1fc29313fdc62aa32fe701afacbf2ae4
parents 6ea81639 79675a50
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3676,6 +3676,7 @@ package android.view {

  public static final class Display.Mode implements android.os.Parcelable {
    ctor public Display.Mode(int, int, float);
    method public boolean isSynthetic();
    method public boolean matches(int, int, float);
  }

+14 −0
Original line number Diff line number Diff line
@@ -233,6 +233,10 @@ public class ActivityManager {
    private static final RateLimitingCache<List<RunningAppProcessInfo>> mRunningProcessesCache =
            new RateLimitingCache<>(10, 4);

    /** Rate-Limiting Cache that allows no more than 200 calls to the service per second. */
    private static final RateLimitingCache<List<ProcessErrorStateInfo>> mErrorProcessesCache =
            new RateLimitingCache<>(10, 2);

    /**
     * Map of callbacks that have registered for {@link UidFrozenStateChanged} events.
     * Will be called when a Uid has become frozen or unfrozen.
@@ -3685,6 +3689,16 @@ public class ActivityManager {
     * specified.
     */
    public List<ProcessErrorStateInfo> getProcessesInErrorState() {
        if (Flags.rateLimitGetProcessesInErrorState()) {
            return mErrorProcessesCache.get(() -> {
                return getProcessesInErrorStateInternal();
            });
        } else {
            return getProcessesInErrorStateInternal();
        }
    }

    private List<ProcessErrorStateInfo> getProcessesInErrorStateInternal() {
        try {
            return getService().getProcessesInErrorState();
        } catch (RemoteException e) {
+11 −0
Original line number Diff line number Diff line
@@ -93,3 +93,14 @@ flag {
     }
}

flag {
     namespace: "backstage_power"
     name: "rate_limit_get_processes_in_error_state"
     description: "Rate limit calls to getProcessesInErrorState using a cache"
     is_fixed_read_only: true
     bug: "361146083"
     metadata {
         purpose: PURPOSE_BUGFIX
     }
}
+9 −1
Original line number Diff line number Diff line
@@ -3767,7 +3767,7 @@ public class Intent implements Parcelable, Cloneable {
     * <p>The Intent will have the following extra value:</p>
     * <ul>
     *   <li><em>{@link android.content.Intent#EXTRA_PHONE_NUMBER}</em> -
     *       the phone number originally intended to be dialed.</li>
     *       the phone number dialed.</li>
     * </ul>
     * <p class="note">Starting in Android 15, this broadcast is no longer sent as an ordered
     * broadcast.  The <code>resultData</code> no longer has any effect and will not determine the
@@ -3800,6 +3800,14 @@ public class Intent implements Parcelable, Cloneable {
     * {@link android.Manifest.permission#PROCESS_OUTGOING_CALLS}
     * permission to receive this Intent.</p>
     *
     * <p class="note">Starting in {@link Build.VERSION_CODES#VANILLA_ICE_CREAM}, this broadcast is
     * no longer sent as an ordered broadcast, and does not allow activity launches.  This means
     * that receivers may no longer change the phone number for the outgoing call, or cancel the
     * outgoing call.  This functionality is only possible using the
     * {@link android.telecom.CallRedirectionService} API.  Although background receivers are
     * woken up to handle this intent, no guarantee is made as to the timeliness of the broadcast.
     * </p>
     *
     * <p class="note">This is a protected intent that can only be sent
     * by the system.
     *
+1 −9
Original line number Diff line number Diff line
@@ -80,7 +80,6 @@ import java.util.Set;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicBoolean;

/**
@@ -355,14 +354,7 @@ public class CameraDeviceImpl extends CameraDevice
        mCameraId = cameraId;
        if (Flags.singleThreadExecutor()) {
            mDeviceCallback = new ClientStateCallback(executor, callback);
            mDeviceExecutor = Executors.newSingleThreadExecutor(new ThreadFactory() {
                @Override
                public Thread newThread(Runnable r) {
                    Thread thread = Executors.defaultThreadFactory().newThread(r);
                    thread.setName("CameraDeviceExecutor");
                    return thread;
                }
            });
            mDeviceExecutor = Executors.newSingleThreadExecutor();
        } else {
            mDeviceCallback = callback;
            mDeviceExecutor = executor;
Loading