65351 Commits

Author SHA1 Message Date
Romain Guy
967e2bf3ac Preliminary support for clipRect(Rect, Op)
This adds basic support for clip regions. It is currently disabled at compile
time. Enabling clip regions will require setting up a stencil buffer.

Change-Id: I638616a972276e38737f8ac0633692c3845eaa74
2012-02-07 17:04:34 -08:00
Xavier Ducrohet
0afa7e2d95 am 9485ca87: am b54f371c: am f8aea993: Make aapt ignore tools-related data.
* commit '9485ca87edd819e3106a4b8c3d08f1ab73adf818':
2012-02-06 11:46:49 -08:00
Xavier Ducrohet
30ca4b5269 am 3d4db0dc: am c205a9d6: am f8aea993: Make aapt ignore tools-related data.
* commit '3d4db0dc1803252b924076f7d10d8e806af71824':
  Make aapt ignore tools-related data.
2012-02-06 11:44:43 -08:00
Xavier Ducrohet
9485ca87ed am b54f371c: am f8aea993: Make aapt ignore tools-related data.
* commit 'b54f371cc4cfd32acf0fec35885a1da64accec9e':
2012-02-06 11:44:19 -08:00
Xavier Ducrohet
3d4db0dc18 am c205a9d6: am f8aea993: Make aapt ignore tools-related data.
* commit 'c205a9d68c23e9ade2cbe28bba0f257d84d23a97':
  Make aapt ignore tools-related data.
2012-02-06 11:42:50 -08:00
Xavier Ducrohet
b54f371cc4 am f8aea993: Make aapt ignore tools-related data.
* commit 'f8aea99385df8373b6edd6d5dd1d15b7b36b525b':
  Make aapt ignore tools-related data.
2012-02-06 11:41:56 -08:00
Xavier Ducrohet
c205a9d68c am f8aea993: Make aapt ignore tools-related data.
* commit 'f8aea99385df8373b6edd6d5dd1d15b7b36b525b':
  Make aapt ignore tools-related data.
2012-02-06 11:41:04 -08:00
Xavier Ducrohet
f8aea99385 Make aapt ignore tools-related data.
This patchset introduces a new standard namespace http://schemas.android.com/tools
which will be used for tools specific XML attributes.
Any attributes using this namespace will not be compiled into the binary XML file.

The namespace node is also not written at all, and its string is not collected
to ensure that there is no impact on the devices.

(cherry picked from commit a5d5e9d906583ebeb590ca200ca9840302a5cd1a)

Change-Id: I62937b8bc34c07ac544930aa8eadd7797e0179d5
2012-02-06 11:25:28 -08:00
Xavier Ducrohet
75ef7bea32 Merge "Add some lint control for the frameworks." 2012-02-06 10:57:50 -08:00
Xavier Ducrohet
edc3c65387 Merge "Make aapt ignore tools-related data." 2012-02-06 10:57:40 -08:00
Chris Craik
d5544ac710 Merge "Pause webkit painting when UI tile painting queue is full" 2012-02-06 10:00:58 -08:00
Mathias Agopian
37f6934e86 a test to measure the touch latency
Change-Id: I01782274563fc9d6e4c1ba48e5aa371c164ed589
2012-02-05 22:25:32 -08:00
Mathias Agopian
587ae01ad6 fix a crasher when starting SF with the screen off
SF could end-up in an infinite crash-loop during startup if it
was stopped while the screen was off. This happened because
the thread that manages screen blanking was started before
other important pieces of SF were initialized.

Change-Id: I0dded11dbf2395fdd57b673859a7aa0fa9eb32b6
2012-02-05 02:15:28 -08:00
Mathias Agopian
cf7f0c7328 ui freeze workaround: reenable triple buffering mode
we're seeing UI freezes when window updates and
composition are separated. for now we workaround this
by always doing a composition after window updates on
vsync. triple buffering is reenabled for performance.

