summaryrefslogtreecommitdiff
path: root/core/java/android/window/TaskFragmentTransaction.java
Commit message (Collapse)AuthorAgeFilesLines
* Add TaskFragmentParentInfoCharles Chen2022-09-211-8/+28
| | | | | | | | | | | | | | | This CL adds a TaskFragmentParentInfo class and extends onTaskFragmentParentInfoChanged to dispatch display ID and visibility of the parent Task. It makes SplitController able to track visibility and display changes and used to update SplitContainers if there's a folding state change. Test: atest SplitControllerTest TaskFragmentOrganizerControllerTest Bug: 243609832 Bug: 207494880 Change-Id: If3d5db621b20d4005ce0b60e46ac98e1d1e962e3
* Cleanup unused TestApi in TaskFragmentOrganizerChris Li2022-09-131-2/+15
| | | | | | | | | | | | | The callback handling is moved to SplitController#onTransactionReady, no longer need those TestApi. This is different from the merged-in cl for CTS compatibility in the current release. Bug: 240519866 Test: pass existing Change-Id: I66ddd51c94003254001436ff0505dde3b26d0437 Merged-In: I66ddd51c94003254001436ff0505dde3b26d0437
* Wait for TaskFragmentOrganizer to finish handling transactionChris Li2022-08-231-2/+17
| | | | | | | | | | When a TaskFragmentTransaction is sent to the organizer during a transition, have the transition wait for the organizer to finish handling the transaction. Bug: 207070762 Test: atest WmTests:TaskFragmentOrganizerControllerTest Change-Id: I4b7955171cd8ce386686ff2cd64b7c04a6436ddf
* Address TaskFragmentOrganizer style commentsChris Li2022-08-171-4/+4
| | | | | | | | | | 1. Rename onActivityReparentToTask to onActivityReparentedToTask 2. Annotate @NonNull and @Nullable for the Extensions methods that are not yet annotated. Bug: 240519866 Test: Refactor and add annotation. Pass existing tests. Change-Id: I85c5927e6e7261cae3bce715b1955523d430e1e2
* Convert TaskFragmentOrganizer callbacks to a transaction callbackChris Li2022-08-041-0/+335
Before, we have several different callbacks, such as onTaskFragmentAppeared, onTaskFragmentInfoChanged, etc. As migrating to Shell transition, we need a new model to better sync between app process, WM Core and Shell. The flow will be: 1. WM Shell startTransition with a WindowContainerTransaction 2. After apply the WCT, notify TaskFragmentOrganizerController 3. TFOrganizerController pack the TF related events into one transaction 4. TFOrganizerController call deferTransitionReady and send the transaction to the TFOrganizer in app process 5. TFOrganizer update TFs based on the transaction and apply a WCT 6. When TFOrganizerController get that WCT, call continueTransitionReady Bug: 240519866 Test: pass existing Change-Id: I110953f7b73f565a2b1299ef5c3827eaa39e84b8