2041 Commits

Author SHA1 Message Date
Romain Guy
4c9dfc4da9 Merge "Update layers' opaque property when needed" 2012-07-11 17:48:34 -07:00
Romain Guy
846a533945 Update layers' opaque property when needed
Before this change, changing a View's opacity would not be reflected
by hardware layers. This could cause layers to retain their previous
opacity.

Change-Id: Iba2c8b4242deca021651df9324cc7c585a64653d
2012-07-11 17:44:57 -07:00
Mathias Agopian
f16336790b Merge "Fixed exception caused crash in GL bindings" 2012-07-11 16:08:25 -07:00
Mathias Agopian
73a3c0c4d7 Merge "EGL 1.4 bindings generated by glgen" 2012-07-11 16:08:18 -07:00
Victoria Lease
cae28fa051 Merge "Remove hardcoded typeface pointers" 2012-07-11 12:49:12 -07:00
Billy Hewlett
d6deccb346 Remove hardcoded typeface pointers
There were a number of extraneous typeface pointers, one per
language, in TextLayoutCache.  Removing these makes adding additional
supported fonts easier.  This checkin now properly
unrefs typefaces returned by SkCreateTypefaceForScript.  Additionally,
all harfbuzz shaped fonts (with exceptions Greek, Cyrillic, Hangul)
should call SkCreateTypefaceForScript.

Change-Id: I7dcf603a89e5ff52c6dab8fb87ae1807a79c351c
2012-07-11 08:55:59 -07:00
Thomas Tafertshofer
6b1e838fc1 EGL 1.4 bindings generated by glgen
Change-Id: I1c3da57101f4ea089a12f1796f25b72d6852141e
2012-07-10 15:48:30 -07:00
Romain Guy
053a82cc18 Properly resize paletted bitmaps when adjusting for density
If an app used a GIF file in the wrong density bucket, the auto-scaling
code would not properly resize the bitmap.

Change-Id: I28f6506a94b20d11b3ba53ac442abec2b92e093e
2012-07-10 12:02:33 -07:00
Glenn Kasten
845b4712f0 Use audio_channel_mask_t more consistently
In AudioRecord::getMinFrameCount() and AudioSystem::getInputBufferSize(),
input parameter is channel mask instead of channel count.

Change-Id: I22a1c492113f3e689173c5ab97b2567cff3abe2b
2012-07-03 08:40:46 -07:00
Thomas Tafertshofer
2545b32ced Fixed exception caused crash in GL bindings
Bug: 6709865
Change-Id: Iab55a9eda2ec686710872abf0ff2ebbdf382f77c
2012-06-27 16:42:13 -07:00
Raph Levien
f62034d896 Initialize shaper offset array. Needed for bug 5443796.
Harfbuzz apparently requires the offset array to be initialized to zero,
otherwise it can report corrupt glyph positions. This change also
contains a small amount of refactoring to avoid code duplication.

Change-Id: I2553974f40bc8e0549876c7d31243960ca92a8a2
2012-06-26 08:59:17 -07:00
Raph Levien
6212a4f2ed Fix broken build when DEBUG_GLYPHS is set
Some of the logging lines referred to the "path" variable which no
longer exists. We log the Harfbuzz script instead, which hopefully
provides enough context.

This change only affects debug builds, but we will want to be working
intensively in this space.

Change-Id: I86c3b58c9fa2a8c47812ef5f0b5ce64fd8dcdc20
2012-06-25 14:29:52 -07:00
Glenn Kasten
10a9831b66 Remove AudioRecord record_flags
Change-Id: I8a3d62ea64415582c87f43e94b17aa884d7d572d
2012-06-22 13:49:38 -07:00
Billy Hewlett
960511848a Revert "Revert "Use Elegant fonts for Webkit, Compact fonts for Textview""
This reverts commit 6fadccd2484233ed570218b3f97c085ef1a1ec28
2012-06-21 09:58:42 -07:00
Billy Hewlett
6fadccd248 Revert "Use Elegant fonts for Webkit, Compact fonts for Textview"
This reverts commit ecf80965d05e44b3701b3392aeb02028daacf1b0
2012-06-21 09:45:30 -07:00
Billy Hewlett
ecf80965d0 Use Elegant fonts for Webkit, Compact fonts for Textview
Fonts can be marked with elegant or compact in fallback_fonts.xml.
Webkit uses elegant fonts, Textview uses compact fonts (the default),
unmarked fonts are used by both.

    Bug: 6649136

Change-Id: Ie0debcddc13350bf60fe3139cd7ae533e466f02b
2012-06-20 09:07:09 -07:00
Raph Levien
e25071650e Fix bug 6688060: breakage in AndroidCharacter.mirror
A code cleanup inadvertently changed the semantics of the function,
causing it to return immediately when the first character is mirrored.
This causes CTS test breakage (in
android.text.cts.AndroidCharacterTest). This change restores the earlier
behavior and causes the test to pass.

