Commit Graph

4330 Commits

Author SHA1 Message Date
Chet Haase
d4c5453464 am 7aab1134: am c99d3c1f: Stop jank from window animations overlapping activity animations
* commit '7aab1134236a30aa2e595be55fcc7b5c90982413':
  Stop jank from window animations overlapping activity animations
2013-04-02 11:03:16 -07:00
Chris Craik
92ce5e95b8 am bb3c5e18: am 94d6170b: Merge "Update view\'s alpha and layer docs" into jb-mr2-dev
* commit 'bb3c5e184a41ec3ad7d11c3a0a66439edda4f74d':
  Update view's alpha and layer docs
2013-04-02 11:03:09 -07:00
Michael Wright
bc15cf55f5 am ef588f73: am 54531f81: Merge "Flush pending input events immediately upon channel dispose" into jb-mr2-dev
* commit 'ef588f73cf9bf01a693f468f597239e27834c730':
  Flush pending input events immediately upon channel dispose
2013-04-02 08:26:04 -07:00
Chet Haase
c99d3c1fd6 Stop jank from window animations overlapping activity animations
Relaunching a running activity will sometimes cause animations in that
activity to run, causing jank due to too much happening (window animations
on that same window running at the same time).

An earlier fix pauses application rendering while window animations are running,
but only the first time the activity comes up. If the window is animated
after that (such as is the case with re-launching it while it is running
in the background), rendering, and therefore animations, happen as usual,
causing the jank.

The fix is to simply broaden the scope of when application rendering is
paused to include anytime the window is animating.

Issue #8472972 Make app animations play nice with window animations

Change-Id: I1dd8da039fcb4d1faf6c0811bae97ef2847deb84
2013-04-02 07:30:52 -07:00
Chris Craik
94d6170b67 Merge "Update view's alpha and layer docs" into jb-mr2-dev 2013-04-02 01:04:30 +00:00
Chris Craik
16ecda5317 Update view's alpha and layer docs
bug:8501661

Makes the performance issues and interaction with layer type/paint
more clear.

Additionally, corrects change from 47ab7d6612
to still allow displayList alpha to override layer paint

Change-Id: Ic94d75865700820489370461cd8ac9f9077a8d90
2013-04-01 17:21:35 -07:00
Michael Wright
ef17e8710e Flush pending input events immediately upon channel dispose
Change-Id: I949326423f733376aa8d3121bfed24fd76ca0784
2013-04-01 13:15:55 -07:00
Fabrice Di Meglio
cfa775447e am 68951ee9: am 83390182: Merge "Optimize ViewGroup.MarginLayoutParams memory and fix ViewDebug" into jb-mr2-dev
* commit '68951ee958e72319facc267289ca363622758e0a':
  Optimize ViewGroup.MarginLayoutParams memory and fix ViewDebug
2013-03-29 18:02:42 -07:00
Fabrice Di Meglio
83390182bf Merge "Optimize ViewGroup.MarginLayoutParams memory and fix ViewDebug" into jb-mr2-dev 2013-03-30 00:58:51 +00:00
Michael Wright
6f7941484b am b09b5d42: am ee5880c9: Merge "Finish any event in the current input queue" into jb-mr2-dev
* commit 'b09b5d42ec07a050f1b27d59684393af96cd8704':
  Finish any event in the current input queue
2013-03-29 16:06:12 -07:00
Michael Wright
ee5880c95a Merge "Finish any event in the current input queue" into jb-mr2-dev 2013-03-29 22:58:50 +00:00
Michael Wright
bf02096088 Finish any event in the current input queue
When the pipelining optimization was added we never updated
handleImeFinishedEvent to look through the whole queue of items, so it was only
looking at the head.

Bug: 8498214
Change-Id: I79c62392a93b47e3e1eab3f4fe54a5c999dfb566
2013-03-29 14:06:43 -07:00
Fabrice Di Meglio
b365f91688 Optimize ViewGroup.MarginLayoutParams memory and fix ViewDebug
- use private flag bit field for ViewGroup.MarginLayoutParams
- make ViewDebug support "byte" type for FlagMapping

Change-Id: Iff7c31544e3ce2d29919c9424425f2bf87042b8b
2013-03-29 13:12:07 -07:00
Eric Laurent
e2869125f1 am b02e254d: am 7692d1f1: Merge "Display vibrate icon in volume panel" into jb-mr2-dev
* commit 'b02e254d45af260b9e9c11bff7cb1db427e77ace':
  Display vibrate icon in volume panel
2013-03-28 15:13:02 -07:00
Eric Laurent
7692d1f165 Merge "Display vibrate icon in volume panel" into jb-mr2-dev 2013-03-28 22:08:05 +00:00
Fabrice Di Meglio
97207ab966 am 9fb9a0f3: am f7fa08b7: Merge "Fix bug #8487785 Notification shade has text overlapping the icon" into jb-mr2-dev
* commit '9fb9a0f3b8c22ca538a36b81769c7e1080fcf9f9':
  Fix bug #8487785 Notification shade has text overlapping the icon
