Commit Graph

7989 Commits

Author SHA1 Message Date
Jorim Jaggi
6dfee72a9f Do not call forceLayout if not needed am: 26952d7
am: b99b23e

* commit 'b99b23ef92f0ffca6c3e531feece7d49c0a089e9':
  Do not call forceLayout if not needed

Change-Id: Ib49fdcb6b532bddd38b875fcffe09c5b7ce1aec8
2016-04-04 22:07:14 +00:00
Jorim Jaggi
b99b23ef92 Do not call forceLayout if not needed
am: 26952d7

* commit '26952d748eaab23330c660fa0d7f5c0450dc1d06':
  Do not call forceLayout if not needed

Change-Id: I87adfe600252a6bc0c0880b4fff534cf67c027f7
2016-04-04 22:04:41 +00:00
Jorim Jaggi
26952d748e Do not call forceLayout if not needed
If the relevant frames for the app don't actually change, there is
no reason to call forceLayout and force a layout pass.

Bug: 27864358
Change-Id: I2add8cc5791023937afc154e6e50bbf7efb35adb
2016-04-04 21:56:48 +00:00
Kristian Monsen
94fc548653 Merge "Store number of axis in Parcel to prevent infinite loop" 2016-04-04 21:30:04 +00:00
Bo Liu
05d7c72d17 Merge "Expose setDrawGLFunctionDetachedCallback to webview" into nyc-dev
am: 2f1eb93

* commit '2f1eb93354d540efcb83e784ca28f6e91eca61d1':
  Expose setDrawGLFunctionDetachedCallback to webview

Change-Id: Ib47e6b22f5229565c043c4770d2f6f421772c203
2016-04-04 20:26:46 +00:00
Bo Liu
2f1eb93354 Merge "Expose setDrawGLFunctionDetachedCallback to webview" into nyc-dev 2016-04-04 20:20:10 +00:00
Phil Weaver
0bf4a59338 Merge "Make a11y text navigation by page symmetric." into nyc-dev
am: 7eb716c

* commit '7eb716c0f4a024e2673f6fce442005abd4dc19f5':
  Make a11y text navigation by page symmetric.

Change-Id: I27d276c301efd9365afba65acb1a9e54ae97f24e
2016-04-04 16:43:04 +00:00
Phil Weaver
b11f31ff43 Merge "Add accessibility window title and anchor." into nyc-dev
am: d4a1932

* commit 'd4a19326085f2a68d568dfa754c29fd0ac49d193':
  Add accessibility window title and anchor.

Change-Id: I9b15bac883b470f06a41ee0b7ebf1b7d68e4ae2f
2016-04-04 16:43:00 +00:00
Phil Weaver
7eb716c0f4 Merge "Make a11y text navigation by page symmetric." into nyc-dev 2016-04-04 16:37:05 +00:00
Phil Weaver
d4a1932608 Merge "Add accessibility window title and anchor." into nyc-dev 2016-04-04 16:36:01 +00:00
Chong Zhang
47814b0829 Merge "Avoid extra relaunch when rotating side-by-side apps" into nyc-dev
am: fbe10f1

* commit 'fbe10f175fa3cb2083d15b4dbfb05c6f223d7f2c':
  Avoid extra relaunch when rotating side-by-side apps

Change-Id: I1f58f668a9593571b26d9c8c9692cd625e9679a8
2016-04-01 22:07:39 +00:00
Chong Zhang
fbe10f175f Merge "Avoid extra relaunch when rotating side-by-side apps" into nyc-dev 2016-04-01 21:56:45 +00:00
Chong Zhang
167bbfac24 Avoid extra relaunch when rotating side-by-side apps
Update configuration with WM first and check if the stacks need to be
resized due to the update. If so, let activity manager resize the stacks
inline, instead of letting WM schedule another pass of resizeStack. This
way the configuration will be updated to the latest before ensureActivity-
ConfigurationLocked, and we don't need another relaunch there.

bug: 27834014

Change-Id: Ib761a96cada0c3247b0480f18370670c593159da
2016-04-01 13:58:41 -07:00
Bo Liu
ee34ef1633 Expose setDrawGLFunctionDetachedCallback to webview
Add WebViewDelegate.setDrawGLFunctionDetachedCallback system API that's
used for webview to receive the functor detach callback.

