/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LockTaskControllerTest.java | 172 Task tr = getTask(Task.LOCK_TASK_AUTH_WHITELISTED); in testStartLockTaskMode_once() 189 Task tr1 = getTask(Task.LOCK_TASK_AUTH_WHITELISTED); in testStartLockTaskMode_twice() 190 Task tr2 = getTask(Task.LOCK_TASK_AUTH_WHITELISTED); in testStartLockTaskMode_twice() 209 Task tr = getTask(Task.LOCK_TASK_AUTH_PINNABLE); in testStartLockTaskMode_pinningRequest() 221 Task tr = getTask(Task.LOCK_TASK_AUTH_PINNABLE); in testStartLockTaskMode_pinnedBySystem() 240 Task tr = getTask(Task.LOCK_TASK_AUTH_WHITELISTED); in testLockTaskViolation() 248 Task.LOCK_TASK_AUTH_PINNABLE))); in testLockTaskViolation() 251 Task.LOCK_TASK_AUTH_DONT_LOCK))); in testLockTaskViolation() 255 Task.LOCK_TASK_AUTH_WHITELISTED))); in testLockTaskViolation() 257 Task.LOCK_TASK_AUTH_LAUNCHABLE))); in testLockTaskViolation() [all …]
|
D | RecentTasksTest.java | 113 private ArrayList<Task> mTasks; 114 private ArrayList<Task> mSameDocumentTasks; 224 Task documentTask1 = createDocumentTask(".DocumentTask1"); in testAddTasksNoMultiple_expectNoTrim() 225 Task documentTask2 = createDocumentTask(".DocumentTask1"); in testAddTasksNoMultiple_expectNoTrim() 238 Task documentTask1 = createDocumentTask(".DocumentTask1"); in testAddTasksMaxTaskRecents_expectNoTrim() 239 Task documentTask2 = createDocumentTask(".DocumentTask1"); in testAddTasksMaxTaskRecents_expectNoTrim() 254 Task documentTask1 = createDocumentTask(".DocumentTask1"); in testAddTasksSameTask_expectNoTrim() 266 Task documentTask1 = createDocumentTask(".DocumentTask1", in testAddTasksMultipleDocumentTasks_expectNoTrim() 268 Task documentTask2 = createDocumentTask(".DocumentTask1", in testAddTasksMultipleDocumentTasks_expectNoTrim() 308 Task task1 = createTaskBuilder(".Task1") in testAddTasksMultipleTasks_expectRemovedNoTrim() [all …]
|
D | TaskRecordTests.java | 111 final Task expected = createTask(64); in testRestoreWindowedTask() 115 final Task actual = restoreFromBytes(serializedBytes); in testRestoreWindowedTask() 123 final Task task = createTask(1); in testCopyBaseIntentForTaskInfo() 133 final Task task = createTask(1); in testReturnsToHomeStack() 177 Task task = new TaskBuilder(mSupervisor).setStack(stack).build(); in testFitWithinBounds() 215 Task task = stack.getBottomMostTask(); in testBoundsOnModeChangeFreeformToFullscreen() 256 Task task = stack.getBottomMostTask(); in testFullscreenBoundsForcedOrientation() 317 Task task = stack.getBottomMostTask(); in testIgnoresForcedOrientationWhenParentHandles() 342 final Task task = new TaskBuilder(mSupervisor).setDisplay(display).build(); in testComputeConfigResourceOverrides() 407 final Task task = new TaskBuilder(mSupervisor).build(); in testComputeNestedConfigResourceOverrides() [all …]
|
D | TaskTests.java | 58 final Task task = createTaskInStack(stackController1, 0 /* userId */); in testRemoveContainer() 72 final Task task = createTaskInStack(stackController1, 0 /* userId */); in testRemoveContainer_deferRemoval() 94 final Task task = createTaskInStack(stackController1, 0 /* userId */); in testReparent() 96 final Task task2 = createTaskInStack(stackController2, 0 /* userId */); in testReparent() 124 final Task task = createTaskInStack(stack1, 0 /* userId */); in testReparent_BetweenDisplays() 130 final Task task2 = createTaskInStack(stack2, 0 /* userId */); in testReparent_BetweenDisplays() 143 final Task task = createTaskInStack(stack1, 0 /* userId */); in testBounds() 154 final Task task1 = createTaskStackOnDisplay(mDisplayContent); in testIsInStack() 155 final Task task2 = createTaskStackOnDisplay(mDisplayContent); in testIsInStack() 166 final Task task = createTaskStackOnDisplay(mDisplayContent); in testRemoveChildForOverlayTask()
|
D | TaskStackTests.java | 63 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testStackPositionChildAt() 64 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testStackPositionChildAt() 87 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testClosingAppDifferentStackOrientation() 93 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testClosingAppDifferentStackOrientation() 107 final Task task1 = createTaskInStack(stack, 0 /* userId */); in testMoveTaskToBackDifferentStackOrientation() 113 final Task task2 = createTaskInStack(stack, 1 /* userId */); in testMoveTaskToBackDifferentStackOrientation() 124 final Task task = createTaskInStack(stack, 0 /* userId */); in testStackRemoveImmediately() 136 final Task task = createTaskInStack(stack, 0 /* userId */); in testRemoveContainer() 152 final Task task = createTaskInStack(stack, 0 /* userId */); in testRemoveContainer_deferRemoval() 176 final Task task1 = createTaskInStack(stack1, 0 /* userId */); in testReparent() [all …]
|
D | WindowOrganizerTests.java | 106 Task createTask(ActivityStack stack, boolean fakeDraw) { in createTask() 107 final Task task = createTaskInStack(stack, 0); in createTask() 115 Task createTask(ActivityStack stack) { in createTask() 134 final Task task = createTask(stack); in testAppearVanish() 148 final Task task = createTask(stack, false); in testAppearWaitsForVisibility() 167 final Task task = createTask(stack, false /* hasBeenVisible */); in testNoVanishedIfNoAppear() 183 final Task task = createTask(stack); in testSwapOrganizer() 197 final Task task = createTask(stack); in testSwapWindowingModes() 211 final Task task = createTask(stack, false /* fakeDraw */); in testTaskNoDraw() 227 final Task task = createTask(stack); in testClearOrganizer() [all …]
|
D | WindowManagerServiceTests.java | 128 Task focusedTask = createTaskInStack(focusedStack, 0 /* userId */); in testTaskFocusChange_stackNotHomeType_focusChanges() 134 Task tappedTask = createTaskInStack(tappedStack, 0 /* userId */); in testTaskFocusChange_stackNotHomeType_focusChanges() 149 Task focusedTask = createTaskInStack(focusedStack, 0 /* userId */); in testTaskFocusChange_stackHomeTypeWithSameTaskDisplayArea_focusDoesNotChange() 155 Task tappedTask = createTaskInStack(tappedStack, 0 /* userId */); in testTaskFocusChange_stackHomeTypeWithSameTaskDisplayArea_focusDoesNotChange() 174 Task focusedTask = createTaskInStack(focusedStack, 0 /* userId */); in testTaskFocusChange_stackHomeTypeWithDifferentTaskDisplayArea_focusChanges() 180 Task tappedTask = createTaskInStack(tappedStack, 0 /* userId */); in testTaskFocusChange_stackHomeTypeWithDifferentTaskDisplayArea_focusChanges()
|
/frameworks/base/cmds/incident_helper/tests/ |
D | CpuInfoParser_test.cpp | 88 CpuInfoProto::Task* task1 = expected.add_tasks(); in TEST_F() 95 task1->set_s(CpuInfoProto::Task::STATUS_R); in TEST_F() 98 task1->set_pcy(CpuInfoProto::Task::POLICY_UNKNOWN); in TEST_F() 102 CpuInfoProto::Task* task2 = expected.add_tasks(); in TEST_F() 109 task2->set_s(CpuInfoProto::Task::STATUS_S); in TEST_F() 112 task2->set_pcy(CpuInfoProto::Task::POLICY_fg); in TEST_F() 116 CpuInfoProto::Task* task3 = expected.add_tasks(); in TEST_F() 123 task3->set_s(CpuInfoProto::Task::STATUS_S); in TEST_F() 126 task3->set_pcy(CpuInfoProto::Task::POLICY_bg); in TEST_F() 130 CpuInfoProto::Task* task4 = expected.add_tasks(); in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | EventLogTags.logtags | 9 30001 wm_finish_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Reason|3) 11 30002 wm_task_to_front (User|1|5),(Task|1|5) 13 30003 wm_new_intent (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Action|3),(MIME Type|3… 15 30004 wm_create_task (User|1|5),(Task ID|1|5) 17 30005 wm_create_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Action|3),(MIME T… 19 30006 wm_restart_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3) 21 30007 wm_resume_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3) 33 30018 wm_destroy_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Reason|3) 35 30019 wm_relaunch_resume_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3) 37 30020 wm_relaunch_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3) [all …]
|
D | RecentTasks.java | 123 private static final Comparator<Task> TASK_ID_COMPARATOR = 139 void onRecentTaskAdded(Task task); in onRecentTaskAdded() 144 void onRecentTaskRemoved(Task task, boolean wasTrimmed, boolean killProcess); in onRecentTaskRemoved() 176 private final ArrayList<Task> mTasks = new ArrayList<>(); 180 private final ArrayList<Task> mHiddenTasks = new ArrayList<>(); 196 private final ArrayList<Task> mTmpRecents = new ArrayList<>(); 219 final Task topTask = stack != null ? stack.getTopMostTask() : null; 296 void resetFreezeTaskListReordering(Task topTask) { in resetFreezeTaskListReordering() 327 final Task topTask = focusedStack != null ? focusedStack.getTopMostTask() : null; in resetFreezeTaskListReorderingOnTimeout() 445 private void notifyTaskAdded(Task task) { in notifyTaskAdded() [all …]
|
D | RunningTasks.java | 40 private static final Comparator<Task> LAST_ACTIVE_TIME_COMPARATOR = 43 private final TreeSet<Task> mTmpSortedSet = new TreeSet<>(LAST_ACTIVE_TIME_COMPARATOR); 74 PooledLambda.__(Task.class)); in getTasks() 79 final Iterator<Task> iter = mTmpSortedSet.iterator(); in getTasks() 85 final Task task = iter.next(); in getTasks() 91 private void processTask(Task task) { in processTask() 128 private RunningTaskInfo createRunningTaskInfo(Task task) { in createRunningTaskInfo()
|
D | TaskOrganizerController.java | 115 void onTaskAppeared(Task task) { in onTaskAppeared() 136 void onTaskVanished(Task task) { in onTaskVanished() 147 void onTaskInfoChanged(Task task, ActivityManager.RunningTaskInfo taskInfo) { in onTaskInfoChanged() 166 void onBackPressedOnTaskRoot(Task task) { in onBackPressedOnTaskRoot() 189 private final ArrayList<Task> mOrganizedTasks = new ArrayList<>(); 213 void addTask(Task t) { in addTask() 225 void removeTask(Task t) { in removeTask() 243 final Task t = mOrganizedTasks.get(0); in dispose() 263 private final WeakHashMap<Task, RunningTaskInfo> mLastSentTaskInfos = new WeakHashMap<>(); 264 private final ArrayList<Task> mPendingTaskInfoChanges = new ArrayList<>(); [all …]
|
D | LockTaskController.java | 36 import static com.android.server.wm.Task.LOCK_TASK_AUTH_DONT_LOCK; 37 import static com.android.server.wm.Task.LOCK_TASK_AUTH_LAUNCHABLE; 38 import static com.android.server.wm.Task.LOCK_TASK_AUTH_LAUNCHABLE_PRIV; 39 import static com.android.server.wm.Task.LOCK_TASK_AUTH_PINNABLE; 40 import static com.android.server.wm.Task.LOCK_TASK_AUTH_WHITELISTED; 161 private final ArrayList<Task> mLockTaskModeTasks = new ArrayList<>(); 225 boolean isTaskLocked(Task task) { in isTaskLocked() 232 private boolean isRootTask(Task task) { in isRootTask() 241 final Task task = activity.getTask(); in activityBlockedFromFinish() 258 boolean canMoveTaskToBack(Task task) { in canMoveTaskToBack() [all …]
|
D | TaskSnapshotController.java | 101 private final ArraySet<Task> mSkipClosingAppSnapshotTasks = new ArraySet<>(); 102 private final ArraySet<Task> mTmpTasks = new ArraySet<>(); 173 void addSkipClosingAppSnapshotTasks(ArraySet<Task> tasks) { in addSkipClosingAppSnapshotTasks() 177 void snapshotTasks(ArraySet<Task> tasks) { in snapshotTasks() 181 private void snapshotTasks(ArraySet<Task> tasks, boolean allowSnapshotHome) { in snapshotTasks() 183 final Task task = tasks.valueAt(i); in snapshotTasks() 252 @Nullable private ActivityRecord findAppTokenForSnapshot(Task task) { in findAppTokenForSnapshot() 279 boolean prepareTaskSnapshot(Task task, int pixelFormat, TaskSnapshot.Builder builder) { 341 SurfaceControl.ScreenshotGraphicBuffer createTaskSnapshot(@NonNull Task task, 351 SurfaceControl.ScreenshotGraphicBuffer createTaskSnapshot(@NonNull Task task, [all …]
|
D | ResetTargetTaskHelper.java | 38 private Task mTask; 39 private Task mTargetTask; 51 private void reset(Task task) { in reset() 60 ActivityOptions process(Task targetTask, boolean forceReset) { in process() 68 ResetTargetTaskHelper::processTask, this, PooledLambda.__(Task.class)); in process() 77 private void processTask(Task task) { in processTask() 210 private void processResultActivities(ActivityRecord target, Task targetTask, int position, in processResultActivities() 249 final Task task = alwaysCreateTask in processPendingReparentActivities() 251 Task targetTask = null; in processPendingReparentActivities()
|
D | TaskPersister.java | 120 private void removeThumbnails(Task task) { in removeThumbnails() 187 void wakeup(Task task, boolean flush) { in wakeup() 258 private Task taskIdToTask(int taskId, ArrayList<Task> tasks) { in taskIdToTask() 263 final Task task = tasks.get(taskNdx); in taskIdToTask() 272 List<Task> restoreTasksForUserLocked(final int userId, SparseBooleanArray preaddedTasks) { in restoreTasksForUserLocked() 273 final ArrayList<Task> tasks = new ArrayList<Task>(); in restoreTasksForUserLocked() 322 final Task task = Task.restoreFromXml(in, mStackSupervisor); in restoreTasksForUserLocked() 377 final Task task = tasks.get(taskNdx); in restoreTasksForUserLocked() 382 Collections.sort(tasks, new Comparator<Task>() { in restoreTasksForUserLocked() 384 public int compare(Task lhs, Task rhs) { in restoreTasksForUserLocked() [all …]
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
D | CpuInfoParser.cpp | 57 …Table table(CpuInfoProto::Task::_FIELD_NAMES, CpuInfoProto::Task::_FIELD_IDS, CpuInfoProto::Task::… in Parse() 58 table.addEnumTypeMap("s", CpuInfoProto::Task::_ENUM_STATUS_NAMES, in Parse() 59 CpuInfoProto::Task::_ENUM_STATUS_VALUES, CpuInfoProto::Task::_ENUM_STATUS_COUNT); in Parse() 60 table.addEnumTypeMap("pcy", CpuInfoProto::Task::_ENUM_POLICY_NAMES, in Parse() 61 CpuInfoProto::Task::_ENUM_POLICY_VALUES, CpuInfoProto::Task::_ENUM_POLICY_COUNT); in Parse()
|
/frameworks/native/services/vr/performanced/ |
D | performance_service.cpp | 23 using android::dvr::Task; 52 static bool Check(const Message& sender, const Task&) { in Check() 63 static bool Check(const Message& sender, const Task&) { in Check() 73 static bool Check(const Message& sender, const Task&) { in Check() 80 static bool Check(const Message& sender, const Task& task) { in Check() 88 static bool Check(const Message& sender, const Task& task) { in Check() 98 static bool Check(const Message& sender, const Task& task) { in Check() 115 Task task(getpid()); in PerformanceService() 117 task.user_id()[Task::kUidReal], task.group_id()[Task::kUidReal]); in PerformanceService() 143 const pdx::Message& sender, const Task& task) { in PerformanceService() [all …]
|
D | task.h | 22 class Task { 24 explicit Task(pid_t task_id); 76 Task(const Task&) = delete; 77 void operator=(const Task&) = delete;
|
D | task.cpp | 44 Task::Task(pid_t task_id) in Task() function in android::dvr::Task 65 base::unique_fd Task::OpenTaskFile(const std::string& name) const { in OpenTaskFile() 71 UniqueFile Task::OpenTaskFilePointer(const std::string& name) const { in OpenTaskFilePointer() 88 std::string Task::GetStatusField(const std::string& field) const { in GetStatusField() 112 void Task::ReadStatusFields() { in ReadStatusFields() 151 std::string Task::GetCpuSetPath() const { in GetCpuSetPath()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | GapWorker.java | 37 static class Task { class in GapWorker 58 private ArrayList<Task> mTasks = new ArrayList<>(); 183 static Comparator<Task> sTaskComparator = new Comparator<Task>() { 185 public int compare(Task lhs, Task rhs) { 227 final Task task; in buildTaskList() 229 task = new Task(); in buildTaskList() 323 private void flushTaskWithDeadline(Task task, long deadlineNs) { in flushTaskWithDeadline() 334 final Task task = mTasks.get(i); in flushTasksWithDeadline()
|
/frameworks/base/services/core/jni/BroadcastRadio/ |
D | NativeCallbackThread.h | 29 typedef std::function<void(JNIEnv*)> Task; typedef 32 std::queue<Task> mQueue; 47 void enqueue(const Task &task);
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | Task.java | 42 public class Task { class 50 void onTaskDataLoaded(Task task, ThumbnailData thumbnailData); in onTaskDataLoaded() 272 public Task() { in Task() method in Task 279 public static Task from(TaskKey taskKey, TaskInfo taskInfo, boolean isLocked) { in from() 281 return new Task(taskKey, in from() 287 public Task(TaskKey key) { in Task() method in Task 292 public Task(TaskKey key, int colorPrimary, int colorBackground, in Task() method in Task 305 public Task(TaskKey key, Drawable icon, ThumbnailData thumbnail, String title, in Task() method in Task 333 public void copyFrom(Task o) { in copyFrom() 413 Task t = (Task) o; in equals()
|
/frameworks/base/libs/hwui/thread/ |
D | CommonPool.h | 79 using Task = std::function<void()>; 83 static void post(Task&& func); 109 void enqueue(Task&&); 117 ArrayQueue<Task, QUEUE_SIZE> mWorkQueue;
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | MessageQueue.h | 38 class Task : public MessageHandler { 42 explicit Task(F&& f) : mTask(std::move(f)) {} in Task() function 52 sp<Task<F>> task = new Task<F>(std::move(f)); in makeTask()
|