20060 Commits

Author SHA1 Message Date
Christopher Tate
7182ef3604 Ensure that binder incalls to the system process keep the fg cgroup
On binder incalls, the handler thread is given the caller's priority by the
driver, but not the caller's cgroup.  We have explicit code that sets the
handler's cgroup to match the caller's, *except* that the system process
explicitly disables this behavior.  This led to a siuation in which we were
running binder incalls to the system process at nice=10 but cgroup=fg.

That's fine as far as it goes, except that if a GC happened in the handler
thread, it would be promoted to foreground priority and cgroup both, to avoid
having the GC take forever.  Then, when GC finished, the original priority
is reset, and the cgroup set *based on that priority*.  This would push the
handler thread into nice=10 cgroup=bg_non_interactive -- which matches the
caller, but is supposed to be impossible in the system process.

The end result of this was that we could be running "lengthy" operations in
the system process in the background.  Unfortunately, some of the operations
that wound up like this would hold important global system locks for up to
twenty seconds as a result, making the entire device unresponsive to input
for that period.

This CL fixes the binder incall setup to ensure that within the system process,
a binder incall is always begun from the normal foreground priority as well
as cgroup.  In practice now the device still becomes laggy/sluggish when the
offending lock-holding time-consuming incall occurs, but since it still runs
as a foreground task it is able to proceed to completion within a short time
rather than taking 20 seconds.

Fixes bug #2403717

Change-Id: Id046aeabd0e80c48eef94accc37842835eab308d
2010-03-18 18:13:57 -07:00
Wink Saville
e5bdecea28 Merge "Allow transitionTo in enter/exit." 2010-03-18 18:03:48 -07:00
Marco Nelissen
42a9c53788 Merge "Include "album artist" when inserting items in the media provider." 2010-03-18 17:23:32 -07:00
Marco Nelissen
abc2819328 Include "album artist" when inserting items in the media provider.
Change-Id: Ic34e2d54557409866dc35c29ee397afdfe874762
2010-03-18 17:15:56 -07:00
Wink Saville
e7be6a85da Allow transitionTo in enter/exit.
bug: 2435366
Change-Id: Id15c5e2cca49ced5ebbda24887f8c490e717f101
2010-03-18 17:03:30 -07:00
Irfan Sheriff
6d33c5adde Merge "Clean up changing AP configuration" 2010-03-18 16:42:48 -07:00
Dianne Hackborn
ca2c8e7501 Merge "Fix issue #2438457: Resolving Flash artifacts while scrolling." 2010-03-18 16:34:07 -07:00
Dianne Hackborn
e2af5c882b Fix issue #2438457: Resolving Flash artifacts while scrolling.
When the surface view scrolls off the screen it stops drawing, so
we stop moving it.  Add an observer to scrolls so we can continue
to update its position.

Change-Id: I2604cbbecd3e72be1a2a6bc5794e3e1c19317b9e
2010-03-18 16:32:58 -07:00
Jason Sams
2b24a6a73a Merge "Change opaque RS typedefs from void * to int. These will likely become int64_t once proper support for >32bits is worked out." 2010-03-18 16:30:43 -07:00
Jason Sams
5335600a29 Change opaque RS typedefs from void * to int. These will likely become int64_t once proper support for >32bits is worked out.
Change-Id: Ic30240fe6c79170a0a88fd51185a1f01bd616c45
2010-03-18 16:29:59 -07:00
Adam Powell
9db133cbd9 Merge "Documentation fix" 2010-03-18 16:12:28 -07:00
Daniel Lehmann
592629e647 Merge "Added a comment to make it clearer that the operation has to be the first Bug:2521447" 2010-03-18 16:09:57 -07:00
Irfan Sheriff
4f31a00376 Fix null pointer exception
Bug: 2525763
Change-Id: If2f334187af26e0352d754d7e00a9ca3efc5dffa
2010-03-18 16:08:55 -07:00
Daniel Lehmann
d62d9eec0d Added a comment to make it clearer that the operation has to be the first
Bug:2521447

