Lines Matching refs:mAm
92 final ActivityManagerService mAm;
208 mAm = service;
218 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller);
238 NeededUriGrants neededGrants = mAm.checkGrantUriPermissionFromIntentLocked(
272 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller);
394 mAm.updateLruProcessLocked(r.app, false);
421 mAm.updateOomAdjLocked();
432 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller);
442 activity = mAm.mMainStack.isInStackLocked(token);
529 mAm.updateOomAdjLocked(s.app);
631 mAm.updateOomAdjLocked(r.binding.service.app);
696 synchronized(mAm) {
709 userId = mAm.handleIncomingUser(callingPid, callingUid, userId,
735 if (mAm.isSingleton(sInfo.processName, sInfo.applicationInfo,
740 sInfo.applicationInfo = mAm.getAppInfoForUser(sInfo.applicationInfo, userId);
748 BatteryStatsImpl stats = mAm.mBatteryStatsService.getActiveStatistics();
754 r = new ServiceRecord(mAm, ss, name, filter, sInfo, res);
776 if (mAm.checkComponentPermission(r.permission,
806 Message msg = mAm.mHandler.obtainMessage(
809 mAm.mHandler.sendMessageAtTime(msg, now+SERVICE_TIMEOUT);
940 mAm.mHandler.removeCallbacks(r.restarter);
941 mAm.mHandler.postAtTime(r.restarter, r.nextRestartTime);
964 mAm.mHandler.removeCallbacks(r.restarter);
991 if (mAm.mStartedUsers.get(r.userId) == null) {
1016 app = mAm.getProcessRecordLocked(procName, r.appInfo.uid);
1044 if ((app=mAm.startProcessLocked(procName, r.appInfo, true, intentFlags,
1089 mAm.updateLruProcessLocked(app, true);
1098 mAm.ensurePackageDexOpt(r.serviceInfo.packageName);
1100 mAm.compatibilityInfoForPackageLocked(r.serviceInfo.applicationInfo));
1146 mAm.grantUriPermissionUncheckedFromIntentLocked(si.neededGrants,
1152 mAm.updateOomAdjLocked(r.app);
1228 mAm.updateOomAdjLocked(r.app);
1279 mAm.updateOomAdjLocked(r.app);
1348 mAm.updateOomAdjLocked(s.app);
1441 mAm.mHandler.removeMessages(ActivityManagerService.SERVICE_TIMEOUT_MSG, r.app);
1449 mAm.updateOomAdjLocked(r.app);
1489 mAm.mHandler.removeCallbacks(sr.restarter);
1490 mAm.mHandler.post(sr.restarter);
1759 int[] users = mAm.getUsersLocked();
1840 if (timeout != null && mAm.mLruProcesses.contains(proc)) {
1844 Message msg = mAm.mHandler.obtainMessage(
1847 mAm.mHandler.sendMessageAtTime(msg, nextTime+SERVICE_TIMEOUT);
1852 mAm.appNotResponding(proc, null, null, false, anrMessage);
1868 int[] users = mAm.getUsersLocked();
2065 int[] users = mAm.getUsersLocked();