Using StatsLog for notifyingAppPredictor
> Adding a listener in StartsLogManager for listening to events. This allows events to be directored to the predictor only if it is already running, instead of creating it. > Unifying the event format to be same as hotseat predictor Bug: 160748731 Change-Id: Ib00e6249ff642c030f00bcad5b748255e704d16a
This commit is contained in:
1 parent
2c0cdfb100
commit
852537fd98
24 files changed
+259
-345
No files matched your search
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.android.launcher3.logging;
|
||||
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.IGNORE;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_CLOSE_DOWN;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_OPEN_UP;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_HOME_GESTURE;
|
||||
@@ -23,8 +22,6 @@ import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCH
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.logger.LauncherAtom.ContainerInfo;
|
||||
import com.android.launcher3.logger.LauncherAtom.FromState;
|
||||
@@ -403,19 +400,6 @@ public class StatsLogManager implements ResourceBasedOverride {
|
||||
return mgr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Log an event with ranked-choice information along with package. Does nothing if event.getId()
|
||||
* <= 0.
|
||||
*
|
||||
* @param rankingEvent an enum implementing EventEnum interface.
|
||||
* @param instanceId An identifier obtained from an InstanceIdSequence.
|
||||
* @param packageName the package name of the relevant app, if known (null otherwise).
|
||||
* @param position the position picked.
|
||||
*/
|
||||
public void log(EventEnum rankingEvent, InstanceId instanceId, @Nullable String packageName,
|
||||
int position) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Logs snapshot, or impression of the current workspace.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user