Merge "Log a-z apps count." into tm-qpr-dev am: 381ba3319d

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20029946

Change-Id: Iedca65de9f046fba4d3d4595970adeb0f4ebc24f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Holly Jiuyu Sun authored and Automerger Merge Worker committed 2022-10-25 18:14:39 +00:00
commit 52cebe3a69
3 files changed
+26 -2

No files matched your search

@@ -15,6 +15,7 @@
*/
package com.android.launcher3.allapps;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_COUNT;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_TAP_ON_PERSONAL_TAB;
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_TAP_ON_WORK_TAB;
@@ -245,6 +246,10 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
mWorkManager.reset();
}
}
mActivityContext.getStatsLogManager().logger()
.withCardinality(mAllAppsStore.getApps().length)
.log(LAUNCHER_ALLAPPS_COUNT);
}
/**
@@ -612,7 +612,11 @@ public class StatsLogManager implements ResourceBasedOverride {
LAUNCHER_APP_ICON_MENU_SPLIT_RIGHT_BOTTOM(1199),
@UiEvent(doc = "User has invoked split to left half from an app icon menu")
LAUNCHER_APP_ICON_MENU_SPLIT_LEFT_TOP(1200)
LAUNCHER_APP_ICON_MENU_SPLIT_LEFT_TOP(1200),
@UiEvent(doc = "Number of apps in A-Z list (personal and work profile)")
LAUNCHER_ALLAPPS_COUNT(1225),
;
// ADD MORE
@@ -733,6 +737,13 @@ public class StatsLogManager implements ResourceBasedOverride {
return this;
}
/**
* Sets cardinality of log message.
*/
default StatsLogger withCardinality(int cardinality) {
return this;
}
/**
* Builds the final message and logs it as {@link EventEnum}.
*/