Lines Matching refs:processRecord
731 final ProcessMap<ProcessRecord> mProcessNames = new ProcessMap<ProcessRecord>();
742 final SparseArray<ProcessRecord> mIsolatedProcesses = new SparseArray<ProcessRecord>();
753 ProcessRecord mHeavyWeightProcess = null;
762 final SparseArray<ProcessRecord> mPidsSelfLocked = new SparseArray<ProcessRecord>();
780 final ArrayList<ProcessRecord> mProcessesOnHold = new ArrayList<ProcessRecord>();
786 final ArrayList<ProcessRecord> mPersistentStartingProcesses = new ArrayList<ProcessRecord>();
791 final ArrayList<ProcessRecord> mRemovedProcesses = new ArrayList<ProcessRecord>();
797 final ArrayList<ProcessRecord> mLruProcesses = new ArrayList<ProcessRecord>();
813 final ArrayList<ProcessRecord> mProcessesToGc = new ArrayList<ProcessRecord>();
818 final ArrayList<ProcessRecord> mPendingPssProcesses = new ArrayList<ProcessRecord>();
837 ProcessRecord mHomeProcess;
843 ProcessRecord mPreviousProcess;
1342 final ProcessMap<ArrayList<ProcessRecord>> mForegroundPackages
1343 = new ProcessMap<ArrayList<ProcessRecord>>();
1379 ProcessRecord mProfileProc = null;
1455 final ProcessRecord mApp;
1459 AppDeathRecipient(ProcessRecord app, int pid,
1621 ProcessRecord proc = (ProcessRecord) data.get("app");
1652 ProcessRecord app = (ProcessRecord)msg.obj;
1790 mServices.serviceTimeout((ProcessRecord)msg.obj);
1795 ProcessRecord r = mLruProcesses.get(i);
1809 ProcessRecord r = mLruProcesses.get(i);
1834 ProcessRecord r = mLruProcesses.get(i);
1854 ProcessRecord app = (ProcessRecord)msg.obj;
1860 ProcessRecord app = (ProcessRecord)msg.obj;
1891 ProcessRecord process = root.app;
2005 ProcessRecord r = mLruProcesses.get(i);
2173 final ProcessRecord p = mPidsSelfLocked.valueAt(i);
2330 ProcessRecord proc = r.app;
2416 ProcessRecord proc;
2475 ProcessRecord app = newProcessRecordLocked(info, info.processName, false, 0);
2772 SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
2775 ProcessRecord app = apps.valueAt(ia);
2869 ProcessRecord pr = mPidsSelfLocked.get(st.pid);
3191 private int updateLruProcessInternalLocked(ProcessRecord app, long now, int index,
3192 String what, Object obj, ProcessRecord srcApp) {
3238 final void removeLruProcessLocked(ProcessRecord app) {
3256 final void updateLruProcessLocked(ProcessRecord app, boolean activityChange,
3257 ProcessRecord client) {
3374 ProcessRecord subProc = mLruProcesses.get(i);
3383 ProcessRecord tmp = mLruProcesses.get(i);
3451 final ProcessRecord getProcessRecordLocked(String processName, int uid, boolean keepIfLarge) {
3456 SparseArray<ProcessRecord> procs = mProcessNames.getMap().get(processName);
3468 ProcessRecord proc = mProcessNames.get(processName, uid);
3510 // In general the ApplicationInfo.uid isn't neccesarily equal to ProcessRecord.uid.
3517 // the |isolated| logic in the ProcessRecord constructor.
3522 ProcessRecord proc = startProcessLocked(processName, info /* info */,
3531 final ProcessRecord startProcessLocked(String processName,
3541 final ProcessRecord startProcessLocked(String processName, ApplicationInfo info,
3546 ProcessRecord app;
3664 private final void startProcessLocked(ProcessRecord app,
3670 private final void startProcessLocked(ProcessRecord app, String hostingType,
3850 ProcessRecord oldApp;
3935 ProcessRecord app = getProcessRecordLocked(aInfo.processName,
4107 final ProcessRecord proc = mLruProcesses.get(i);
4134 final ProcessRecord app = findProcessLocked(process, userId, "setProcessMemoryTrimLevel");
5030 ProcessRecord app = getRecordForAppLocked(appInt);
5075 private final void handleAppDiedLocked(ProcessRecord app,
5117 ProcessRecord rec = mLruProcesses.get(i);
5125 final ProcessRecord getRecordForAppLocked(
5135 final void doLowMemReportIfNeededLocked(ProcessRecord dyingProc) {
5141 ProcessRecord rec = mLruProcesses.get(i);
5164 ProcessRecord rec = mLruProcesses.get(i);
5195 final void appDiedLocked(ProcessRecord app) {
5199 final void appDiedLocked(ProcessRecord app, int pid, IApplicationThread thread,
5201 // First check if this ProcessRecord is actually active for the pid.
5203 ProcessRecord curProc = mPidsSelfLocked.get(pid);
5381 final void logAppTooSlow(ProcessRecord app, long startTime, String msg) {
5629 final ArrayList<ProcessRecord> procs = new ArrayList<>();
5632 final SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
5635 final ProcessRecord app = apps.valueAt(ia);
5686 final ArrayList<ProcessRecord> procs = new ArrayList<>();
5689 final SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
5692 final ProcessRecord app = apps.valueAt(ia);
5770 ProcessRecord proc;
5826 ProcessRecord proc;
5864 ProcessRecord proc;
5892 ProcessRecord proc;
5924 ProcessRecord app = getProcessRecordLocked(processName, uid, true);
5965 ArrayList<ProcessRecord> procs = new ArrayList<>();
5972 SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
5975 ProcessRecord app = apps.valueAt(ia);
6276 private final ProcessRecord removeProcessNameLocked(final String name, final int uid) {
6277 ProcessRecord old = mProcessNames.remove(name, uid);
6294 private final void addProcessNameLocked(ProcessRecord proc) {
6297 ProcessRecord old = removeProcessNameLocked(proc.processName, proc.uid);
6325 boolean removeProcessLocked(ProcessRecord app,
6332 ProcessRecord old = mProcessNames.get(name, uid);
6376 private final void processContentProviderPublishTimedOutLocked(ProcessRecord app) {
6381 private final void processStartTimedOutLocked(ProcessRecord app) {
6385 ProcessRecord knownApp = mPidsSelfLocked.get(pid);
6437 ProcessRecord app;
6827 ArrayList<ProcessRecord> procs =
6828 new ArrayList<ProcessRecord>(mProcessesOnHold);
7260 final ProcessRecord pr = mPidsSelfLocked.get(callerPid);
7262 Slog.w(TAG, "tempWhitelistAppForPowerSave() no ProcessRecord for pid " + callerPid);
7461 ProcessRecord pr = mPidsSelfLocked.get(token.pid);
7480 ProcessRecord pr = mPidsSelfLocked.get(pid);
7660 ProcessRecord pr = mPidsSelfLocked.get(pids[i]);
7914 ProcessRecord proc;
8363 final ProcessRecord r = getRecordForAppLocked(caller);
8490 final ProcessRecord r = getRecordForAppLocked(caller);
8980 ProcessRecord app =
9543 ArrayList<ProcessRecord> procsToKill = new ArrayList<>();
9544 ArrayMap<String, SparseArray<ProcessRecord>> pmap = mProcessNames.getMap();
9547 SparseArray<ProcessRecord> uids = pmap.valueAt(i);
9549 ProcessRecord proc = uids.valueAt(j);
9584 ProcessRecord pr = procsToKill.get(i);
10336 private final List<ProviderInfo> generateApplicationProvidersLocked(ProcessRecord app) {
10394 * Check if {@link ProcessRecord} has a possible chance at accessing the
10399 ProviderInfo cpi, ProcessRecord r, int userId, boolean checkUser) {
10508 ContentProviderConnection incProviderCountLocked(ProcessRecord r,
10597 boolean isProcessAliveLocked(ProcessRecord proc) {
10622 ProcessRecord r = null;
10878 ProcessRecord proc = getProcessRecordLocked(
10964 ProcessRecord r, final int userId) {
11039 * Drop a content provider from a ProcessRecord's bookkeeping
11114 final ProcessRecord r = getRecordForAppLocked(caller);
11115 if (DEBUG_MU) Slog.v(TAG_MU, "ProcessRecord uid = " + r.uid);
11253 ProcessRecord proc = conn.provider.proc;
11283 final ProcessRecord host = conn.provider.proc;
11285 Slog.w(TAG, "Failed to find hosting ProcessRecord");
11301 ProcessRecord app = mProcessNames.get("system", Process.SYSTEM_UID);
11354 final SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
11357 final ProcessRecord app = apps.valueAt(ia);
11461 final ProcessRecord newProcessRecordLocked(ApplicationInfo info, String customProcess,
11500 final ProcessRecord r = new ProcessRecord(stats, info, proc, uid);
11510 final ProcessRecord addAppLocked(ApplicationInfo info, boolean isolated,
11512 ProcessRecord app;
12072 ProcessRecord precessRecord = mPidsSelfLocked.get(callingPid);
12121 public static long getInputDispatchingTimeoutLocked(ProcessRecord r) {
12135 ProcessRecord proc;
12155 public boolean inputDispatchingTimedOut(final ProcessRecord proc,
12600 ProcessRecord proc;
12644 ProcessRecord proc;
12759 ProcessRecord pr;
12886 ProcessRecord proc = mPidsSelfLocked.get(pids[i]);
12910 ProcessRecord proc = mPidsSelfLocked.get(pids[i]);
12958 final ProcessRecord proc = mPidsSelfLocked.valueAt(i);
13076 ProcessRecord proc = mLruProcesses.get(i);
13238 ArrayList<ProcessRecord> procsToKill = null;
13241 ProcessRecord proc = mPidsSelfLocked.valueAt(i);
13244 procsToKill = new ArrayList<ProcessRecord>();
13254 ProcessRecord proc = procsToKill.get(i);
13388 void killAppAtUsersRequest(ProcessRecord app, Dialog fromDialog) {
13394 void skipCurrentReceiverLocked(ProcessRecord app) {
13407 ProcessRecord r = findAppProcess(app, "Crash");
13417 void handleApplicationCrashInner(String eventType, ProcessRecord r, String processName,
13436 ProcessRecord r = findAppProcess(app, "StrictMode");
13492 ProcessRecord process,
13634 final ProcessRecord r = handleApplicationWtfInner(callingUid, callingPid, app, tag,
13647 ProcessRecord handleApplicationWtfInner(int callingUid, int callingPid, IBinder app, String tag,
13649 final ProcessRecord r = findAppProcess(app, "WTF");
13663 ProcessRecord} object, or null if none could be found
13665 private ProcessRecord findAppProcess(IBinder app, String reason) {
13673 SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
13676 ProcessRecord p = apps.valueAt(ia);
13694 private void appendDropBoxProcessHeaders(ProcessRecord process, String processName,
13697 // a null ProcessRecord) to add the stack file to dropbox.
13706 // Note: ProcessRecord 'process' is guarded by the service
13733 private static String processClass(ProcessRecord process) {
13758 ProcessRecord process, String processName, ActivityRecord activity,
13886 ProcessRecord app = mLruProcesses.get(i);
13928 private void fillInProcMemInfo(ProcessRecord app,
13966 ProcessRecord app = mLruProcesses.get(i);
13977 if (app.adjSource instanceof ProcessRecord) {
13978 currApp.importanceReasonPid = ((ProcessRecord)app.adjSource).pid;
14033 ProcessRecord proc;
14604 SparseArray<ProcessRecord> procs = mProcessNames.getMap().valueAt(ip);
14607 ProcessRecord r = procs.valueAt(ia);
14630 ProcessRecord r = mIsolatedProcesses.valueAt(i);
14678 ProcessRecord r = mPidsSelfLocked.valueAt(i);
14699 ProcessRecord r = mPidsSelfLocked.get(
14953 ProcessRecord proc = mProcessesToGc.get(i);
15492 ProcessRecord r = (ProcessRecord)list.get(i);
15507 ActivityManagerService service, List<ProcessRecord> origList,
15511 ArrayList<Pair<ProcessRecord, Integer>> list
15512 = new ArrayList<Pair<ProcessRecord, Integer>>(origList.size());
15514 ProcessRecord r = origList.get(i);
15518 list.add(new Pair<ProcessRecord, Integer>(origList.get(i), i));
15525 Comparator<Pair<ProcessRecord, Integer>> comparator
15526 = new Comparator<Pair<ProcessRecord, Integer>>() {
15528 public int compare(Pair<ProcessRecord, Integer> object1,
15529 Pair<ProcessRecord, Integer> object2) {
15551 ProcessRecord r = list.get(i).first;
15610 if (r.adjSource instanceof ProcessRecord) {
15612 pw.print(((ProcessRecord)r.adjSource).toShortString());
15679 ArrayList<ProcessRecord> collectProcesses(PrintWriter pw, int start, boolean allPkgs,
15681 ArrayList<ProcessRecord> procs;
15685 procs = new ArrayList<ProcessRecord>();
15692 ProcessRecord proc = mLruProcesses.get(i);
15706 procs = new ArrayList<ProcessRecord>(mLruProcesses);
15714 ArrayList<ProcessRecord> procs = collectProcesses(pw, 0, false, args);
15726 ProcessRecord r = procs.get(i);
15750 ArrayList<ProcessRecord> procs = collectProcesses(pw, 0, false, args);
15759 ProcessRecord r = procs.get(i);
16045 ArrayList<ProcessRecord> procs = collectProcesses(pw, opti, packages, args);
16137 final ProcessRecord r = procs.get(i);
16797 private final boolean removeDyingProviderLocked(ProcessRecord proc,
16823 ProcessRecord capp = conn.client;
16862 private final boolean cleanUpApplicationRecordLocked(ProcessRecord app,
17048 boolean checkAppInLaunchingProvidersLocked(ProcessRecord app) {
17058 boolean cleanupAppInLaunchingProvidersLocked(ProcessRecord app, boolean alwaysBad) {
17347 ProcessRecord proc = startProcessLocked(app.processName, app,
17357 // process after the full backup is done and the ProcessRecord will vaporize anyway.
17449 final ProcessRecord proc = mBackupTarget.app;
17485 boolean sendPendingBroadcastsLocked(ProcessRecord app) {
17497 ProcessRecord callerApp = null;
17695 ProcessRecord r = mLruProcesses.get(i);
17792 private void checkBroadcastFromSystem(Intent intent, ProcessRecord callerApp,
17857 final int broadcastIntentLocked(ProcessRecord callerApp,
18507 final ProcessRecord callerApp = getRecordForAppLocked(caller);
18684 ProcessRecord app = addAppLocked(ai, false, abiOverride);
18718 void finishInstrumentationLocked(ProcessRecord app, int resultCode, Bundle results) {
18750 ProcessRecord app = getRecordForAppLocked(target);
19023 ProcessRecord app = mLruProcesses.get(i);
19162 private BroadcastQueue isReceivingBroadcast(ProcessRecord app) {
19278 private final int computeOomAdjLocked(ProcessRecord app, int cachedAdj, ProcessRecord TOP_APP,
19620 ProcessRecord client = cr.binding.client;
19801 ProcessRecord client = conn.client;
19977 void recordPssSampleLocked(ProcessRecord proc, int procState, long pss, long uss, long swapPss,
20018 final ProcessRecord myProc = proc;
20074 void requestPssLocked(ProcessRecord proc, int procState) {
20102 ProcessRecord app = mLruProcesses.get(i);
20131 final void performAppGcLocked(ProcessRecord app) {
20172 ProcessRecord proc = mProcessesToGc.remove(0);
20214 ProcessRecord proc = mProcessesToGc.get(0);
20231 final void addProcessToGcListLocked(ProcessRecord proc) {
20251 final void scheduleAppGcLocked(ProcessRecord app) {
20292 ProcessRecord app = mLruProcesses.get(i);
20352 private final boolean applyOomAdjLocked(ProcessRecord app, boolean doingAll, long now,
20663 private void maybeUpdateProviderUsageStatsLocked(ProcessRecord app, String providerPkgName,
20682 private void maybeUpdateUsageStatsLocked(ProcessRecord app, long nowElapsed) {
20729 private final void setProcessTrackerStateLocked(ProcessRecord proc, int memFactor, long now) {
20737 private final boolean updateOomAdjLocked(ProcessRecord app, int cachedAdj,
20738 ProcessRecord TOP_APP, boolean doingAll, long now) {
20748 final void updateProcessForegroundLocked(ProcessRecord proc, boolean isForeground,
20752 ArrayList<ProcessRecord> curProcs = mForegroundPackages.get(proc.info.packageName,
20756 curProcs = new ArrayList<ProcessRecord>();
20810 final boolean updateOomAdjLocked(ProcessRecord app) {
20812 final ProcessRecord TOP_APP = TOP_ACT != null ? TOP_ACT.app : null;
20835 final ProcessRecord TOP_APP = TOP_ACT != null ? TOP_ACT.app : null;
20909 ProcessRecord app = mLruProcesses.get(i);
21084 ProcessRecord app = mLruProcesses.get(i);
21174 ProcessRecord app = mLruProcesses.get(i);
21315 final ProcessRecord app = mRemovedProcesses.get(i);
21360 ProcessRecord r = mLruProcesses.get(i);
21368 private void stopProfilerLocked(ProcessRecord proc, int profileType) {
21416 ProcessRecord proc = null;
21464 private ProcessRecord findProcessLocked(String process, int userId, String callName) {
21467 ProcessRecord proc = null;
21477 ArrayMap<String, SparseArray<ProcessRecord>> all
21479 SparseArray<ProcessRecord> procs = all.get(process);
21484 ProcessRecord thisProc = procs.valueAt(i);
21514 ProcessRecord proc = findProcessLocked(process, userId, "dumpHeap");
21550 ProcessRecord proc = mPidsSelfLocked.get(Binder.getCallingPid());
21605 ProcessRecord processRecord = mLruProcesses.get(i);
21607 if (processRecord.thread != null) {
21608 processRecord.thread.setCoreSettings(settings);
21749 private boolean processSanityChecksLocked(ProcessRecord process) {
21776 ProcessRecord process = mLruProcesses.get(i);
21808 for (ProcessRecord process : mLruProcesses) {
21956 final ArrayList<ProcessRecord> procs = new ArrayList<>();
21959 final SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
21962 final ProcessRecord app = apps.valueAt(ia);