40160 Commits

Author SHA1 Message Date
Romain Guy
23886803a1 am 5180ed14: Merge "Instrument views inflation in systrace" into jb-mr2-dev
* commit '5180ed141db0f1acced4f19f37391572bc18280b':
  Instrument views inflation in systrace
2013-04-10 14:11:45 -07:00
Romain Guy
5180ed141d Merge "Instrument views inflation in systrace" into jb-mr2-dev 2013-04-10 21:07:09 +00:00
Baligh Uddin
36b5c967e1 am 0cb19909: Merge "Import translations. DO NOT MERGE" into jb-mr2-dev
* commit '0cb19909211cefc5874c0bcb02335d7b0e988328':
  Import translations. DO NOT MERGE
2013-04-10 12:40:48 -07:00
Baligh Uddin
0cb1990921 Merge "Import translations. DO NOT MERGE" into jb-mr2-dev 2013-04-10 19:36:55 +00:00
Maxim Siniavine
d15c6de22b am d9621f86: Merge "Make download manager tests more reliable." into jb-mr2-dev
* commit 'd9621f867027dedc47df50c8ff4bf6f67c188ea4':
  Make download manager tests more reliable.
2013-04-10 11:50:03 -07:00
Maxim Siniavine
d9621f8670 Merge "Make download manager tests more reliable." into jb-mr2-dev 2013-04-10 18:47:29 +00:00
Romain Guy
09f7b93a18 Instrument views inflation in systrace
Change-Id: If3cd80bc430893c701432f165b4c1f5943a4143c
2013-04-10 11:42:44 -07:00
Chet Haase
78b24b6f03 am dacd4751: Merge "Fix Contacts animation jank" into jb-mr2-dev
* commit 'dacd47516321d263efa7489b5b9bd7d8e1714332':
  Fix Contacts animation jank
2013-04-10 10:51:53 -07:00
Dianne Hackborn
abe0aa78ca am 8f980e1a: Merge "Reduce duration of rotation xfade animation." into jb-mr2-dev
* commit '8f980e1a5ae99d5e34aaef6aac7f38a7d0038631':
  Reduce duration of rotation xfade animation.
2013-04-10 10:51:50 -07:00
Chet Haase
dacd475163 Merge "Fix Contacts animation jank" into jb-mr2-dev 2013-04-10 17:49:56 +00:00
Dianne Hackborn
8f980e1a5a Merge "Reduce duration of rotation xfade animation." into jb-mr2-dev 2013-04-10 17:48:21 +00:00
Baligh Uddin
4b359f7246 Import translations. DO NOT MERGE
Change-Id: I82df70ed91e543b19e8c8b0ed5002cecec5e293d
Auto-generated-cl: translation import
2013-04-10 09:08:43 -07:00
Chet Haase
58d110afa0 Fix Contacts animation jank
The last frame of an animation stays stuck on the screen for a couple of frames.
Specifically, the "Quick Contact" animation that animates the picture
closed (fades/scales it away) animates all the way to the end... then hangs there
briefly before being taken down.

The problem is a rendering bug where we correctly detect that a DisplayList
has nothing to draw (since the last frame is completely transparent, alpha==0),
but incorrectly ignore the fact that we cleared the transparent-background
window prior to not-drawing that DisplayList. When we detect that there's
nothing to draw, we don't bother swapping buffers. So even though we drew
the right thing (clearing the buffer), we didn't actually post the buffer to the
screen.

This change factors in both the clear and the draw to decide when to swap buffers.

Issue #8564865 Quick contact close animation jank redux

Change-Id: Ib922cff88a94f025b62f7461c1a29e96fe454838
2013-04-10 07:43:29 -07:00
Derek Sollenberger
8225c5b3d9 am c37b63d6: Merge "Ensure that a canvas is always backed by some form of SkDevice." into jb-mr2-dev
* commit 'c37b63d6e777748d17ff177b128e30504fbd6c71':
  Ensure that a canvas is always backed by some form of SkDevice.
