Lines Matching refs:activity

264     // How long we wait for a launched process to attach to the activity manager
268 // How long we wait for a launched process to attach to the activity manager
315 // How long to wait in getAssistContextExtras for the activity and foreground services
342 * Description of a request to start a new activity, which has been held
400 public final ActivityRecord activity;
404 activity = _activity;
408 Slog.w(TAG, "getAssistContextExtras failed: timeout retrieving from " + activity);
491 * activity manager lock!
558 * the "home" activity.
563 * This is the process holding the activity the user last visited that
984 * Used to retain an update lock when the foreground activity is in
1144 mContext, proc, (ActivityRecord)data.get("activity"),
2073 // The activity manager only throws security exceptions, so let's
2265 // the activity manager's locks. The new state is determined based on the
2266 // state *now* of the relevant activity record. The object is passed to
2335 // The process has activties, so we are only going to allow activity-based
2338 // order except due to activity operations.
2351 if (DEBUG_LRU) Slog.d(TAG, "Not moving, already top activity: " + app);
2439 // should always have a real activity).
2440 if (DEBUG_LRU) Slog.d(TAG, "Adding to second-top of LRU activity list: " + app);
2466 if (DEBUG_LRU) Slog.d(TAG, "Adding to top of LRU activity list: " + app);
3173 // If this is coming from the currently resumed activity, it is
3221 // Look for the original activity in the list...
3234 Slog.v(TAG, "Next matching activity: found current " + r.packageName
3236 Slog.v(TAG, "Next matching activity: next is " + aInfo.packageName
3248 if (debug) Slog.d(TAG, "Next matching activity: nothing found");
3260 // Okay now we need to start the new activity, replacing the
3261 // currently running activity. This is a little tricky because
3268 // Propagate reply information over to the new activity.
3410 * @return Returns true if the activity successfully finished, or false if it is still running.
3425 // Find the first activity that is not finishing.
3600 * Main function for removing an existing process from the activity manager
3631 // restarting this process, but there is a visible activity that
3961 final void appNotResponding(ProcessRecord app, ActivityRecord activity,
4031 if (activity != null && activity.shortComponentName != null) {
4032 info.append(" (").append(activity.shortComponentName).append(")");
4039 if (parent != null && parent != activity) {
4066 addErrorToDropBox("anr", app, app.processName, activity, parent, annotation,
4101 activity != null ? activity.shortComponentName : null,
4112 if (activity != null) {
4113 map.put("activity", activity);
4735 if (pir.key.activity != null) {
4736 pir.key.activity.pendingResults.remove(pir.ref);
5000 // See if the top visible activity is waiting to run in this process...
5406 ActivityRecord activity = null;
5408 activity = ActivityRecord.isInStackLocked(token);
5409 if (activity == null) {
5412 if (activity.finishing) {
5424 type, packageName, activity, resultWho,
5456 if (activity.pendingResults == null) {
5457 activity.pendingResults
5460 activity.pendingResults.add(rec.ref);
5494 if (cleanActivity && rec.key.activity != null) {
5495 rec.key.activity.pendingResults.remove(rec.ref);
6780 // activity should never have a canned thumbnail! Oh well.
6842 // Check whether this activity is currently available.
7067 * Moves an activity, and all of the other activities within the same task, to the bottom
7068 * of the history stack. The activity's order within the task is unchanged.
7070 * @param token A reference to the activity we wish to move
7071 * @param nonRoot If false then this only works if the activity is the root
7072 * of a task; if true it will work for any activity in a task.
8396 // activity request.
8587 final ActivityRecord activity, final ActivityRecord parent,
8625 appNotResponding(proc, activity, parent, aboveSystem, annotation);
8639 ActivityRecord activity = getFocusedStack().mResumedActivity;
8640 if (activity == null) {
8641 Slog.w(TAG, "getAssistContextExtras failed: no resumed activity");
8644 extras.putString(Intent.EXTRA_ASSIST_PACKAGE, activity.packageName);
8645 if (activity.app == null || activity.app.thread == null) {
8646 Slog.w(TAG, "getAssistContextExtras failed: no process for " + activity);
8649 if (activity.app.pid == Binder.getCallingPid()) {
8650 Slog.w(TAG, "getAssistContextExtras failed: request process same as " + activity);
8653 pae = new PendingAssistExtras(activity);
8655 activity.app.thread.requestAssistContextExtras(activity.appToken, pae,
8660 Slog.w(TAG, "getAssistContextExtras failed: crash calling " + activity);
8839 // XXX Note: don't acquire main activity lock here, because the window
8982 Log.i(TAG, "Shutting down activity manager...");
9392 // Start up initial activity.
9445 String activity, String shortMsg, String longMsg) {
9449 activity, shortMsg, longMsg, null);
9460 * @param activity The activity associated with the crash, if known.
9468 int condition, String activity, String shortMsg, String longMsg, String stackTrace) {
9475 report.tag = activity;
9561 // with a home activity running in the process to prevent a repeatedly crashing app
9930 * @param activity which triggered the error, null if unknown
9931 * @param parent activity related to the error, null if unknown
9938 ProcessRecord process, String processName, ActivityRecord activity,
9954 if (activity != null) {
9955 sb.append("Activity: ").append(activity.shortComponentName).append("\n");
9960 if (parent != null && parent != activity) {
10163 report.anrInfo.activity = r.notRespondingReport.tag;
10375 pw.println(" a[ctivities]: activity stack state");
10386 pw.println(" top: dump the top activity");
10518 // Dumping a single activity?
10520 pw.println("Bad activity command, or no activities match: " + cmd);
10564 pw.println("ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities)");
10625 pw.println("ACTIVITY MANAGER RUNNING PROCESSES (dumpsys activity processes)");
11197 * - a flattened component name that matches an existing activity
11198 * - the cmd arg isn't the flattened component name of an existing activity:
11199 * dump all activity whose component contains the cmd as a substring
11241 * Invokes IApplicationThread.dumpActivity() on the thread of the specified activity if
11242 * there is a thread associated with the activity.
11271 pw.println(innerPrefix + "Failure while dumping the activity: " + e);
11273 pw.println(innerPrefix + "Got a RemoteException while dumping the activity");
11292 pw.println("ACTIVITY MANAGER BROADCAST STATE (dumpsys activity broadcasts)");
11389 pw.println("ACTIVITY MANAGER CONTENT PROVIDERS (dumpsys activity providers)");
11457 pw.println("ACTIVITY MANAGER PENDING INTENTS (dumpsys activity intents)");
12820 // activity manager to announce its creation.
14045 * make sure the given activity is running with the (now) current
14046 * configuration. Returns true if the activity has been left running, or
14140 // in the process of starting an activity, then find the top
14141 // activity to check if its configuration needs to change.
14317 app.adjType = "top-activity";
14364 Slog.w(TAG, "Wtf, activity " + r + " in proc activity list not using proc "
14369 // App has a visible activity; only upgrade adjustment.
14400 // process to be cached. It will be cached either as an activity
14401 // or empty depending on whether the activity is finishing. We do
14538 // This service has seen some activity within
14605 // This service has not seen activity within
14701 final ActivityRecord a = cr.activity;
15487 if (DEBUG_LRU && false) Slog.d(TAG, "Assigning activity LRU #" + i