Change-Id: I68cfb75f1db16eaa72e569dc48fbd0dee06f2de8
2012-06-18 16:17:30 -07:00
Matthew Xie
3199209c92 am 8607127d: am 839734bb: Merge "Handle ENITR failure for Headset control channel." into jb-dev
* commit '8607127d8bd9bf87cce9dde5451c926a14548bfd':
  Handle ENITR failure for Headset control channel.
2012-06-14 20:33:56 -07:00
Matthew Xie
8607127d8b am 839734bb: Merge "Handle ENITR failure for Headset control channel." into jb-dev
* commit '839734bbe502c876237a0473823b606803051825':
  Handle ENITR failure for Headset control channel.
2012-06-14 20:31:15 -07:00
Matthew Xie
be513afb62 Handle ENITR failure for Headset control channel.
Wrap poll and read with TEMP_FAILURE_RETRY
bug 6503000, 6623444

Change-Id: I2e302dc04df6b5bd5982c3d189881a687a95fb2d
2012-06-14 20:08:40 -07:00
Jeff Brown
f69eef1b63 am b8b29fa7: am fdcac45b: Merge "Print extended SQLite error code." into jb-dev
* commit 'b8b29fa7f18dd36bacc97d6c471935cb95e4c18c':
  Print extended SQLite error code.
2012-06-12 16:13:41 -07:00
Jeff Brown
b8b29fa7f1 am fdcac45b: Merge "Print extended SQLite error code." into jb-dev
* commit 'fdcac45b6767caaac70c30fd974dce61119f79d7':
  Print extended SQLite error code.
2012-06-12 16:09:34 -07:00
Jeff Brown
ca309f212d Print extended SQLite error code.
Bug: 6538393
Change-Id: I2b010c6a1127887717af67ec588c3df8bf41afe6
2012-06-12 15:39:09 -07:00
Dianne Hackborn
be782a6aa0 am 3857681e: am a7e3a1e0: Merge "Include important native processes in watchdog stacks." into jb-dev
* commit '3857681e5885b64e593dcc3e28492b156d860ed3':
  Include important native processes in watchdog stacks.
2012-06-11 10:44:52 -07:00
Dianne Hackborn
3857681e58 am a7e3a1e0: Merge "Include important native processes in watchdog stacks." into jb-dev
* commit 'a7e3a1e0e7d308e7e78a1992038a34485d04ab29':
  Include important native processes in watchdog stacks.
2012-06-11 10:41:09 -07:00
Dianne Hackborn
f72467ad98 Include important native processes in watchdog stacks.
Helps us track down deadlocks involving native service processes.

Bug: 6615693
Change-Id: I580047550772e29586195a8cf440141574e3f40c
2012-06-08 18:36:48 -07:00
Kenny Root
450f21a97d am d26f7139: Merge "resolved conflicts for merge of 9855f6e2 to jb-dev-plus-aosp" into jb-dev-plus-aosp
* commit 'd26f7139a7ff42ca1be470657515767f7509955b':
  Add JNI bindings for some of the libselinux interfaces.
2012-06-08 14:08:28 -07:00
Kenny Root
e38b1c4d15 resolved conflicts for merge of 9855f6e2 to jb-dev-plus-aosp
Change-Id: I012bd3b5946dedba3439285caa93739d44ebc60f
2012-06-08 13:47:46 -07:00
Chet Haase
89b8838496 am ca43c961: am 44b2fe3f: Track canvas clearing for swap buffers logic.
* commit 'ca43c96127e9f7cdab8ee70638a2445347eebd08':
  Track canvas clearing for swap buffers logic.
2012-06-07 09:51:07 -07:00
Victoria Lease
29b9885c25 Merge "Fix hardcoded font path. Allow adding new font path thru Skia changes. Bug: 6609231" 2012-06-07 08:33:15 -07:00
Chet Haase
44b2fe3fc1 Track canvas clearing for swap buffers logic.
A previous fix made it necessary for a frame to render something to GL
in order to cause a call to eglSwapBuffers(). Besides the calls being
tracked as part of issuing a DisplayList, there is also a potential call
to clear the canvas (via glClear()) on non-opaque surfaces. This call is also
good to track, since a surface that gets cleared without any other drawing operations
is worth flipping to the screen (to erase old contents on that surface).

This fix tracks the status of the pre-draw operations to find out whether
glClear() was called and then sets the drawing status appropriately.

Issue #6606422 QuickContact dismissal is janky again (Tracking)

Change-Id: I5fcaccfdc9293dd46b83f2fc279730a5d2740ebf
2012-06-07 06:25:04 -07:00
Jeff Brown
9d25fa67a9 Report extended error information from SQLite.
The error code number is not as informative as the SQLite error
message, in particular because the error code has been stripped
of extended error information.  Make sure we ask SQLite for the
full error message whenever possible.

