void onActivityCreated(ProcessRecord targetApp, ComponentName component, ComponentName caller, IBinder token, Intent taskRoot, String affinity, int taskId, int launchMode, int flags) { synchronized (mHistory) { optimizeTasksLocked(); TaskRecord task = mHistory.get(taskId); if (task == null) { task = new TaskRecord(taskId, targetApp.userId, affinity, taskRoot); mHistory.put(taskId, task); } ActivityRecord record = new ActivityRecord(task, component, caller, token, targetApp.userId, targetApp, launchMode, flags, affinity); synchronized (task.activities) { task.activities.add(record); } } }
AppTaskInfo getTaskInfo(int taskId) { synchronized (mHistory) { TaskRecord task = mHistory.get(taskId); if (task != null) { return task.getAppTaskInfo(); } return null; } }
AppTaskInfo getTaskInfo(int taskId) { synchronized (mHistory) { TaskRecord task = mHistory.get(taskId); if (task != null) { return task.getAppTaskInfo(); } return null; } }
void onActivityCreated(ProcessRecord targetApp, ComponentName component, ComponentName caller, IBinder token, Intent taskRoot, String affinity, int taskId, int launchMode, int flags) { synchronized (mHistory) { optimizeTasksLocked(); TaskRecord task = mHistory.get(taskId); if (task == null) { task = new TaskRecord(taskId, targetApp.userId, affinity, taskRoot); mHistory.put(taskId, task); } ActivityRecord record = new ActivityRecord(task, component, caller, token, targetApp.userId, targetApp, launchMode, flags, affinity); synchronized (task.activities) { task.activities.add(record); } } }
AppTaskInfo getTaskInfo(int taskId) { synchronized (mHistory) { TaskRecord task = mHistory.get(taskId); if (task != null) { return task.getAppTaskInfo(); } return null; } }
void onActivityCreated(ProcessRecord targetApp, ComponentName component, ComponentName caller, IBinder token, Intent taskRoot, String affinity, int taskId, int launchMode, int flags) { synchronized (mHistory) { optimizeTasksLocked(); TaskRecord task = mHistory.get(taskId); if (task == null) { task = new TaskRecord(taskId, targetApp.userId, affinity, taskRoot); mHistory.put(taskId, task); } ActivityRecord record = new ActivityRecord(task, component, caller, token, targetApp.userId, targetApp, launchMode, flags, affinity); synchronized (task.activities) { task.activities.add(record); } } }