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

Commit ed3d6070 authored by Misha Wagner's avatar Misha Wagner Committed by Android (Google) Code Review
Browse files

Merge "Change the UID filter in KernelCpuThreadReader to only select UID 1000"

parents 447e2dad e2119341
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -103,10 +103,9 @@ public class KernelCpuThreadReader {


    /**
    /**
     * Default predicate for what UIDs to check for when getting processes. This filters to only
     * Default predicate for what UIDs to check for when getting processes. This filters to only
     * select system UIDs (1000-1999)
     * select UID 1000 (the {@code system} user)
     */
     */
    private static final Predicate<Integer> DEFAULT_UID_PREDICATE =
    private static final Predicate<Integer> DEFAULT_UID_PREDICATE = uid -> uid == 1000;
            uid -> 1000 <= uid && uid < 2000;


    /**
    /**
     * Do not report any threads that have a total CPU usage (across all frequencies) less than or
     * Do not report any threads that have a total CPU usage (across all frequencies) less than or