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

Commit 2e7f24c1 authored by thiruram's avatar thiruram Committed by Thiru Ramasamy
Browse files

Rename @LauncherUiEvent to @UiEvent to be consistent with other UiEvents.

Change-Id: I049a238f717cc2a6b0bbb4755794bc4de2935b97
parent ce8c2306
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -35,50 +35,50 @@ public class StatsLogManager implements ResourceBasedOverride {
    }

    public enum LauncherEvent implements EventEnum {
        @LauncherUiEvent(doc = "App launched from workspace, hotseat or folder in launcher")
        @UiEvent(doc = "App launched from workspace, hotseat or folder in launcher")
        LAUNCHER_APP_LAUNCH_TAP(338),

        @LauncherUiEvent(doc = "Task launched from overview using TAP")
        @UiEvent(doc = "Task launched from overview using TAP")
        LAUNCHER_TASK_LAUNCH_TAP(339),

        @LauncherUiEvent(doc = "Task launched from overview using SWIPE DOWN")
        @UiEvent(doc = "Task launched from overview using SWIPE DOWN")
        LAUNCHER_TASK_LAUNCH_SWIPE_DOWN(340),

        @LauncherUiEvent(doc = "TASK dismissed from overview using SWIPE UP")
        @UiEvent(doc = "TASK dismissed from overview using SWIPE UP")
        LAUNCHER_TASK_DISMISS_SWIPE_UP(341),

        @LauncherUiEvent(doc = "User dragged a launcher item")
        @UiEvent(doc = "User dragged a launcher item")
        LAUNCHER_ITEM_DRAG_STARTED(383),

        @LauncherUiEvent(doc = "A dragged launcher item is successfully dropped")
        @UiEvent(doc = "A dragged launcher item is successfully dropped")
        LAUNCHER_ITEM_DROP_COMPLETED(385),

        @LauncherUiEvent(doc = "A dragged launcher item is successfully dropped on another item "
        @UiEvent(doc = "A dragged launcher item is successfully dropped on another item "
                + "resulting in a new folder creation")
        LAUNCHER_ITEM_DROP_FOLDER_CREATED(386),

        @LauncherUiEvent(doc = "User action resulted in or manually updated the folder label to "
        @UiEvent(doc = "User action resulted in or manually updated the folder label to "
                + "new/same value.")
        LAUNCHER_FOLDER_LABEL_UPDATED(460),

        @LauncherUiEvent(doc = "A dragged item is dropped on 'Remove' button in the target bar")
        @UiEvent(doc = "A dragged item is dropped on 'Remove' button in the target bar")
        LAUNCHER_ITEM_DROPPED_ON_REMOVE(465),

        @LauncherUiEvent(doc = "A dragged item is dropped on 'Cancel' button in the target bar")
        @UiEvent(doc = "A dragged item is dropped on 'Cancel' button in the target bar")
        LAUNCHER_ITEM_DROPPED_ON_CANCEL(466),

        @LauncherUiEvent(doc = "A predicted item is dragged and dropped on 'Don't suggest app'"
        @UiEvent(doc = "A predicted item is dragged and dropped on 'Don't suggest app'"
                + " button in the target bar")
        LAUNCHER_ITEM_DROPPED_ON_DONT_SUGGEST(467),

        @LauncherUiEvent(doc = "A dragged item is dropped on 'Uninstall' button in target bar")
        @UiEvent(doc = "A dragged item is dropped on 'Uninstall' button in target bar")
        LAUNCHER_ITEM_DROPPED_ON_UNINSTALL(468),

        @LauncherUiEvent(doc = "User completed uninstalling the package after dropping on "
        @UiEvent(doc = "User completed uninstalling the package after dropping on "
                + "the icon onto 'Uninstall' button in the target bar")
        LAUNCHER_ITEM_UNINSTALL_COMPLETED(469),

        @LauncherUiEvent(doc = "User cancelled uninstalling the package after dropping on "
        @UiEvent(doc = "User cancelled uninstalling the package after dropping on "
                + "the icon onto 'Uninstall' button in the target bar")
        LAUNCHER_ITEM_UNINSTALL_CANCELLED(470);
        // ADD MORE
+7 −3
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.launcher3.logging;

import static java.lang.annotation.ElementType.FIELD;
@@ -23,8 +24,11 @@ import java.lang.annotation.Target;

@Retention(SOURCE)
@Target(FIELD)
public @interface LauncherUiEvent {
    /** An explanation, suitable for Android analysts, of the UI event that this log represents. */
//  Copy of frameworks/base/core/java/com/android/internal/logging/UiEvent.java
public @interface UiEvent {

    /**
     * An explanation, suitable for Android analysts, of the UI event that this log represents.
     */
    String doc();
}