Searched refs:runningTasks (Results 1 – 2 of 2) sorted by relevance
55 List<ActivityManager.RunningTaskInfo> runningTasks = manager.getRunningTasks(10); in testGetTask() local59 removeHomeRunningTasks(runningTasks); in testGetTask()60 assertTrue("Found tasks: " + runningTasks, in testGetTask()61 runningTasks == null || runningTasks.size() <= 1); in testGetTask()
68 List<ActivityManager.RunningTaskInfo> runningTasks = activityManager.getRunningTasks(1); in foregroundActivity() local69 if (runningTasks.isEmpty()) { in foregroundActivity()73 return new ComponentReference(mTestApis, runningTasks.get(0).topActivity); in foregroundActivity()