1983 Commits

Author SHA1 Message Date
Jeff Brown
25c934533f Fix reference to moved class.
Bug: 6468759
Change-Id: I937e824beba4571fce6d2d91cb8213989a4a0afb
2012-05-09 18:04:34 -07:00
Jeff Brown
8bd8d89693 Merge "Fix possible leak in bitmap decoding." into jb-dev 2012-05-09 17:42:40 -07:00
Jeff Brown
27d8383414 Fix possible leak in bitmap decoding.
In one particular error case, we might exit the function without
destroying the bitmap.

Bug: 6467873 (tangentially related)
Change-Id: I3a213cc0a53023d9d0d2a080aed15774f4c4c10c
2012-05-09 17:30:31 -07:00
Dianne Hackborn
a53de0629f Add callback hack to find out when to load system properties.
Use this to reload the trace and layout bounds properties.

This is ONLY for debugging.

Change-Id: I1c4bdb52c823520c352c5bac45fa9ee31160793c
2012-05-09 14:53:20 -07:00
Dianne Hackborn
feecf9d786 Merge "Support for changing traces from development settings." into jb-dev 2012-05-08 18:54:58 -07:00
Dianne Hackborn
83e6eb11d7 Support for changing traces from development settings.
Publish information needed to build UI, fix SystemProperties.getLong()
to be able to read this property, fix some issues in
MultiCheckPreference.

Change-Id: I10c8ff84a167fdb42f6c93500201b78b844cfb8b
2012-05-08 14:53:24 -07:00
Colin Cross
c814c16b7f Don't call into power HAL if it isn't loaded.
The patch to call into libsuspend accidentally dropped the
test for sPowerModule == NULL.  Put it back, and fix some
tabs too.

Change-Id: I1f934a41540f3b7be01d6399512482d87acceb94
2012-05-08 12:18:38 -07:00
Fabrice Di Meglio
92d7f9ff1c Merge "Fix bug #6408393 Character corruption is caused when locale is changed" into jb-dev 2012-05-08 10:54:41 -07:00
Fabrice Di Meglio
30ca5cd11a Fix bug #6408393 Character corruption is caused when locale is changed
- free the TextLayoutCache on Locale change

- also free TextLayoutCache when memory is low

Change-Id: I39a37ac8ec3c292cfb1c0eea4bb41ff71897d089
2012-05-07 20:17:38 -07:00
Mathias Agopian
faf5b16ae8 Merge "better error handling in SensorManager" into jb-dev 2012-05-07 20:09:26 -07:00
Mathias Agopian
0b6d77bdeb better error handling in SensorManager
Change-Id: Id0498e950f1407a10e3b2d88e63c2141ac95d103
2012-05-07 18:27:06 -07:00
Colin Cross
401d93f0db Merge "Use libsuspend to trigger suspend" into jb-dev 2012-05-07 16:55:49 -07:00
Fabrice Di Meglio
6162876067 Fix bug #6318791 Replace the Lohit Devanagari and Tamil with Droid versions
- take care of ttf filename changes and regular/bold versions

Change-Id: Ib71d2537df16ff954cef9619c12d611948d19efe
2012-05-07 14:42:56 -07:00
Marco Nelissen
b3482ffbee Merge "Fix crash when decoding bitmap" into jb-dev 2012-05-07 12:09:02 -07:00
Marco Nelissen
b2fe3be4ff Fix crash when decoding bitmap
Externally reported crash when decoding corrupted .wmf file.
b/5048623

Change-Id: I1df0861cd36983cb4d1460caa221c54d3fc240af
2012-05-07 11:24:13 -07:00
Mathias Agopian
b05b158b84 Merge "report a Sensor's version from the HAL" into jb-dev 2012-05-04 16:30:32 -07:00
Mathias Agopian
277d1b2f49 report a Sensor's version from the HAL
Bug: 6447433
Change-Id: I0f46cb378de9bde20876608d5459689cc108c592
2012-05-04 15:51:29 -07:00
Fabrice Di Meglio
cf4284bce1 Update Arabic font for SystemUI
- bug #5987379 Need an Arabic font with metrics "compatible" with Roboto
- use the Alt version with GSUB optimizations

Change-Id: I4d8c62cab37a7b010abab602c39899084d347fdc
2012-05-04 15:14:58 -07:00
Fabrice Di Meglio
e12c59491e Merge "Use paint typeface for shaping when it supports the requested script." into jb-dev 2012-05-04 13:12:23 -07:00
Fabrice Di Meglio
e5c67bf7e1 Merge "Make Arabic script runs longer (for performance) - bug 6426451." into jb-dev 2012-05-04 13:11:24 -07:00
Colin Cross
51d81f3c3e Use libsuspend to trigger suspend
Calling to libsuspend to trigger suspend instead of letting
the power hal do it.