Change-Id: I693d705000b7452489bb0b4918fbeadb9879315c
2012-02-05 01:49:16 -08:00
Mathias Agopian
077f29f8ae improve SF dumpsys 2012-02-05 00:19:27 -08:00
Mathias Agopian
fe005282db fix UI freezes
In some situations SF would mark a window as "has a pending update"
but would never process that update because the window is not
visible (fully transparent, hidden by another window, etc...), this
window would then be "stuck" until some other window updated.

Change-Id: Ifa18a9aef3a53f2593b473556702688ae62d9503
2012-02-04 15:44:04 -08:00
James Dong
cea2c396c5 Merge "Don't call virtual functions in the destructor for audio and camera source classes" 2012-02-04 05:54:54 -08:00
Fabrice Di Meglio
ffd121233a Merge "Revert back to DroidSansArabic font for SystemUI" 2012-02-03 18:33:49 -08:00
Chet Haase
f492b43f45 Merge "Make the TimeAnimator class public." 2012-02-03 17:48:11 -08:00
Mathias Agopian
af87216387 attempt to fix an ANR in various apps
recent changes in SF introduced a hang where some windows would
stop being refreshed.
This is an attemp to fix that.

Change-Id: I6aa32ac0d6f1c0a6aea8f6195825dc4f4e6f93f9
2012-02-03 17:22:09 -08:00
Chet Haase
a33de55404 Make the TimeAnimator class public.
This class has existed since ICS, but was hidden. This change
just makes it public API.
Also, cleaned up some internal javadocs.

Change-Id: Id69408446ced183e01d2b065a67397eb305d9665
2012-02-03 16:28:24 -08:00
Chris Craik
4390c6b4a6 Pause webkit painting when UI tile painting queue is full
Change-Id: I8836d7951f8f02d7f966dc22d807ea785ac9e637
2012-02-03 16:07:11 -08:00
Jeff Brown
33c84496a6 Merge "Make the Choreographer thread-safe." 2012-02-03 15:48:33 -08:00
James Dong
4651c0ea80 Merge "Don't call virtual functions in destructors for the writer classes" 2012-02-03 15:37:40 -08:00
Mathias Agopian
4d10ed3210 Merge "fix a dead-lock in eglMakeCurrent" 2012-02-03 15:35:45 -08:00
Stephen Hines
e05bc81c19 Merge "We should not throw for non-fatal errors." 2012-02-03 15:34:38 -08:00
Stephen Hines
be74bdd234 We should not throw for non-fatal errors.
BUG=5955072

Change-Id: I731242805957a057aaff1ba96a58c69d6e474a59
2012-02-03 15:29:36 -08:00
Mathias Agopian
7b864906e5 fix a dead-lock in eglMakeCurrent
this was introduced in a recent change. eglMakeCurrent can
end up calling eglDestroyImageKHR via ANativewWindow::disconnect
when the consumer is in the same process.

we make sure we don't hold the lock while this is happening.

Change-Id: Id17fe4fd76eecf5f962cefb9aa32be41fc1b042d
2012-02-03 15:24:51 -08:00
Jeff Sharkey
241dde2306 Unify shorthand for byte-based units.
Change-Id: If990859dee3f0973e1d4c48f05312c84071b3328
2012-02-03 14:50:13 -08:00
Eric Fischer
1c9fcd9086 Merge "Import translations. DO NOT MERGE" 2012-02-03 13:48:14 -08:00
Xavier Ducrohet
9e194a1557 Add some lint control for the frameworks.
Change-Id: Ie80ffee31ca87da3e7f1031317f2d4c1a36640c8
2012-02-03 13:27:52 -08:00
Eric Fischer
8d3d580c51 Import translations. DO NOT MERGE
Change-Id: I50c6c58c7b20c3e8ce02adeac7e05f23d0a3fe44
2012-02-03 12:24:15 -08:00
Adam Cohen
041a434d38 Merge "Handle null PendingIntents, Bitmaps, Uris and Intents in RemoteViews (issue 5223291)" 2012-02-03 12:06:20 -08:00
Amith Yamasani
1ef7d13172 Merge "Multi-user - 1st major checkin" 2012-02-03 12:04:40 -08:00
Amith Yamasani
742a671273 Multi-user - 1st major checkin
Switching activity stacks
Cache ContentProvider per user
Long-press power to switch users (on phone)