BUG: 27709981
Change-Id: Ie6b5e445c0090a181f94fcd2ec1ea77095c9cb03
2016-04-01 11:10:00 -07:00
Adam Powell
6823bc1a0a Merge "Revert "Only call Drawable.setVisible(false) for visible outgoing drawables"" into nyc-dev
am: 991989f

* commit '991989f3183195cdadf308450eff8b3e9266fdab':
  Revert "Only call Drawable.setVisible(false) for visible outgoing drawables"

Change-Id: I442d2f712f25dec0702662950614fb75f0b7b2e6
2016-04-01 15:47:35 +00:00
Adam Powell
991989f318 Merge "Revert "Only call Drawable.setVisible(false) for visible outgoing drawables"" into nyc-dev 2016-04-01 15:41:04 +00:00
Clara Bayarri
2056ec912e Merge "Keyboard Shortcuts Helper: Include all System shortcuts" into nyc-dev
am: 3916bb0

* commit '3916bb045c41bc354715cfef92bdd646f19f0570':
  Keyboard Shortcuts Helper: Include all System shortcuts

Change-Id: I3b7b0d1b6140debce8f7e0bdde2bde3f06767e97
2016-04-01 11:25:42 +00:00
Clara Bayarri
3916bb045c Merge "Keyboard Shortcuts Helper: Include all System shortcuts" into nyc-dev 2016-04-01 11:17:26 +00:00
Adam Powell
4b2e12cc9e Revert "Only call Drawable.setVisible(false) for visible outgoing drawables"
This reverts commit 35e2ea0203.

This patch was based on two different wrong assumptions.

Bug 27822069

Change-Id: I20b1017f91f3fce3c23dd8446459d6f3e3150a48
2016-03-31 15:36:18 -07:00
George Mount
dc21c57aa0 Merge "Revert "Revert "Run cleanup before end actions of ViewPropertyAnimator.""" into nyc-dev
am: 98aa25c

* commit '98aa25c2d9c1ac2ebacef7612f5103925ff84d94':
  Revert "Revert "Run cleanup before end actions of ViewPropertyAnimator.""

Change-Id: I449067238317b66090e036a40181c27ec892a01d
2016-03-31 20:20:45 +00:00
George Mount
98aa25c2d9 Merge "Revert "Revert "Run cleanup before end actions of ViewPropertyAnimator.""" into nyc-dev 2016-03-31 20:14:04 +00:00
Vladislav Kaznacheev
72e7feb221 Merge "Add wallpaper input consumer to WindowManagerService" into nyc-dev
am: b7d08c3

* commit 'b7d08c3f3cee0e1575739250c12923930a9a5dbe':
  Add wallpaper input consumer to WindowManagerService

Change-Id: I0a80ffe5fcd4f12dbe295b81b4f357b9b119319c
2016-03-31 18:46:34 +00:00
Vladislav Kaznacheev
b7d08c3f3c Merge "Add wallpaper input consumer to WindowManagerService" into nyc-dev 2016-03-31 18:43:16 +00:00
Vladislav Kaznacheev
0d50d8660d Add wallpaper input consumer to WindowManagerService
This is an input consumer similar to the one used when hiding the navbar,
but placed above wallpapers. It might be useful for processing touch
events over "desktop" in freeform MW mode.

Re-landing I9d6d28a624f750ad48fc39f9b149dd1f989cceba after fixing build.

Bug:26688904
Change-Id: I89fdabd9c72cdd4a1d7ca626c33ddc99ddea97f9
2016-03-31 18:42:22 +00:00
John Reck
3c77e5aa9d Merge "Add a callback for rendernode parentcount=0" into nyc-dev
am: bbb4c2e

* commit 'bbb4c2eb2e871977289a9c48f414962e46b56ddc':
  Add a callback for rendernode parentcount=0

Change-Id: I8168b028ce61413da8ecea76e6531c5dde9ddb46
2016-03-31 18:31:30 +00:00
George Mount
f643fb0250 Revert "Revert "Run cleanup before end actions of ViewPropertyAnimator.""
This reverts commit 879a626f18.

