240763 Commits

Author SHA1 Message Date
Jorim Jaggi
3b6e05a2a8 Revert "Death to synchronous transactions (2/2)"
This reverts commit dd05f0365aa0df9ba9a7631c8e02ed67f472132d.

There seems to be some logic that gets triggered inside surface flinger
regarding commit time of the transaction, and without it seems that
animations got jankier. No time to investigate...

Bug: 28305789
Change-Id: I7261cf8719d3528f8f5bee19e507b8ba88b8b729
2016-04-21 14:55:31 -07:00
Jorim Jaggi
a20eeda529 Fix a few weird state issues from race-conditions
- When starting another transition while the dock transition
is already set, always override that because that transition
starts prolonged animations which will never be ended.
- Only dock if we get a good UP event.

Bug: 28257206
Change-Id: Icabfcf475f419696d2bcff8fbb53cf3b29dedd69
2016-04-21 14:55:11 -07:00
Jorim Jaggi
023da538a2 Fix lifecycle bug in when calling positionTask
Sometimes the resumed activity from another stack gets positioned
BELOW the top activity of the current stack. We need to carry over
the mResumedActivity to make sure onPause is called on the moved
activity.

Bug: 28235047
Change-Id: I09e6b032cd8d0b00dc5fdd06bec68e53c25aae73
2016-04-21 14:54:51 -07:00
Jorim Jaggi
4ccfc30a80 Animation fixes when task is not resumed
- Make sure to add the activity to mWaitingVisibleActivities
to not destroy the activity before the app transition has
started.
- Defer layouts in startActivityUnchecked so when clearing the
current activities in the current stack, we don't execute the
app transition yet. We need to wait until the new activities
are added as well.

Bug: 28026847
Change-Id: I252cf139e06197ea34329d1466f1f6162f3e7a30
2016-04-21 14:54:17 -07:00
Jorim Jaggi
b8c5876dc0 Keep stack from mReuseTask
When we launch an activity with CLEAR_TOP and NEW_TASK, we clear
all the activities in that task but then we don't reuse the stack,
which can lead to weirdness.

To fix this, we need to keep the target stack in that case.

Bug: 28000613
Change-Id: If85ade73b1036e8a7c0eda418d9f39e8596b8b16
2016-04-21 14:53:52 -07:00
Jorim Jaggi
5c80c41ee0 Final fixes for growing recents transition
- Make sure to reposition windows during animations to avoid that
they lag one frame behind.
- Don't put windows that are gone for layout into resizing mode.
- Don't layout windows that are gone for layout, to avoid resizing
the surface but the client won't draw anymore.

Change-Id: I809feffef00f9a086b44504126e03f509eb7f190
Fixes: 27855229
2016-04-21 14:52:42 -07:00
Dake Gu
eb8d2fcb50 leanback: Fix link to changed API setTitle()
To match ag/952395.

Change-Id: I96cf9caa34bd560f14f7864201f3ac228cd2537d
2016-04-21 14:50:26 -07:00
Vladislav Kaznacheev
729c640cc8 Merge "Rename DropPermissions to DragAndDropPermissions" into nyc-dev 2016-04-21 21:34:26 +00:00
Hyunyoung Song
44157a4abf Merge "Fix broken build due to @RemotableViewMethod" into nyc-dev 2016-04-21 21:32:38 +00:00
Hyunyoung Song
3a93f0ff37 Fix broken build due to @RemotableViewMethod
Change-Id: I63c6cb4fa68df114220efb2f263115e773e25f5d
2016-04-21 14:26:54 -07:00
Alan Viverette
5500bb1d6d Merge "API review feedback for ProgressBar" into nyc-dev 2016-04-21 21:21:56 +00:00
Alan Viverette
e84393674d Merge "Don't overwrite vertical and horizontal offsets unless explicit" into nyc-dev 2016-04-21 21:21:35 +00:00
Andres Morales
d908c6294d FrameMetricsListener API council changes
Bug: 28296251
Change-Id: I8fe0d8b37c0a3220666570f242f9c20fa16b78ab
2016-04-21 14:20:42 -07:00
Garfield, Tan
9eb8818059 Disable view recycling to avoid passing wrong type of view to
Item.bindView().

