mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +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,6 +16,7 @@
|
||||
|
||||
package com.android.launcher3.util;
|
||||
|
||||
import com.android.launcher3.logging.StatsLogManager;
|
||||
import com.android.launcher3.util.SplitConfigurationOptions.StagePosition;
|
||||
|
||||
/**
|
||||
@@ -28,10 +29,13 @@ public class PendingSplitSelectInfo {
|
||||
|
||||
private final int mStagedTaskId;
|
||||
private final int mStagePosition;
|
||||
private final StatsLogManager.EventEnum mSource;
|
||||
|
||||
public PendingSplitSelectInfo(int stagedTaskId, int stagePosition) {
|
||||
public PendingSplitSelectInfo(int stagedTaskId, int stagePosition,
|
||||
StatsLogManager.EventEnum source) {
|
||||
this.mStagedTaskId = stagedTaskId;
|
||||
this.mStagePosition = stagePosition;
|
||||
this.mSource = source;
|
||||
}
|
||||
|
||||
public int getStagedTaskId() {
|
||||
@@ -41,4 +45,8 @@ public class PendingSplitSelectInfo {
|
||||
public @StagePosition int getStagePosition() {
|
||||
return mStagePosition;
|
||||
}
|
||||
|
||||
public StatsLogManager.EventEnum getSource() {
|
||||
return mSource;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user