Searched refs:tasks (Results 1 - 3 of 3) sorted by relevance

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
H A DMockTask.java70 public static void assertRanNever(String message, MockTask... tasks) { argument
71 for (MockTask task : tasks) {
76 public static void assertRanOnce(String message, MockTask... tasks) { argument
77 for (MockTask task : tasks) {
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DFakeAsyncTaskExecutor.java43 * list of submitted tasks, where they can be examined. They can also be run on-demand using the run
53 /** The maximum length of time in ms to wait for tasks to execute during tests. */
149 * Removes the matching task from the list of submitted tasks, then runs it. The executor used
157 List<SubmittedTask> tasks = getSubmittedTasksByIdentifier(identifier, true);
158 Assert.assertEquals("Expected one task " + identifier + ", got " + tasks, 1, tasks.size());
159 runTask(tasks.get(0));
163 * Runs all tasks whose identifier matches the given identifier.
165 * Removes all matching tasks from the list of submitted tasks, an
[all...]
/packages/apps/Nfc/src/com/android/nfc/
H A DP2pLinkManager.java315 List<RunningTaskInfo> tasks = mActivityManager.getRunningTasks(1);
316 if (tasks.size() > 0) {
317 String pkg = tasks.get(0).baseActivity.getPackageName();

Completed in 139 milliseconds