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

Commit e558dcfc authored by T.J. Mercier's avatar T.J. Mercier
Browse files

CachedAppOptimizer: Replace getAttributePathForTask with CgroupGetAttributePathForTask

getAttributePathForTask has always directly called
CgroupGetAttributePathForTask, and there is no reason for callers not to
use CgroupGetAttributePathForTask.

Change-Id: Ied86a1e13cd3cabbb288a5d63a73556a5559c935
Merged-In: I3d210caa7b15c24eaf523207e4905b20a2894260
parent c947e10e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -564,8 +564,8 @@ static jstring com_android_server_am_CachedAppOptimizer_getFreezerCheckPath(JNIE
                                                                            jobject clazz) {
    std::string path;

    if (!getAttributePathForTask("FreezerState", getpid(), &path)) {
        path = "";
    if (!CgroupGetAttributePathForTask("FreezerState", getpid(), &path)) {
        path.clear();
    }

    return env->NewStringUTF(path.c_str());