Merge "Log dispatch when handler chosen before playTransition is called" into udc-dev am: b7d3ddb89f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22994676 Change-Id: I5311a7a15fed242be23aa1e2c78d971e7beba768 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -19,8 +19,6 @@ package com.android.wm.shell.transition;
|
|||||||
import static android.view.WindowManager.TRANSIT_CHANGE;
|
import static android.view.WindowManager.TRANSIT_CHANGE;
|
||||||
import static android.view.WindowManager.TRANSIT_CLOSE;
|
import static android.view.WindowManager.TRANSIT_CLOSE;
|
||||||
import static android.view.WindowManager.TRANSIT_FIRST_CUSTOM;
|
import static android.view.WindowManager.TRANSIT_FIRST_CUSTOM;
|
||||||
import static android.view.WindowManager.TRANSIT_FLAG_KEYGUARD_GOING_AWAY;
|
|
||||||
import static android.view.WindowManager.TRANSIT_KEYGUARD_UNOCCLUDE;
|
|
||||||
import static android.view.WindowManager.TRANSIT_OPEN;
|
import static android.view.WindowManager.TRANSIT_OPEN;
|
||||||
import static android.view.WindowManager.TRANSIT_SLEEP;
|
import static android.view.WindowManager.TRANSIT_SLEEP;
|
||||||
import static android.view.WindowManager.TRANSIT_TO_BACK;
|
import static android.view.WindowManager.TRANSIT_TO_BACK;
|
||||||
@@ -851,14 +849,13 @@ public class Transitions implements RemoteCallable<Transitions>,
|
|||||||
active.mStartT, active.mFinishT, (wct, cb) -> onFinish(active, wct, cb));
|
active.mStartT, active.mFinishT, (wct, cb) -> onFinish(active, wct, cb));
|
||||||
if (consumed) {
|
if (consumed) {
|
||||||
ProtoLog.v(ShellProtoLogGroup.WM_SHELL_TRANSITIONS, " animated by firstHandler");
|
ProtoLog.v(ShellProtoLogGroup.WM_SHELL_TRANSITIONS, " animated by firstHandler");
|
||||||
|
mTracer.logDispatched(active.mInfo.getDebugId(), active.mHandler);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Otherwise give every other handler a chance
|
// Otherwise give every other handler a chance
|
||||||
active.mHandler = dispatchTransition(active.mToken, active.mInfo, active.mStartT,
|
active.mHandler = dispatchTransition(active.mToken, active.mInfo, active.mStartT,
|
||||||
active.mFinishT, (wct, cb) -> onFinish(active, wct, cb), active.mHandler);
|
active.mFinishT, (wct, cb) -> onFinish(active, wct, cb), active.mHandler);
|
||||||
|
|
||||||
mTracer.logDispatched(active.mInfo.getDebugId(), active.mHandler);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -877,6 +874,7 @@ public class Transitions implements RemoteCallable<Transitions>,
|
|||||||
if (consumed) {
|
if (consumed) {
|
||||||
ProtoLog.v(ShellProtoLogGroup.WM_SHELL_TRANSITIONS, " animated by %s",
|
ProtoLog.v(ShellProtoLogGroup.WM_SHELL_TRANSITIONS, " animated by %s",
|
||||||
mHandlers.get(i));
|
mHandlers.get(i));
|
||||||
|
mTracer.logDispatched(info.getDebugId(), mHandlers.get(i));
|
||||||
return mHandlers.get(i);
|
return mHandlers.get(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user