am 6b66a4a8: use findProcess instead of getProcess

* commit '6b66a4a8a342b8156f73d83771caa1db2f866529':
  use findProcess instead of getProcess
This commit is contained in:
John Reck
2015-07-24 01:02:21 +00:00
committed by Android Git Automerger
2 changed files with 2 additions and 2 deletions

View File

@@ -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" +

View File

@@ -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;
}