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

Commit 995f62d8 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Cleanup flag com.android.server.am.avoid_repeated_bcast_re_enqueues.

Fixes: 409604606
Test: n/a
Flag: EXEMPT removing com.android.server.am.avoid_repeated_bcast_re_enqueues
Change-Id: I3821855d520bb60d1a63f7fd7340e62155451030
parent 1d4abc78
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -729,10 +729,6 @@ class BroadcastProcessQueue {
    }

    public boolean wasActiveBroadcastReEnqueued() {
        // If the flag is not enabled, treat as if the broadcast was never re-enqueued.
        if (!Flags.avoidRepeatedBcastReEnqueues()) {
            return false;
        }
        return mActiveReEnqueued;
    }

+0 −11
Original line number Diff line number Diff line
@@ -37,17 +37,6 @@ flag {
    is_fixed_read_only: true
}

flag {
    namespace: "backstage_power"
    name: "avoid_repeated_bcast_re_enqueues"
    description: "Avoid re-enqueueing a broadcast repeatedly"
    bug: "319225224"
    is_fixed_read_only: true
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
    name: "skip_unimportant_connections"
    namespace: "backstage_power"
+0 −3
Original line number Diff line number Diff line
@@ -931,7 +931,6 @@ public class BroadcastQueueTest extends BaseBroadcastQueueTest {
     * responds with {@link DeadObjectException} even after restarting.
     */
    @Test
    @RequiresFlagsEnabled(Flags.FLAG_AVOID_REPEATED_BCAST_RE_ENQUEUES)
    public void testRepeatedDead_Manifest() throws Exception {
        final ProcessRecord callerApp = makeActiveProcessRecord(PACKAGE_RED);
        mNewProcessBehaviors.put(PACKAGE_GREEN, ProcessBehavior.DEAD);
@@ -1145,7 +1144,6 @@ public class BroadcastQueueTest extends BaseBroadcastQueueTest {
     * it doesn't get stuck.
     */
    @Test
    @RequiresFlagsEnabled(Flags.FLAG_AVOID_REPEATED_BCAST_RE_ENQUEUES)
    public void testRepeatedKillWithoutNotify() throws Exception {
        final ProcessRecord callerApp = makeActiveProcessRecord(PACKAGE_RED);
        final ProcessRecord receiverBlueApp = makeActiveProcessRecord(PACKAGE_BLUE);
@@ -2339,7 +2337,6 @@ public class BroadcastQueueTest extends BaseBroadcastQueueTest {
     * Verify that we skip broadcasts at enqueue if {@link BroadcastSkipPolicy} decides it
     * should be skipped.
     */
    @EnableFlags(Flags.FLAG_AVOID_NOTE_OP_AT_ENQUEUE)
    @Test
    public void testSkipPolicy_atEnqueueTime() throws Exception {
        final ProcessRecord callerApp = makeActiveProcessRecord(PACKAGE_RED);