Change-Id: I6fd011fb86a2aa0e30ba41fdefa3e29c7771e647
2016-03-31 11:15:27 -07:00
John Reck
44b49f070a Add a callback for rendernode parentcount=0
Bug: 27709981
Fixes: 22565656

Change-Id: I1cb4461baf9069dc4e7ca6de10d5862578c107f4
2016-03-31 08:36:50 -07:00
Vladislav Kaznacheev
cdaf19530e Merge "Revert "Add wallpaper input consumer to WindowManagerService"" into nyc-dev
am: b4142f7

* commit 'b4142f70e5a65338019e9f79b59adc4fc78b32e1':
  Revert "Add wallpaper input consumer to WindowManagerService"

Change-Id: I38e9343cca898a7877176de9262e5c9871c427f9
2016-03-31 02:17:32 +00:00
Andrii Kulian
b6ba05ffb0 Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev
am: ac94586

* commit 'ac945867145c571506a211ccb0a87a3402c4d745':
  Refactor usages of Picture In Picture and Multi Window (1/4)

Change-Id: I34a274c3eca15546d7be85fbb30ac072ff03db7f
2016-03-31 02:17:08 +00:00
Vladislav Kaznacheev
ce230a40d2 Add wallpaper input consumer to WindowManagerService
am: 6013a55

* commit '6013a558262d149023b32ab175c9b885b6c5b81d':
  Add wallpaper input consumer to WindowManagerService

Change-Id: If3da7b370d52692dd2ed0b9c19b65744358cbc0b
2016-03-31 02:16:26 +00:00
Vladislav Kaznacheev
b4142f70e5 Merge "Revert "Add wallpaper input consumer to WindowManagerService"" into nyc-dev 2016-03-31 01:43:11 +00:00
Vladislav Kaznacheev
2769e7ebe9 Revert "Add wallpaper input consumer to WindowManagerService"
This reverts commit 6013a55826.

Change-Id: I2711afe2e97a8b9a4bd94193202cb83113b3bd7e
2016-03-31 01:42:02 +00:00
Andrii Kulian
ac94586714 Merge "Refactor usages of Picture In Picture and Multi Window (1/4)" into nyc-dev 2016-03-31 00:57:42 +00:00
sergeyv
761f59c19f Merge "Hide children in ViewGroup.createSnaphost via internal flag and add test for it." into nyc-dev
am: 394d3df

* commit '394d3dfb2d9ccd2ca2fd7aad06ef2e9a8458a0c7':
  Hide children in ViewGroup.createSnaphost via internal flag and add test for it.

Change-Id: Iab1265b6a4c4ff5291259f7e5d9b96c217ee3141
2016-03-31 00:32:41 +00:00
Vladislav Kaznacheev
6013a55826 Add wallpaper input consumer to WindowManagerService
This is an input consumer similar to the one used when hiding the navbar,
but placed above wallpapers. It might be useful for processing touch
events over "desktop" in freeform MW mode.

Bug:26688904
Change-Id: I9d6d28a624f750ad48fc39f9b149dd1f989cceba
2016-03-31 00:32:39 +00:00
Sergei Vasilinetc
394d3dfb2d Merge "Hide children in ViewGroup.createSnaphost via internal flag and add test for it." into nyc-dev 2016-03-30 23:42:34 +00:00
George Mount
a140391f3d Merge "Revert "Run cleanup before end actions of ViewPropertyAnimator."" into nyc-dev
am: 6bb61e2

* commit '6bb61e25a2831dc14b604327a995c36309dfcbc9':
  Revert "Run cleanup before end actions of ViewPropertyAnimator."

Change-Id: I2254f4f2dfa19711fac8ed90e72addb94f4e26b8
2016-03-30 23:04:54 +00:00
George Mount
6bb61e25a2 Merge "Revert "Run cleanup before end actions of ViewPropertyAnimator."" into nyc-dev 2016-03-30 22:55:29 +00:00
Yohei Yukawa
9f42270f9b Merge "Add IC#closeConnection()." into nyc-dev
am: f6f0f5f

* commit 'f6f0f5fbe988cede008168438e469657c62ac51b':
  Add IC#closeConnection().

