65776 Commits

Author SHA1 Message Date
Glenn Kasten
d23d2b1662 Merge "AudioRecord and AudioTrack client tid" 2012-02-14 09:01:04 -08:00
Ramanan Rajeswaran
c26b3a7f12 am 128dfa51: (-s ours) Merge "DO NOT MERGE" into ics-scoop-plus-aosp
* commit '128dfa514818399ff8b5fde56fa487374f6fd504':
  DO NOT MERGE
2012-02-14 07:36:53 -08:00
Ramanan Rajeswaran
128dfa5148 Merge "DO NOT MERGE" into ics-scoop-plus-aosp 2012-02-14 07:35:13 -08:00
Glenn Kasten
6a20b26d99 AudioRecord and AudioTrack client tid
Inform AudioFlinger of the tid of the callback thread.

Change-Id: I670df92dd06749b057238b48ed1094b13aab720b
2012-02-14 07:30:48 -08:00
Chet Haase
4212d3fc73 Merge "Refactor ViewGroup.drawChild() into View.draw()" 2012-02-14 06:20:16 -08:00
Jeff Brown
a9daa164a5 Merge "Fix possible races in vsync infrastructure." 2012-02-13 20:38:24 -08:00
Jeff Brown
58aedbc9be Fix possible races in vsync infrastructure.
Applications sometimes crashed on exit due to the display event
receiver pipe apparently being closed while still a member of the
Looper's epoll fd set.

This patch fixes a few different possible races related to
the display event receiver lifecycle.

1. The receiver used to play a little dance with the Looper,
registering and unregistering its callback after each vsync
request.  This code was a holdover from a time before the
surface flinger supported one-shot vsync requests, so we can
get rid of it and make things a lot simpler.

2. When the Choreographer is being accessed from outside the UI
thread, it needs to take great care that it does not touch
the display event receiver.  Bad things could happen if the receiver
is handling a vsync event on the Looper and the receiver is
disposed concurrently.

3. It was possible for the Choreographer to attempt to dispose
the receiver while handling a vsync message.  Now we defer disposing
the receiver for a little while, which is also nice because we
may be able to avoid disposing the receiver altogether if we find
that we need it again a little while later.

Bug: 5974105
Change-Id: I77a158f51b0b689af34d07aee4245b969e6260d6
2012-02-13 20:34:38 -08:00
Jean-Baptiste Queru
b35b9a8642 am 6466f400: am fca4ff38: am eaf2617f: am 472512f6: Merge "Fix incorrect prototype for JNI call"
* commit '6466f400a40224dc113eb6d06009a1c655151045':
  Fix incorrect prototype for JNI call
2012-02-13 20:02:50 -08:00
Jean-Baptiste Queru
6466f400a4 am fca4ff38: am eaf2617f: am 472512f6: Merge "Fix incorrect prototype for JNI call"
* commit 'fca4ff3851508d9d2c414aa535a86d7ac0eb5e72':
  Fix incorrect prototype for JNI call
2012-02-13 20:00:40 -08:00
Jean-Baptiste Queru
fca4ff3851 am eaf2617f: am 472512f6: Merge "Fix incorrect prototype for JNI call"
* commit 'eaf2617fc20dd6484722edc9df41faf6e91d73cc':
  Fix incorrect prototype for JNI call
2012-02-13 19:58:09 -08:00
Jean-Baptiste Queru
eaf2617fc2 am 472512f6: Merge "Fix incorrect prototype for JNI call"
* commit '472512f6970fa170e2e1a3e1c24ac2b742e2e6b6':
  Fix incorrect prototype for JNI call
2012-02-13 19:55:52 -08:00
Guang Zhu
6ae14555f9 Merge "fix build" 2012-02-13 18:38:54 -08:00
Guang Zhu
2995f95f0d fix build
remove extra import

Change-Id: Ia3f764e87bc412ec65da82f7ffd5c21f508229c4
2012-02-13 18:36:12 -08:00
Guang Zhu
4535e0c765 Merge "use hard coded WebViewProperties.gfxUseMinimalMemory" 2012-02-13 18:15:57 -08:00
Guang Zhu
af99ce7964 use hard coded WebViewProperties.gfxUseMinimalMemory
WebViewProperties is package private to browser

Change-Id: I33e4b5f42c748bb6b8a1f730be140d6fd73059b5
2012-02-13 18:14:02 -08:00
Stephen Hines
96d2ababf5 Merge "Revert "Revert "Test initialization of constant array exports.""" 2012-02-13 18:06:22 -08:00
Romain Guy
ccdc6a6acc Merge "New debugging tool in adb shell dumpsys gfxinfo" 2012-02-13 18:03:44 -08:00
Romain Guy
a676ad7e34 New debugging tool in adb shell dumpsys gfxinfo
This tool lets you visualize the time it took, in ms, to:
- Build display lists ("Draw" phase)
- Process display lists ("Process" phase)
- Swap GL buffers ("Execute" phase)