Change-Id: I3cf51fea4d288f9fc19ce5aae39cdd581e8b44cb
2012-05-03 21:25:41 -07:00
Raph Levien
1637dcd16c Use paint typeface for shaping when it supports the requested script.
This is a hackish but workable fix for bug 6415796.

Change-Id: Iaba91e1e53e688a3ee05a1fdb68fd05102e369f2
2012-05-02 12:00:12 -07:00
Jeff Brown
0632b35b68 Merge "Improve handling of built-in keyboard." into jb-dev 2012-05-01 18:39:00 -07:00
Jeff Brown
daa3753a04 Improve handling of built-in keyboard.
The window manager policy made some incorrect assumptions about the
meaning of the Configuration.keyboard field.  We need to be more
careful about distinguishing between built-in and external keyboards.

Most of this change is to move the determination of the parts of
the Configuration related to input devices into the WindowManagerService
leveraging new features of the InputManagerService to good effect.

Then we plumb through the flag that indicates whether a device
is internal or external so that we can be more particular about
how the lid switch effects changes to the Configuration.

Bug: 6424373
Change-Id: I36a1c22ade35e578955465a25940a33f227b9763
2012-05-01 16:34:20 -07:00
Raph Levien
b294435b5c Make Arabic script runs longer (for performance) - bug 6426451.
This change avoids selecting the incorrect font for drawing characters
when the first character in a run is a space.

Change-Id: Ibc672560d364b8de8c3e21de1c738c6dc5639395
2012-05-01 13:49:18 -07:00
Jamie Gennis
6da9cf7782 Merge "Surface: add JNI plumbing for setActiveRect." into jb-dev 2012-04-30 17:13:45 -07:00
Jamie Gennis
b40696cc21 Surface: add JNI plumbing for setActiveRect.
Bug: 6299171
Change-Id: If26e63ebe7def645626af251bed899ff9389f8e5
2012-04-30 15:35:37 -07:00
Dianne Hackborn
7634424171 Fix scaling of layout bounds.
Change-Id: I9d8c8924900fed69030ee3e8d6decee89ca67820
2012-04-30 14:51:48 -07:00
Jeff Brown
ffd6ea4523 Merge "Resample touch events on frame boundaries." into jb-dev 2012-04-27 17:31:50 -07:00
Jeff Brown
771526c88f Resample touch events on frame boundaries.
Bug: 6375101
Change-Id: I8774e366306bb2b6b4e42b913525bf25b0380ec3
2012-04-27 15:58:42 -07:00
Romain Guy
8f8d9fb52c Keep opaque bitmaps opaque after scaling
Bug #6293845

Change-Id: If9e82993f4c9702244ddedb5667421a6fcc7a0c5
2012-04-26 13:35:36 -07:00
Raph Levien
66556c730d Merge "Improve char mirroring in TextLayoutCache" 2012-04-24 22:38:15 -07:00
Fabrice Di Meglio
3632b7f3ef Improve char mirroring in TextLayoutCache
- now use ICU u_isMirrored() instead of a small hardcoded list of unicode points

see bug #5961254 Harfbuzz should be able to support Bidi_mirrored unicode attribute

Change-Id: I3243a58558a97930f0e7fdf5e9c1d5695d9393de
2012-04-24 19:57:23 -07:00
Mathias Agopian
80193e7748 Merge "add a (hidden) api on Surface to query if the consumer is running behind the producer" 2012-04-24 17:24:07 -07:00
Raph Levien
8b97745c6a Merge "Partial fix for bug 6132077 (incorrect line breaking of Arabic text)." 2012-04-24 16:34:36 -07:00
Raph Levien
57e9723134 Partial fix for bug 6132077 (incorrect line breaking of Arabic text).
Fixed getTextRunAdvances so that advances are correctly aligned with
UTF-16 code point offices, rather than runs being reversed in RTL.

Change-Id: Ife59c0c26f745654c16656c86072e9102d8f6bc7
2012-04-24 16:04:34 -07:00
Mathias Agopian
c14bacf1fb add a (hidden) api on Surface to query if the consumer is running behind the producer
Change-Id: I71ec1602f66a4850b130893fc7017b5b1ac1b647
2012-04-24 15:50:27 -07:00
Glenn Kasten
07b0465095 Scheduling policy service
Change-Id: I6178b96896ffbb3323210f93784a65d724a3e694
2012-04-24 09:53:14 -07:00
Romain Guy
ba6be8a62d Prevent WebView from crashing when detached from the window
Bug #6365056

