use of android.app.ActivityManager.AppTask in project android_frameworks_base by ResurrectionRemix.
the class LauncherActivity method findTask.
@Nullable
private Intent findTask(ActivityManager activities) {
List<AppTask> tasks = activities.getAppTasks();
for (AppTask task : tasks) {
Intent intent = task.getTaskInfo().baseIntent;
Uri uri = intent.getData();
if (isLaunchUri(uri)) {
return intent;
}
}
return null;
}
use of android.app.ActivityManager.AppTask in project android_frameworks_base by DirtyUnicorns.
the class LauncherActivity method findTask.
@Nullable
private Intent findTask(ActivityManager activities) {
List<AppTask> tasks = activities.getAppTasks();
for (AppTask task : tasks) {
Intent intent = task.getTaskInfo().baseIntent;
Uri uri = intent.getData();
if (isLaunchUri(uri)) {
return intent;
}
}
return null;
}
use of android.app.ActivityManager.AppTask in project android_frameworks_base by AOSPA.
the class LauncherActivity method findTask.
@Nullable
private Intent findTask(ActivityManager activities) {
List<AppTask> tasks = activities.getAppTasks();
for (AppTask task : tasks) {
Intent intent = task.getTaskInfo().baseIntent;
Uri uri = intent.getData();
if (isLaunchUri(uri)) {
return intent;
}
}
return null;
}
use of android.app.ActivityManager.AppTask in project android_frameworks_base by crdroidandroid.
the class LauncherActivity method findTask.
@Nullable
private Intent findTask(ActivityManager activities) {
List<AppTask> tasks = activities.getAppTasks();
for (AppTask task : tasks) {
Intent intent = task.getTaskInfo().baseIntent;
Uri uri = intent.getData();
if (isLaunchUri(uri)) {
return intent;
}
}
return null;
}
use of android.app.ActivityManager.AppTask in project android_packages_apps_Settings by LineageOS.
the class ChooseLockGenericTest method finishAllAppTasks.
private void finishAllAppTasks() {
final ActivityManager activityManager = getTargetContext().getSystemService(ActivityManager.class);
final List<AppTask> appTasks = activityManager.getAppTasks();
for (ActivityManager.AppTask task : appTasks) {
task.finishAndRemoveTask();
}
}
Aggregations