Refine LatencyTracker hook point for notification shade swipe

The hook point of LatencyTracker for ACTION_EXPAND_PANEL seems incorrect
that we got the value way off in Pitot, refine the hook point.

Bug: 169646405
Test: print logs, breakpoints
Change-Id: I76cbcfa78386f27741d22f5849d25de274bac590
This commit is contained in:
Ahan Wu
2020-11-04 18:25:48 +00:00
parent ae7e2fb0bb
commit ad46c022d0
2 changed files with 2 additions and 4 deletions

View File

@@ -207,8 +207,9 @@ public class OverviewProxyService extends CurrentUserTracker implements
try {
// TODO move this logic to message queue
mStatusBarOptionalLazy.ifPresent(statusBarLazy -> {
StatusBar statusBar = statusBarLazy.get();
statusBar.getPanelController().startExpandLatencyTracking();
mHandler.post(()-> {
StatusBar statusBar = statusBarLazy.get();
int action = event.getActionMasked();
if (action == ACTION_DOWN) {
mInputFocusTransferStarted = true;

View File

@@ -224,9 +224,6 @@ public class NotificationShadeWindowViewController {
if (!isCancel && mService.shouldIgnoreTouch()) {
return false;
}
if (isDown && mNotificationPanelViewController.isFullyCollapsed()) {
mNotificationPanelViewController.startExpandLatencyTracking();
}
if (isDown) {
setTouchActive(true);
mTouchCancelled = false;