Loading core/java/android/app/IActivityManager.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -673,4 +673,9 @@ interface IActivityManager { * @param state The customized state data */ void setProcessStateSummary(in byte[] state); /** * Return whether the app freezer is supported (true) or not (false) by this system. */ boolean isAppFreezerSupported(); } services/core/java/com/android/server/am/ActivityManagerService.java +11 −0 Original line number Diff line number Diff line Loading @@ -20201,4 +20201,15 @@ public class ActivityManagerService extends IActivityManager.Stub mUsageStatsService.reportLocusUpdate(activity, userId, locusId, appToken); } } @Override public boolean isAppFreezerSupported() { final long token = Binder.clearCallingIdentity(); try { return mOomAdjuster.mCachedAppOptimizer.isFreezerSupported(); } finally { Binder.restoreCallingIdentity(token); } } } services/core/java/com/android/server/am/CachedAppOptimizer.java +1 −1 Original line number Diff line number Diff line Loading @@ -407,7 +407,7 @@ public final class CachedAppOptimizer { /** * Determines whether the freezer is correctly supported by this system */ public boolean isFreezerSupported() { public static boolean isFreezerSupported() { boolean supported = false; FileReader fr = null; Loading Loading
core/java/android/app/IActivityManager.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -673,4 +673,9 @@ interface IActivityManager { * @param state The customized state data */ void setProcessStateSummary(in byte[] state); /** * Return whether the app freezer is supported (true) or not (false) by this system. */ boolean isAppFreezerSupported(); }
services/core/java/com/android/server/am/ActivityManagerService.java +11 −0 Original line number Diff line number Diff line Loading @@ -20201,4 +20201,15 @@ public class ActivityManagerService extends IActivityManager.Stub mUsageStatsService.reportLocusUpdate(activity, userId, locusId, appToken); } } @Override public boolean isAppFreezerSupported() { final long token = Binder.clearCallingIdentity(); try { return mOomAdjuster.mCachedAppOptimizer.isFreezerSupported(); } finally { Binder.restoreCallingIdentity(token); } } }
services/core/java/com/android/server/am/CachedAppOptimizer.java +1 −1 Original line number Diff line number Diff line Loading @@ -407,7 +407,7 @@ public final class CachedAppOptimizer { /** * Determines whether the freezer is correctly supported by this system */ public boolean isFreezerSupported() { public static boolean isFreezerSupported() { boolean supported = false; FileReader fr = null; Loading