Lines Matching refs:next

100     // next activity.
175 * for the next activity to settle down before doing so. It contains
203 * List of people waiting to find out about the next launched activity.
209 * List of people waiting to find out about the next visible activity.
231 * next one, this variable holds the activity that is currently being paused.
274 * Dismiss the keyguard after the next activity is displayed?
453 * @return Returns the HistoryRecord of the next activity on the stack.
974 // awake until the next activity is started.
1007 if (DEBUG_PAUSE) Slog.v(TAG, "Activity not running, resuming next.");
1170 private final void completeResumeLocked(ActivityRecord next) {
1171 next.idle = false;
1172 next.results = null;
1173 next.newIntents = null;
1177 msg.obj = next;
1186 msg.obj = next;
1191 mService.reportResumedActivityLocked(next);
1194 next.clearThumbnail();
1196 mService.setFocusedActivityLocked(next);
1198 next.resumeKeyDispatchingLocked();
1206 if (next.app != null) {
1208 next.cpuTimeAtResume = mService.mProcessStats.getCpuTimeForPid(next.app.pid);
1211 next.cpuTimeAtResume = 0; // Couldn't get the cpu time of process
1297 // visible when it next restarts.
1342 // visible when it next restarts.
1386 ActivityRecord next = topRunningActivityLocked(null);
1393 if (next == null) {
1402 next.delayedResume = false;
1405 if (mResumedActivity == next && next.state == ActivityState.RESUMED) {
1417 && mLastPausedActivity == next
1418 && (next.state == ActivityState.PAUSED
1419 || next.state == ActivityState.STOPPED
1420 || next.state == ActivityState.STOPPING)) {
1431 mStoppingActivities.remove(next);
1432 mGoingToSleepActivities.remove(next);
1433 next.sleeping = false;
1434 mWaitingVisibleActivities.remove(next);
1436 next.updateOptionsLocked(options);
1438 if (DEBUG_SWITCH) Slog.v(TAG, "Resuming " + next);
1447 // Okay we are now going to start a switch, to 'next'. We may first
1449 // where we have decided to go to 'next' so keep track of that.
1458 final int nextUid = next.info.applicationInfo.uid;
1460 && lastUid != next.launchedFromUid
1463 -1, next.launchedFromUid)
1465 mService.showLaunchWarningLocked(mLastStartedActivity, next);
1467 next.startTime = now;
1468 mLastStartedActivity = next;
1471 next.startTime = SystemClock.uptimeMillis();
1472 mLastStartedActivity = next;
1499 if (prev != null && prev != next) {
1500 if (!prev.waitingVisible && next != null && !next.nowVisible) {
1506 // The next activity is already visible, so hide the previous
1519 + ", nowVisible=" + next.nowVisible);
1524 + ", nowVisible=" + next.nowVisible);
1533 next.packageName, false, next.userId); /* TODO: Verify if correct userid */
1537 + next.packageName + ": " + e);
1540 // We are starting up the next activity, so tell the window manager
1552 mService.mWindowManager.prepareAppTransition(prev.task == next.task
1561 if (mNoAnimActivities.contains(next)) {
1566 mService.mWindowManager.prepareAppTransition(prev.task == next.task
1578 if (mNoAnimActivities.contains(next)) {
1588 next.applyOptionsLocked();
1590 next.clearOptionsLocked();
1593 if (next.app != null && next.app.thread != null) {
1594 if (DEBUG_SWITCH) Slog.v(TAG, "Resume running: " + next);
1597 mService.mWindowManager.setAppVisibility(next.appToken, true);
1600 next.startLaunchTickingLocked();
1603 ActivityState lastState = next.state;
1607 if (DEBUG_STATES) Slog.v(TAG, "Moving to RESUMED: " + next + " (in existing)");
1608 next.state = ActivityState.RESUMED;
1609 mResumedActivity = next;
1610 next.task.touchActiveTime();
1612 mService.addRecentTaskLocked(next.task);
1614 mService.updateLruProcessLocked(next.app, true, true);
1615 updateLRUListLocked(next);
1624 next.mayFreezeScreenLocked(next.app) ? next.appToken : null);
1626 next.frozenBeforeDestroy = true;
1628 updated = mService.updateConfigurationLocked(config, next, false, false);
1639 "Activity config changed during resume: " + next
1640 + ", new next: " + nextNext);
1641 if (nextNext != next) {
1646 mService.setFocusedActivityLocked(next);
1656 ArrayList a = next.results;
1659 if (!next.finishing && N > 0) {
1661 TAG, "Delivering results to " + next
1663 next.app.thread.scheduleSendResult(next.appToken, a);
1667 if (next.newIntents != null) {
1668 next.app.thread.scheduleNewIntent(next.newIntents, next.appToken);
1672 System.identityHashCode(next),
1673 next.task.taskId, next.shortComponentName);
1675 next.sleeping = false;
1676 showAskCompatModeDialogLocked(next);
1677 next.app.pendingUiClean = true;
1678 next.app.thread.scheduleResumeActivity(next.appToken,
1686 + lastState + ": " + next);
1687 next.state = lastState;
1689 Slog.i(TAG, "Restarting because process died: " + next);
1690 if (!next.hasBeenLaunched) {
1691 next.hasBeenLaunched = true;
1695 next.appToken, next.packageName, next.theme,
1697 next.info.applicationInfo),
1698 next.nonLocalizedLabel,
1699 next.labelRes, next.icon, next.windowFlags,
1703 startSpecificActivityLocked(next, true, false);
1710 next.visible = true;
1711 completeResumeLocked(next);
1714 // activity and try the next one.
1715 Slog.w(TAG, "Exception thrown during resume of " + next, e);
1716 requestFinishActivityLocked(next.appToken, Activity.RESULT_CANCELED, null,
1722 if (DEBUG_SAVED_STATE) Slog.i(TAG, "Resumed activity; didn't need icicle of: " + next);
1723 next.icicle = null;
1724 next.haveState = false;
1725 next.stopped = false;
1729 if (!next.hasBeenLaunched) {
1730 next.hasBeenLaunched = true;
1734 next.appToken, next.packageName, next.theme,
1736 next.info.applicationInfo),
1737 next.nonLocalizedLabel,
1738 next.labelRes, next.icon, next.windowFlags,
1741 if (DEBUG_SWITCH) Slog.v(TAG, "Restarting: " + next);
1743 startSpecificActivityLocked(next, true, true);
1793 // Place a new activity at top of stack, so it is next to interact
1818 // switching to a new task, or the next activity's process is
1858 // "has the same starting icon" as the next one. This allows the
2017 if (DEBUG_TASKS) Slog.v(TAG, "Pushing next activity " + p
2563 // Someone asked to have the keyguard dismissed on the next
3116 // it), and have not yet started the next activity.
3510 // waiting for the next one to start.
3523 // waiting for the next one to start.
3673 ActivityRecord next = mHistory.get(index+1);
3674 if (next.task == r.task) {
3676 // The next activity is now the front of the task.
3677 next.frontOfTask = true;
3682 // but propagate it up to the next activity.
3683 next.intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
3902 ConnectionRecord c = it.next();
4221 ActivityRecord next = topRunningActivityLocked(null, task);
4222 if (next == null) {
4223 next = topRunningActivityLocked(null, 0);
4225 if (next != null) {
4229 moveOK = mService.mController.activityResuming(next.packageName);
4457 // configuration and it will pick that up next time it starts.