Change-Id: I155d0b328115d007116a0fe4560e703647ec2fb5
2010-03-18 16:08:30 -07:00
Irfan Sheriff
c2f54c267b Clean up changing AP configuration
Bug: 2527293
Change-Id: I35e82e24e27349e2966f88189ebca4246ad1a354
2010-03-18 16:02:56 -07:00
Gloria Wang
b127bf2e9c Merge "Release MediaPlayer if suspend() returns false." 2010-03-18 15:59:35 -07:00
Jason Sams
f298a027ed Merge "Change global variables from extern to non static. Make script local global vars static." 2010-03-18 15:52:47 -07:00
Jason Sams
cb88ac9f53 Change global variables from extern to non static. Make script local global vars static.
Change-Id: I73656978e0f0ceeb927afef292fc4ed9755b7214
2010-03-18 15:51:59 -07:00
Gloria Wang
047212fd4e Release MediaPlayer if suspend() returns false.
Change-Id: Ic6467a19bac453b72b56294487c9b835b20affd7
2010-03-18 15:44:30 -07:00
Adam Powell
db78bbc063 Merge "Fix current.xml for previous changes" 2010-03-18 15:09:14 -07:00
Jean-Michel Trivi
caa5ac3d1e Merge "Fix bug where the setConfig method in SynthProxy has the wrong signature." 2010-03-18 15:07:24 -07:00
Adam Powell
434dbceebc Fix current.xml for previous changes
Change-Id: I467f2e71e65fbe43f7e5507521e42726fa6bf361
2010-03-18 15:05:30 -07:00
jsh
ef905c86ee Merge "Update signal strength mapping for GSM/UMTS." 2010-03-18 14:58:30 -07:00
Daniel Lehmann
0c659fea07 Merge "Make the VCardEntry more robust against badly behaving resolvers. Additionally make the ImportTestResolver return the right result Bug:2521447" 2010-03-18 14:54:17 -07:00
Jean-Michel Trivi
54a3dcdbef Fix bug where the setConfig method in SynthProxy has the wrong
signature.

Change-Id: If04b9a1d6de6384d7f53efac4e60f1cd4d659625
2010-03-18 14:50:06 -07:00
Jason Sams
76ec68f4f1 Merge "More rsh headers for renderscript and a llvm compatible test script for fountain." 2010-03-18 14:37:01 -07:00
Jason Sams
4ab7b236ef More rsh headers for renderscript and a llvm compatible test script for fountain.
Change-Id: If5d682e549e6f849ba809619587feb58c1e4ed0a
2010-03-18 14:36:05 -07:00
Andreas Huber
099e3e7eed Merge "Report a runtime error rather than asserting if the amr software decoder reads more data than it was given(!)" 2010-03-18 14:08:56 -07:00
Andreas Huber
bd278758ef Report a runtime error rather than asserting if the amr software decoder reads more data than it was given(!)
Change-Id: I0a7ad65051a6663a583ea82da5fc75227dcdbbfa
2010-03-18 14:03:47 -07:00
Adam Powell
a0d6b59d87 Merge "Fix bug 2523989" 2010-03-18 13:52:08 -07:00
Andreas Huber
0d6deeaa6e Merge "Tweak the omx tests to always do a seek-beyond-EOS on the first iteration, followed by a linear read on the second iteration." 2010-03-18 13:50:42 -07:00
Adam Powell
c900687280 Fix bug 2523989
AlertDialog's docs now refer to the id android.R.id.custom, the
correct method addView, and android.R.id.custom has been exported as a
public id.

Change-Id: Ide43a03b702f0b36326130909f9a864872ec93fb
2010-03-18 13:44:45 -07:00
Andreas Huber
d92820070b Tweak the omx tests to always do a seek-beyond-EOS on the first iteration, followed by a linear read on the second iteration.
Change-Id: I16fc9e42ee9f8e4cb120ab41364cae6dd4544634
related-to-bug: 2338792
2010-03-18 13:37:39 -07:00
Kenny Root
ed531b37e5 Merge "Fix minSdkVersion scanning to not throw warnings" 2010-03-18 13:15:33 -07:00
Daniel Lehmann
7e25f5cbfb Make the VCardEntry more robust against badly behaving resolvers. Additionally make the ImportTestResolver return the right result
Bug:2521447

Change-Id: I39e3e686b1fd75f5e633a467f6ccb736751355ed
2010-03-18 12:56:48 -07:00
Adam Powell
2944190f5d Documentation fix
Better documentation for the screenLayout option in the Activity
configChanges attribute.

