67600 Commits

Author SHA1 Message Date
Glenn Kasten
150d238f3a Use size_t and ssize_t with Vector
Use size_t with size() and ssize_t with indexOfKey().  Exception:
use ssize_t for backwards loops, and indices that are overloaded as a
marker or error code.

Change-Id: Ibf2a360af4539b72b09c818dda22ea2a0de92431
2012-02-14 09:06:20 -08:00
Glenn Kasten
191f238cbb am d23d2b16: Merge "AudioRecord and AudioTrack client tid"
* commit 'd23d2b1662dc61222541310f7297cbee4e8b2b9d':
  AudioRecord and AudioTrack client tid
2012-02-14 09:03:03 -08:00
Glenn Kasten
d23d2b1662 Merge "AudioRecord and AudioTrack client tid" 2012-02-14 09:01:04 -08:00
Ramanan Rajeswaran
473cc1d9b5 am c26b3a7f: am 128dfa51: (-s ours) Merge "DO NOT MERGE" into ics-scoop-plus-aosp
* commit 'c26b3a7f12da9f5d495378749a098811a29daf85':
  DO NOT MERGE
2012-02-14 07:39:29 -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
Steven Ross
c9237f41a4 Removing dependence on enable_facelock
With this change, FaceUnlock is enabled by default when installed
fixes 5989485

Change-Id: Icbce3237ff533e8b7b88faf592ac4a1e143d5dc3
2012-02-14 09:27:00 -05:00
Chet Haase
6c217f0b77 am 4212d3fc: Merge "Refactor ViewGroup.drawChild() into View.draw()"
* commit '4212d3fc736712d6e5fb69d5067ce8d9a83806ef':
  Refactor ViewGroup.drawChild() into View.draw()
2012-02-14 06:22:06 -08:00
Chet Haase
4212d3fc73 Merge "Refactor ViewGroup.drawChild() into View.draw()" 2012-02-14 06:20:16 -08:00
Mike Lockwood
ece18efb35 Don't pulse LED on new notification unless notification has LED flag set
Bug: 6006131

Change-Id: I719c7d68e310bfaca227f6286159b3993784926b
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-02-13 20:42:19 -08:00
Jeff Brown
6c8d9f08d6 am a9daa164: Merge "Fix possible races in vsync infrastructure."
* commit 'a9daa164a58fc70d08702787e69a56212f5ad8c9':
  Fix possible races in vsync infrastructure.
2012-02-13 20:39:58 -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
Mathias Agopian
b749dd8530 EGLConfig is now not remaped to an internal EGLConfig
this is possible now that we support only a single
EGL implementation. this allows a large code simplification.

Change-Id: I7a6b9db4c5d60f4407c6061e7a68729af63d5242
2012-02-13 20:23:15 -08:00
Jean-Baptiste Queru
919acea233 am b35b9a86: am 6466f400: am fca4ff38: am eaf2617f: am 472512f6: Merge "Fix incorrect prototype for JNI call"
* commit 'b35b9a8642365921a185eab5e8d4716f247fed85':
  Fix incorrect prototype for JNI call
2012-02-13 20:06:19 -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
Michael Jurka
99a9655b93 Making recents faster
Improving load time by:
- using window animation for fade-in and not
    waiting to create HW layer
- starting loading of thumbnails/icons earlier
- only initially creating views for the first
    screenful of items
- recycling views

Change-Id: I529b1085fe35d81aaafeb7433ccaed8e0537f01c
2012-02-13 19:11:40 -08:00
Omari Stephens
9f5a511a08 Add a method to the smoke test that launches each app
Bug: 5888360
Change-Id: I4a68bc8fef71fd7f89b3a7a997323bfaefadc3eb
2012-02-13 19:01:17 -08:00
Ying Wang
193ec66214 Build all font files as prebuilts.
Bug: 5972956
So that mm/mmm can be used to install all the font files.

Change-Id: I9378e98b3a01d26680613e5738a270077bca0b64
2012-02-13 18:55:41 -08:00
Guang Zhu
96a0e43ed3 am 6ae14555: Merge "fix build"
* commit '6ae14555f945a1a0fc04d6acc0131254c9b2c2e2':
  fix build
