* commit '9ba771bbcb7043dd9c5d813a4502f25f422e4b8c': use findProcess instead of getProcess
This commit is contained in:
@@ -295,7 +295,7 @@ public class Am extends BaseCommand {
|
|||||||
"\n" +
|
"\n" +
|
||||||
"am get-inactive: returns the inactive state of an app.\n" +
|
"am get-inactive: returns the inactive state of an app.\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
" am send-trim-memory: Send a memory trim event to a <PROCESS>.\n" +
|
"am send-trim-memory: Send a memory trim event to a <PROCESS>.\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"<INTENT> specifications include these flags and arguments:\n" +
|
"<INTENT> specifications include these flags and arguments:\n" +
|
||||||
" [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]\n" +
|
" [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]\n" +
|
||||||
|
|||||||
@@ -3652,7 +3652,7 @@ public final class ActivityManagerService extends ActivityManagerNative
|
|||||||
@Override
|
@Override
|
||||||
public boolean setProcessMemoryTrimLevel(String process, int userId, int level) {
|
public boolean setProcessMemoryTrimLevel(String process, int userId, int level) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
final ProcessRecord app = getProcessRecordLocked(process, userId, true);
|
final ProcessRecord app = findProcessLocked(process, userId, "setProcessMemoryTrimLevel");
|
||||||
if (app == null) {
|
if (app == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user