Commit Graph

252839 Commits

Author SHA1 Message Date
Rob Carr
c991a7ad54 Merge changes I082e323e,I326bf776 into nyc-mr1-dev
* changes:
  Limit seamless rotation to TRANSFORM_INVERSE_DISPLAY children.
  Allow seamless rotation before mTopIsFullscreen is set.
2016-08-16 01:31:32 +00:00
Dirk Dougherty
13a5f3515f Merge "Doc change: escape lt char in generic type in pre block." into nyc-dev
am: 114c09498d

Change-Id: Ie7f79a9236823a9066867fb52bf352523730ec3f
2016-08-16 01:30:07 +00:00
Dirk Dougherty
61a7f64e1f Doc change: escape lt char in generic type in pre block.
am: 1035b25825

Change-Id: I4e4c01fe612bbcf05c31c6d33da6bbbe837aa468
2016-08-16 01:30:04 +00:00
TreeHugger Robot
b14543d9d8 Merge "Introduce new constant for double tap gesture rotation hint." into nyc-mr1-dev 2016-08-16 01:21:57 +00:00
Dirk Dougherty
114c09498d Merge "Doc change: escape lt char in generic type in pre block." into nyc-dev 2016-08-16 01:17:32 +00:00
Phil Weaver
2a0e48aaf5 Add null check to KeyEventDispatcher.
Make sure we don't try to dispatch key events to services
that have died. Doing so crashes the device.

Bug: 30866905
Change-Id: I1cc0515cca8924b0c2744de98ac75a901b94246d
2016-08-15 17:49:55 -07:00
Adrian Roos
a98b32cea2 NavBar: Use rotation watcher
Replaces the display changed listener with a
rotation watcher. The display listener fired
too late and did not produce a rotated frame
in time. Also cleans up logging tags.

Change-Id: I3336275ae123f868ed9ee8cc28a6285a06f2e1a6
Fixes: 30312602
2016-08-15 17:46:16 -07:00
Chong Zhang
fea963edee Add new window type TYPE_DRAWN_APPLICATION
This type behaves like a normal TYPE_APPLICATION, except that WM
will always wait for it to be drawn before starting a transition.

WM always waits for TYPE_BASE_APPLICATION (main window), but for
TYPE_APPLICATION, it only waits if the window relayouts to visible
and gets a surface before the main window is drawn. If main window
itself is ready very fast, transition could start without the other
window.

bug: 30830849
Change-Id: Ife71a9812db7c8eba6ee4ead10ce4f31d9e93b40
2016-08-15 17:36:40 -07:00
Suprabh Shukla
ae54fae453 Merge "Changing user inactivity and warning dialog timeouts" into nyc-mr1-dev
am: f5e51cf7a9

Change-Id: Ic44c61742ba56f887cf90ab6428b8c8642e355e3
2016-08-16 00:32:56 +00:00
Suprabh Shukla
925a30e82b Changing user inactivity and warning dialog timeouts
am: cafdc2e50d

Change-Id: Iba74fd833ba00cbae39e09cf404f1877efd7a4d8
2016-08-16 00:32:55 +00:00
Fyodor Kupolov
8b85bed24b Merge "Count failed install as finished" into nyc-mr1-dev
am: ab35493046

Change-Id: I5e65fd656bcad8b8de5742e01e90709954bb7102
2016-08-16 00:25:59 +00:00
Fyodor Kupolov
dc2963f20b Count failed install as finished
am: 4f4780f023

Change-Id: Ia1ddcde1b9bcb37a266589ff53ed01632e442c7b
2016-08-16 00:25:57 +00:00
TreeHugger Robot
f5e51cf7a9 Merge "Changing user inactivity and warning dialog timeouts" into nyc-mr1-dev 2016-08-16 00:21:35 +00:00
Jim Miller
2d71384a13 Fix vulnerability in LockSettings service
Fixes bug 30003944

