Commit Graph

182 Commits

Author SHA1 Message Date
George Mount
413739e8c6 Re-add Internal API for cross-task Activity used by assistant.
Bug: 29091742

This reverts commit 563df3b328.

This also fixes the problems experienced by b/29128683.

Change-Id: I8e3d485cb818ea9e03ca475cba88934f6f903f11
2016-06-08 07:13:37 -07:00
Eino-Ville Talvala
563df3b328 Revert "Internal API for cross-task Activity used by assistant."
This reverts commit 04073dc5be.

Bug: 29128683
Change-Id: I7d9bb7bb388f38e8e5ab159a211ee7f9f4fb7ab9
2016-06-06 22:04:54 +00:00
George Mount
04073dc5be Internal API for cross-task Activity used by assistant.
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
2016-06-03 14:08:06 -07:00
George Mount
1349bb9c33 Disable suppressLayout in Visibility Activity Transitoins.
Bug 27389255

In Idf21542464a13bac7b4d4a17f6b9303f68d550c3, I had removed
a suppressLayout check from forced visibility. Unfortunately,
when the transition ends, it calls layout if there was a
requestLayout during the transition. This prevents the
suppression at the level of the individual views so that it
can be handled at the decor View level as it was before.

Change-Id: I0f016e6356fd1ceff705b122a6b4ac3f3f09600d
2016-03-22 13:41:57 -07:00
George Mount
fdce57b6dc Merge "Fix ArcMotion path creation in some quadrants." into nyc-dev 2016-03-10 18:19:10 +00:00
George Mount
eddc8dbed6 Fix ArcMotion path creation in some quadrants.
Bug 27577177

When ArcMotion created paths in some quadrants, the control
points were placed in the wrong place, making a non-circular
arc instead of an arc of a circle.

Change-Id: Ie842524c09385038fb1f991b877b01ee5e740f20
2016-03-09 15:30:19 -08:00
George Mount
193b821829 Merge "Fix propagation delay not working with minimum value = 0" into nyc-dev 2016-03-08 21:03:16 +00:00
George Mount
23d57f30c5 Fix propagation delay not working with minimum value = 0
Bug 27545221

When the propagation delay had a minimum value of 0, no
propagation delay was happening.

Change-Id: Id28c2cac1c40d5c57f6b49fa11a60218ac1787a0
2016-03-08 09:32:07 -08:00
Tony Mantler
cfa15bd1d5 Add hidden slide fraction call to Slide
b/27460758

Change-Id: I936ce1c0ece24dd6a9e1c546f0bf261b37ba97c1
2016-03-07 14:48:16 -08:00
George Mount
c47738d8c2 Merge "Fix TransitionSet javadoc to use transitionOrdering attribute." into nyc-dev 2016-02-16 21:38:02 +00:00
George Mount
d6505566a9 Merge "Don't use forceVisibility for Activity Transitions." into nyc-dev 2016-02-16 21:37:39 +00:00
George Mount
93aaab034f Fix TransitionSet javadoc to use transitionOrdering attribute.
Bug 27056771

Change-Id: Idb00d7e49857f6aed88a898edd957b5202581a2f
2016-02-10 15:39:17 -08:00
George Mount
45feb95c4a Null check for fade start alpha value.
Bug 27105186
Fade previously hadn't had any values saved over those captured
by Visibility. If a Transition merged two Visibility transitions,
it could avoid calling captureStartValues for the Fade transition.
This change prevents an NPE in that case. The combined transition
won't get the intermediate alpha value, but at least it won't
crash.

Change-Id: I8e5720caafda56b017dfe1cc0b16ebdf246e90c4
2016-02-10 15:14:17 -08:00
George Mount
629767288a Don't use forceVisibility for Activity Transitions.
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
2016-02-10 22:12:14 +00:00
George Mount
5affef0773 Fix Fade transition interrupt.
Bug 26963113

When a Fade transition is interrupted and reversed, the
View started the animation from the beginning. This change
captures the previous transitionAlpha and starts the animation
from the previous alpha state.

Change-Id: I801fe9ade6af4cf8446838e231bdc71841668a18
(cherry picked from commit 3cf9fa3db0)
2016-02-08 20:33:49 +00:00
George Mount
7764b920f2 Add IntDefs for Animator and Transition classes.
Bug 23593341

