Lines Matching refs:activity

54         Intent intent;                  // Which activity to run here.
55 ActivityInfo activityInfo; // Package manager info about activity.
56 Activity activity; // Currently instantiated activity.
59 int curState = RESTORED; // Current state the activity is in.
71 /** The containing activity that owns the activities we create. */
74 /** The activity that is currently resumed. */
83 /** True if only one activity can be resumed at a time */
102 * of one activity resumed
117 // Get the lastNonConfigurationInstance for the activity
127 instance.activity = instanceObj;
130 // We need to have always created the activity.
135 r.activity = mActivityThread.startActivityNow(
137 if (r.activity == null) {
140 r.window = r.activity.getWindow();
152 // the launching of the activity gets its state a little ahead
216 * Start a new activity running in the group. Every activity you start
218 * track of the activity, so that if you later call startActivity() again
219 * on it the same activity object will be retained.
221 * <p>When there had previously been an activity started under this id,
226 * <li> If the Intent maps to a different activity component than is
227 * currently running, the current activity is finished and a new one
229 * <li> If the current activity uses a non-multiple launch mode (such
232 * activity will remain running and its
237 * {@link Intent#FLAG_ACTIVITY_CLEAR_TOP} set, then the current activity
239 * <li> Otherwise, the current activity will be finished and a new
248 * activity class than was previously running when the state was saved (if
251 * @param id Unique identifier of the activity to be started
252 * @param intent The Intent describing the activity to be started
254 * @return Returns the window of the activity. The caller needs to take
256 * with removing the old window if the activity has changed.
271 // Already have information about the new activity id?
280 // We are starting the same activity.
288 // Pause the currently running activity if there is one and only a single
289 // activity is allowed to be running at a time.
293 // If there was a previous activity, and it is not the current
294 // activity, we need to stop it.
305 // If the new activity is the same as the current one, then
312 // The activity wants onNewIntent() called.
326 // We are showing the same thing, so this activity is
337 // The new activity is different than the current one, or it
338 // is a multiple launch activity, so we need to destroy what
349 // When in single mode keep track of the current activity
364 r.activity = null;
374 * Destroy the activity associated with a particular id. This activity
378 * @param id Unique identifier of the activity to be destroyed
379 * @param finish If true, this activity will be finished, so its id and
382 * @return Returns the window that was used to display the activity, or
408 return mResumed != null ? mResumed.activity : null;
412 * Retrieve the ID of the activity that is currently running.
430 * its activity is not currently instantiated
434 return r != null ? r.activity : null;
439 * adds to the activity group information about all activity IDs that had
443 * <p>Note: This does <b>not</b> change the current running activity, or
444 * start whatever activity was previously running when the state was saved.
478 * last saved state is used. For the current running activity, its
497 && r.activity != null) {
499 // already have it or the activity is currently resumed.
501 r.activity.performSaveInstanceState(childState);
513 * Called by the container activity in its {@link Activity#onResume} so
534 * Called by the container activity in its {@link Activity#onPause} so
538 * @param finishing set to true if the parent activity has been finished;
566 * Called by the container activity in its {@link Activity#onStop} so
582 * Call onRetainNonConfigurationInstance on each child activity and store the
594 if ((r != null) && (r.activity != null)) {
595 Object instance = r.activity.onRetainNonConfigurationInstance();
616 * Called by the container activity in its {@link Activity#onDestroy} so