Change-Id: I8700d4424c6186c8d5e71d2fdede0223ad86904d
2016-08-16 00:09:33 +00:00
TreeHugger Robot
ab35493046 Merge "Count failed install as finished" into nyc-mr1-dev 2016-08-15 23:58:07 +00:00
Adrian Roos
88dead0f19 Merge "Fix bug where RemoteInputView didn't reopen the IME" into nyc-mr1-dev
am: 094b8b3321

Change-Id: I308a6550ce47b0083b28a2a2cf89d82b692b2939
2016-08-15 23:49:01 +00:00
Adrian Roos
2bf73bbb43 Fix bug where RemoteInputView didn't reopen the IME
am: 0356865dad

Change-Id: I983cd6d0abc35af375d95722606969f13aebb9f5
2016-08-15 23:48:58 +00:00
TreeHugger Robot
094b8b3321 Merge "Fix bug where RemoteInputView didn't reopen the IME" into nyc-mr1-dev 2016-08-15 23:45:05 +00:00
Adam Lesinski
ae5a79ad12 Merge "AAPT: Fix use-after-free error" into nyc-mr1-dev
am: 1031069f1d

Change-Id: Ic2fce0e9b9769630f9a59065f317ea34201be079
2016-08-15 23:11:49 +00:00
Adam Lesinski
646f2d9c33 AAPT: Fix use-after-free error
am: 193ed74c2d

Change-Id: I04cd726dae52c5010ad99409f0f77a10267bdeed
2016-08-15 23:11:37 +00:00
TreeHugger Robot
1031069f1d Merge "AAPT: Fix use-after-free error" into nyc-mr1-dev 2016-08-15 22:56:01 +00:00
Suprabh Shukla
cafdc2e50d Changing user inactivity and warning dialog timeouts
Increasing the inactivity timeout to 90 seconds to accomodate the longest
app. demo video for retail. Also, removing the warning dialog by setting
the countdown timeout to 0, so it can be re-enabled by overriding the value
through gservices if needed.

Bug: 30426773
Bug: 30866394
Change-Id: I6735943adfaf3d210ed9eb9163b5c7ce8dcf53ec
2016-08-15 15:48:48 -07:00
Tyler Gunn
273f01785d Merge "Add missing remote conference property set." into nyc-mr1-dev
am: aa9b18f90a

Change-Id: I1176b63a1d84829b79b9e540747a27b777e88c47
2016-08-15 22:42:38 +00:00
Tyler Gunn
69c13eca0e Add missing remote conference property set.
am: 04ce757860

Change-Id: Iba041654d136b3cd00cfc19899cefa68ebf01b76
2016-08-15 22:42:36 +00:00
Tyler Gunn
aa9b18f90a Merge "Add missing remote conference property set." into nyc-mr1-dev 2016-08-15 22:32:03 +00:00
Fyodor Kupolov
4f4780f023 Count failed install as finished
Otherwise DEMO_USER_SETUP_COMPLETE will not be set.

Bug: 30445353
Change-Id: Id2a0c1b1643dd9846328a20f4c67e11e69b3bc84
2016-08-15 15:29:47 -07:00
Robert Carr
aab09158e9 Limit seamless rotation to TRANSFORM_INVERSE_DISPLAY children.
In what can only be called an unfortunate workaround we require
seamlessly rotated child windows to have the
TRANSFORM_TO_DISPLAY_INVERSE
flag. Due to limitations in the client API, there is no way for the
client to set this flag in a race free fashion. If we seamlessly rotate
a window which does not have this flag, but then it gains it,
we will have an incorrect visual result (rotated buffer contents). This
means if we want to support seamlessly rotating windows which could gain
this flag, we can't seamlessly rotate windows which don't have it. This
unfortunately limits seamless rotation in N to Camera framework users,
native code, and applications without child windows. This is unfortunate
but having the camera work was always our primary use case, and it's not
as if we are offering an API for it, it's a behind the scenes
enhancement of ROTATION_ANIMATION_JUMPCUT.

