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

Commit 83674a10 authored by Varun Shah's avatar Varun Shah
Browse files

Remove flag for rate limiting getMemoryInfo.

The flag has now been rolled out in the release.

Fixes: 409610340
Test: n/a
Flag: EXEMPT removing android.app.rate_limit_get_memory_info
Change-Id: I0c5dbdd2e9bc542ea9d7813ae722fbeb19a4159a
parent 18c83a1b
Loading
Loading
Loading
Loading
+6 −10
Original line number Original line Diff line number Diff line
@@ -3520,7 +3520,6 @@ public class ActivityManager {
     * manage its memory.
     * manage its memory.
     */
     */
    public void getMemoryInfo(MemoryInfo outInfo) {
    public void getMemoryInfo(MemoryInfo outInfo) {
        if (Flags.rateLimitGetMemoryInfo()) {
        synchronized (mMemoryInfoCache) {
        synchronized (mMemoryInfoCache) {
            mMemoryInfoCache.get(() -> {
            mMemoryInfoCache.get(() -> {
                getMemoryInfoInternal(mRateLimitedMemInfo);
                getMemoryInfoInternal(mRateLimitedMemInfo);
@@ -3528,9 +3527,6 @@ public class ActivityManager {
            });
            });
            mRateLimitedMemInfo.copyTo(outInfo);
            mRateLimitedMemInfo.copyTo(outInfo);
        }
        }
        } else {
            getMemoryInfoInternal(outInfo);
        }
    }
    }


    private void getMemoryInfoInternal(MemoryInfo outInfo) {
    private void getMemoryInfoInternal(MemoryInfo outInfo) {
+0 −11
Original line number Original line Diff line number Diff line
@@ -116,17 +116,6 @@ flag {
     }
     }
}
}


flag {
     namespace: "backstage_power"
     name: "rate_limit_get_memory_info"
     description: "Rate limit calls to getMemoryInfo using a cache"
     is_fixed_read_only: true
     bug: "364312431"
     metadata {
         purpose: PURPOSE_BUGFIX
     }
}

flag {
flag {
     namespace: "backstage_power"
     namespace: "backstage_power"
     name: "use_sticky_bcast_cache"
     name: "use_sticky_bcast_cache"