HomeSort by relevance Sort by last modified time
    Searched refs:AppTask (Results 1 - 9 of 9) sorted by null

  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowAppTask.java 5 import android.app.ActivityManager.AppTask;
15 @Implements(value = AppTask.class, minSdk = LOLLIPOP)
22 public static AppTask newInstance() {
24 AppTask.class, ReflectionHelpers.ClassParameter.from(IAppTask.class, null));
ShadowActivityManager.java 31 private final List<ActivityManager.AppTask> appTasks = new CopyOnWriteArrayList<>();
64 * For tests, returns the list of {@link android.app.ActivityManager.AppTask} set using {@link
68 * @return List of current AppTask.
71 protected List<ActivityManager.AppTask> getAppTasks() {
154 public void setAppTasks(List<ActivityManager.AppTask> appTasks) {
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowAppTaskTest.java 8 import android.app.ActivityManager.AppTask;
23 final AppTask appTask = ShadowAppTask.newInstance();
25 appTask.finishAndRemoveTask();
27 assertThat(shadowOf(appTask).isFinishedAndRemoved()).isTrue();
42 final AppTask appTask = ShadowAppTask.newInstance();
46 shadowOf(appTask).setTaskInfo(recentTaskInfo);
48 assertThat(appTask.getTaskInfo()).isSameAs(recentTaskInfo);
53 final AppTask appTask = ShadowAppTask.newInstance()
    [all...]
ShadowActivityManagerTest.java 11 import android.app.ActivityManager.AppTask;
69 final AppTask task1 = ShadowAppTask.newInstance();
70 final AppTask task2 = ShadowAppTask.newInstance();
  /cts/tests/app/src/android/app/cts/
AppTaskTests.java 98 final List<ActivityManager.AppTask> appTasks = getAppTasks();
112 final List<ActivityManager.AppTask> appTasks = getAppTasks();
158 final ActivityManager.AppTask task = getAppTask(a1);
179 final ActivityManager.AppTask task = getAppTask(a1);
196 final List<ActivityManager.AppTask> appTasks = getAppTasks();
197 final ActivityManager.AppTask t1 = appTasks.get(0);
207 * @return all the {@param ActivityManager.AppTask}s for the current app.
209 private List<ActivityManager.AppTask> getAppTasks() {
215 * @return the {@param ActivityManager.AppTask} for the associated activity.
217 private ActivityManager.AppTask getAppTask(Activity activity)
    [all...]
  /developers/build/prebuilts/gradle/DocumentCentricApps/Application/tests/src/com/example/android/documentcentricapps/tests/
DocumentCentricAppsInstrumentationTest.java 61 List<ActivityManager.AppTask> recentAppTasks = getRecentAppTasks();
65 private List<ActivityManager.AppTask> getRecentAppTasks() {
68 List<ActivityManager.AppTask> appTasks = activityManager.getAppTasks();
  /developers/samples/android/ui/activitytasks/DocumentCentricApps/Application/tests/src/com/example/android/documentcentricapps/tests/
DocumentCentricAppsInstrumentationTest.java 61 List<ActivityManager.AppTask> recentAppTasks = getRecentAppTasks();
65 private List<ActivityManager.AppTask> getRecentAppTasks() {
68 List<ActivityManager.AppTask> appTasks = activityManager.getAppTasks();
  /development/samples/IntentPlayground/src/com/example/android/intentplayground/
IntentDialogFragment.java 126 List<ActivityManager.AppTask> appTasks = am.getAppTasks();
128 Optional<ActivityManager.AppTask> taskToKill = appTasks.stream().filter(
InlineAdapter.java 22 import android.app.ActivityManager.AppTask;

Completed in 473 milliseconds