/frameworks/base/docs/html/guide/topics/fundamentals/ |
D | tasks-and-back-stack.jd | 10 <li>All activities belong to a task</li> 11 <li>A task contains a collection of activities in the order in which the user interacts with 25 <li><a href="#Starting">Starting a task</a></li> 60 experience by keeping both activities in the same <em>task</em>.</p> 62 <p>A task is a collection of activities that users interact with 69 <h3>Adding fragments to a task's back stack</h3> 89 launcher (or a shortcut on the Home screen), that application's task comes to the foreground. If no 90 task exists for the application (the application has not been used recently), then a new task 106 task adds an item to the back stack. When the user presses the BACK key, the current activity is 112 the task began). When all activities are removed from the stack, the task no longer exists.</p> [all …]
|
D | processes-and-threads.jd | 314 update your UI. You can then run the task by calling {@link android.os.AsyncTask#execute execute()} 348 value of the task, using generics</li> 359 <li>You can cancel the task at any time, from any thread</li> 366 see how you can persist your task during one of these restarts and how to properly cancel the task
|
/frameworks/base/services/java/com/android/server/am/ |
D | ActivityStack.java | 400 if (!r.finishing && (token != r) && (taskId != r.task.taskId)) { in topRunningActivityLocked() 451 if (!r.finishing && r.task != cp in findTaskLocked() 453 cp = r.task; in findTaskLocked() 457 if (r.task.affinity != null) { in findTaskLocked() 458 if (r.task.affinity.equals(info.taskAffinity)) { in findTaskLocked() 462 } else if (r.task.intent != null in findTaskLocked() 463 && r.task.intent.getComponent().equals(cls)) { in findTaskLocked() 468 } else if (r.task.affinityIntent != null in findTaskLocked() 469 && r.task.affinityIntent.getComponent().equals(cls)) { in findTaskLocked() 511 msg.obj = r.task.askedCompatMode ? null : r; in showAskCompatModeDialogLocked() [all …]
|
D | ActivityRecord.java | 77 TaskRecord task; // the task this is in. field in ActivityRecord 127 pw.print(" task="); pw.println(task); in dump() 339 if (task != null) { 340 task.numActivities--; 349 task = newTask; 363 if (task != null && !finishing) { 364 task.numActivities++; 372 if (task != null && !finishing) { 373 task.numActivities--; 385 if (task != null && inHistory) { [all …]
|
D | EventLogTags.logtags | 18 # A task is being brought to the front of the screen: 22 # A new task is being created: 24 # A new activity is being created in an existing task:
|
D | ActivityManagerService.java | 2314 final void addRecentTaskLocked(TaskRecord task) { in addRecentTaskLocked() argument 2317 if (N > 0 && mRecentTasks.get(0) == task) { in addRecentTaskLocked() 2323 if ((task.affinity != null && task.affinity.equals(tr.affinity)) in addRecentTaskLocked() 2324 || (task.intent != null && task.intent.filterEquals(tr.intent))) { in addRecentTaskLocked() 2328 if (task.intent == null) { in addRecentTaskLocked() 2331 task = tr; in addRecentTaskLocked() 2338 mRecentTasks.add(0, task); in addRecentTaskLocked() 3369 if ((samePackage || r.task == lastTask) in forceStopPackageLocked() 3387 lastTask = r.task; in forceStopPackageLocked() 4981 && top.task == r.task)) { [all …]
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 50 final ActivityManager.RecentTaskInfo task, in addThumbnail() argument 64 if (task.id >= 0 && thumbs != null) { in addThumbnail() 66 mAm.removeSubTask(task.id, subIndex+1); in addThumbnail() 68 mAm.moveTaskToFront(task.id, ActivityManager.MOVE_TASK_WITH_HOME); in addThumbnail() 71 startActivity(task.baseIntent); in addThumbnail() 82 if (task.id >= 0 && thumbs != null) { in addThumbnail() 84 mAm.removeTask(task.id, ActivityManager.REMOVE_TASK_KILL_PROCESS); in addThumbnail() 86 mAm.removeSubTask(task.id, subIndex); in addThumbnail()
|
/frameworks/base/docs/html/guide/basics/ |
D | appmodel.jd | 21 <li><p>A <strong>task</strong> is generally what the user perceives as 22 an "application" that can be launched: usually a task has an icon in the 43 they are actually dealing with is a task</em>. If you just create a .apk 48 be one task created for your .apk, and any activities you start from there 49 will also run as part of that task.</p> 51 <p>A task, then, from the user's perspective your application; and from the 53 has traversed through in that task and not yet closed, or an activity stack. 54 A new task is created by 57 the task, defining what task it is. Any activity started without this flag 58 will run in the same task as the activity that is starting it (unless that [all …]
|
/frameworks/support/v4/java/android/support/v4/content/ |
D | AsyncTaskLoader.java | 199 void dispatchOnCancelled(LoadTask task, D data) { in dispatchOnCancelled() argument 201 if (mCancellingTask == task) { in dispatchOnCancelled() 209 void dispatchOnLoadComplete(LoadTask task, D data) { in dispatchOnLoadComplete() argument 210 if (mTask != task) { in dispatchOnLoadComplete() 212 dispatchOnCancelled(task, data); in dispatchOnLoadComplete() 254 LoadTask task = mTask; in waitForLoader() local 255 if (task != null) { in waitForLoader() 257 task.done.await(); in waitForLoader()
|
D | ModernAsyncTask.java | 488 AsyncTaskResult(ModernAsyncTask task, Data... data) { in AsyncTaskResult() argument 489 mTask = task; in AsyncTaskResult()
|
/frameworks/base/core/java/android/content/ |
D | AsyncTaskLoader.java | 214 void dispatchOnCancelled(LoadTask task, D data) { in dispatchOnCancelled() argument 216 if (mCancellingTask == task) { in dispatchOnCancelled() 224 void dispatchOnLoadComplete(LoadTask task, D data) { in dispatchOnLoadComplete() argument 225 if (mTask != task) { in dispatchOnLoadComplete() 227 dispatchOnCancelled(task, data); in dispatchOnLoadComplete() 269 LoadTask task = mTask; in waitForLoader() local 270 if (task != null) { in waitForLoader() 272 task.done.await(); in waitForLoader()
|
D | ContentProvider.java | 879 AsyncTask<Object, Object, Object> task = new AsyncTask<Object, Object, Object>() { in openPipeHelper() local 891 task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, (Object[])null); in openPipeHelper()
|
/frameworks/base/docs/html/guide/topics/manifest/ |
D | activity-element.jd | 63 <dd>Whether or not the activity can move from the task that started it to 64 the task it has an affinity for when that task is next brought to the 66 must remain with the task where it started. 76 Normally when an activity is started, it's associated with the task of 78 You can use this attribute to force it to be re-parented to the task it 79 has an affinity for when its current task is no longer displayed. 81 to the main task associated with that application. 88 task. If it's reparented to the browser task, it will be shown when the 89 browser next comes to the front, and will be absent when the e-mail task 96 of a task is determined by reading the affinity of its root activity. [all …]
|
D | application-element.jd | 58 the task that started them to the task they have an affinity for when that task 60 "{@code false}" if they must remain with the task where they started.
|
/frameworks/base/docs/html/guide/practices/ui_guidelines/ |
D | activity_task_design.jd | 42 <li><a href=#activities_added_to_task_tip>Allow activities to add to current task</a></li> 147 seamless, activity after activity, <a href="#tasks">task</a> after 148 task. 156 activities in its application or task — each activity is 248 <a href=#tasks title=task>task</a> (as long as that task was started 271 A <em>task</em> is the sequence of activities the user follows to 273 activities belong to. Until a new task is explicitly specified (see 275 considered to be part of the current task. It's notable that these 277 application or in different ones. That is, a task that starts out in 285 The activity that starts a task is called the <em>root activity</em>. [all …]
|
/frameworks/base/tools/aidl/ |
D | options.cpp | 47 options->task = PREPROCESS_AIDL; in parse_options() 51 options->task = COMPILE_AIDL; in parse_options()
|
D | options.h | 18 int task; member
|
/frameworks/base/core/java/android/os/ |
D | AsyncTask.java | 633 AsyncTaskResult(AsyncTask task, Data... data) { in AsyncTaskResult() argument 634 mTask = task; in AsyncTaskResult()
|
/frameworks/base/voip/java/com/android/server/sip/ |
D | SipService.java | 1221 public void execute(Runnable task) { in execute() argument 1222 mMyWakeLock.acquire(task); in execute() 1223 Message.obtain(this, 0/* don't care */, task).sendToTarget(); in execute() 1235 private void executeInternal(Runnable task) { in executeInternal() argument 1237 task.run(); in executeInternal() 1239 Log.e(TAG, "run task: " + task, t); in executeInternal() 1241 mMyWakeLock.release(task); in executeInternal()
|
/frameworks/base/core/java/android/app/ |
D | IActivityManager.java | 143 public void moveTaskToFront(int task, int flags) throws RemoteException; in moveTaskToFront() argument 144 public void moveTaskToBack(int task) throws RemoteException; in moveTaskToBack() argument 146 public void moveTaskBackwards(int task) throws RemoteException; in moveTaskBackwards() argument
|
D | ActivityManagerNative.java | 511 int task = data.readInt(); in onTransact() local 513 moveTaskToFront(task, fl); in onTransact() 520 int task = data.readInt(); in onTransact() local 521 moveTaskToBack(task); in onTransact() 538 int task = data.readInt(); in onTransact() local 539 moveTaskBackwards(task); in onTransact() 2092 public void moveTaskToFront(int task, int flags) throws RemoteException in moveTaskToFront() argument 2097 data.writeInt(task); in moveTaskToFront() 2104 public void moveTaskToBack(int task) throws RemoteException in moveTaskToBack() argument 2109 data.writeInt(task); in moveTaskToBack() [all …]
|
/frameworks/base/docs/html/resources/articles/ |
D | timed-ui-updates.jd | 54 means wait 100 ms before running the clock update task the first time. 127 the clock update, the task sets up another call to itself from the
|
D | painless-threading.jd | 132 …e type, using generics, of the parameters, the progress values and the final value of the task</li> 136 …..%29">onProgressUpdate()</a> on the UI thread</li><li>You can cancel the task at any time, from a…
|
D | ui-1.6.jd | 85 <p>Setting up a click listener on a button is very common task, but
|
/frameworks/base/core/java/android/accounts/ |
D | AccountManager.java | 1767 final GetAuthTokenByTypeAndFeaturesTask task = 1770 task.start(); 1771 return task;
|