Bug: 30171992
Change-Id: I082e323ee569cfc1ff2559657cc22194c251c7ec
2016-08-15 15:20:17 -07:00
Adrian Roos
0356865dad Fix bug where RemoteInputView didn't reopen the IME
Editable TextViews are implicitly selectable. Setting the selectable
property to true however causes a bug where the onTouch logic thinks
the view is not editable and thus doesn't show the IME when clicking
that view.

Change-Id: I9dd6139195bd98b26293e330290650d4e5549a6d
Fixes: 30595718
2016-08-15 15:02:57 -07:00
Selim Cinek
3ff0c5b3ce Fixed an issue where the background could show in a wrong way
am: d381bc3133

Change-Id: I219e4809a6a9f839353e049d4d563ece37866ca2
2016-08-15 22:02:18 +00:00
Selim Cinek
d381bc3133 Fixed an issue where the background could show in a wrong way
Change-Id: Icefeb2275d6cbabc576c35990ce4441b3a41ebd9
Fixes: 30855224
2016-08-15 21:42:09 +00:00
Dianne Hackborn
1377b38053 Merge "Docs only: N is no longer a shrug." into nyc-mr1-dev
am: 6af2db3824

Change-Id: Idae2d16055e26e721584e428c44af0f2b1828557
2016-08-15 21:25:44 +00:00
Dianne Hackborn
6fe27966e2 Docs only: N is no longer a shrug.
am: c1b607df71

Change-Id: Iaf3a4c23ec9c94dccfa6db15e6caf90a74a5f3c0
2016-08-15 21:25:41 +00:00
Adam Lesinski
193ed74c2d AAPT: Fix use-after-free error
Re-order deletion of ResXMLTree and the Asset object
it iterates over.

Bug:30844391
Change-Id: Ied033d0a8f93343006228a2054c6d0f42bb4717a
2016-08-15 14:22:36 -07:00
Dianne Hackborn
6af2db3824 Merge "Docs only: N is no longer a shrug." into nyc-mr1-dev 2016-08-15 21:16:43 +00:00
Chong Zhang
f74e7ee4a3 Wallpaper target selection during animation
am: b0d267043a

Change-Id: Ib649f9399d6c9f7f84f05ddef8dd8e3d87bb7923
2016-08-15 20:51:52 +00:00
Chong Zhang
b0d267043a Wallpaper target selection during animation
In case of double tapping from Home, there could be two set of
transitions, first is launcher->Recents, followed shortly by
Recents->app. On the second transition, it should be running
a wallpaper close, but because of the way we pick wallpaper
target, sometimes we pick launcher if both launcher & Recents
are animating away. This makes us to run a different animation
which could involve dimming the wallpaper briefly.

Also, findWallpaperTarget() sometimes could toggle between two
valid wallpaper targets, picking either of them gives correct
result for showing the wallpaper, but could result in different
exit transition.

This change prefers the visible target if there is only one
visible, otherwise the one in opening or closing app list. This
helps maybeUpdateTransitToWallpaper to better choose transition.

bug: 30831873
Change-Id: I0eaa89bdc35f5f51875d5cbeceba11ce40f4791f
2016-08-15 20:08:06 +00:00
Julius D'souza
603e631c51 DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable. am: 13edf0a70b -s ours am: 0903c5fe7a -s ours am: f51dfc24d1 -s ours
am: e543fb29b2  -s ours

Change-Id: Ic9de880e84205d0bed213e56cf476e1d15dfcfa9
2016-08-15 19:55:56 +00:00
Julius D'souza
e543fb29b2 DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable. am: 13edf0a70b -s ours am: 0903c5fe7a -s ours
am: f51dfc24d1  -s ours

Change-Id: Iada12a5685d32efafedd18b4d6fba5b8cc642f60
2016-08-15 19:47:33 +00:00
Jason Monk
1d2ef7f1b8 Merge "QS Footer: Don't update icon from wrong thread." into nyc-mr1-dev
am: aedfa81517