2013-04-10 05:14:54 -07:00
Derek Sollenberger
c37b63d6e7 Merge "Ensure that a canvas is always backed by some form of SkDevice." into jb-mr2-dev 2013-04-10 12:11:14 +00:00
Jeff Brown
55198db2db am 4dac901f: Rewrite touch navigation dpad synthesis.
* commit '4dac901f011e7c15882e260441225633a6435e49':
  Rewrite touch navigation dpad synthesis.
2013-04-10 03:56:56 -07:00
Jeff Brown
4dac901f01 Rewrite touch navigation dpad synthesis.
The new implementation more accurately tracks the velocity
of flings and takes care to avoid obvious discontinuities.
The main goal is for a fling to appear to be a linear
extension of the movement already in progress.  The minimum
fling velocity is set to ensure that flings appear to be
fairly smooth despite being discretized.

Use sequences of repeated key events instead of individual
down/up events to represent continuous motions in one
direction which can be helpful for stopping flings at boundaries
such as when flinging the cursor position within a text view.

Compute the movement thresholds based on the physical
size of the touch pad, if known.  If not known, we assume a
nominal size.

Support stopping flings with a tap just like we do for
normal touch events elsewhere in the framework.

Moved the detection of ASSIST swipes into the InputReader
where it belongs.  These swipes must be detected globally
to ensure consistent behavior across the all applications.

Added a custom protocol in EventHub to enable input device
drivers to override the timestamp of the following events
in a packet.  This change enables input device drivers
that have a better idea of when an input event was actually
generated to pass this information to the input system.
Particularly useful with uinput.

Bug: 8583760
Change-Id: I8ef4e827804786d549cfaa00793a2b9dd0fda465
2013-04-10 03:51:18 -07:00
Jeff Brown
f1cee03bf0 am 678a1252: Split up the event synthesis code by source.
* commit '678a1252b4f3cdc18d20b411c05a4320d1d9b719':
  Split up the event synthesis code by source.
2013-04-10 03:24:28 -07:00
Jeff Brown
678a1252b4 Split up the event synthesis code by source.
The goal is to better encapsulate this code to make it easier
to maintain and to facilitate some upcoming changes.

Some of the variables have been renamed but the logic is unchanged.

Bug: 8583760
Change-Id: I45501f7dabebcb938e42c386291d615d088a4c8c
2013-04-10 03:01:29 -07:00
Ying Wang
a976bddd9c am d8b26d6c: Merge "Add liblog" into jb-mr2-dev
* commit 'd8b26d6c424741dd09cf70ee88fd237807aaf301':
  Add liblog
2013-04-09 22:28:51 -07:00
Ying Wang
d8b26d6c42 Merge "Add liblog" into jb-mr2-dev 2013-04-10 05:16:14 +00:00
Ying Wang
d685894212 Add liblog
Bug: 8580410
Change-Id: I746aa8258866508c3a725d0773faf4518096548f
2013-04-09 21:54:12 -07:00
Adam Powell
07ca26da4c am d93c6bbe: Merge "Integrate inverted menu panel assets" into jb-mr2-dev
* commit 'd93c6bbeea22ecc99d29abec7ecaa626f152a74b':
  Integrate inverted menu panel assets
2013-04-09 19:35:04 -07:00
Adam Powell
da26650b39 Integrate inverted menu panel assets
Add assets for menu panels when holo menus appear above their anchor
rather than below.

Bug 7049080

Change-Id: I7803f9414c2b2cb96274bf062adeccfc302a0d43
2013-04-09 19:22:57 -07:00
Adam Powell
a26ec11a1e am 1e1ccfb8: Merge "Fix a monkey bug with AbsListView data set observers" into jb-mr2-dev
* commit '1e1ccfb88bf2d78d8876022fae6c5058548406e7':
  Fix a monkey bug with AbsListView data set observers
