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

Commit 4eb855df authored by Greg Kaiser's avatar Greg Kaiser Committed by Android (Google) Code Review
Browse files

Merge "lmkd: Adjust some buffer sizes/checks" into main

parents ce9e6e1c 658478da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ public class LmkdConnection {
     * Used to hold the data for the statsd atoms logging
     * Must be in sync with statslog.h
     */
    private static final int LMKD_REPLY_MAX_SIZE = 222;
    private static final int LMKD_REPLY_MAX_SIZE = 214;

    // connection listener interface
    interface LmkdConnectionListener {
+4 −1
Original line number Diff line number Diff line
@@ -33,7 +33,10 @@ public final class LmkdStatsReporter {

    static final String TAG = TAG_WITH_CLASS_NAME ? "LmkdStatsReporter" : TAG_AM;

    public static final int KILL_OCCURRED_MSG_SIZE = 80;
    /**
     * This needs to be synced with statslog.h, minus MAX_TASKNAME_LEN.
     */
    public static final int KILL_OCCURRED_MSG_SIZE = 86;

    private static final int PRESSURE_AFTER_KILL = 0;
    private static final int NOT_RESPONDING = 1;