summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/logging
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-11-21 19:48:08 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-11-21 19:48:08 +0000
commit0860e41d50ec2fbb16119fd364e36251b04932eb (patch)
treec740eee1a3477e05fae72e3e185303ef87c78da3 /src/com/android/launcher3/logging
parentd423a8b86807d85dff2437cdb968dd730b1e5593 (diff)
parent0d4899026c16f7e830cfe32c717951e8bb494c84 (diff)
downloadpackages_apps_Trebuchet-0860e41d50ec2fbb16119fd364e36251b04932eb.tar.gz
packages_apps_Trebuchet-0860e41d50ec2fbb16119fd364e36251b04932eb.tar.bz2
packages_apps_Trebuchet-0860e41d50ec2fbb16119fd364e36251b04932eb.zip
Add logging for workspace rearrangement in overview mode
am: 0d4899026c Change-Id: Ie6569ecafdd63981e167a910f852a8133697ae81
Diffstat (limited to 'src/com/android/launcher3/logging')
-rw-r--r--src/com/android/launcher3/logging/UserEventDispatcher.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/com/android/launcher3/logging/UserEventDispatcher.java b/src/com/android/launcher3/logging/UserEventDispatcher.java
index 441d8e5f5..abe8f4235 100644
--- a/src/com/android/launcher3/logging/UserEventDispatcher.java
+++ b/src/com/android/launcher3/logging/UserEventDispatcher.java
@@ -27,6 +27,7 @@ import com.android.launcher3.DropTarget;
import com.android.launcher3.ItemInfo;
import com.android.launcher3.Utilities;
import com.android.launcher3.config.ProviderConfig;
+import com.android.launcher3.userevent.nano.LauncherLogProto;
import com.android.launcher3.userevent.nano.LauncherLogProto.Action;
import com.android.launcher3.userevent.nano.LauncherLogProto.LauncherEvent;
import com.android.launcher3.userevent.nano.LauncherLogProto.Target;
@@ -193,6 +194,25 @@ public class UserEventDispatcher {
mPredictedApps = predictedApps;
}
+ /* Currently we are only interested in whether this event happens or not and don't
+ * care about which screen moves to where. */
+ public void logOverviewReorder() {
+ LauncherEvent event = new LauncherLogProto.LauncherEvent();
+
+ event.srcTarget = new LauncherLogProto.Target[2];
+ event.srcTarget[0] = new LauncherLogProto.Target();
+ event.srcTarget[0].type = Target.CONTAINER;
+ event.srcTarget[0].containerType = LauncherLogProto.WORKSPACE;
+ event.srcTarget[1] = new LauncherLogProto.Target();
+ event.srcTarget[1].type = Target.CONTAINER;
+ event.srcTarget[1].containerType = LauncherLogProto.OVERVIEW;
+
+ event.action = new LauncherLogProto.Action();
+ event.action.type = Action.TOUCH;
+ event.action.touch = Action.DRAGDROP;
+ dispatchUserEvent(event, null);
+
+ }
public void logDragNDrop(DropTarget.DragObject dragObj, View dropTargetAsView) {
LauncherEvent event = LoggerUtils.initLauncherEvent(Action.TOUCH,
dragObj.dragView,