summaryrefslogtreecommitdiff
path: root/core/java/android/view/RemoteAnimationAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Hook up split-launch to legacy transition systemEvan Rosky2021-07-081-0/+22
| | | | | | | | | | | | Part 1 of hooking up stage-split to legacy stuff. This actually routes the legacy remoteAnimation through shell in order to gather the dividerbar and interract with the WindowProcessController Bug: 192279476 Test: atest WindowOrganizerTests. use SPLIT_SELECT to launch 2 apps in split and observe. Change-Id: I4f8802e6eb33f068fae0e4b3c12942bea76e332b
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-1/+2
| | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. This is a resubmit of ag/12929664 with some APIs excluded that caused test failures; see bugs 171886397, 171888296, 171864568. APIs excluded: Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/os/Process;->myPpid()I Landroid/os/SharedMemory;->getFd()I Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I Bug: 170729553 Test: Treehugger Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
* Revert "Add maxTargetSdk restriction to unused APIs."Hongwei Wang2020-10-281-2/+1
| | | | | | | | | This reverts commit 72f07d6a8a32db4a0dedd7682a0b3385be2b9cd6. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397 Bug: 171886397 Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-271-1/+2
| | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I5be7335b23a92b8ac80d2fd890198273b66ad644
* Fix overlapping remote and recents animationsJorim Jaggi2019-08-051-2/+11
| | | | | | | | | Test: Open app and immediately swipe up while opening. Verify Thread prioties in systrace Test: WindowProcessControllerTests Fixes: 137881181 Change-Id: Ic1d7403d2a648e6f1d1b6a3d55b56bf37bc57a2c
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Add per-display RemoteAnimation overrides and flag to disable snapshotsEvan Rosky2019-01-241-2/+17
| | | | | | | | | | | | | This CL adds a display-level fallback for remoteanimation overrides and a property to RemoteAnimationAdapter specifying whether it needs a snapshot for change transitions or not. During a mode-change, this check for an override and then asks it whether it needs a snapshot before creating one. Bug: 113252739 Test: Added AppChangeTransitionTests Change-Id: I47c933bd08fe512dc6cf029607819e2c908ab4cd
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | For packages: android.view.textservice android.view.textclassifier.logging android.view.textclassifier android.view.inputmethod android.view.autofill android.view.accessibility android.view This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I4147b038ed7adf0311ee9918b44766f82a057eaf
* Revert "Revert "Elevate remote/recents animation priority""Jorim Jaggi2018-03-081-0/+17
| | | | | | | | | This reverts commit a8b48ab7332f61afe37b2e866e9cb67421fab1c0. Original issue has been fixed in follow up CL. Bug: 73555925 Change-Id: Ie0a157a91c3c66df52370adad7b188f59c4749ea
* Revert "Elevate remote/recents animation priority"Jorim Jaggi2018-02-281-17/+0
| | | | | | | | | This reverts commit 574aea0f1b073889186a82c94a991cc746b1c58c. Reason for revert: Crashes sometimes (chaselist issue) Change-Id: I1440ef7a002e85c3e020d424f13073ca2516dd9c Fixes: 73991490
* Elevate remote/recents animation priorityJorim Jaggi2018-02-231-0/+17
| | | | | | | | | | | | | | If we have another process running a remote animation, we need to elevate its scheduling priority in order to achieve a smooth animation. To do that, we set the priority as if it would be the top app. Test: go/wm-smoke Test: Capture trace, open/close apps/recents, inspect priority in trace. Change-Id: Ia167eeff95700d86e96e96a984099f1e28040b59 Fixes: 73555925
* Remote animations (app-controlled animations)Jorim Jaggi2018-01-171-0/+108
Adds the ability for another app to control an entire app transition. It does so by creating an ActivityOptions object that contains a RemoteAnimationAdapter object that describes how the animation should be run: Along of some meta-data, this object contains a callback that gets invoked from WM when the transition is ready to be started. Window manager supplies a list of RemoteAnimationApps into the callback. Each app contains information about the app as well as the animation leash. The controlling app can modify the leash like any other surface, including the possibility to synchronize updating the leash's surface properties with a frame to be drawn using the Transaction.deferUntil API. When the animation is done, the app can invoke the finished callback to get WM out of the animating state, which will also clean up any closing apps. We use a timeout of 2000ms such that a buggy controlling app can not break window manager forever (duration subject to change). Test: go/wm-smoke Test: RemoteAnimationControllerTest Bug: 64674361 Change-Id: I34e0c9a91b28badebac74896f95c6390f1b947ab