Change-Id: I281d14459a03556d96236a9ebb2a08ebd2c53110
2016-08-15 19:35:00 +00:00
Jason Monk
b10b51277f QS Footer: Don't update icon from wrong thread.
am: f9c6026a7d

Change-Id: Ie473b181aaf6fc4ea91d8e986188cdc6f06d87ef
2016-08-15 19:34:58 +00:00
Julius D'souza
f51dfc24d1 DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable. am: 13edf0a70b -s ours
am: 0903c5fe7a  -s ours

Change-Id: Iba7ccc2ec071ea8c13d146b39aab48d2f4fc4977
2016-08-15 19:33:29 +00:00
TreeHugger Robot
aedfa81517 Merge "QS Footer: Don't update icon from wrong thread." into nyc-mr1-dev 2016-08-15 19:25:46 +00:00
Robert Carr
1ccd42510f Allow seamless rotation before mTopIsFullscreen is set.
The difference between mTopFullscreenOpaqueWindowState != null
and mTopIsFullscreen relates to whether the status bar is animating.
However the flag won't be cleared until the next layout pass following
the animation. As long as the window isn't animating we are fine to
rotate seamlessly. This check was copied from selectRotationAnimationLw.
A little code archaeology implies it was perhaps historical and
introduced before the flag had this meaning.

Bug: 30171992
Change-Id: I326bf7766f8ebe307b833d1ca0c0cdfe80b1eb6c
2016-08-15 12:25:41 -07:00
Robert Carr
57d9fbd17f Introduce new constant for double tap gesture rotation hint.
As discussed in ag/1192965/ we have a special case for rotation
animation selection in launch from double tap. This was set to
ROTATION_ANIMATION_CROSSFADE as the goal was just to avoid
ROTATION_ANIMATION_ROTATE on the viewfinder surface and
seamless rotation in launch scenarios was initially descoped. Now we
are aiming at fixing this though, and ROTATION_ANIMATION_CROSSFADE
does not quality for seamless rotation. ROTATION_ANIMATION_JUMPCUT
also would not be a good choice because in the situation that the
rotation occurs before the app starting window appears, then we would
jump cut from unrotated wallpaper to rotated app, I think we want
a crossfade in this scenario. To this end introduce and use a new @hide constant
ROTATION_ANIMATION_SEAMLESS which qualifies for seamless but falls back
to CROSSFADE if seamless can't occur.

Bug: 30171992
Change-Id: If1945b17b5159be4cd5ba0b139d6bea9f7fcca33
2016-08-15 12:25:37 -07:00
Julius D'souza
0903c5fe7a DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable.
am: 13edf0a70b  -s ours

Change-Id: I7c02cea3ea0008f3f112063b6a06d08049c4998b
2016-08-15 19:25:33 +00:00
Julius D'souza
13edf0a70b DO NOT MERGE ANYWHERE: Make slow brightness display ramp rate configurable.
Add overlay setting with current default value.

Bug: 30085530
Change-Id: Ib5d2448b88cfb66a97febcdf06e2118c84b16cd0
2016-08-15 12:15:29 -07:00
Chong Zhang
0caf507dbe Revert "DO NOT MERGE -- Revert the following two commits as they're causing flickering"
am: f96cb3c34d

Change-Id: I1756346f1713f758374f2b8476c70a60119986dd
2016-08-15 19:14:52 +00:00
Chong Zhang
2261bb362b Merge "Allow performShowLocked when transition animation started" into nyc-mr1-dev
am: 1fb9466c1d

Change-Id: I47692dcaef58641e1fbf6632cfb59d843c43d667
2016-08-15 19:14:50 +00:00
Chong Zhang
280d7fdcb0 Allow performShowLocked when transition animation started
am: 83caa366f4

Change-Id: I6897267073728cf236e1ad98c3092666bb246e49
2016-08-15 19:14:48 +00:00
Chong Zhang
f96cb3c34d Revert "DO NOT MERGE -- Revert the following two commits as they're causing flickering"
This reverts commit 44bd57ee25.

bug: 30831873
bug: 30790402
2016-08-15 19:09:57 +00:00