Make sure AR#onAnimationFinished is triggered for related activities

Even when animation target is promoted from ActivityRecord to higher level,
AR#onAnimationFinished should be triggered for each ActivityRecord which is
a part of app transition.

Until hierarchical animation is enabled, app transition animation is
only on ActivityRecord, so this is no-op.

Bug: 131661052
Bug: 142617871
Test: atest ActivityLifecycleTests (sHierarchicalAnimations enabled)
Change-Id: Ic1c5d77075c64308ceadea2927c51e5af9a0c4dc
11 files changed