Add CUJ-LAUNCHER_OPEN_ALL_APPS instrumentation from taskbar

Added instrumentation when allapps is opened by button click in the
taskbar. Starting the slice in the onClickListener of the allApps button
and ending it on the end of the animation.

Test: checked the trace
Fixes: b/270128563
Flag: None
Change-Id: I492a4a7af81e0c40dc3d7d415ffc7b16c057b25d
This commit is contained in:
bvineeth
2024-02-07 11:47:07 +00:00
parent 772e0127c3
commit d2379d11c7
2 changed files with 10 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ import android.view.InputDevice;
import android.view.MotionEvent;
import android.view.View;
import com.android.internal.jank.Cuj;
import com.android.systemui.shared.system.InteractionJankMonitorWrapper;
/**
* Callbacks for {@link TaskbarView} to interact with its controller.
*/
@@ -45,6 +48,8 @@ public class TaskbarViewCallbacks {
public View.OnClickListener getAllAppsButtonClickListener() {
return v -> {
InteractionJankMonitorWrapper.begin(v, Cuj.CUJ_LAUNCHER_OPEN_ALL_APPS,
/* tag= */ "TASKBAR_BUTTON");
mActivity.getStatsLogManager().logger().log(LAUNCHER_TASKBAR_ALLAPPS_BUTTON_TAP);
mControllers.taskbarAllAppsController.toggle();
};