Searched refs:tasks (Results 1 – 3 of 3) sorted by relevance
70 public static void assertRanNever(String message, MockTask... tasks) { in assertRanNever() argument71 for (MockTask task : tasks) { in assertRanNever()76 public static void assertRanOnce(String message, MockTask... tasks) { in assertRanOnce() argument77 for (MockTask task : tasks) { in assertRanOnce()
158 List<SubmittedTask> tasks = getSubmittedTasksByIdentifier(identifier, true); in runTask() local159 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() local175 Assert.assertTrue("There were no tasks with identifier " + identifier, tasks.size() > 0); in runAllTasks()176 for (SubmittedTask task : tasks) { in runAllTasks()
247 List<RunningTaskInfo> tasks = mActivityManager.getRunningTasks(1); in createDefaultNdef() local248 if (tasks.size() > 0) { in createDefaultNdef()249 String pkg = tasks.get(0).baseActivity.getPackageName(); in createDefaultNdef()