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

Commit 06cca15d authored by Danae Savvidi's avatar Danae Savvidi
Browse files

Remove isUidCached unused method

Plus some typo fixes.

Bug: 433229480
Flag: NONE since not modifying anything related to a flag
Test: atest DisplayServiceTests
Change-Id: I41bdc820f5d3d94da4f399a1ec5ed08efeed2538
parent 6280ac14
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1683,7 +1683,7 @@ public final class DisplayManager {
    }

    /**
     * Returns the minimum brightness curve, which guarantess that any brightness curve that dips
     * Returns the minimum brightness curve, which guarantees that any brightness curve that dips
     * below it is rejected by the system.
     * This prevent auto-brightness from setting the screen so dark as to prevent the user from
     * resetting or disabling it, and maps lux to the absolute minimum nits that are still readable
@@ -2232,7 +2232,7 @@ public final class DisplayManager {
                "fixed_refresh_rate_high_ambient_brightness_thresholds";

        /**
         * Key for refresh rate when the device is in high brightness mode for sunlight visility.
         * Key for refresh rate when the device is in high brightness mode for sunlight visibility.
         *
         * @see android.provider.DeviceConfig#NAMESPACE_DISPLAY_MANAGER
         * @see android.R.integer#config_defaultRefreshRateInHbmSunlight
+1 −11
Original line number Diff line number Diff line
@@ -519,7 +519,7 @@ public final class DisplayManagerService extends SystemService {

    private final Injector mInjector;

    // The minimum brightness curve, which guarantess that any brightness curve that dips below it
    // The minimum brightness curve, which guarantees that any brightness curve that dips below it
    // is rejected by the system.
    private final Curve mMinimumBrightnessCurve;
    private final Spline mMinimumBrightnessSpline;
@@ -3685,16 +3685,6 @@ public final class DisplayManagerService extends SystemService {
        }
    }

    // Check if the target app is in cached mode
    private boolean isUidCached(int uid) {
        if (mActivityManagerInternal == null || uid < FIRST_APPLICATION_UID) {
            return false;
        }
        int procState = mActivityManagerInternal.getUidProcessState(uid);
        int importance = ActivityManager.RunningAppProcessInfo.procStateToImportance(procState);
        return importance >= IMPORTANCE_CACHED;
    }

    // Runs on Handler thread.
    // Delivers display event notifications to callbacks.
    private void deliverDisplayEvent(int displayId, ArraySet<Integer> uids,