mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Add metrics sources for split invocation
* See design doc in bug description for usage/details Bug: 231369744 Change-Id: I0c0ec11e924e387c523b5ac5feb7cabf78eaa748
This commit is contained in:
@@ -16,12 +16,17 @@
|
||||
|
||||
package com.android.launcher3.util;
|
||||
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_APP_ICON_MENU_SPLIT_LEFT_TOP;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_APP_ICON_MENU_SPLIT_RIGHT_BOTTOM;
|
||||
|
||||
import static java.lang.annotation.RetentionPolicy.SOURCE;
|
||||
|
||||
import android.graphics.Rect;
|
||||
|
||||
import androidx.annotation.IntDef;
|
||||
|
||||
import com.android.launcher3.logging.StatsLogManager;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
|
||||
public final class SplitConfigurationOptions {
|
||||
@@ -170,4 +175,10 @@ public final class SplitConfigurationOptions {
|
||||
@StageType
|
||||
public int stageType = STAGE_TYPE_UNDEFINED;
|
||||
}
|
||||
|
||||
public static StatsLogManager.EventEnum getLogEventForPosition(@StagePosition int position) {
|
||||
return position == STAGE_POSITION_TOP_OR_LEFT
|
||||
? LAUNCHER_APP_ICON_MENU_SPLIT_LEFT_TOP
|
||||
: LAUNCHER_APP_ICON_MENU_SPLIT_RIGHT_BOTTOM;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user