Home
last modified time | relevance | path

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

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DMockTask.java70 public static void assertRanNever(String message, MockTask... tasks) { in assertRanNever() argument
71 for (MockTask task : tasks) { in assertRanNever()
76 public static void assertRanOnce(String message, MockTask... tasks) { in assertRanOnce() argument
77 for (MockTask task : tasks) { in assertRanOnce()
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DFakeAsyncTaskExecutor.java158 List<SubmittedTask> tasks = getSubmittedTasksByIdentifier(identifier, true); in runTask() local
159 Assert.assertEquals("Expected one task " + identifier + ", got " + tasks, 1, tasks.size()); in runTask()
160 runTask(tasks.get(0)); in runTask()
174 List<SubmittedTask> tasks = getSubmittedTasksByIdentifier(identifier, true); in runAllTasks() local
175 Assert.assertTrue("There were no tasks with identifier " + identifier, tasks.size() > 0); in runAllTasks()
176 for (SubmittedTask task : tasks) { in runAllTasks()
/packages/apps/Nfc/src/com/android/nfc/
DP2pLinkManager.java247 List<RunningTaskInfo> tasks = mActivityManager.getRunningTasks(1); in createDefaultNdef() local
248 if (tasks.size() > 0) { in createDefaultNdef()
249 String pkg = tasks.get(0).baseActivity.getPackageName(); in createDefaultNdef()