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

Commit c322b513 authored by Chih-Yu Huang's avatar Chih-Yu Huang
Browse files

psc: Remove unused methods at ProcessRecordInternal

Bug: 439720579
Test: m services.core
Test: atest MockingOomAdjusterTests OomAdjusterTests
Test: atest FrameworksServicesTestsRavenwood_ProcessStateController
Flag: EXEMPT PURE_REFACTOR
Change-Id: Ib77a4a51027bc51660e9d418d9eb99005011482d
parent 17e31a61
Loading
Loading
Loading
Loading
+0 −26
Original line number Diff line number Diff line
@@ -1256,11 +1256,6 @@ public abstract class ProcessRecordInternal {
        return mCurAdj >= CACHED_APP_MIN_ADJ;
    }

    @GuardedBy("mServiceLock")
    public int getCacheOomRankerUseCount() {
        return mCacheOomRankerUseCount;
    }

    @GuardedBy("mServiceLock")
    public void setSystemNoUi(boolean systemNoUi) {
        mSystemNoUi = systemNoUi;
@@ -1717,27 +1712,6 @@ public abstract class ProcessRecordInternal {
        return mLastCachedTime;
    }

    /**
     * Sets the process memory usage (RSS) and the time it was updated for CacheOomRanker.
     *
     * @param rss The RSS memory usage in bytes.
     * @param rssTimeMs The time in milliseconds since boot when RSS was updated.
     */
    public void setCacheOomRankerRss(long rss, long rssTimeMs) {
        mCacheOomRankerRss = rss;
        mCacheOomRankerRssTimeMs = rssTimeMs;
    }

    @GuardedBy("mServiceLock")
    public long getCacheOomRankerRss() {
        return mCacheOomRankerRss;
    }

    @GuardedBy("mServiceLock")
    public long getCacheOomRankerRssTimeMs() {
        return mCacheOomRankerRssTimeMs;
    }

    /**
     * Lazily initiates and returns the track name for tracing.
     */