2013-03-27 15:21:46 -07:00
Fabrice Di Meglio
f7fa08b702 Merge "Fix bug #8487785 Notification shade has text overlapping the icon" into jb-mr2-dev 2013-03-27 22:15:59 +00:00
Fabrice Di Meglio
02a7d5637c Fix bug #8487785 Notification shade has text overlapping the icon
- follow up to the fix for bug #8480245 ViewGroup layout margins can be wrong in RTL mode
- deal with "RTL compatibility mode": if left/right margins are not defined and if we
haev some start/end ones then use the start/end ones.

Change-Id: I98fe3276de2bd14f60a1c423a47569a68046f7be
2013-03-27 15:12:06 -07:00
Jeff Brown
c5ebd80c43 am 901b77c6: am ca3d655d: Merge "Use input transport for communications between app and IME." into jb-mr2-dev
* commit '901b77c63bc707c5785a149975e2113a43e38ad6':
  Use input transport for communications between app and IME.
2013-03-26 19:48:23 -07:00
Jeff Brown
ca3d655d20 Merge "Use input transport for communications between app and IME." into jb-mr2-dev 2013-03-27 02:43:54 +00:00
Fabrice Di Meglio
9a8c46f64e am fc7a1020: am a803b094: Merge "Fix bug #8480245 ViewGroup layout margins can be wrong in RTL mode" into jb-mr2-dev
* commit 'fc7a1020716d86204e7190b899a2e30fba4e9055':
  Fix bug #8480245 ViewGroup layout margins can be wrong in RTL mode
2013-03-26 17:51:06 -07:00
Fabrice Di Meglio
a803b094c6 Merge "Fix bug #8480245 ViewGroup layout margins can be wrong in RTL mode" into jb-mr2-dev 2013-03-27 00:44:48 +00:00
Dianne Hackborn
5ab6d90578 am a4820789: am 5871b258: Merge "Change wm commands to return size and density info." into jb-mr2-dev
* commit 'a4820789136c814e1e9ae26d5a0712e1c7fd4dd5':
  Change wm commands to return size and density info.
2013-03-26 17:28:16 -07:00
Fabrice Di Meglio
0072f64939 Fix bug #8480245 ViewGroup layout margins can be wrong in RTL mode
- fix resolution of MarginLayoutParams
- update related RelativeLayout code

Change-Id: I261f127a8897f60d316fed2a73e6e76020e542cc
2013-03-26 17:27:33 -07:00
Romain Guy
55a67694e1 am 5e83199d: am 2509437e: Merge "Avoid multiple font cache texture uploads Bug #8378964" into jb-mr2-dev
* commit '5e83199dc92d496d7dd6b1316169669e27fe2e99':
  Avoid multiple font cache texture uploads Bug #8378964
2013-03-26 17:24:34 -07:00
Dianne Hackborn
5871b258af Merge "Change wm commands to return size and density info." into jb-mr2-dev 2013-03-27 00:22:28 +00:00
Romain Guy
2509437e30 Merge "Avoid multiple font cache texture uploads Bug #8378964" into jb-mr2-dev 2013-03-27 00:21:05 +00:00
Michael Wright
99656fdce9 am 09f4d819: am cf797a5e: Merge "Deliver key repeats for artificial dpad events" into jb-mr2-dev
* commit '09f4d8198a9bf052904d8a38f85e4cc461fb66ba':
  Deliver key repeats for artificial dpad events
2013-03-26 16:16:05 -07:00
Michael Wright
cf797a5e43 Merge "Deliver key repeats for artificial dpad events" into jb-mr2-dev 2013-03-26 23:11:15 +00:00
Jeff Brown
c28867a1d6 Use input transport for communications between app and IME.
The input method manager service now supplies an input channel for
communication while creating an IME session on behalf of the
application.

This change significanly reduces the overhead of IME event dispatch
by using a standard input channel to send input events rather than
using binder.  This results in fewer thread context switches
and fewer object allocations.

What's more, the IME may perform additional batching of the motion
events that it receives which may help it catch up if it is
getting behind while processing them.

Bug: 7984576
Bug: 8473020
Change-Id: Ibe26311edd0060cdcae80194f1753482e635786f
2013-03-26 15:42:39 -07:00
Romain Guy
96885eb480 Avoid multiple font cache texture uploads
Bug #8378964

This change defers drawing into layers until after the renderer for FBO0
is ready to draw. At that point, all the precaching is done which means
all glyphs can be uploaded at once in the font caches.

Change-Id: Ie1f7a7ff30f76f06fb3dbc72c7d05e66207d1ecb
2013-03-26 15:25:07 -07:00
Dianne Hackborn
672cf45de7 Change wm commands to return size and density info.
Change-Id: Id25722fe5f0cd9470d04d657f067e5ad29927c98
2013-03-26 15:24:24 -07:00
Michael Wright
40f8f0d136 Deliver key repeats for artificial dpad events
Bug: 8425219
Change-Id: Ib41b06ed40d43f2e30ce2a647871a76cea80177b
2013-03-26 14:34:14 -07:00
Chet Haase
89d4c0f3cb am 656ed307: am bc6c050f: Merge "Fix touch processing for Overlay views" into jb-mr2-dev
* commit '656ed307168ec2006108877a03788a31b15ebb78':
  Fix touch processing for Overlay views
