Merge "CachedAppOptimizer: use new cgroup api for freezer path" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8df97d53ff
@@ -265,7 +265,13 @@ static jint com_android_server_am_CachedAppOptimizer_getBinderFreezeInfo(JNIEnv
|
|||||||
|
|
||||||
static jstring com_android_server_am_CachedAppOptimizer_getFreezerCheckPath(JNIEnv* env,
|
static jstring com_android_server_am_CachedAppOptimizer_getFreezerCheckPath(JNIEnv* env,
|
||||||
jobject clazz) {
|
jobject clazz) {
|
||||||
return env->NewStringUTF(CGROUP_FREEZE_PATH);
|
std::string path;
|
||||||
|
|
||||||
|
if (!getAttributePathForTask("FreezerState", getpid(), &path)) {
|
||||||
|
path = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
return env->NewStringUTF(path.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
static const JNINativeMethod sMethods[] = {
|
static const JNINativeMethod sMethods[] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user