Bug: 6538393
Change-Id: I82457c0ff7e41659cf8195fa26e09dc2b467375e
2012-06-05 14:44:48 -07:00
Billy Hewlett
517f67fe4b Fix hardcoded font path. Allow adding new font path thru Skia changes.
Bug: 6609231

Change-Id: I7b28c6f7ac1c227c7059b486635cadb39a6eacc3
2012-06-04 17:15:46 -07:00
Raph Levien
6e3301dcfa Merge "Fix bug 6558006: SystemUI native heap is huge. Fix memory leak" into jb-dev 2012-06-04 10:06:19 -07:00
Jeff Brown
9eb7d86181 Make velocity tracker strategy configurable.
This change is very useful for testing purposes because it makes it
easy to compare different implementations to see how they behave.

There is no change to the current default strategy.

Bug: 6413587
Change-Id: I4d8567aa4160571ba9fa397ce419882cd9366749
2012-06-03 19:21:49 -07:00
Raph Levien
75394d6d1b Fix bug 6558006: SystemUI native heap is huge. Fix memory leak
TextLayoutCache was leaking HB_Face objects, not freeing them when
purging the mCachedHBFaces cache. More full analysis is in the bug.

Change-Id: Ie5cd8b00c36b9d31963183c601cde49cbb73fafb
2012-06-02 15:47:29 -07:00
Jeff Brown
80a1de1007 Use sp<LooperCallback> to fix race causing dangling pointer.
Bug: 6559630
Change-Id: I9b9c76577779841006f9c024a80685ba8b7cd0e1
2012-05-31 16:23:11 -07:00
Jeff Brown
676c519ec4 Increase busy timeout.
Bug: 6579925
Change-Id: I110d9a98479cbfcc518deef6d59b0f956396b6da
2012-05-30 15:18:51 -07:00
Mathias Agopian
2598a5c89f Merge "drop frame in case of error in updateTexImage" into jb-dev 2012-05-18 17:09:10 -07:00
Mathias Agopian
df071486e0 drop frame in case of error in updateTexImage
Bug: 6476587
Change-Id: I864a7d0997761150a3db2ddd5890ed820d792e56
2012-05-18 16:58:00 -07:00
Dianne Hackborn
fb5c3dba4d Fix issue #6440173: MenuItem.setIcon(Drawable) scaling incorrectly...
...when resource is aliased

We were not correctly using the final resolved configuration when
retrieving a drawable through Resources.getDrawable().  (It already
does the correct behavior when going through TypedArray.getDrawable()).

Change-Id: I9032b788b592412178e31e2e6b0181b92c20fe45
2012-05-18 15:51:27 -07:00
Owen Lin
f970c2e6de Nvidia's patch for reusing bitmap in image region decoding.
bug: 5884845
Change-Id: I43d4d86ee94591b0b53393dfba13c7cc5c4e428d
2012-05-17 12:48:02 -07:00
Fabrice Di Meglio
31a4cbf00c Merge "Fix bug #6495019 Character gets garbled when locale is changed" into jb-dev 2012-05-15 15:29:25 -07:00
Fabrice Di Meglio
15cc68ced0 Fix bug #6495019 Character gets garbled when locale is changed
- add missing cached data clearing. The Shaper was caching the HB_Face so
clear them too
- do minor code refactoring

Change-Id: Ifa86cc63815bdb4b51ce688cf16e986415b1e8c1
2012-05-15 14:55:49 -07:00
Romain Guy
49c5fc0b9e Avoid unnecessary copy when invoking drawBitmap(int[])
Bug #6483390

Change-Id: I4d2d725ef50c9401b4bd998b6160128102b40745
2012-05-15 11:15:24 -07:00
Romain Guy
7b8523aaed Merge "Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)" into jb-dev 2012-05-14 20:12:09 -07:00
Romain Guy
e651cc6239 Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)
Change-Id: Ie28538a2104d21154fdc78a56525e7403f08287d
2012-05-14 19:44:40 -07:00
Jeff Brown
85bd0d6283 More VelocityTracker refactoring.
Bug: 6413587
Change-Id: Ida1152e7a34d5fe5caab5e6b5e1bc79f6c7a25e6
2012-05-13 16:10:57 -07:00
Jeff Brown
5877023221 Merge "Move power HAL interactions to PowerManagerService." into jb-dev 2012-05-11 19:32:56 -07:00
Jeff Brown
7304c34382 Move power HAL interactions to PowerManagerService.
This refactoring sets the stage for a follow-on change that
will make use additional functions of the power HAL.

Moved functionality from android.os.Power into PowerManagerService.
None of these functions make sense being called outside of the
system server.  Moving them to the PowerManagerService makes it
easier to ensure that the power HAL is initialized exactly once.

Similarly, moved ShutdownThread out of the policy package and into
the services package where it can tie into the PowerManagerService
as needed.

Bug: 6435382
Change-Id: I958241bb124fb4410d96f5d5eb00ed68d60b29e5
2012-05-11 18:42:42 -07:00