Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 377debe4 authored by thiruram's avatar thiruram
Browse files

Log tap on pause app.

Screencast: http://go/recall/-/fuZYA4w9pUEvRlF811dY61/FaK9EfH884yqKCPKUSWTw
Log : https://paste.googleplex.com/5492235632115712

Bug: 157770913
Change-Id: I08bfc28b6fd4eb987692fb36835d94f40f3216af
parent a00bcf32
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -104,15 +104,17 @@ public class StatsLogManager implements ResourceBasedOverride {
                + "shortcut within longpress popup window.")
                + "shortcut within longpress popup window.")
        LAUNCHER_SYSTEM_SHORTCUT_WIDGETS_TAP(514),
        LAUNCHER_SYSTEM_SHORTCUT_WIDGETS_TAP(514),


        @UiEvent(doc = "User opened app info of the package by tapping on appinfo system shortcut "
        @UiEvent(doc = "User tapped on app info system shortcut.")
                + "within longpress popup window.")
        LAUNCHER_SYSTEM_SHORTCUT_APP_INFO_TAP(515),
        LAUNCHER_SYSTEM_SHORTCUT_APP_INFO_TAP(515),


        @UiEvent(doc = "User tapped on split screen icon on a task menu.")
        @UiEvent(doc = "User tapped on split screen icon on a task menu.")
        LAUNCHER_SYSTEM_SHORTCUT_SPLIT_SCREEN_TAP(518),
        LAUNCHER_SYSTEM_SHORTCUT_SPLIT_SCREEN_TAP(518),


        @UiEvent(doc = "User tapped on free form icon on a task menu.")
        @UiEvent(doc = "User tapped on free form icon on a task menu.")
        LAUNCHER_SYSTEM_SHORTCUT_FREE_FORM_TAP(519);
        LAUNCHER_SYSTEM_SHORTCUT_FREE_FORM_TAP(519),

        @UiEvent(doc = "User tapped on pause app system shortcut.")
        LAUNCHER_SYSTEM_SHORTCUT_PAUSE_TAP(519);
        // ADD MORE
        // ADD MORE


        private final int mId;
        private final int mId;
+3 −0
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@


package com.android.launcher3.popup;
package com.android.launcher3.popup;


import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_SYSTEM_SHORTCUT_PAUSE_TAP;
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;
import static com.android.launcher3.util.Executors.MAIN_EXECUTOR;


import android.annotation.TargetApi;
import android.annotation.TargetApi;
@@ -76,6 +77,8 @@ public class RemoteActionShortcut extends SystemShortcut<BaseDraggingActivity> {
    @Override
    @Override
    public void onClick(View view) {
    public void onClick(View view) {
        AbstractFloatingView.closeAllOpenViews(mTarget);
        AbstractFloatingView.closeAllOpenViews(mTarget);
        mTarget.getStatsLogManager()
                .log(LAUNCHER_SYSTEM_SHORTCUT_PAUSE_TAP, mItemInfo.buildProto());


        final String actionIdentity = mAction.getTitle() + ", "
        final String actionIdentity = mAction.getTitle() + ", "
                + mItemInfo.getTargetComponent().getPackageName();
                + mItemInfo.getTargetComponent().getPackageName();