[AA+] Log LAUNCHER_ONSTOP & LAUNCHER_ONRESUME events with AllApps session InstanceId.

* Transitions between AllApps and App screen logs LAUNCHER_ONSTOP & LAUNCHER_ONRESUME events. This change add InstanceId specific to the current AllApps session to these logs; this will help to regenerate AllApps session from logs on the server side. This should only affect logs from AllApps screen, but not others.

* Removes LiveSearchManager.allAppsLogger method as it may create confusion with 2 methods for logging into Statsd

* Moved AllApps entry and exit logs to Launcher.

Bug: 178562918
Test: Manual
Change-Id: I5fab941777a3dfd2e9b19c0efd5b06d3884222ef
This commit is contained in:
thiruram
2021-02-11 15:13:47 -08:00
committed by Thiru Ramasamy
parent c860448bca
commit c96873caad
7 changed files with 58 additions and 55 deletions

View File

@@ -141,7 +141,10 @@ public abstract class BaseActivity extends Activity implements ActivityContext {
return mDeviceProfile;
}
public final StatsLogManager getStatsLogManager() {
/**
* Returns {@link StatsLogManager} for user event logging.
*/
public StatsLogManager getStatsLogManager() {
if (mStatsLogManager == null) {
mStatsLogManager = StatsLogManager.newInstance(this);
}