2013-04-09 18:54:40 -07:00
Adam Powell
1e1ccfb88b Merge "Fix a monkey bug with AbsListView data set observers" into jb-mr2-dev 2013-04-10 01:35:22 +00:00
Adam Powell
bd1dd0d51a Fix a monkey bug with AbsListView data set observers
Several conditions can cause an AbsListView's data set observer to be
removed and nulled out. If for some reason the view receives duplicate
onDetachedFromWindow events this could cause AbsListView to attempt to
unregister a null observer. Skip this unregister process if this
happens.

Bug 7088152

Change-Id: Ib0c630d1ee598640512023e4ef158f01e3ed474d
2013-04-09 17:46:15 -07:00
Adam Powell
3431f7ed15 am 2c966932: Merge "Fix for ActionBar#setSelectedNavigationItem() in collapsed tab mode" into jb-mr2-dev
* commit '2c9669320f6eb7227dd66fb8fe6cce3d39a56f06':
  Fix for ActionBar#setSelectedNavigationItem() in collapsed tab mode
2013-04-09 16:43:36 -07:00
Adam Powell
2c9669320f Merge "Fix for ActionBar#setSelectedNavigationItem() in collapsed tab mode" into jb-mr2-dev 2013-04-09 23:40:12 +00:00
Jamie Gennis
bb2e031ace am 65b08486: Merge "Add APIs for application-generated systrace events" into jb-mr2-dev
* commit '65b08486fde649e6dd11f17808e7aa85101dea93':
  Add APIs for application-generated systrace events
2013-04-09 15:36:17 -07:00
Jamie Gennis
65b08486fd Merge "Add APIs for application-generated systrace events" into jb-mr2-dev 2013-04-09 22:30:52 +00:00
Maxim Siniavine
5877687b38 Make download manager tests more reliable.
Use larger files in tests. Using small files fails because downloads
complete too quickly. Using files that are too large fails because
downloads take too long.

Change-Id: I0786ece21e0acffa09dd8d85abf70ec4cde5e477
2013-04-09 15:08:43 -07:00
Chiao Cheng
3e41c7c9ba am 2355d131: Adding public api support for finding contact changes.
* commit '2355d13154d50687c0d8d74ea1c0e41ab9d88e7e':
  Adding public api  support for finding contact changes.
2013-04-09 14:20:02 -07:00
Chiao Cheng
2355d13154 Adding public api support for finding contact changes.
DeletedContacts holds a log of deleted contacts which will be pruned
after a certain amount of time.

A timestamp field has been added to contacts so clients can query
for changes.

Bug: 8182147
Change-Id: Ic6e56e567892712da3c3941400dfb3ddc565aaac
2013-04-09 14:12:31 -07:00
Adam Powell
daa1d56726 Fix for ActionBar#setSelectedNavigationItem() in collapsed tab mode
Make sure the selected item is properly propagated to the collapsed
spinner.

Bug 6754308

Change-Id: Iaa4e331b00106b31c5984980d33e3ac88853ae4d
2013-04-09 13:57:22 -07:00
Derek Sollenberger
45fa0cbc54 Ensure that a canvas is always backed by some form of SkDevice.
bug: 8518884
Change-Id: Id6c597179878ce5b938c00422e88bef5f12e2e1f
2013-04-09 16:36:55 -04:00
Jonathan Dixon
a9b3334688 am f38b070b: Merge "Hide PlusinsEnabled/PluginsPath methods" into jb-mr2-dev
* commit 'f38b070b31269e974298ec9e644814bcc2663c91':
  Hide PlusinsEnabled/PluginsPath methods
2013-04-09 13:15:27 -07:00
Jonathan Dixon
f38b070b31 Merge "Hide PlusinsEnabled/PluginsPath methods" into jb-mr2-dev 2013-04-09 20:09:29 +00:00
Jamie Gennis
f9c7d6bc15 Add APIs for application-generated systrace events
This change adds new APIs to enable applications to generate custom Systrace
begin/end events.  Application-generated events use the ATRACE_APP_TAG tag,
which is enabled only if either the application has declared itself debuggable
in its manifest or ro.debuggable is set to 1 on the device.