Change-Id: Ifcb30322cb90efb32262c80f5d11c2d39efc5080
2016-01-13 15:21:51 -08:00
Neil Fuller
71fbb81b14 Fix @code escapes
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
2015-12-02 14:24:11 +00:00
George Mount
f2a3703696 Set the bounds on the drawable for ChangeBounds reparenting.
Bug 24993183

The bounds for the drawable weren't being set, so the
drawable was never drawn to the correct size.

Change-Id: I992951f28ee6fac2ce8752d2dc0e23f51d3cf584
2015-10-19 13:50:16 -07:00
George Mount
a7478ab9a7 Fix Fade out during Activity Transition.
Bug 22181705

The Fade Transition sets the transitionAlpha in onTransitionEnd.
I previously changed Visibility to only do it in onAnimationEnd,
so the onTransitionEnd overrides the Visibility's version. This
fixes that change.

Change-Id: I7df478897b6fcfec20999965e297925b65a1448b
2015-07-06 10:23:13 -07:00
George Mount
cb23ec418e Merge "Add missing addPauseListener." into mnc-dev 2015-07-01 14:10:11 +00:00
George Mount
0b056a0ac3 Add missing addPauseListener.
Bug 22112571

Change-Id: I0dd0d9a131f5630cbac6b404fb34c82073fa1a83
2015-06-30 07:24:30 -07:00
George Mount
3ebcd8654d Merge "Fix endTransition index out of bounds exception." into mnc-dev 2015-06-26 21:18:57 +00:00
George Mount
7a0f54b140 Merge "Fix addTarget not limiting to the given views." into mnc-dev 2015-06-26 21:18:39 +00:00
George Mount
e3a4cb5b38 Fix addTarget not limiting to the given views.
Bug 22086521

Views matched by instance, or appearing/disappearing, or
named views were not limited.

Change-Id: I70fd1497c58a3cde771f4eafe11d8ebe0889ab6c
2015-06-25 14:27:06 -07:00
George Mount
d9f3aa58d7 Merge "Fix removeTarget to remove by ID instead of index." into mnc-dev 2015-06-25 20:55:37 +00:00
George Mount
800320933e Fix endTransition index out of bounds exception.
Bug 22063111

When transition.end() is run, it removes itself from
the list of running transitions and perturbs the list.

Change-Id: I4feb7ebe19717a0e2302844d4e4e0d19a55ec57c
2015-06-25 12:52:18 -07:00
George Mount
5697c323a5 Fix removeTarget to remove by ID instead of index.
Bug 22043875

Change-Id: I47933343381df7c46580279a864ab03d44c992ec
2015-06-23 15:42:37 -07:00
George Mount
21290a62a5 Suppress Layout during Visibility transitions
Bug 21770464

Layout while a View is transitioning out can cause strange
behavior during the animation. This CL suppresses the
layout during the transition. It also invalidates
the parent when it has been removed rather than
requesting layout on it.

Change-Id: I471243f5beef44d3bbed9ce844e66195dbf4ae10
2015-06-22 17:19:29 -07:00
George Mount
209fb43376 Merge "Have the final setVisibility cause a requestLayout." into mnc-dev 2015-06-16 15:27:27 +00:00
George Mount
533d7a67d9 Have the final setVisibility cause a requestLayout.
Bug 21770464

Change-Id: I8c501e8a681634cb87857cf9286b888e61101f13
2015-06-15 16:17:04 -07:00
George Mount
727a6cf6ad Fix blink in Explode transition.
Bug 21785708

Change-Id: I1250d8e084601a6267906fdb2f3df46cbb8161fc
2015-06-15 14:12:26 -07:00
George Mount
616bb3d50c Merge "API Council changes." into mnc-dev 2015-06-08 16:36:22 +00:00
George Mount
e5a93aa81c Don't cause requestLayout when transition changes Visibility.
Bug 21400515

When a Visibility transition temporarily changes a View's
visibility, it should not cause a requestLayout or any other
action, such as focus change. This adds a hidden method to
View to allow it to tweak the visibility without causing
other side-effects.

Change-Id: I5a06149983051319080130e5b5e7cc7edda8dd3e
2015-06-05 17:21:40 -07:00
George Mount
aef1ae3391 API Council changes.
Bug 21571897