2012-02-13 18:40:55 -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
Stephen Hines
9069ee88cb Fix typos/spacing with new APIs.
Change-Id: I26b772e8e29b12381042fb50c6dfa9df012b3f63
2012-02-13 18:25:54 -08:00
Guang Zhu
04fcfe3e59 am 4535e0c7: Merge "use hard coded WebViewProperties.gfxUseMinimalMemory"
* commit '4535e0c765654574c6244b97385ee25f0584bcae':
  use hard coded WebViewProperties.gfxUseMinimalMemory
2012-02-13 18:17:36 -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
Gilles Debunne
07ba2a2131 Minor typo fixes
Change-Id: I8cd9500cc50b7a484bf387e6a6a0c9b4ffb175a4
2012-02-13 18:13:44 -08:00
Mathias Agopian
8db8509e3c remove multiplexing of multiple EGL implementation
from now on, the system can only have one EGL
implementation. this means the software and h/w renderer
cannot be used at the same time on a device. Of course, the
h/w renderer is always prefered; in its absence we
default to the software renderer.

Change-Id: Ib579f58055dd0ce4c4a99144131efa11c16ca3d3
2012-02-13 18:11:42 -08:00
Stephen Hines
9e52329454 am 96d2abab: Merge "Revert "Revert "Test initialization of constant array exports."""
* commit '96d2ababf5c9a8ccd42d67587a62637a18dc1beb':
  Revert "Revert "Test initialization of constant array exports.""
2012-02-13 18:08:08 -08:00
Stephen Hines
96d2ababf5 Merge "Revert "Revert "Test initialization of constant array exports.""" 2012-02-13 18:06:22 -08:00
Romain Guy
fe2af90912 am ccdc6a6a: Merge "New debugging tool in adb shell dumpsys gfxinfo"
* commit 'ccdc6a6accdc898ade946b6aada6f15f45192b98':
  New debugging tool in adb shell dumpsys gfxinfo
2012-02-13 18:05:46 -08:00
Romain Guy
ccdc6a6acc Merge "New debugging tool in adb shell dumpsys gfxinfo" 2012-02-13 18:03:44 -08:00
Stephen Hines
5b79842b4a Initialize all class members.
Change-Id: I2bb2701a9dde66f6c4484a62945c72ddf52248fa
2012-02-13 17:49:20 -08:00
John Wang
d55cde1384 Only use CDMA rssi for config_alwaysUseCdmaRssi.
If config_alwaysUseCdmaRssi is true, the RSSI signal bar only
shows the CDMA value, no matter it connects to EVDO or WiMax .

bug:5941743
Change-Id: I4187571898a9fb47162e1ccf0cc4c59c3136ae0b
2012-02-13 17:48:24 -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
3ce2772715 am 06a240e8: Merge "Increase transfer queue size for DRT"
* commit '06a240e826107b32f1ebe305b0add1b72ef801ee':
  Increase transfer queue size for DRT
2012-02-13 17:40:52 -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
Fabrice Di Meglio
e7beae3f4c Make textDirection API public
Change-Id: I2d5a0e3a990b9a5b78a3bbc8df7f655702743e4b
2012-02-13 17:21:05 -08:00
Philip Milne
dd1977964f am 94355ed4: Merge "New hooks to allow layouts to improve their performance by doing more caching"
* commit '94355ed44a88d619f94948285a8dbe51ed7a7cb0':
  New hooks to allow layouts to improve their performance by doing more caching
2012-02-13 17:07:23 -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
b18e2c85ce am 5e264cc1: Merge "Fix shutdown delay"
* commit '5e264cc1c0fff5fa7a474605e446f7354b8450b0':
  Fix shutdown delay
2012-02-13 17:02:00 -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
cd9472c4ea am 7850783b: Merge "Fix regression in default zoom setting"
* commit '7850783b73cda1d71e9a90a7256fe0348707f9dc':
  Fix regression in default zoom setting
2012-02-13 16:50:25 -08:00