[AA+] Use different launcher event to log all apps entry with device search.
Bug: 178562918 Test: Manual Change-Id: I56357e871dd57257ccd56a073cccc7e38529c6c6
This commit is contained in:
1 parent
2fb22af840
commit
9f53d61334
2 files changed
+9
-1
No files matched your search
@@ -42,6 +42,7 @@ import static com.android.launcher3.dragndrop.DragLayer.ALPHA_INDEX_LAUNCHER_LOA
|
||||
import static com.android.launcher3.logging.StatsLogManager.LAUNCHER_STATE_BACKGROUND;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LAUNCHER_STATE_HOME;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_ENTRY;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_ENTRY_WITH_DEVICE_SEARCH;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_EXIT;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ONRESUME;
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ONSTOP;
|
||||
@@ -1067,7 +1068,11 @@ public class Launcher extends StatefulActivity<LauncherState> implements Launche
|
||||
if (ALL_APPS.equals(state)) {
|
||||
// creates new instance ID since new all apps session is started.
|
||||
mAllAppsSessionLogId = new InstanceIdSequence().newInstanceId();
|
||||
getStatsLogManager().logger().log(LAUNCHER_ALLAPPS_ENTRY);
|
||||
getStatsLogManager()
|
||||
.logger()
|
||||
.log(FeatureFlags.ENABLE_DEVICE_SEARCH.get()
|
||||
? LAUNCHER_ALLAPPS_ENTRY_WITH_DEVICE_SEARCH
|
||||
: LAUNCHER_ALLAPPS_ENTRY);
|
||||
} else if (ALL_APPS.equals(mPrevLauncherState)
|
||||
// Check if mLogInstanceId is not null to make sure exit event is logged only once.
|
||||
&& mAllAppsSessionLogId != null) {
|
||||
|
||||
@@ -392,6 +392,9 @@ public class StatsLogManager implements ResourceBasedOverride {
|
||||
|
||||
@UiEvent(doc = "User selected from a selection row of Slice.")
|
||||
LAUNCHER_SLICE_SELECTION_ACTION(707),
|
||||
|
||||
@UiEvent(doc = "Launcher entered into AllApps state with device search enabled.")
|
||||
LAUNCHER_ALLAPPS_ENTRY_WITH_DEVICE_SEARCH(720),
|
||||
;
|
||||
|
||||
// ADD MORE
|
||||
|
||||
Reference in new issue
Block a user