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

Commit f5f80578 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.

Test: m
Flag: EXEMPT refactor
Change-Id: I3d210caa7b15c24eaf523207e4905b20a2894260
parent b6c01eeb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ jint getBinderFreezeInfo(JNIEnv *env, jobject, jint pid) {

bool isFreezerSupported(JNIEnv *env, jclass) {
    std::string path;
    if (!getAttributePathForTask("FreezerState", getpid(), &path)) {
    if (!CgroupGetAttributePathForTask("FreezerState", getpid(), &path)) {
        ALOGI("No attribute for FreezerState");
        return false;
    }