Add some logging for the app icon in overview

Bug: 186444448
Test: Presubmit
Change-Id: Iaa5aef39a461b8e37ec9f4e85d7a0d21233bf40f
This commit is contained in:
Winson Chung
2021-04-27 14:33:04 -07:00
parent 8a38f39354
commit df84326662
3 changed files with 10 additions and 6 deletions
@@ -86,6 +86,7 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn
@UiThread
public RecentsAnimationCallbacks startRecentsAnimation(GestureState gestureState,
Intent intent, RecentsAnimationCallbacks.RecentsAnimationListener listener) {
Log.d("b/186444448", "startRecentsAnimation");
// Notify if recents animation is still running
if (mController != null) {
String msg = "New recents animation started before old animation completed";
@@ -1597,8 +1597,9 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
* {@link #onGestureAnimationStart} and {@link #onGestureAnimationEnd()}.
*/
public void onSwipeUpAnimationSuccess() {
Log.d("b/186444448", "onSwipeUpAnimationSuccess");
if (getRunningTaskView() != null) {
animateUpRunningTaskIconScale(0f);
animateUpRunningTaskIconScale();
}
setSwipeDownShouldLaunchApp(true);
}
@@ -1661,6 +1662,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
* Called when a gesture from an app has finished, and the animation to the target has ended.
*/
public void onGestureAnimationEnd() {
Log.d("b/186444448", "onGestureEnd");
mGestureActive = false;
if (mOrientationState.setGestureActive(false)) {
updateOrientationHandler();
@@ -1815,15 +1817,13 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
}
public void animateUpRunningTaskIconScale() {
animateUpRunningTaskIconScale(0);
}
public void animateUpRunningTaskIconScale(float startProgress) {
mRunningTaskIconScaledDown = false;
TaskView firstTask = getRunningTaskView();
Log.d("b/186444448", "animateUpRunningTaskIconScale: firstTask="
+ (firstTask != null ? "t:" + firstTask.getTask() : null));
if (firstTask != null) {
firstTask.setIconScaleAnimStartProgress(0f);
firstTask.animateIconScaleAndDimIntoView();
firstTask.setIconScaleAnimStartProgress(startProgress);
}
}
@@ -794,6 +794,8 @@ public class TaskView extends FrameLayout implements Reusable {
}
public void animateIconScaleAndDimIntoView() {
Log.d("b/186444448", "animateIconScaleAndDimIntoView: startProgress="
+ mIconScaleAnimStartProgress);
if (mIconAndDimAnimator != null) {
mIconAndDimAnimator.cancel();
}
@@ -803,6 +805,7 @@ public class TaskView extends FrameLayout implements Reusable {
mIconAndDimAnimator.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
Log.d("b/186444448", "animateIconScaleAndDimIntoView: end");
mIconAndDimAnimator = null;
}
});