Change-Id: I681096c50a6f4a448e399b482742efc06229fab1
2015-06-05 14:23:47 -07:00
George Mount
1b4ae634f6 Properly cancel animators when View doesn't exist in starting state.
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
2015-05-07 13:00:12 -07:00
George Mount
57436d3f7e Merge "Fix potential NPE in internal isValidTarget method." into mnc-dev 2015-05-04 22:08:03 +00:00
George Mount
f586c925d5 Fix potential NPE in internal isValidTarget method.
Bug 19805383

Change-Id: Ib22d86cca5e1225b12ed39ac988824eeb9c58bbd
2015-05-04 15:01:55 -07:00
George Mount
61bab469a1 Merge "Fix Visibility not changing until Animator ends." into mnc-dev 2015-05-04 20:26:48 +00:00
George Mount
fcfe531e74 Fix Visibility not changing until Animator ends.
Sometimes an animator will be interrupted before it starts
during a transition and the onAnimatorEnd will not be called.
In this case, we must set the final state in the onTransitionEnd.

Bug 20416564

Change-Id: I388895215ba2b1c500de3a5afcae8db1fea288f7
2015-05-04 11:37:27 -07:00
Alan Viverette
904de2ec93 Always force constructors accessible during inflation
We now correctly throw an IllegalAccessException for non-public accesses,
but we were relying on the old incorrect behavior during inflation. This
CL forces constructors to be accessible so that we emulate the old
behavior and don't crash.

Where we were already doing this, the CL moves the setAccessible() call
immediately after the getConstructor() call, since there's no point in
calling it multiple times.

Bug: 20810495
Change-Id: I63dfcb857e445f688080eea05e86ef22760ed49f
2015-05-04 10:32:57 -07:00
Tony Mantler
ab5d66a96a Make sure Transition constructor is accessible before invoking
b/20666031

Change-Id: Ief519ac00aed8ce84cbc852025f91cc03da90c55
2015-04-28 14:17:06 -07:00
George Mount
cef8bed515 Merge "Make TransitionManager.endTransitions() public." 2015-04-09 15:25:53 +00:00
George Mount
478673ede2 Make TransitionManager.endTransitions() public.
Bug 19231835

Change-Id: I151bae1d10aaab72f8fea73eaf0538f0aa5d810a
2015-04-08 14:51:36 -07:00
George Mount
28b3ecca86 Reset transitionAlpha when the transition is stopped early.
Bug 19273502

When a transition runs several animators and is interrupted,
some animators may not have been started. Those animators
that haven't been started will not reset their contents
the same as if the animator was canceled. Fade modifies
transitionAlpha and if it is interrupted prior to the
animator starting, the transitionAlpha doesn't get reset.

Change-Id: I8a49b4fbb7151aadc43d7b10e6acbae9578e5cc4
2015-04-03 15:01:40 -07:00
Tor Norbye
bc2dd79af9 Add @TransitionRes for transition resource integers
Change-Id: I37f523282156c2f87c4d961167d6a980d5f6e34c
2015-03-13 11:19:21 -07:00
George Mount
96e54dcfa4 Fix TransitionManager.go not running transition.
Bug 19459362

Change-Id: I17595390c9fb289dec8de44447ca490c46570fb4
2015-03-03 15:28:44 -08:00
John Spurlock
08c7116ab9 Remove unused imports in frameworks/base.
Change-Id: I031443de83f93eb57a98863001826671b18f3b17
2015-02-28 14:47:49 -05:00
Todd Volkert
0653f2596f Increase visibility of Transition.areValuesChanged() to protected to allow
subclasses outside the android.transition package to override it.

Change-Id: Ib6a5502827e734de7494958b510afc9ddb80dffe
2015-02-12 15:27:57 -08:00
Todd Volkert
fddd7ead7c Merge "Revert "Increase visibility of Transition.areValuesChanged() to protected to allow subclasses outside the android.transition package to override it."" 2015-02-12 23:11:15 +00:00
Todd Volkert
455e0ea8f2 Revert "Increase visibility of Transition.areValuesChanged() to protected to allow subclasses outside the android.transition package to override it."
This reverts commit d23391eafe.

Change-Id: Id7211a0fd08b9bc8ad092501de3c3efa57bf8264
2015-02-12 23:09:19 +00:00