To use this tool:
- adb shell setprop hwui.profile true
- adb shell dumpsys gfxinfo <process name>
- Copy the profile data and paste it in a spreadsheet
- Generate a graph (stacked graph) and enjoy

Change-Id: I7840c0ea0f153550425aa798e3ada2f357688cf5
2012-02-13 17:47:10 -08:00
Guang Zhu
06a240e826 Merge "Increase transfer queue size for DRT" 2012-02-13 17:39:08 -08:00
Guang Zhu
c978c560c8 Increase transfer queue size for DRT
To maintain the baseline, DRT app should use the same
transfer queue size as before.

Bug: 6008123

Change-Id: I143ebf86b7798c1a6608af2e37d618ffa09d1062
2012-02-13 17:37:49 -08:00
Philip Milne
94355ed44a Merge "New hooks to allow layouts to improve their performance by doing more caching" 2012-02-13 17:05:01 -08:00
Chet Haase
64a48c1d3d Refactor ViewGroup.drawChild() into View.draw()
Some of the ongoing and upcoming jank work involves having
Views optimize their rendering. For example, it would be more
efficient for native display lists to be able to redraw themselves with
updated transform/alpha properties than it would be to do it the
way we do now, which causes view hierarchy invalidation and display
list recreation.

In order to do this, we need to push more intelligence for view
rendering into the Views themselves, rather than the complicated
mechanism we have now of ViewGroup handling some View properties
(transforms and alpha) and the Views handling the rest of their
rendering.

The first step toward this is to take the current drawChild() method
and push it into a new, package-private method in View that does the
same thing.

Future checkins will refactor the code further, simplifying it and
eventually optimizing around view property changes.

Change-Id: Id44b94536fc3ff80b474db7ef06862f4f51eedce
2012-02-13 17:02:39 -08:00
Irfan Sheriff
5e264cc1c0 Merge "Fix shutdown delay" 2012-02-13 16:59:34 -08:00
Philip Milne
d7dd89095f New hooks to allow layouts to improve their performance by doing more caching
This change allows layouts to be notified of changes to LayoutParameters that have occurred
between layout operations.

If an assignment is made to the fields of LayoutParams instances that are already in use,
cachced data may become inconsistent with the new values. For complex layouts, like
GridLayout, in which the layout parameters define the structure of the layout, caching
could have caused  ArrayOutOfBoundsException to be raised without this change. This case is
rare in normal code as initialisation is typically performed once. Its nevertheless possible
and much more likely in environments like design tools where layout parametrs may be being
edited on the fly.

Prevent errors as follows (belt and braces):

1. Change javadoc to request that changes to the fields of LayoutParams be accompanied with
a call to View.setLayoutParams(). (This calls requestLayout() which was what the previous
javadoc advised.) Provide a (for now, private) hook for layouts with caches to receive notification
of such calls so they can invalidate any relevant internal state.

2. For GridLayout, we cannot clone layout parameters as traditional Java grids do without retaining
two complete copies because of the public getLayoutParameters() method on View. Retaining two
copies is wasteful on constrainted devices. Instead, we keep just one copy and compute a hashCode
for the critical fields of a GridLayout's layoutParams. The hashChode is checked it prior to all
layout operations; clearing the cache and logging a warning when changes are detected, so that
developers can fix their code to provide the call to setLayoutParams() as above.

Change-Id: I819ea65ec0ab82202e2f94fd5cd3ae2723c1a9a0
2012-02-13 16:55:57 -08:00
Mangesh Ghiware
7850783b73 Merge "Fix regression in default zoom setting" 2012-02-13 16:47:10 -08:00
Glenn Kasten
2e20ce35e8 Merge "Fix build warnings" 2012-02-13 16:43:43 -08:00
Mangesh Ghiware
8d3836c11e Fix regression in default zoom setting
Bug: 6000309
Change-Id: I4255c847c0e7d2a5ab654014f6f4b5d32b5fdf67
2012-02-13 16:20:22 -08:00
Irfan Sheriff
4aa9bcd231 Fix shutdown delay
We were timing out on commands after shutting down supplicant

Bug: 5973030
Change-Id: I442ae6a9ad206406dc5f1c8c27be2456a339bba2
2012-02-13 16:12:48 -08:00
Marco Nelissen
2e0f67159a Merge "Further optimize media scanner." 2012-02-13 15:47:58 -08:00
Marco Nelissen
d121cfcbb4 Further optimize media scanner.
Inserts of directories can be done in bulk as long as they're inserted before
the files contained within. Extend MediaInserter to accommodate giving priority
treatment to directories.
Bulk deleting of entries can be further sped up (by a factor of ~3 in my tests)
by deleting entries in database order. Switch the file cache to use
LinkedHashMap instead of HashMap to allow iterating over the cache in database
order. Also use bindArgs to allow for better caching of sql statements.

