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

Commit 497f718c authored by T.J. Mercier's avatar T.J. Mercier Committed by Cherrypicker Worker
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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f5f805789787ad28a8334fdf9aa1c2e1c2958a27)
Merged-In: I3d210caa7b15c24eaf523207e4905b20a2894260
Change-Id: I3d210caa7b15c24eaf523207e4905b20a2894260
parent 3c8775b6
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;
    }