Added ServiceMap for separating services by user
Launch PendingIntents on the correct user's uid
Fix task switching from Recents list
AppWidgetService is mostly working.

Commands added to pm and am to allow creating and switching profiles.

Change-Id: I15810e8cfbe50a04bd3323a7ef5a8ff4230870ed
2012-02-03 12:01:47 -08:00
Fabrice Di Meglio
2d315df641 Merge "Fix bug #5929529 Parentheses aren't correctly rendered in RTL context" 2012-02-03 11:57:54 -08:00
James Dong
6004df9408 Merge "Keep AACEncoder around for a bit longer to have more time fix issues related to video editor engine" 2012-02-03 11:29:59 -08:00
James Dong
9989f3cfbb Keep AACEncoder around for a bit longer to have more time fix issues related to video editor engine
o this should be reverted after the problem is fixed.
o related-to-bug: 5947347

Change-Id: Iaec4b59d2c99c975e83f0588a813e9a4bfcb7ee2
2012-02-03 11:20:03 -08:00
Jeff Brown
87d0b03f1f Make the Choreographer thread-safe.
Change-Id: Ieb52cf3b8086e7cf743b45a8b92d4bd5957f43ee
2012-02-03 11:01:21 -08:00
Robert Greenwalt
06e601f91b Merge "Add some logging to NDC." 2012-02-03 08:54:02 -08:00
Glenn Kasten
f55bc56490 Merge "Use audio_in_acoustics_t consistently" 2012-02-03 08:31:01 -08:00
Glenn Kasten
191c849283 Merge "Use ToneGenerator::tone_type consistently" 2012-02-03 08:00:52 -08:00
Glenn Kasten
ed4dc900f7 Merge "Use NULL not 0 for raw pointers" 2012-02-03 07:59:42 -08:00
George Mount
3debfa68c4 Merge "Enable webkit text entry for all fields" 2012-02-03 07:58:14 -08:00
George Mount
60da2fc8c0 Merge "Use a node pointer to identify content-editable fields." 2012-02-03 07:58:07 -08:00
Glenn Kasten
3694ec1f19 Use NULL not 0 for raw pointers
Use if (p != NULL) instead of if (ptr)

Change-Id: Iaec3413a59ccbf233c98fcd918cc7d70ac5da9fa
2012-02-03 07:57:01 -08:00
Glenn Kasten
7bd4f6f4d0 Merge "For performance, return large objects by reference" 2012-02-03 07:46:42 -08:00
Glenn Kasten
22152a6807 Merge "No need to check a wp<> for 0 before promote()" 2012-02-03 07:45:13 -08:00
Glenn Kasten
dc3ac85009 Constructor initialization and const fields
In constructors, initialize member fields in the initialization list
rather than constructor body where possible.  This allows more fields
to be const, provided they are never modified.

Also initialize POD fields in constructor, unless it's obvious they
don't need to be initialized.  In that case, put a comment instead.

Remove explicit clear() in destructors on fields that are now const.

Give AudioSessionRef a default constructor, so it's immutable fields can
be marked const.

Add comment about ~TrackBase() trick.

Initialize fields in declaration order to make it easier to confirm that
all fields are set.

Move initialization of mHardwareStatus from onFirstRef() to constructor.

Use NULL not 0 to initialize raw pointers in initialization list.

Rename field mClient to mAudioFlingerClient, and getter from client()
to audioFlingerClient().

Change-Id: Ib36cf6ed32f3cd19003f40a5d84046eb4c122052
2012-02-03 07:37:14 -08:00
Glenn Kasten
a12b6d1d44 Merge "Cleanup thread types" 2012-02-03 07:26:28 -08:00