Commit Graph

8622 Commits

Author SHA1 Message Date
Aga Madurska
9b3bb7d20f Add support for round scroll bars to View.java am: b19d0f9800
am: 009fab6070

Change-Id: I4f6808ca48fcc9d336b57c0edea15d632e28f8b7
2016-07-25 16:49:37 +00:00
Aga Madurska
009fab6070 Add support for round scroll bars to View.java
am: b19d0f9800

Change-Id: I23faff9b31a9a71c767aaabca69774f8582bfdb2
2016-07-25 16:39:58 +00:00
Aga Madurska
b19d0f9800 Add support for round scroll bars to View.java
Change-Id: If94a29d68cee504f7d31519b96f7b4b8a3af6bfa
2016-07-25 16:14:55 +01:00
TreeHugger Robot
72d558ece5 Merge "Revoke drag and drop related grants on client crash" 2016-07-22 17:56:24 +00:00
Chong Zhang
b2f4641039 Clean up surfaces when app is resumed without being stopped. am: 45e6d2dc8b
am: b76adc5117

Change-Id: I35c39c4fc49a953262b5b6ab4cbc2dca2ddf0b8f
2016-07-22 17:26:15 +00:00
Chong Zhang
b76adc5117 Clean up surfaces when app is resumed without being stopped.
am: 45e6d2dc8b

Change-Id: I9ae5c2a9c6a93246338221252cf943db6763e1c4
2016-07-22 17:17:26 +00:00
Adam Powell
020ebdcc73 Add View reveal on focus hint am: 7ec3fb3947
am: e45f9d1bf6

Change-Id: I1f835ecb9d4e8226ae9f4800a888f557b7999357
2016-07-22 07:17:56 +00:00
Adam Powell
e45f9d1bf6 Add View reveal on focus hint
am: 7ec3fb3947

Change-Id: Id3af05b3040821a94e3fd694d761fd317568fa5a
2016-07-22 02:24:09 +00:00
Vladislav Kaznacheev
87c60d66f4 Revoke drag and drop related grants on client crash
Add a token on the client side, linkToDeath to it on the server
side.

Bug: 29586254
Change-Id: I41ef6dd58352514035c95a4ec9e49c92ea240661
2016-07-21 15:25:12 -07:00
Chong Zhang
45e6d2dc8b Clean up surfaces when app is resumed without being stopped.
When quickly toggling between two apps, app could be resumed while
it's stopping but not yet stopped. Upon resuming, it could have
surfaces that's marked mDestroying and waiting for the stopped
to be destroyed.

We need to dispose these surfaces properly. If the window is already
removed, we destroy them. Otherwise, clear mDestroying flag so that
the window is ready to be used again. Leaving mDestroying=true makes
the window ineligible for certain things such as receiving wallpaper.

bug: 30255354
Change-Id: Id881653550595ab8e702d6950949bf202ac5a0d9
2016-07-21 10:17:39 -07:00
Adam Powell
7ec3fb3947 Add View reveal on focus hint
Provide a way for views to signal that they would prefer not
to have their parents scroll or otherwise rearrange when they
request focus to try to show the full focused view to the user.
In some cases this can be disruptive to the UX.

As of now, framework views do not respect this hint and custom
views such as those found in currently deployed support libs
don't either. The policy is left open to ViewParent subclasses
that implement requestChildFocus.

Bug 30256922

Change-Id: I55194de888fe2b8129be9a9aa21aa5e18cbb8296
2016-07-20 17:42:10 -07:00
Michael Wright
bc702e5d42 Merge commit \'f8bc27d9683e4089cdfd778dcb61ae67f44665b7\' into manual_merge_f8bc27d
am: 49bcc5dd80

Change-Id: Iee2a7015eefd6a75be2968ec855334f68ec5f79e
2016-07-20 18:49:43 +00:00
Michael Wright
49bcc5dd80 Merge commit 'f8bc27d9683e4089cdfd778dcb61ae67f44665b7' into manual_merge_f8bc27d 2016-07-20 19:41:58 +01:00
TreeHugger Robot
f8bc27d968 Merge "Rename color transform to color mode and persist the value." into nyc-mr1-dev 2016-07-20 17:21:35 +00:00
Phil Weaver
3c11ac82b9 Merge \\"Suppress exceptions for corner-case a11y events.\\" into nyc-mr1-dev am: 39abe33b50
am: 5c749b8254

Change-Id: Id78b4ac49ee77a52d2e17f962e71328fb5cb4ba9
2016-07-20 17:03:37 +00:00
Phil Weaver
5c749b8254 Merge \"Suppress exceptions for corner-case a11y events.\" into nyc-mr1-dev
am: 39abe33b50

Change-Id: If169e5ab2a6241e6df720fa427a9eaee61d3cdc8
2016-07-20 16:57:52 +00:00
Phil Weaver
890202bde4 Suppress exceptions for corner-case a11y events.
Apps are told to query AccessibilityManager#isEnabled before
calling sendAccessibilityEvent. If accessibility is disabled
between the two calls, an app can crash. We can guarantee that
this won't happen on a process's main thread, but guaranteeing
it for all threads is messier. Rather than add the complexity
of tracking the state for all threads, only log an error in the
corner case that an accessibility event is requested on a
thread that doesn't have the process's main looper.

