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); } } }
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); } } }
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); } } }