summaryrefslogtreecommitdiff
path: root/core/java/android/transition/Transition.java
Commit message (Collapse)AuthorAgeFilesLines
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-3/+4
| | | | | | | | | | | | | | | | | | | 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-4/+3
| | | | | | | | | 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-3/+4
| | | | | | | | | | 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 Satayev2020-01-071-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: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
* Not to remove the same animator twiceyoshiki iguchi2019-04-151-9/+14
| | | | | | | | | | | | | | | | Transition.forceToEnd may be called during the execution of method itself. In that case, an item of the map was removed during the previous iteration and ArrayIndexOutOfBoundsException was raised. This CL updates the loop to iterate the copy of map instead of the original map instance, so we don't break the iteration and see exception anymore. Bug: 120675604 Test: Ran 'cts-tradefed run commandAndExit cts --module CtsWidgetTestCases --test android.widget.cts.ToolbarTest#testMenuOverflowSubmenu' 20 times and no failure was observed. Change-Id: Iaba2f74f29d6ed22f84d92e0d4ca106cdfca904c
* Reuse overlay view between two Visibility transitionsAndrey Kulikov2018-10-181-10/+6
| | | | | | | | | | Bug: 31362791 Instead of creating a new screenshot of the view every time previous visibility transition already did it or just added our startView to the overlay we can cache it and apply the animation to the same reused view. So the behaviour is the same(and expected) like in the case when no overlay is used. Test: test added in VisibilityTest Fix in AndroidX: aosp/772713 Change-Id: Iba4ab168722595eb19b9c681649a976462a5532b
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-301-0/+4
| | | | | | | | | | | | | | | For all remaining unannotated code. 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: I67c8b71ea535ebffb10bf577948bd4ccb8ca069d
* Excluded Views don't go through Transition.George Mount2017-03-131-1/+3
| | | | | | | | | | | | | | | | Bug 35832096 When entering or exiting Views were excluded, they were still being set to INVISIBLE during the exit transition. This made them disappear instantly. Instead, I've reverted back to the original implementation by not affecting excluded Views during the transition. This CL walks the transition and removes excluded Views from the enter/exit from being affected. Test: I5b1b75dd12a3914e35c1d0fb641850981a19f9c3 Change-Id: I2b00ba95575420bae690b1cd8d4894c98401da79
* Extract and unhide TransitionListenerAdapterBen Weiss2016-11-171-28/+0
| | | | | | Test: CTS tested Change-Id: I8db99d5f212b15db70ee5a6d6debf25d7ad7922d
* Re-add Internal API for cross-task Activity used by assistant.George Mount2016-06-081-0/+20
| | | | | | | | | | Bug: 29091742 This reverts commit 563df3b328f5488aaa33b894748029ed00d0e263. This also fixes the problems experienced by b/29128683. Change-Id: I8e3d485cb818ea9e03ca475cba88934f6f903f11
* Revert "Internal API for cross-task Activity used by assistant."Eino-Ville Talvala2016-06-061-20/+0
| | | | | | | This reverts commit 04073dc5be4c8faad41f549617ed1c3ef999d6b2. Bug: 29128683 Change-Id: I7d9bb7bb388f38e8e5ab159a211ee7f9f4fb7ab9
* Internal API for cross-task Activity used by assistant.George Mount2016-06-031-0/+20
| | | | | | | | | | | | | | | | 29091742 A new internal API has been created for use by assistant to launch an Activity Transition from a non-Activity. The ActivityOptions are also passed along when using a spring board Activity so that the shared elements can be properly synchronized. This also fixes TransitionManager.endTransition so that it forces Transitions to end the animations. Change-Id: Id18d9765bfc0c7b438e17966455aa66d3fa3aeda
* Fix propagation delay not working with minimum value = 0George Mount2016-03-081-5/+5
| | | | | | | | | Bug 27545221 When the propagation delay had a minimum value of 0, no propagation delay was happening. Change-Id: Id28c2cac1c40d5c57f6b49fa11a60218ac1787a0
* Don't use forceVisibility for Activity Transitions.George Mount2016-02-101-3/+0
| | | | | | | | | | | | Bug 22291911 Forced visibility for transitions was introduced to make Activity Transitions force going from INVISIBLE to VISIBLE without triggering focus changes. setTransitionVisibility was later introduced and now allows us to use visibility without triggering focus changes. Change-Id: Idf21542464a13bac7b4d4a17f6b9303f68d550c3
* Fix @code escapesNeil Fuller2015-12-021-16/+14
| | | | | | | | | The body of {@code} must not be HTML escaped. This is one of several changes that fix the source in conjunction with a doclava fix. Bug: 25757239 Change-Id: Ib38a0fa2dd2a3d68e467f78a812071e763d7e881
* Merge "Fix addTarget not limiting to the given views." into mnc-devGeorge Mount2015-06-261-11/+19
|\
| * Fix addTarget not limiting to the given views.George Mount2015-06-251-11/+19
| | | | | | | | | | | | | | | | | | Bug 22086521 Views matched by instance, or appearing/disappearing, or named views were not limited. Change-Id: I70fd1497c58a3cde771f4eafe11d8ebe0889ab6c
* | Fix removeTarget to remove by ID instead of index.George Mount2015-06-231-1/+1
|/ | | | | | Bug 22043875 Change-Id: I47933343381df7c46580279a864ab03d44c992ec
* API Council changes.George Mount2015-06-051-13/+18
| | | | | | Bug 21571897 Change-Id: I681096c50a6f4a448e399b482742efc06229fab1
* Properly cancel animators when View doesn't exist in starting state.George Mount2015-05-071-0/+4
| | | | | | | | | | | Bug 19290065 When a transition was interrupted, if a View was not in the start state, but in the end state, then any animator on that View was not canceled. This detects that situation and allows canceling the animator on that View. Change-Id: Ib1d0579bb6b211782c40c6327be59b0c59682731
* Fix potential NPE in internal isValidTarget method.George Mount2015-05-041-0/+3
| | | | | | Bug 19805383 Change-Id: Ib22d86cca5e1225b12ed39ac988824eeb9c58bbd
* Increase visibility of Transition.areValuesChanged() to protected to allowTodd Volkert2015-02-121-1/+11
| | | | | | subclasses outside the android.transition package to override it. Change-Id: Ib6a5502827e734de7494958b510afc9ddb80dffe
* Revert "Increase visibility of Transition.areValuesChanged() to protected to ↵Todd Volkert2015-02-121-11/+1
| | | | | | | | allow subclasses outside the android.transition package to override it." This reverts commit d23391eafe9f46ff01d5dc936126a4d6ae1c53d3. Change-Id: Id7211a0fd08b9bc8ad092501de3c3efa57bf8264
* Increase visibility of Transition.areValuesChanged() to protected to allowTodd Volkert2015-02-121-1/+11
| | | | | | subclasses outside the android.transition package to override it. Change-Id: Ife5de79b339b6d7598411ad851858f4c52a89f5c
* Fix javadoc.George Mount2014-10-311-3/+3
| | | | | | Bug 18183024 Change-Id: Ia29d46e03b0137cc6964dcf488af052486b6898c
* Fix transition being canceled improperly.George Mount2014-10-221-0/+4
| | | | | | | | | | | | | Bug 18092208 When a transition is determining whether or not it should be canceled, the old values and new values are compared. Previously, the if a value was in the old values, but not in the new values then the value was considered changed. This discounts that transitions sometimes don't target views and it may be that no value was populated. Change-Id: I8210ba1e44921fadedf9ead571d380ad34e73d3f
* Target only shared elements with shared element TransitionGeorge Mount2014-09-191-2/+2
| | | | | | | Bug 17549213 Bug 17553253 Change-Id: If54aebb4e37d2012aa8d1c5354d5ec03f92b81a3
* Fix broken logic in isValidTargetGeorge Mount2014-09-181-2/+2
| | | | | | Bug 17553253 Change-Id: I9f3f2c80e59128fd5f8d4b1b2a67692c00804f62
* Made Transitions act only the views that they target.George Mount2014-09-121-19/+37
| | | | | | | Bug 17465989 Bug 17452585 Change-Id: I2f921e98f68df3d549a370179c0a4488d56923ad
* Only call setHasTransientState in captureHierarchy.George Mount2014-09-051-7/+11
| | | | | | Bug 17390936 Change-Id: I1a8cdc2820b53f6ca9f6edc41a7e87f45bea7811
* API Review: Improve javadoc.George Mount2014-09-051-0/+49
| | | | | | | Bug 17189781 Also rename PatternMotion to PatternPathMotion Change-Id: I1c4dcbdd65e33cf9de1504277e31f9f7ede0380d
* Fix NPE when transitioning on unattached scene root.George Mount2014-08-281-2/+2
| | | | | | Bug 17261558 Change-Id: Ib86c72e26f7fd9ac3fc47df650d95fdeeb43f1be
* Add Parent Change to ChangeTransformDake Gu2014-08-211-13/+29
| | | | | | | | | Bug 16460123 Modified ChangeTransform to support any pivot changes. Modified ChangeTransform to support changes between parents. Change-Id: I6374890dab9f3d795f334b951bdb9d51d434b8ee
* Fixed ChangeBounds matching against the wrong View.George Mount2014-08-191-52/+87
| | | | | | | | ChangeBounds must ensure that its parents match to use reparent, but it used instance and ID matching. Matching can now be done in several ways and that is insufficient. Change-Id: Ic0432cd06549e4dc9ba49f33b0a6a42082e29dc1
* Move shared elements to overlay when in a transition group.George Mount2014-08-081-2/+2
| | | | | | Bug 15744995 Change-Id: Icf1ee603de23c7bb3bce3723cb24009e36f153d7
* Fix Monkey NPE.George Mount2014-07-251-6/+8
| | | | | | Bug 16135577 Change-Id: If2ea474fd9ca9232fec325deed0e9b9b806595f6
* Don't change View visibility during activity transitions.George Mount2014-07-101-0/+3
| | | | | | | | | | Bug 16187776 Changing View visibility can change the View's focused item. To prevent this, a backdoor is introduced into Transition and Visiblity to set the target Visibility used in Activity Transitions. Change-Id: Idfd2c6fba2cad80fecdfd086990ddc604f86ca68
* Fix targeting transition by transitionName.George Mount2014-07-011-1/+1
| | | | Change-Id: I5e51b524a3a249cd2d7dbba3ccb06d0a5ca8fb73
* Add curved motion to Transitions.George Mount2014-06-301-0/+120
| | | | | | | | | | Bug 15197527 Added two public PathMotions: PatternMotion and ArcMotion. ArcMotion is the algorithm provided by UX. PatternMotion provides a mechanism for using a Path as a pattern. Change-Id: Ie57fd5f4e62269acc1164eced39853a12c52bd77
* Merge "Don't use overlay to transition ImageViews."George Mount2014-06-271-2/+2
|\
| * Don't use overlay to transition ImageViews.George Mount2014-06-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | Bug 15744992 MoveImage used an overlay to transition ImageViews. This caused strange problems when ImageViews were contained in other Views. The new ChangeImageTransform does a smooth transition for changes in scale type and bounds. Change-Id: Ia5021f4828f8f818a8699b3bdd38437aeba1cfc8
* | Merge "Allow custom transitions from XML."George Mount2014-06-251-0/+5
|\ \ | |/ |/|
| * Allow custom transitions from XML.George Mount2014-06-191-0/+5
| | | | | | | | | | | | Bug 15699798 Change-Id: I841289a72d7c08bb24b3e18380c79ba7960f9b22
* | Revert "Revert "API Review: Change View viewName attribute to transitionName.""George Mount2014-06-231-39/+47
| | | | | | | | | | | | This reverts commit 1bdfbc68e22a64215ab8fa3e3d17676513546997. Change-Id: Ie3fdf53b33cb2f61c1878055940f52ed9dfc8b08
* | Revert "API Review: Change View viewName attribute to transitionName."John Reck2014-06-231-47/+39
| | | | | | | | | | | | This reverts commit f1b1adf51b2a84e0ac83685812c7e8d86590af12. Change-Id: I0e49aeed84f2a548e272a59f4e13c3fb74c2bfd9
* | API Review: Change View viewName attribute to transitionName.George Mount2014-06-201-39/+47
|/ | | | | | Bug 15548520 Change-Id: I4009458d83dbffb20ff0100aaa42eea44d943378
* Fix blinking animation during Visibility transitions.George Mount2014-06-181-23/+29
| | | | | | Bug 15618501 Change-Id: I9dff9eb386a4bfb51caec24f3f7cc0fad06ae04c
* Allow antroid.transition Transitions in fragments.George Mount2014-06-171-0/+35
| | | | | | | Bug 15274281 Bug 15189829 Change-Id: I8e2974430b84a611866fe20afe1f5745e803683f
* Prevent transitions from calling createAnimator for invalid views.George Mount2014-06-111-61/+61
| | | | | | | | | | Bug 15285527 When two transitions affect different views, createAnimator is on all Transitions for all views. This CL prevents createAnimator from being called for Transitions that don't target a view. Change-Id: I3f70a13b4ea38ad4a9b4724db438b40f6e80eafb
* API review: Constants to Gravity and Epicenter.George Mount2014-06-051-3/+3
| | | | | | | | | Bug 15432037 Constants for LEFT, RIGHT, TOP, BOTTOM moved to using Gravity. Epicenter method name changed. Change-Id: If226613794623fd50fdaf8fc61b0020d17628f68