Notify transition listener only for its interested display

In legacy transition, the listeners are managed by AppTransition
per display (DisplayContent.mAppTransition.registerListenerLocked).
So listeners won't be notified by unrelated display.

While in shell transition, all listeners are managed by
TransitionController. So all listeners will be notified once any
display has a transition.

This change allows the listener to specify the display it wants
to monitor. If no display is specified, it will receive from all
displays, e.g. WMS#mActivityManagerAppTransitionNotifier. The
behavior is only enabled in TransitionController (shell transition).

Bug: 326610743
Flag: EXEMPT bugfix
Test: TransitionTests
Change-Id: Ia297b2e7a1204dc501a9ae288580b74638a78e2e
7 files changed