Bug: 28985452
Change-Id: I8369deefd83b0a6b04936ddfce55c53147756f1f
2016-07-19 16:44:28 -07:00
Svetoslav Ganov
f6d56f92ff Merge "Update windows before sending a window state change event" 2016-07-18 21:54:14 +00:00
Michael Wright
1c9977b762 Rename color transform to color mode and persist the value.
Also, standardize on a set of possible modes for the displays to
enter and separate the configuration of the color mode from the
configuration of the display mode.

Bug: 29044347

Change-Id: I6af0a7d1f11bc72d4cefc380f115c1fb00788864
2016-07-18 19:49:18 +01:00
Vladislav Kaznacheev
f2034d6455 Merge \\"Always return valid ClipDescription for ACTION_DRAG_EXITED\\" into nyc-mr1-dev am: 278676bdeb
am: b604ade452

Change-Id: Ie779f0a6ca15f6f190a6361bddc4982b522004cd
2016-07-15 20:19:20 +00:00
Vladislav Kaznacheev
b604ade452 Merge \"Always return valid ClipDescription for ACTION_DRAG_EXITED\" into nyc-mr1-dev
am: 278676bdeb

Change-Id: I51a339a1a821439b5c90079812aea56833872b75
2016-07-15 18:38:08 +00:00
Vladislav Kaznacheev
7fe1f798bf Always return valid ClipDescription for ACTION_DRAG_EXITED
Bug: 30148704
Change-Id: I5f5cbb35a343e6ef61bed9ff92e3921a4ecce0c0
2016-07-14 17:15:02 -07:00
Chris Banes
70ebe6dc10 Merge \\"Read translation and elevation attributes as floats\\" into nyc-mr1-dev am: 6487312544
am: 54224d40f9

Change-Id: Iaa17584e9309b38fcaf81de62e9e3c13c94a1721
2016-07-14 09:29:39 +00:00
Chris Banes
54224d40f9 Merge \"Read translation and elevation attributes as floats\" into nyc-mr1-dev
am: 6487312544

Change-Id: I22bdfa3abbc85ffb8de7bef62fae0e2e68e2368a
2016-07-14 09:21:17 +00:00
Chris Banes
6487312544 Merge "Read translation and elevation attributes as floats" into nyc-mr1-dev 2016-07-14 09:11:05 +00:00
Phil Weaver
35dc926772 Merge \"Behave if the same view gets a11y focus twice.\" into nyc-mr1-dev
am: 93d51af336

Change-Id: I7ea7779f5f8735d6c10743eb3e7199b5a1d6c85d
2016-07-14 01:31:25 +00:00
Svetoslav Ganov
fd138896d5 Update windows before sending a window state change event
Change-Id: Ie25b75ccc739dcacbbffd2b3a32fe65086882c64
2016-07-14 01:24:37 +00:00
Phil Weaver
0aaf427550 Behave if the same view gets a11y focus twice.
In some corner cases, ViewRootImpl#setAccessibilityFocus
can be called twice for the same view. Make sure we're
actually changing views before clearing accessibility focus
to avoid inconsistent state.

Bug: 29637593
Change-Id: I5dc6f05bdeaec55c352417bfca92c11bd03c3c10
(cherry picked from commit da4692774c)
2016-07-13 21:26:16 +00:00
Chong Zhang
9c68b2b076 Merge \\"Revert changes to force layout after insets changes\\" into nyc-mr1-dev am: 185131442b
am: 12fad318b1

Change-Id: I881ff5642a7b1b748d948345728acd3ceb4b9855
2016-07-13 19:50:18 +00:00
Chong Zhang
12fad318b1 Merge \"Revert changes to force layout after insets changes\" into nyc-mr1-dev
am: 185131442b

Change-Id: I7d3eaa1d0337c0ae62ee24169b76f1938b8b9e68
2016-07-13 19:44:37 +00:00
Chong Zhang
185131442b Merge "Revert changes to force layout after insets changes" into nyc-mr1-dev 2016-07-13 19:39:08 +00:00
Chong Zhang
75eccbd0ff Revert changes to force layout after insets changes
Alternative fix for b/29391054 ag/1152795 sends an MOVE message to
client which also force a layout, so we no longer need to force
it after the insets change in the traversal.

Reverting the following two related fixes as it does more
measures than necessary.

bug: 29391054
bug: 29533997
bug: 29634368

Revert "Fix layout issue after insets changed"

This reverts commit 76fdbb72c9.

Revert "Do a forceLayout if pending insets is changed after relayout window"

This reverts commit 71f2c31469.
2016-07-13 19:24:04 +00:00
Chris Banes
b20891b08a Read translation and elevation attributes as floats
Since they're recorded as floats, we should keep the
precision from the attribute values.

