Lines Matching defs:app

23 import android.app.ActivityManager;
24 import android.app.AppGlobals;
154 public AppNotResponding(ProcessRecord app, String annotation) {
155 mApp = app;
210 ProcessRecord app) throws RemoteException {
212 "Process cur broadcast " + r + " for app " + app);
213 if (app.thread == null) {
216 r.receiver = app.thread.asBinder();
217 r.curApp = app;
218 app.curReceiver = r;
219 mService.updateLruProcessLocked(app, true);
230 app.thread.scheduleReceiver(new Intent(r.intent), r.curReceiver,
234 "Process cur broadcast " + r + " DELIVERED for app " + app);
242 app.curReceiver = null;
247 public boolean sendPendingBroadcastsLocked(ProcessRecord app) {
250 if (br != null && br.curApp.pid == app.pid) {
253 processCurBroadcastLocked(br, app);
280 public void skipCurrentReceiverLocked(ProcessRecord app) {
282 BroadcastRecord r = app.curReceiver;
284 // The current broadcast is waiting for this app's receiver
294 if (r != null && r.curApp == app) {
296 "[" + mQueueName + "] skip & discard pending app " + r);
359 // an app receiver (which is always asynchronous) or after we have
365 private static void performReceiveLocked(ProcessRecord app, IIntentReceiver receiver,
369 if (app != null && app.thread != null) {
370 // If we have an app thread, do the call through that so it is
372 app.thread.scheduleRegisteredReceiver(receiver, intent, resultCode,
402 + " to " + filter.receiverList.app
421 if (filter.receiverList.app != null) {
424 // isn't an app... but we can only be in that case for
427 r.curApp = filter.receiverList.app;
428 filter.receiverList.app.curReceiver = r;
438 performReceiveLocked(filter.receiverList.app, filter.receiverList.receiver,
450 if (filter.receiverList.app != null) {
451 filter.receiverList.app.curReceiver = null;
514 Slog.w(TAG, "pending app ["
586 + " seq=" + seq + " app=" + r.callerApp);
723 + " requests FLAG_SINGLE_USER, but app does not hold "
772 ProcessRecord app = mService.getProcessRecordLocked(targetProcess,
774 if (app != null && app.thread != null) {
776 app.addPackage(info.activityInfo.packageName);
777 processCurBroadcastLocked(r, app);
788 // Not running -- get it started, to be executed when the app comes up.
790 "Need to start app ["
800 Slog.w(TAG, "Unable to launch app "
884 ProcessRecord app = null;
895 app = mService.mPidsSelfLocked.get(
900 app = r.curApp;
903 if (app != null) {
919 mHandler.post(new AppNotResponding(app, anrMessage));