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:
1 parent
772e0127c3
commit
d2379d11c7
2 files changed
+10
No files matched your search
@@ -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();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user