Change-Id: Id5dff1aab51d7538fe8213a6692aff6069ae8f7a
2016-03-30 22:07:07 +00:00
Yohei Yukawa
f6f0f5fbe9 Merge "Add IC#closeConnection()." into nyc-dev 2016-03-30 21:55:31 +00:00
George Mount
879a626f18 Revert "Run cleanup before end actions of ViewPropertyAnimator."
This reverts commit e9a4f87852.

This revert is to test to see if the gralloc lock problems are caused by this CL.

Change-Id: I395fd3675dd430c44a5d29b050ba248f3f2bf4cd
2016-03-30 21:33:18 +00:00
sergeyv
b37d44e267 Hide children in ViewGroup.createSnaphost via internal flag and add test for
it.

bug:27747923
Change-Id: I079b52b176b920bfa4c6749be31fbcd96a4dc42c
2016-03-30 14:20:09 -07:00
Yohei Yukawa
9f9afe526d Add IC#closeConnection().
It turns out that BaseInputConnection has still depended on a private
API named BaseInputConnection#reportFinish(), which was introduced
4 years ago to work around a UI freeze due to an unbalanced batch edit
count [1].  Note that such an unbalanced batch edit count cannot always
be avoidable.  It can easily occur in the following situations.
 - The current IME crashed during batch edit.
 - The user changed the View focus during batch edit.
 - The current IME called IMM#switchToNextInputMethod() during batch
   edit.

The remaining problem is that #reportFinish() is still an internal API
and only subclasses of BaseInputConnection can implement it, and IMM
calls it when and only when the current InputConnection is
BaseInputConnection or its subclass.  InputConnectionWrapper and any
other InputConnection implementations will never receive such a callback
to clean up InputConnection#{begin, end}BatchEdit(), which is considered
to be a major contributor to UI freeze.

To address the above issue, we unhide BaseInputConnection#reportFinish()
as InputConnection#closeConnection() so that application developers can
receive an appropriate callback to clean up internal state including
unfinished batch edit.

  [1] I5525d776916f0c42d5e6d4a4282aed590d7f0e9a
      9d69ecbf61

Bug: 24688781
Bug: 25332806
Change-Id: I234309c5880c9fe0b299b8bd0f8862796d4dda0d
2016-03-30 12:03:51 -07:00
Clara Bayarri
1d648a14a4 Keyboard Shortcuts Helper: Include all System shortcuts
Also add support for shortcuts with no base character or keycode,
as needed by "Search" being triggered with just Meta.

Bug: 27454997
Change-Id: I75bc9d22c30f9ebcdcbea3fb53f166d942dc7b90
2016-03-30 17:12:08 +01:00
Chris Banes
75ff37ebed Merge "Re-dispatch nested scrolls if not implemented" into nyc-dev
am: 6b69b12

* commit '6b69b122025631290380f4350f7bd0074bad10dd':
  Re-dispatch nested scrolls if not implemented

Change-Id: Ibb88f89e0c77b2eef7dfda72c023fc19f27d77a0
2016-03-30 08:49:00 +00:00
Chris Banes
6b69b12202 Merge "Re-dispatch nested scrolls if not implemented" into nyc-dev 2016-03-30 08:43:40 +00:00
Andrii Kulian
933076d805 Refactor usages of Picture In Picture and Multi Window (1/4)
Bug: 27365860
Change-Id: I1590e430a12ceb84cb83da295e0bf7e4378fea96
2016-03-29 18:39:45 -07:00
Robert Carr
d4c85e182a Merge "Ensure we change SurfaceView size from UI thread." into nyc-dev
am: ffe3098

* commit 'ffe309816989457f71a39a84d22fb06fe5b6e8d5':
  Ensure we change SurfaceView size from UI thread.

Change-Id: I8e57aa126a601df935b6005b74ba7842f819c741
2016-03-30 00:22:03 +00:00
Jeff Sharkey
21b1b0d937 Merge "AccessibilityNodeInfo shouldn\'t touch extras." into nyc-dev
am: af64f63

* commit 'af64f6341bdbca93aff3d68264af48e74faa9e58':
  AccessibilityNodeInfo shouldn't touch extras.

Change-Id: I44ae8aebdbe0046a64971eb47c25b8720f7bfd36
2016-03-30 00:22:00 +00:00
Rob Carr
ffe3098169 Merge "Ensure we change SurfaceView size from UI thread." into nyc-dev 2016-03-29 23:50:47 +00:00