BUG: 30109000
Change-Id: I07e6a3ff771198bcb24d32e3dd06a79f10e51a7e
2016-07-13 13:55:01 +00:00
Zak Cohen
9dc28243c0 Merge \\"Adds a screenshot wallpaper method to WallpaperManagerService.\\" into nyc-mr1-dev am: b4d4ce31ab
am: ee2f46485e

Change-Id: Ia7b738db6f73c89e97537f9b1c0d5cb7fd161616
2016-07-13 10:26:47 +00:00
Zak Cohen
ee2f46485e Merge \"Adds a screenshot wallpaper method to WallpaperManagerService.\" into nyc-mr1-dev
am: b4d4ce31ab

Change-Id: I4737e4d758335240614d2d2b51c11b8c739160fc
2016-07-13 10:22:02 +00:00
Zak Cohen
b4d4ce31ab Merge "Adds a screenshot wallpaper method to WallpaperManagerService." into nyc-mr1-dev 2016-07-13 10:15:02 +00:00
Vladislav Kaznacheev
04e15b8a23 Fix docs for View.DRAG_FLAG_GLOBAL am: 9a44eaec53 am: 9ac6a460c8
am: 9c225d60e0

Change-Id: I5876ea6cfe8e1711f446c9f9246770ff49fb7380
2016-07-13 00:27:07 +00:00
Vladislav Kaznacheev
9c225d60e0 Fix docs for View.DRAG_FLAG_GLOBAL am: 9a44eaec53
am: 9ac6a460c8

Change-Id: I62af5eba6621e25c51cbcbfe7f9670e7be1449a3
2016-07-13 00:17:39 +00:00
Vladislav Kaznacheev
9ac6a460c8 Fix docs for View.DRAG_FLAG_GLOBAL
am: 9a44eaec53

Change-Id: I82786f107815361b73655b92dc4e54ee255296d9
2016-07-13 00:08:50 +00:00
Vladislav Kaznacheev
9a44eaec53 Fix docs for View.DRAG_FLAG_GLOBAL
Document that cross-app drags only involve apps compiled for API 24 or later.

Bug: 30076806
Change-Id: Ia630f4623c23d787b52692ff1f6475408cefa177
2016-07-12 15:24:48 -07:00
Rob Carr
5ddb26eace Merge "Remove unused SurfaceView state." 2016-07-12 21:20:02 +00:00
Zak Cohen
3683fb1e1d Adds a screenshot wallpaper method to WallpaperManagerService.
Bug: 29963541

Change-Id: If0a574004f8bddf1ba170587a8187253fe045ef4
2016-07-12 17:18:36 +00:00
Vladislav Kaznacheev
b709dafb20 Merge \\\"Fix docs for DragEvent\\\" into nyc-dev am: b6fa207c67 am: 879b3fb9ce
am: dc4d435dde

Change-Id: I9fd4fec9a3ac0afa10ab9938ccb2f7cd713e587b
2016-07-12 02:21:25 +00:00
Vladislav Kaznacheev
dc4d435dde Merge \\"Fix docs for DragEvent\\" into nyc-dev am: b6fa207c67
am: 879b3fb9ce

Change-Id: I93210c64927b5240622099a5715068f36d71bd57
2016-07-11 23:30:49 +00:00
Vladislav Kaznacheev
78004643e1 Merge \"Fix docs for DragEvent\" into nyc-dev
am: b6fa207c67

Change-Id: I7acfd89bb3cd51273007d8dc7b899ae6b95c7937
2016-07-11 23:26:31 +00:00
Vladislav Kaznacheev
879b3fb9ce Merge \"Fix docs for DragEvent\" into nyc-dev
am: b6fa207c67

Change-Id: I33c231d19065a5acc26472d4c3f175351d2a6d10
2016-07-11 23:26:05 +00:00
Vladislav Kaznacheev
3067bc69d9 Fix docs for DragEvent
Document that getClipDescription() and getLocaState() do not return valid data
when getAction() == DragEvent.ACTION_DRAG_ENDED.

Bug: 30016099
Change-Id: Id98fe8c5d6f052fc51c8c9e8d55329e162bd96b1
2016-07-11 13:52:22 -07:00
Robert Carr
49b593efae Remove unused SurfaceView state.
Use progressively declined over N, until I noticed
they were no longer used at all.

Change-Id: I05db2e8569d26b69f91f753564ffa5f40aa05a61
2016-07-11 12:22:06 -07:00
Tim Murray
aa1735370b Merge changes from topic \\'fifo\\' into nyc-mr1-dev am: a96d445aef
am: 03b34e402c

Change-Id: If3104889f659aef9a6d7035e18ab839544c9ecb3
2016-07-07 20:59:09 +00:00
Tim Murray
03b34e402c Merge changes from topic \'fifo\' into nyc-mr1-dev
am: a96d445aef

Change-Id: If4a5c3f65cb611aecf82ad49ad6d992f098cbfb1
2016-07-07 20:48:27 +00:00