Lines Matching refs:ProcessRecord
490 final ProcessMap<ProcessRecord> mProcessNames = new ProcessMap<ProcessRecord>();
501 final SparseArray<ProcessRecord> mIsolatedProcesses = new SparseArray<ProcessRecord>();
512 ProcessRecord mHeavyWeightProcess = null;
553 final SparseArray<ProcessRecord> mPidsSelfLocked = new SparseArray<ProcessRecord>();
571 final ArrayList<ProcessRecord> mProcessesOnHold = new ArrayList<ProcessRecord>();
577 final ArrayList<ProcessRecord> mPersistentStartingProcesses = new ArrayList<ProcessRecord>();
582 final ArrayList<ProcessRecord> mRemovedProcesses = new ArrayList<ProcessRecord>();
588 final ArrayList<ProcessRecord> mLruProcesses = new ArrayList<ProcessRecord>();
604 final ArrayList<ProcessRecord> mProcessesToGc = new ArrayList<ProcessRecord>();
609 final ArrayList<ProcessRecord> mPendingPssProcesses = new ArrayList<ProcessRecord>();
626 ProcessRecord mHomeProcess;
632 ProcessRecord mPreviousProcess;
1097 final ProcessMap<ArrayList<ProcessRecord>> mForegroundPackages
1098 = new ProcessMap<ArrayList<ProcessRecord>>();
1126 ProcessRecord mProfileProc = null;
1209 final ProcessRecord mApp;
1213 AppDeathRecipient(ProcessRecord app, int pid,
1312 ProcessRecord proc = (ProcessRecord)data.get("app");
1353 ProcessRecord proc = (ProcessRecord)data.get("app");
1385 ProcessRecord proc = (ProcessRecord) data.get("app");
1425 ProcessRecord app = (ProcessRecord)msg.obj;
1451 mServices.serviceTimeout((ProcessRecord)msg.obj);
1456 ProcessRecord r = mLruProcesses.get(i);
1470 ProcessRecord r = mLruProcesses.get(i);
1495 ProcessRecord r = mLruProcesses.get(i);
1539 ProcessRecord app = (ProcessRecord)msg.obj;
1570 ProcessRecord process = root.app;
1729 ProcessRecord r = mLruProcesses.get(i);
1863 ProcessRecord proc;
1920 ProcessRecord app = newProcessRecordLocked(info, info.processName, false, 0);
2186 SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
2189 ProcessRecord app = apps.valueAt(ia);
2283 ProcessRecord pr = mPidsSelfLocked.get(st.pid);
2439 private int updateLruProcessInternalLocked(ProcessRecord app, long now, int index,
2440 String what, Object obj, ProcessRecord srcApp) {
2476 final void removeLruProcessLocked(ProcessRecord app) {
2494 final void updateLruProcessLocked(ProcessRecord app, boolean activityChange,
2495 ProcessRecord client) {
2611 ProcessRecord subProc = mLruProcesses.get(i);
2619 ProcessRecord tmp = mLruProcesses.get(i);
2687 final ProcessRecord getProcessRecordLocked(String processName, int uid, boolean keepIfLarge) {
2692 SparseArray<ProcessRecord> procs = mProcessNames.getMap().get(processName);
2699 ProcessRecord proc = mProcessNames.get(processName, uid);
2743 // In general the ApplicationInfo.uid isn't neccesarily equal to ProcessRecord.uid.
2750 // the |isolated| logic in the ProcessRecord constructor.
2755 ProcessRecord proc = startProcessLocked(processName, info /* info */,
2764 final ProcessRecord startProcessLocked(String processName,
2774 final ProcessRecord startProcessLocked(String processName, ApplicationInfo info,
2779 ProcessRecord app;
2893 private final void startProcessLocked(ProcessRecord app,
2899 private final void startProcessLocked(ProcessRecord app, String hostingType,
3131 ProcessRecord app = getProcessRecordLocked(aInfo.processName,
4388 ProcessRecord proc = null;
4395 ProcessRecord p = mPidsSelfLocked.valueAt(i);
4504 ProcessRecord app = getRecordForAppLocked(appInt);
4549 private final void handleAppDiedLocked(ProcessRecord app,
4595 ProcessRecord rec = mLruProcesses.get(i);
4603 final ProcessRecord getRecordForAppLocked(
4613 final void doLowMemReportIfNeededLocked(ProcessRecord dyingProc) {
4619 ProcessRecord rec = mLruProcesses.get(i);
4642 ProcessRecord rec = mLruProcesses.get(i);
4673 final void appDiedLocked(ProcessRecord app) {
4677 final void appDiedLocked(ProcessRecord app, int pid, IApplicationThread thread) {
4678 // First check if this ProcessRecord is actually active for the pid.
4680 ProcessRecord curProc = mPidsSelfLocked.get(pid);
4850 final void logAppTooSlow(ProcessRecord app, long startTime, String msg) {
4927 final void appNotResponding(ProcessRecord app, ActivityRecord activity,
4981 ProcessRecord r = mLruProcesses.get(i);
5238 ArrayList<ProcessRecord> procs = new ArrayList<ProcessRecord>();
5241 SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
5244 ProcessRecord app = apps.valueAt(ia);
5326 ProcessRecord proc;
5382 ProcessRecord proc;
5420 ProcessRecord proc;
5448 ProcessRecord proc;
5480 ProcessRecord app = getProcessRecordLocked(processName, uid, true);
5530 ArrayList<ProcessRecord> procs = new ArrayList<ProcessRecord>();
5537 SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
5540 ProcessRecord app = apps.valueAt(ia);
5762 private final boolean removeProcessLocked(ProcessRecord app,
5806 private final void processStartTimedOutLocked(ProcessRecord app) {
5810 ProcessRecord knownApp = mPidsSelfLocked.get(pid);
5862 ProcessRecord app;
6199 ArrayList<ProcessRecord> procs =
6200 new ArrayList<ProcessRecord>(mProcessesOnHold);
6729 ProcessRecord pr = mPidsSelfLocked.get(token.pid);
6748 ProcessRecord pr = mPidsSelfLocked.get(pid);
7422 final ProcessRecord r = getRecordForAppLocked(caller);
7548 final ProcessRecord r = getRecordForAppLocked(caller);
7991 ProcessRecord app =
8380 ArrayList<ProcessRecord> procsToKill = new ArrayList<ProcessRecord>();
8381 ArrayMap<String, SparseArray<ProcessRecord>> pmap = mProcessNames.getMap();
8384 SparseArray<ProcessRecord> uids = pmap.valueAt(i);
8386 ProcessRecord proc = uids.valueAt(j);
8419 ProcessRecord pr = procsToKill.get(i);
8912 private final List<ProviderInfo> generateApplicationProvidersLocked(ProcessRecord app) {
8966 * Check if {@link ProcessRecord} has a possible chance at accessing the
8971 ProviderInfo cpi, ProcessRecord r, int userId, boolean checkUser) {
9081 ContentProviderConnection incProviderCountLocked(ProcessRecord r,
9162 ProcessRecord r = null;
9410 ProcessRecord proc = getProcessRecordLocked(
9525 * Drop a content provider from a ProcessRecord's bookkeeping
9600 final ProcessRecord r = getRecordForAppLocked(caller);
9602 Slog.v(TAG_MU, "ProcessRecord uid = " + r.uid);
9734 ProcessRecord proc = conn.provider.proc;
9764 final ProcessRecord host = conn.provider.proc;
9766 Slog.w(TAG, "Failed to find hosting ProcessRecord");
9781 ProcessRecord app = mProcessNames.get("system", Process.SYSTEM_UID);
9869 final ProcessRecord newProcessRecordLocked(ApplicationInfo info, String customProcess,
9901 return new ProcessRecord(stats, info, proc, uid);
9904 final ProcessRecord addAppLocked(ApplicationInfo info, boolean isolated,
9906 ProcessRecord app;
10328 ProcessRecord precessRecord = mPidsSelfLocked.get(callingPid);
10358 public static long getInputDispatchingTimeoutLocked(ProcessRecord r) {
10372 ProcessRecord proc;
10392 public boolean inputDispatchingTimedOut(final ProcessRecord proc,
10764 ProcessRecord proc = mPidsSelfLocked.get(pids[i]);
10789 ProcessRecord proc = mPidsSelfLocked.get(pids[i]);
10834 final ProcessRecord proc = mPidsSelfLocked.valueAt(i);
10952 ProcessRecord proc = mLruProcesses.get(i);
11235 ArrayList<ProcessRecord> procsToKill = null;
11238 ProcessRecord proc = mPidsSelfLocked.valueAt(i);
11241 procsToKill = new ArrayList<ProcessRecord>();
11251 ProcessRecord proc = procsToKill.get(i);
11390 private boolean makeAppCrashingLocked(ProcessRecord app,
11400 private void makeAppNotRespondingLocked(ProcessRecord app,
11411 * Generate a process error record, suitable for attachment to a ProcessRecord.
11413 * @param app The ProcessRecord in which the error occurred.
11423 private ActivityManager.ProcessErrorStateInfo generateProcessError(ProcessRecord app,
11439 void killAppAtUsersRequest(ProcessRecord app, Dialog fromDialog) {
11458 private boolean handleAppCrashLocked(ProcessRecord app, String shortMsg, String longMsg,
11542 void startAppProblemLocked(ProcessRecord app) {
11557 void skipCurrentReceiverLocked(ProcessRecord app) {
11570 ProcessRecord r = findAppProcess(app, "Crash");
11580 void handleApplicationCrashInner(String eventType, ProcessRecord r, String processName,
11599 ProcessRecord r = findAppProcess(app, "StrictMode");
11655 ProcessRecord process,
11793 final ProcessRecord r = handleApplicationWtfInner(callingUid, callingPid, app, tag,
11806 ProcessRecord handleApplicationWtfInner(int callingUid, int callingPid, IBinder app, String tag,
11808 final ProcessRecord r = findAppProcess(app, "WTF");
11822 * @return the corresponding {@link ProcessRecord} object, or null if none could be found
11824 private ProcessRecord findAppProcess(IBinder app, String reason) {
11832 SparseArray<ProcessRecord> apps = mProcessNames.getMap().valueAt(ip);
11835 ProcessRecord p = apps.valueAt(ia);
11853 private void appendDropBoxProcessHeaders(ProcessRecord process, String processName,
11856 // a null ProcessRecord) to add the stack file to dropbox.
11865 // Note: ProcessRecord 'process' is guarded by the service
11892 private static String processClass(ProcessRecord process) {
11914 ProcessRecord process, String processName, ActivityRecord activity,
12015 private void crashApplication(ProcessRecord r, ApplicationErrorReport.CrashInfo crashInfo) {
12121 Intent createAppErrorIntentLocked(ProcessRecord r,
12134 private ApplicationErrorReport createAppErrorReportLocked(ProcessRecord r,
12179 ProcessRecord app = mLruProcesses.get(i);
12221 private void fillInProcMemInfo(ProcessRecord app,
12252 ProcessRecord app = mLruProcesses.get(i);
12262 if (app.adjSource instanceof ProcessRecord) {
12263 currApp.importanceReasonPid = ((ProcessRecord)app.adjSource).pid;
12317 ProcessRecord proc;
12751 SparseArray<ProcessRecord> procs = mProcessNames.getMap().valueAt(ip);
12754 ProcessRecord r = procs.valueAt(ia);
12777 ProcessRecord r = mIsolatedProcesses.valueAt(i);
12814 ProcessRecord
12835 ProcessRecord r = mPidsSelfLocked.get(
12894 ProcessRecord r = mProcessNames.get(pname, puid);
12925 ProcessRecord r = mProcessNames.get(pname, puid);
13151 ProcessRecord proc = mProcessesToGc.get(i);
13625 ProcessRecord r = (ProcessRecord)list.get(i);
13640 ActivityManagerService service, List<ProcessRecord> origList,
13644 ArrayList<Pair<ProcessRecord, Integer>> list
13645 = new ArrayList<Pair<ProcessRecord, Integer>>(origList.size());
13647 ProcessRecord r = origList.get(i);
13651 list.add(new Pair<ProcessRecord, Integer>(origList.get(i), i));
13658 Comparator<Pair<ProcessRecord, Integer>> comparator
13659 = new Comparator<Pair<ProcessRecord, Integer>>() {
13661 public int compare(Pair<ProcessRecord, Integer> object1,
13662 Pair<ProcessRecord, Integer> object2) {
13681 ProcessRecord r = list.get(i).first;
13737 if (r.adjSource instanceof ProcessRecord) {
13739 pw.print(((ProcessRecord)r.adjSource).toShortString());
13804 ArrayList<ProcessRecord> collectProcesses(PrintWriter pw, int start, boolean allPkgs,
13806 ArrayList<ProcessRecord> procs;
13810 procs = new ArrayList<ProcessRecord>();
13817 ProcessRecord proc = mLruProcesses.get(i);
13831 procs = new ArrayList<ProcessRecord>(mLruProcesses);
13839 ArrayList<ProcessRecord> procs = collectProcesses(pw, 0, false, args);
13851 ProcessRecord r = procs.get(i);
13875 ArrayList<ProcessRecord> procs = collectProcesses(pw, 0, false, args);
13884 ProcessRecord r = procs.get(i);
14118 ArrayList<ProcessRecord> procs = collectProcesses(pw, opti, packages, args);
14198 final ProcessRecord r = procs.get(i);
14792 private final boolean removeDyingProviderLocked(ProcessRecord proc,
14818 ProcessRecord capp = conn.client;
14856 private final boolean cleanUpApplicationRecordLocked(ProcessRecord app,
15039 boolean checkAppInLaunchingProvidersLocked(ProcessRecord app, boolean alwaysBad) {
15401 ProcessRecord proc = startProcessLocked(app.processName, app,
15496 final ProcessRecord proc = mBackupTarget.app;
15556 boolean sendPendingBroadcastsLocked(ProcessRecord app) {
15570 ProcessRecord callerApp = null;
15739 ProcessRecord r = mLruProcesses.get(i);
15826 private final int broadcastIntentLocked(ProcessRecord callerApp,
16318 final ProcessRecord callerApp = getRecordForAppLocked(caller);
16494 ProcessRecord app = addAppLocked(ai, false, abiOverride);
16532 void finishInstrumentationLocked(ProcessRecord app, int resultCode, Bundle results) {
16573 ProcessRecord app = getRecordForAppLocked(target);
16724 ProcessRecord app = mLruProcesses.get(i);
16853 private BroadcastQueue isReceivingBroadcast(ProcessRecord app) {
16936 private final int computeOomAdjLocked(ProcessRecord app, int cachedAdj, ProcessRecord TOP_APP,
17252 ProcessRecord client = cr.binding.client;
17411 ProcessRecord client = conn.client;
17575 void recordPssSample(ProcessRecord proc, int procState, long pss, long uss, long now) {
17593 void requestPssLocked(ProcessRecord proc, int procState) {
17621 ProcessRecord app = mLruProcesses.get(i);
17646 final void performAppGcLocked(ProcessRecord app) {
17687 ProcessRecord proc = mProcessesToGc.remove(0);
17729 ProcessRecord proc = mProcessesToGc.get(0);
17746 final void addProcessToGcListLocked(ProcessRecord proc) {
17766 final void scheduleAppGcLocked(ProcessRecord app) {
17807 ProcessRecord app = mLruProcesses.get(i);
17867 private final boolean applyOomAdjLocked(ProcessRecord app,
17868 ProcessRecord TOP_APP, boolean doingAll, long now) {
18047 private final void setProcessTrackerStateLocked(ProcessRecord proc, int memFactor, long now) {
18059 private final boolean updateOomAdjLocked(ProcessRecord app, int cachedAdj,
18060 ProcessRecord TOP_APP, boolean doingAll, long now) {
18070 final void updateProcessForegroundLocked(ProcessRecord proc, boolean isForeground,
18074 ArrayList<ProcessRecord> curProcs = mForegroundPackages.get(proc.info.packageName,
18078 curProcs = new ArrayList<ProcessRecord>();
18132 final boolean updateOomAdjLocked(ProcessRecord app) {
18134 final ProcessRecord TOP_APP = TOP_ACT != null ? TOP_ACT.app : null;
18157 final ProcessRecord TOP_APP = TOP_ACT != null ? TOP_ACT.app : null;
18220 ProcessRecord app = mLruProcesses.get(i);
18386 ProcessRecord app = mLruProcesses.get(i);
18477 ProcessRecord app = mLruProcesses.get(i);
18539 final ProcessRecord app = mRemovedProcesses.get(i);
18584 ProcessRecord r = mLruProcesses.get(i);
18592 private void stopProfilerLocked(ProcessRecord proc, int profileType) {
18640 ProcessRecord proc = null;
18688 private ProcessRecord findProcessLocked(String process, int userId, String callName) {
18691 ProcessRecord proc = null;
18701 ArrayMap<String, SparseArray<ProcessRecord>> all
18703 SparseArray<ProcessRecord> procs = all.get(process);
18708 ProcessRecord thisProc = procs.valueAt(i);
18738 ProcessRecord proc = findProcessLocked(process, userId, "dumpHeap");
18773 ProcessRecord processRecord = mLruProcesses.get(i);
18775 if (processRecord.thread != null) {
18776 processRecord.thread.setCoreSettings(settings);