Change-Id: I9e86b08f1b305118478e3d7f134cb497839bb77b
2010-03-18 12:25:55 -07:00
Kenny Root
1741cd4904 Fix minSdkVersion scanning to not throw warnings
For the UTF8/UTF16 switch code, we needed to know what was the
minSdkVersion specified as early as possible. Unfortunately, this threw
warnings when the SDK was compiling since we always set this field in
the Bundle.

This splits out the field used by the initial AndroidManifest.xml scan
to a separate one that we won't attempt to re-insert into the
AndroidManifest.xml  This also switches the logic to better reflect the
preference of UTF-8 over UTF-16; previously UTF-16 was the default.

Change-Id: Ia81f6b21047043ebb711eb24c2c3718534979ef6
2010-03-18 12:12:11 -07:00
jsh
ee63e47940 Update signal strength mapping for GSM/UMTS.
b/2480975

New mapping:
4 bars: >= 12 asu
3 bars: >= 8 asu
2 bars: >= 5 asu
1 bar:  >= 3 asu
0 bars: <= 2 asu

Change-Id: I73dcc8e490d039ec392f027fc96f95dc951ca793
2010-03-18 12:05:19 -07:00
Jean-Michel Trivi
b50ebe3a15 Merge "Update TTS plugin interface to receive engine configuration data coming from the plugin helper code (handling config and preferences)." 2010-03-18 11:59:32 -07:00
Jean-Michel Trivi
900e0d0954 Update TTS plugin interface to receive engine configuration data
coming from the plugin helper code (handling config and preferences).

Change-Id: Ibc1d229463f11f8977552d74d1fd2aa6a6cab88e
2010-03-18 11:52:41 -07:00
Dianne Hackborn
eccb394c08 Merge "Fix problem with calling onConfigurationChanged() too much." 2010-03-18 11:46:14 -07:00
Irfan Sheriff
1a543010e5 Dont disable AP for tether failures
Bug: 2524514
Change-Id: I8a59e717c5b36b83adbed43184fd45d7cbfedd9a
2010-03-18 11:44:48 -07:00
Vasu Nori
cc17ed29e0 ignore not-so-useful warning messages from sqlite logging func
bug:2524260
Change-Id: Ie397c0df9b63414205bbf8ea7ae9d1498f198524
2010-03-18 11:41:25 -07:00
Dianne Hackborn
ae07816a3f Fix problem with calling onConfigurationChanged() too much.
We now return the initial configuration for a window when it is
added to the window manager.  The view hierarchy would check to
see if it was different than the last one, and not dispatch a
configuration change down itself if not.  However, when
ActivityThread received it, it would always dispatch a config
change even if it is the same.

The solution is to only do this in ActivityThread if the config
is actually different; otherwise, we continue to rely only on
the activity manager explicitly telling us when to do a config
change.

Change-Id: I8a6e3565776dd2723c8b791496bb6041463d4b67
2010-03-18 11:38:30 -07:00
Robert Greenwalt
2fbc10f355 Merge "Fix bug in airplane mode." 2010-03-18 11:09:11 -07:00
Andreas Huber
4ce4febe72 Merge "Either the software mp3 decoder's CRC computation is wrong (and PV never enabled it before) or there are files in the wild with wrong CRCs that nonetheless decode correctly, either way, opt out of CRC verification." 2010-03-18 10:55:12 -07:00
Andreas Huber
43595bc268 Either the software mp3 decoder's CRC computation is wrong (and PV never enabled it before) or there are files in the wild with wrong CRCs that nonetheless decode correctly, either way, opt out of CRC verification.
Change-Id: I1d9bd78f4efb53faa82c67110cf61f78122e40f8
related-to-bug: 2511393
2010-03-18 10:51:09 -07:00
Kenny Root
ea3e8e0758 Merge "Import revised translations" 2010-03-18 10:25:37 -07:00
Leon Scroggins
faf535ea36 Merge "Pass selection data with the message to open the keyboard." 2010-03-18 10:20:35 -07:00
Eric Laurent
cbf1840f4c Merge "Issue 2416481: Support Voice Dialer over BT SCO." 2010-03-18 10:01:10 -07:00