2013-03-26 01:59:22 +00:00
Eric Laurent
8a51acae5d Display vibrate icon in volume panel
When a tablet is in vibrate mode, the notification
volume icon in the expanded volume panel should
be vibrate and not silent.

Bug 7235006

Change-Id: I150c1f0f571e3910ebae57442a75740cef00341e
2013-03-25 18:36:35 -07:00
Chet Haase
9c17fe693d Fix touch processing for Overlay views
Previous implementation processed Overlay touch after other children in
a ViewGroup; it should be the other way around.

Also, fixed some invalidation issues.

Finally, added new behavior to automatically place View which is already
parented into the same global position, by calculating where the overlay is
on the screen relative to the previous parent of the View.

Issue #8459085 Overlay needs to handle touch correctly

Change-Id: Ic2cee12d2bc345f64ed3f4d855a5c3496967a201
2013-03-25 18:22:58 -07:00
Michael Wright
49065c5e77 am 4e58e9c5: am 53d13667: Fix log tags in trackball debugging
* commit '4e58e9c579b5ca3496118177728119531c066666':
  Fix log tags in trackball debugging
2013-03-23 01:02:58 +00:00
Michael Wright
53d13667e3 Fix log tags in trackball debugging
Change-Id: I02a623c96aff8b6ffbe11161feea39ad26ba0e83
2013-03-23 00:57:51 +00:00
Dianne Hackborn
e9e9aa650c am c31dc858: am 1a89c532: Merge "New media button API." into jb-mr2-dev
* commit 'c31dc858488ce291f434ab8bb7b90629f7a0ce27':
  New media button API.
2013-03-22 23:20:02 +00:00
Dianne Hackborn
1a89c5324b Merge "New media button API." into jb-mr2-dev 2013-03-22 23:13:49 +00:00
Michael Wright
d2500739f8 am a329c83d: am 88a0765d: Merge "Add pipelining optimization to IME dispatching" into jb-mr2-dev
* commit 'a329c83d6673f51c539a6f99d9b16e03c55eeac4':
  Add pipelining optimization to IME dispatching
2013-03-22 22:57:33 +00:00
Michael Wright
88a0765dd4 Merge "Add pipelining optimization to IME dispatching" into jb-mr2-dev 2013-03-22 22:49:53 +00:00
Chris Craik
acdb67d280 am 27c809db: am 81cce37d: Merge "Restore final canvas state after deferred flush" into jb-mr2-dev
* commit '27c809dba4b470bfcc00d7dc89ccf81ac36e1c3c':
  Restore final canvas state after deferred flush
2013-03-22 22:17:07 +00:00
Chris Craik
81cce37ded Merge "Restore final canvas state after deferred flush" into jb-mr2-dev 2013-03-22 22:11:33 +00:00
Dianne Hackborn
961cae9254 New media button API.
This allows sending media buttons to any PendingIntent,
so they can be captured with a registered receiver.

Also add some new ViewTreeObserver APIs; this is all for
a new support library API to watch media buttons while an
app has input focus.

Change-Id: I3c51cef59460662b008c9a2cc87d6a6383c21855
2013-03-22 14:49:28 -07:00
Michael Wright
c8a7e54fef Add pipelining optimization to IME dispatching
Rather than wait for the IME to return before sending it the next input event,
send all available input events as soon as we receive them.

Bug: 7984576
Change-Id: Ie0b1086efc4f9e1ececac22afd997829304bf180
2013-03-22 13:35:57 -07:00
Chris Craik
a4e16c58c9 Restore final canvas state after deferred flush
bug:8450062

- Fixes overdraw indication with DeferredDisplayList
- Fixes drawHardwareLayer called after flush

Additionally changes drawLayer to pass its paint to native via setLayerPaint

Wrap flush in save/restore so that reordering doesn't affect final
transform

Change-Id: I08befa42c28500da6387699eefd4be28aedf9f4c
2013-03-22 11:54:51 -07:00
Michael Wright
0878312fd9 am 621c35e4: am 765ddb4b: Merge "Separate sessionCreated and finishedEvents callbacks" into jb-mr2-dev
* commit '621c35e4fc83c2864a82da31aac767832ce86df6':
  Separate sessionCreated and finishedEvents callbacks
2013-03-22 03:42:25 +00:00
Michael Wright
dd1e7728c0 am f2cf401c: am d46ded88: Merge "Add tracing for pending queue size" into jb-mr2-dev
* commit 'f2cf401c03c494e62d9f92109240090d2e1c4062':
  Add tracing for pending queue size
2013-03-22 03:33:25 +00:00
Michael Wright
52a5352626 Separate sessionCreated and finishedEvents callbacks
Bug: 8276952
Change-Id: If7051086c060fcce5d1e958ebbddec0784c851da
2013-03-21 17:47:40 -07:00