diff options
author | Becky Qiu <xuqiu@google.com> | 2019-08-08 11:33:53 -0700 |
---|---|---|
committer | Becky Qiu <xuqiu@google.com> | 2019-08-09 10:57:05 -0700 |
commit | 90ea00b39908c5e999b54a629fb2d5dca85a0b04 (patch) | |
tree | 11176f1eb05a479f4ebdeb4e95b2552483f4eab5 /quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java | |
parent | e4061fc931cb8bc50306a76e617761936a74b97f (diff) | |
download | android_packages_apps_Trebuchet-90ea00b39908c5e999b54a629fb2d5dca85a0b04.tar.gz android_packages_apps_Trebuchet-90ea00b39908c5e999b54a629fb2d5dca85a0b04.tar.bz2 android_packages_apps_Trebuchet-90ea00b39908c5e999b54a629fb2d5dca85a0b04.zip |
Log the event for swiping up to dismiss a task in Overview.
Test: manual
Bug: 137777105
Demo logging for dismissing a task:
data {
elapsed_timestamp_nanos: 70772067228810
atom {
launcher_event {
action: DISMISS_TASK
src_state: OVERVIEW
dst_state: BACKGROUND
is_swipe_up_enabled: true
}
}
}
Change-Id: I5569b80e2e1f35661bc5e9e343c6c298791a1ec1
Diffstat (limited to 'quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java')
-rw-r--r-- | quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java index 9b157d163..1bf77f53c 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java @@ -97,6 +97,7 @@ import com.android.launcher3.graphics.RotationMode; import com.android.launcher3.userevent.nano.LauncherLogProto; import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Direction; import com.android.launcher3.userevent.nano.LauncherLogProto.Action.Touch; +import com.android.launcher3.util.ComponentKey; import com.android.launcher3.util.OverScroller; import com.android.launcher3.util.PendingAnimation; import com.android.launcher3.util.Themes; @@ -1051,9 +1052,10 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl if (task != null) { ActivityManagerWrapper.getInstance().removeTask(task.key.id); if (shouldLog) { + ComponentKey componentKey = TaskUtils.getLaunchComponentKeyForTask(task.key); mActivity.getUserEventDispatcher().logTaskLaunchOrDismiss( - onEndListener.logAction, Direction.UP, index, - TaskUtils.getLaunchComponentKeyForTask(task.key)); + onEndListener.logAction, Direction.UP, index, componentKey); + mActivity.getStatsLogManager().logTaskDismiss(this, componentKey); } } } |