Change-Id: I311d09e2e6ed1a30f5ffa84907f250e11cc0d48d
2013-04-09 11:59:43 -07:00
Dianne Hackborn
e9b4ee692c am 558a3c1b: Merge "Kill processes when permissions are revoked." into jb-mr2-dev
* commit '558a3c1b7b40eb9356f8c4446ca63af8cf16bd91':
  Kill processes when permissions are revoked.
2013-04-09 10:42:09 -07:00
Baligh Uddin
0e45086dff am 5660b484: Merge "Import translations. DO NOT MERGE" into jb-mr2-dev
* commit '5660b4843ed1471b3b5318b77367dda7960596a1':
  Import translations. DO NOT MERGE
2013-04-09 10:38:37 -07:00
Dianne Hackborn
558a3c1b7b Merge "Kill processes when permissions are revoked." into jb-mr2-dev 2013-04-09 17:38:00 +00:00
Baligh Uddin
5660b4843e Merge "Import translations. DO NOT MERGE" into jb-mr2-dev 2013-04-09 17:34:24 +00:00
Dianne Hackborn
f1b782427f Kill processes when permissions are revoked.
Some permissions are associated with gids, so we need to
kill any running processes if their permission is revoked.
We will do this for any permission being revoked, since
the association between gids and permissions can change
over time.

Change-Id: Ieb7408e032539c4f21eb089d65a7a7e6c289f010
2013-04-08 22:28:59 -07:00
Jeff Brown
9acc8c9c53 am 97b968b6: Merge "Fix trackball interpretation of precision." into jb-mr2-dev
* commit '97b968b6b3baf40e8cfd5ff147f81cd81398638a':
  Fix trackball interpretation of precision.
2013-04-08 17:03:22 -07:00
Jeff Brown
21dffd5d11 am 3a2854bc: Merge "Queues, queues, queues and input." into jb-mr2-dev
* commit '3a2854bcee08e3af3ca1b042c1fef6ca68f8c70a':
  Queues, queues, queues and input.
2013-04-08 17:03:20 -07:00
Jeff Brown
97b968b6b3 Merge "Fix trackball interpretation of precision." into jb-mr2-dev 2013-04-09 00:00:38 +00:00
Jeff Brown
3a2854bcee Merge "Queues, queues, queues and input." into jb-mr2-dev 2013-04-08 23:59:24 +00:00
Jeff Brown
c574b68cbb Fix trackball interpretation of precision.
The trackball to dpad synthesis was using the MotionEvent's precision
field to determine a threshold for movement but the calculations
involved did not actually make sense for any value of precision
less than 2.0.  This worked fine before since the InputReader
hardcodes the trackball's precision to 6.

Injected trackball events may have a different precision which can
result in the thresholds being set inappropriately.  For example,
it was not possible to move focus by one unit at a time when
the precision was set to 1.0.

The old code was probably using precision as a way to set a
threshold based on the trackball moving by some minimum number
of physical ticks, in this case 2.  But the code will work just
as well if we set an absolute threshold based on distance
traveled given that the input system is already expected to
normalize the trackball movements before delivering them to the
application.

So stop using precision.

Bug: 8473020
Change-Id: I3c6f7fb1b507f8cf5608b47550e7345fea3352fa
2013-04-08 16:53:59 -07:00
Jonathan Dixon
0bf4781ece Hide PlusinsEnabled/PluginsPath methods
These have been deprecated since API level 8 / 9. Plugins are deprecated
overall now, so there's no requirement for apps to call these any more.

Change-Id: I1a27557644238477df00979f9badc9aab0a526c6
2013-04-08 16:37:38 -07:00