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