Bug: 28298672

Change-Id: I1f7442ea3c6287da40b3e5fde25b16c2f2a7b685
2016-04-21 14:09:28 -07:00
Hyunyoung Song
22d91b0eb4 Merge "add @RemotableViewMethod to TextView#setEnabled b/28304068" into nyc-dev 2016-04-21 21:04:25 +00:00
Hyunyoung Song
7b77e0c765 add @RemotableViewMethod to TextView#setEnabled
b/28304068

Change-Id: Ia5464030a65c87dacdd75e5be331da017d7ef593
2016-04-21 13:41:56 -07:00
Chong Zhang
5da7a4a3f0 Merge "Make sure don't adjust IME when docked left-right" into nyc-dev 2016-04-21 20:35:28 +00:00
Fyodor Kupolov
cdb5fcf7b8 Merge "Remove pre-N db after successful migration" into nyc-dev 2016-04-21 20:30:39 +00:00
Jason Monk
53c116f5da Merge "QS: Use current tile state when removing custom tiles" into nyc-dev 2016-04-21 20:25:32 +00:00
Julia Reynolds
c14996393a Merge "Announce when volume controls appear and disappear." into nyc-dev 2016-04-21 20:18:29 +00:00
Jason Monk
21582d4643 QS: Use current tile state when removing custom tiles
Change-Id: If12415c051239348261386fb23e88d6725767ba0
Fixes: 27912532
2016-04-21 16:15:09 -04:00
Sid Soundararajan
6efc5dcb27 Merge "Make Dismiss Icon under Cards show up only when focused." into nyc-dev 2016-04-21 20:06:31 +00:00
Robert Carr
1b5ea72b3c Force pinned windows to always be scaleable.
Otherwise we have a race when switching it off at the end
of the animation when we don't move to fullscreen. Ensure
SCALE_TO_WINDOW is always enabled for windows while they
are in the pinned stack.

Bug: 27793381
Change-Id: Ia92465fd0d854f799caa8ed31edb4621af9fdecd
2016-04-21 13:01:57 -07:00
Chong Zhang
41de79e220 Make sure don't adjust IME when docked left-right
bug: 28295645
Change-Id: Ia8f7f9a92fcc562bd672abae4d3ddfd6e6201a79
2016-04-21 12:57:55 -07:00
Mihai Niță
344bd5c63d Merge "Framework: change the TTS text to use the current locale" into nyc-dev 2016-04-21 19:55:43 +00:00
Rob Carr
37696cccd8 Merge "Respect manually set HARDWARE_ACCELERATED flag." into nyc-dev 2016-04-21 19:52:02 +00:00
Adam Lesinski
b53e8a7a8a Merge "Fix order of operation issue with ResStringPool" into nyc-dev 2016-04-21 19:08:39 +00:00
Julia Reynolds
2feab1644b Announce when volume controls appear and disappear.
Bug: 28120156
Change-Id: I4e17b9cf1cd4a442adb7513168c12e3af24c424f
2016-04-21 15:00:45 -04:00
Fyodor Kupolov
27bd37ff3a Remove pre-N db after successful migration
Bug: 26279712
Change-Id: I53e4bd1b04b4ae6b94e8b5642d7f11a4edd6f1e4
2016-04-21 11:37:08 -07:00
Eric Laurent
dc7ce84095 Merge "AudioManager: fix isBluetoothA2dpOn()" into nyc-dev 2016-04-21 18:22:59 +00:00
Sid Soundararajan
2cc285e267 Make Dismiss Icon under Cards show up only when focused.
BUG: 28299529
Change-Id: I37cd029734da5de8416705746457151c22f64280
2016-04-21 11:20:52 -07:00
Adam Powell
a9bab98d70 Move child FragmentManager shutdown for retained fragments
Some apps out there do some creative things in terms of calling their
own onDetach methods from elsewhere. Perform the child FragmentManager
shutdown for retained fragments in a package-level perform method
instead of in onDetach itself.

Also mark all existing fragment methods with @CallSuper.

Bug 28293847

