Merge "Add StatsLog*Manager for logging. Bug: 113043444" into ub-launcher3-master

This commit is contained in:
Hyunyoung Song
2018-11-05 20:04:59 +00:00
committed by Android (Google) Code Review
16 changed files with 271 additions and 66 deletions
@@ -168,9 +168,12 @@ public class TaskView extends FrameLayout implements PageCallbacks {
return;
}
launchTask(true /* animate */);
fromContext(context).getUserEventDispatcher().logTaskLaunchOrDismiss(
Touch.TAP, Direction.NONE, getRecentsView().indexOfChild(this),
TaskUtils.getLaunchComponentKeyForTask(getTask().key));
fromContext(context).getStatsLogManager().logTaskLaunch(getRecentsView(),
TaskUtils.getLaunchComponentKeyForTask(getTask().key));
});
setOutlineProvider(new TaskOutlineProvider(getResources()));
}