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

Commit 8341514b authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

[5/?] Reduce BroadcastQueue interface complexity.

Hide dispatch of updateUidReadyForBootCompletedBroadcastLocked()
as an implementation detail inside the broadcast stack.

This is a no-op change.

Bug: 243656033
Test: atest CtsContentTestCases:BroadcastReceiverTest
Change-Id: I7c02707787b8f24b2492fce0cb735ae230dfc615
parent 014a5be3
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -4954,10 +4954,6 @@ public class ActivityManagerService extends IActivityManager.Stub
            }
        }
        if (!badApp) {
            updateUidReadyForBootCompletedBroadcastLocked(app.uid);
        }
        // Check if a next-broadcast receiver is in this process...
        if (!badApp) {
            try {
@@ -13072,12 +13068,6 @@ public class ActivityManagerService extends IActivityManager.Stub
        }
    }
    void updateUidReadyForBootCompletedBroadcastLocked(int uid) {
        for (BroadcastQueue queue : mBroadcastQueues) {
            queue.updateUidReadyForBootCompletedBroadcastLocked(uid);
        }
    }
    /**
     * @deprecated Use {@link #registerReceiverWithFeature}
     */
+0 −2
Original line number Diff line number Diff line
@@ -75,8 +75,6 @@ public abstract class BroadcastQueue {
     */
    public abstract void enqueueBroadcastLocked(BroadcastRecord r);

    public abstract void updateUidReadyForBootCompletedBroadcastLocked(int uid);

    public abstract BroadcastRecord getMatchingOrderedReceiver(IBinder receiver);

    /**
+2 −0
Original line number Diff line number Diff line
@@ -424,6 +424,8 @@ public class BroadcastQueueImpl extends BroadcastQueue {
    }

    public boolean onApplicationAttachedLocked(ProcessRecord app) {
        updateUidReadyForBootCompletedBroadcastLocked(app.uid);

        if (mPendingBroadcast != null && mPendingBroadcast.curApp == app) {
            return sendPendingBroadcastsLocked(app);
        } else {