Change-Id: I343b610f8d427fe5cabd523a78fbf0e6f3b34c57
2016-04-21 11:04:41 -07:00
Chong Zhang
289395b1fe Merge "Fix dead surface/window left on screen" into nyc-dev 2016-04-21 17:58:52 +00:00
Yohei Yukawa
d67a1ca49b Merge "Accept null subtype in InputMethodSubtypeHandle." into nyc-dev 2016-04-21 17:11:55 +00:00
Chris Craik
924d8227c4 Merge "Fix shadow radius too large for RS" into nyc-dev 2016-04-21 17:09:03 +00:00
Junda Liu
c7004f5648 Add comments to apptype and authtype constants.
Bug: b/28296053
Change-Id: Ib79d9106ac4415f495fd3ec4d0bea036d0b9c9f4
2016-04-21 10:05:21 -07:00
Adam Lesinski
666b6fbba1 Fix order of operation issue with ResStringPool
Due to ! taking precedence over bitwise &, the condition for
checking non-null terminated string blocks is incorrect.

Adds parentheses for the correct behavior.

Bug:28288210
Change-Id: Ie31fa239e5f869e6bb28deb6ae190f41f1aa4d92
2016-04-21 10:05:06 -07:00
Youngsang Cho
28d9c9f7b2 Merge "PIP: Fix system UI crash" into nyc-dev 2016-04-21 16:23:01 +00:00
Victor Chang
dc068eba6f Deleting lock screen clears all CA approvals
When both screenlocks for profile user and parent user has been removed (both set to none),
remove CA approvls on that user, and show the "Certificate authority installed" notification.

Bug: 28161447
Change-Id: I3c78dc5cfcdf7c02c91b64abe44984ee790d8f3e
2016-04-21 16:55:34 +01:00
Tony Mak
d3589ee715 Merge "Fix wrong app is launched after solving challenge from tapping notification" into nyc-dev 2016-04-21 15:51:14 +00:00
Tony Mak
646fe9913e Fix wrong app is launched after solving challenge from tapping notification
PendingIntent.FLAG_ONE_SHOT is needed to prevent the PendingIntent being
reused.

Also, flag and activity option of credential intent in BaseStatusBar
is not same as the one in ActivityStarter. Added a new
function startConfirmDeviceCredentialIntent in AM to centralize it.

Change-Id: I2d9e5923ad5d4d012f10057c409c666c8ca299a3
Fix: 28309964
2016-04-21 16:43:08 +01:00
Julia Reynolds
54a6394cf9 Merge "Accept the calendar name in addition to the owner as a calendar filter." into nyc-dev 2016-04-21 15:36:31 +00:00
Julia Reynolds
a8574a1dfa Merge "Always reevaluate rules when a new service is added." into nyc-dev 2016-04-21 15:24:05 +00:00
Keith Cheung
39066abb59 Merge "Include work app in battery optimization settings" into nyc-dev 2016-04-21 15:18:08 +00:00
Julia Reynolds
d0f2d1f9ac Merge "Don't call into audiomanager holding a zen lock." into nyc-dev 2016-04-21 15:04:07 +00:00
Clara Bayarri
98c7c05dde Merge "Reinflate QS view on Locale configuration change" into nyc-dev 2016-04-21 14:47:16 +00:00
Julia Reynolds
7c9350a940 Always reevaluate rules when a new service is added.
Otherwise the condition providers may never get an
onSubscribe call and may not turn on at the right time.

Bug: 26981870
Change-Id: Ia622597f10cc26f7c34ece1748013655543f488f
2016-04-21 10:38:32 -04:00
Julia Reynolds
d82e981cf3 Don't call into audiomanager holding a zen lock.
Bug: 27642196
Change-Id: Ib510f2ddf966f36b3670290a4f3f695bf6b7810e
2016-04-21 10:38:32 -04:00
TreeHugger Robot
db042644d5 Merge "Volume updates should appear continuous when changed by touch." into nyc-dev 2016-04-21 14:33:50 +00:00
Clara Bayarri
bcedd6b74f Merge "Fix silent errors when launching Keyboard Shortcuts from Settings" into nyc-dev 2016-04-21 14:28:58 +00:00