[AA+] Use different launcher event to log all apps entry with device search. am: 9f53d61334
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13689925 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Id6a239dd5acc9d9a56ef6f68c38c6d00b3398a0f
This commit is contained in:
commit
5ad2a19b0f
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