Change-Id: Ieb9ffc4e866c6cd505bf795eb80ff5d03ffc56bd
2012-02-13 15:39:15 -08:00
Ramanan Rajeswaran
68de7f5439 DO NOT MERGE
Revert "Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc."

This reverts commit c1496d2d9a496e4aba817a58ecb9e07fe55cdba5.

Change-Id: If60df742b19c925cc99b20d01108b84415b124ad
2012-02-13 15:21:04 -08:00
Makoto Onuki
75400e775e Merge "Fix the 3-parameter formatNumber to correctly handle IDDs." 2012-02-13 15:20:40 -08:00
Jeff Brown
dc38fd4c73 Merge "Don't serialize motion events." 2012-02-13 15:04:33 -08:00
Fabrice Di Meglio
f53b451c4c Merge "Update BiDiTest app for GridLayout RTL tests" 2012-02-13 14:58:53 -08:00
Fabrice Di Meglio
0d2bda319d Update BiDiTest app for GridLayout RTL tests
- add unit tests for GridLayout in RTL mode

Change-Id: Icc983a6e2cc75b30e457fd822d81ef5630de0f10
2012-02-13 14:44:22 -08:00
Tsu Chiang Chuang
42a3e79d5a am 8885596a: am 3ded587c: am 08eb7dd6: Merge "extending timeout to stabilize tests" into ics-mr1
* commit '8885596a9109794ebd61e6a91e5199aa1750ed8c':
2012-02-13 14:42:42 -08:00
Dianne Hackborn
d2a4c2fa8f am 84affb8a: Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.
* commit '84affb8ae6477c46c75f834b73daa13b2a751c21':
  Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.
2012-02-13 14:42:40 -08:00
Tsu Chiang Chuang
8885596a91 am 3ded587c: am 08eb7dd6: Merge "extending timeout to stabilize tests" into ics-mr1
* commit '3ded587cc199d4ba592e675dc47fb80a28d1dacd':
2012-02-13 14:39:48 -08:00
Dianne Hackborn
84affb8ae6 Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc.
Change-Id: I519d6cdc527a402d93b98df17a64fc1da52ad598
2012-02-13 14:39:45 -08:00
Dianne Hackborn
07f941f026 Merge "Move BroadcastQueue out of the ActivityManager class." 2012-02-13 14:34:26 -08:00
Jean-Baptiste Queru
472512f697 Merge "Fix incorrect prototype for JNI call" 2012-02-13 14:32:33 -08:00
Ramanan Rajeswaran
95d4c9934f am 352b8d03: (-s ours) am 8046e294: Merge "DO NOT MERGE" into ics-scoop
* commit '352b8d03c63585f4eaec09d2e39a4d173be83164':
  DO NOT MERGE
2012-02-13 14:27:40 -08:00
Eric Fischer
5c6dfc374a Merge "Import translations." 2012-02-13 14:26:03 -08:00
Ramanan Rajeswaran
352b8d03c6 am 8046e294: Merge "DO NOT MERGE" into ics-scoop
* commit '8046e294c545b8e3712bff7925b024639936d5bf':
  DO NOT MERGE
2012-02-13 14:24:38 -08:00
Ramanan Rajeswaran
8046e294c5 Merge "DO NOT MERGE" into ics-scoop 2012-02-13 14:22:44 -08:00
Jean-Michel Trivi
fbd2e64346 Merge "Playback rate on MediaPlayer" 2012-02-13 14:21:36 -08:00
Ramanan Rajeswaran
9d29031417 DO NOT MERGE
Revert "Add xxhdpi; fix ActivityManager.getLauncherLargeIconSize() etc."

This reverts commit c1496d2d9a496e4aba817a58ecb9e07fe55cdba5.

Change-Id: If60df742b19c925cc99b20d01108b84415b124ad
2012-02-13 14:17:06 -08:00
Jeff Brown
0952c30ac2 Don't serialize motion events.
On reflection, only key events need to be serialized.

This is part of a series of changes to improve input system pipelining.

Bug: 5963420
Change-Id: I028b4eac97497d012036cb60ffbac4cb22d3966c
2012-02-13 14:04:24 -08:00
Jeff Brown
a17032eeb9 Merge "Accurately track the sequence numbers of batched events." 2012-02-13 14:02:51 -08:00
Fabrice Di Meglio
7a29d84f01 Merge "Fix bug #5904777 GridLayout should be RTL aware" 2012-02-13 14:01:28 -08:00