WebView enqueues a functor in the hardware renderer to handle
animations and this functor is called at a later time by the
hardware renderer. However, the functor was not removed from
the queue when WebView was removed from the window. This could
cause the hardware renderer to attempt to execute an invalid
functor and lead to a crash.

Change-Id: I9d38e80f3fdc5e29d4d0cdfa1e893c251a954508
2012-04-23 20:29:31 -07:00
Glenn Kasten
2427a4c49e Merge "Scheduling group cleanup" 2012-04-23 17:11:55 -07:00
Glenn Kasten
f1b56449f5 Scheduling group cleanup
The C++ API for scheduling groups is going away, so use the C API.

Renumber THREAD_GROUP_* constants to have the same values as SP_*.
They are @hide so this should be OK.

The old THREAD_GROUP_FG_BOOST constant is removed, and replaced by a
(private) THREAD_GROUP_FOREGROUND constant that is just a placeholder
to correspond to SP_FOREGROUND.  It is not usable at this level.

Improved performance of android_os_Process_setProcessGroup:
avoid unnecessary syscall to getpriority for each tid.

Fixed error handling in android_os_Process_setThreadGroup.
It raises an exception if set_sched_policy() returns an error.

Add comments and fix typos in existing comments.

Change-Id: Ib922e92c945985c695ef0addbd2b83b8e82865f8
2012-04-23 15:30:02 -07:00
Chet Haase
1271e2cc80 Remove USE_DISPLAY_LIST_PROPERTIES flag
This flag was still hanging around pending any need to disable
DisplayList properties. But things seem stable, so it's time to clean up
and simplify the code.

At the same time, I reduced redundance in DisplayList dimensions. We
used to call drawDisplayList() with width/height parameters that were
used to do a clip reject. This is redundant with the DisplayList properties
that set the bounds of the DisplayList; the left/right and top/bottom properties
represent the same width/height properties formerly used in drawDisplayList().
The new approach is to not pass dimensions to drawDisplayList(), but to
instead pull those dimensions directly from the DisplayList when needed.

Change-Id: I8871beff03b1d4be95f7c6e079c31a71d31e0c56
2012-04-23 11:13:17 -07:00
Eric Laurent
e93cccb634 Merge "Fix threading issues in AudioRecord JNI" 2012-04-22 13:26:29 -07:00
Jeff Brown
5bbd4b4f5f Get alias for Bluetooth devices.
Bluetooth devices can be renamed by the user.  Make the
input system aware of the user-specified name and transparently
pass it down to applications.  This enables the keyboard
layout picker Settings UI to use device names that are
consistent with what the user set in the Bluetooth UI.

Bug: 6363157
Change-Id: I8eea26ce2c69c2a3f09c8de02e9e847610e0419c
2012-04-20 20:11:12 -07:00
Eric Laurent
532bc1cb7d Fix threading issues in AudioRecord JNI
Made native AudioRecord ref based to allow use
of strong pointers in JNI and solve concurrency issues
between read() and release() in particular.

Applied the same fixes to AudioTrack JNI.

Issue 6254582.

Change-Id: I381a66cb00b6639f87f4fcd19a2e202d1a4e6704
2012-04-20 16:26:07 -07:00
Jeff Brown
330ec91e02 Check whether db was really opened read/write.
Bug: 6176510
Change-Id: I7aeeb4340e55d554a57bb46c3c27ab37186f7e3a
2012-04-19 19:44:43 -07:00
Jeff Sharkey
1b96594171 Merge "Pipe DHCP vendor info towards framework." 2012-04-19 11:43:49 -07:00
Wu-cheng Li
7bc1b21a52 Remove new camera open API.
Applications are not resumed under the lock screen now.
This API is not needed anymore.

bug:5584464
Change-Id: I1c18efb5ba1ecd39320eb5fd252c6e1229d7b89c
2012-04-19 14:18:44 +08:00
Jeff Sharkey
77b87ba0bc Pipe DHCP vendor info towards framework.
Bug: 6344821
Change-Id: Ifb9a93c995f4d70f4ae2aa03b7e21f13013ef3b6
2012-04-18 21:55:14 -07:00
Eric Laurent
10536b657d rename audio policy flags
Change-Id: Id273d1366ed2dc9ae9f38497414a68523bceae66
2012-04-18 10:48:42 -07:00