Commit Graph

6569 Commits

Author SHA1 Message Date
Mathias Agopian
9ec430adae fix [2152536] ANR in browser
A window is created and the browser is about to render into it the
very first time, at that point it does an IPC to SF to request a new
buffer. Meanwhile, the window manager removes that window from the
list and the shared memory block it uses is marked as invalid.
However, at that point, another window is created and is given the
same index (that just go freed), but a different identity and resets
the "invalid" bit in the shared block. When we go back to the buffer
allocation code, we're stuck because the surface we're allocating for
is gone and we don't detect it's invalid because the invalid bit has
been reset.

It is not sufficient to check for the invalid bit, I should
also check that identities match.
2009-10-06 19:00:57 -07:00
Eric Laurent
f5e868baf9 Fix issue 2139634: DTMF tones on Sholes popping, hissing (audio latency too high).
This change is a complement to the main fix in kernel driver for the same issue (partner change #1250).
It removes clicks sometimes heard after the end of the tones while audio flinger is sending 0s to the audio output stream.
The problem was that the sleep time between two writes was more than the duration of one audio output stream buffer which could cause some underrun.

Also fixed a recent regression in ToneGenerator that made that the end of previous tone was repeated at the beginning of current one under certain timing circumstances when the maximum tone duration was specified.
2009-10-06 18:59:35 -07:00
Mathias Agopian
cfc7010ef8 temporarily disable the use of glTexImage2D for sw buffers on sholes.
we're going to first cut a build without this change.

Approved by Dr. Hiroshi.
2009-10-06 17:59:43 -07:00
Android (Google) Code Review
ef8646344a Merge changes I430cf57b,I51f02f67,I464f13f3 into eclair
* changes:
  fix [2168528] enable glTexImage2D code path in SF for software-only buffers
  fix [2168531] have software-only gralloc buffer side-step the HAL
  fix [2167050] glTexImage2D code path buggy in SurfaceFlinger
2009-10-06 20:46:37 -04:00
Mathias Agopian
a4b740ed89 fix [2168528] enable glTexImage2D code path in SF for software-only buffers 2009-10-06 17:24:26 -07:00
Android (Google) Code Review
255f3917c6 Merge change I996db8da into eclair
* changes:
  Fix tls crash on startup if more than one RS contexts are created in one process.
2009-10-06 20:18:40 -04:00
Mathias Agopian
b26af23744 fix [2168531] have software-only gralloc buffer side-step the HAL 2009-10-06 17:00:25 -07:00
Mathias Agopian
3330b20303 fix [2167050] glTexImage2D code path buggy in SurfaceFlinger
When EGLImage extension is not available, SurfaceFlinger will fallback to using
glTexImage2D and glTexSubImage2D instead, which requires 50% more memory and an
extra copy. However this code path has never been exercised and had some bugs
which this patch fix.

Mainly the scale factor wasn't computed right when falling back on glDrawElements.
We also fallback to this mode of operation if a buffer doesn't have the adequate
usage bits for EGLImage usage.

This changes only code that is currently not executed. Some refactoring was needed to
keep the change clean. This doesn't change anything functionaly.
2009-10-06 17:00:25 -07:00
Android (Google) Code Review
0ad3f9f400 Merge change I3d6cf8aa into eclair
* changes:
  Fix for bug 2158794. Hide MediaPlayer.invoke() and MediaPlayer.newRequest(), and Fix bad links in ToneGenerator documentation.
2009-10-06 18:34:40 -04:00
Android (Google) Code Review
411922605a Merge change Id8df149c into eclair
* changes:
  Turn some logging back on in ConnectionManager
2009-10-06 17:38:03 -04:00
Android (Google) Code Review
7430c6b798 Merge change If933b13d into eclair
* changes:
  Fix for 2161835: Tweaks to rotary lock screen:
2009-10-06 17:34:17 -04:00
Android (Google) Code Review
56810d6b39 Merge change I516c3191 into eclair
* changes:
  Implement data push from scripts.  Fixes the problem where apps would have to poll to monitor a scripts state. Fix bug in StoreState where state could be overridden by the default unless the script used more than one state.
2009-10-06 17:32:13 -04:00
Android (Google) Code Review
20f89768dc Merge change I547cff66 into eclair
* changes:
  Add zoom functions and sendCommand.
2009-10-06 16:32:44 -04:00
Wu-cheng Li
e6a550d02f Add zoom functions and sendCommand.
b2060030
2009-10-06 13:25:10 -07:00
Android (Google) Code Review
7854a35326 Merge change I5be3d603 into eclair
* changes:
      Make sdk version and code names static finals in PackageParser.     Remove api to set these values.     Remove an unused method in AppSecurityPermissions
2009-10-06 14:36:43 -04:00
Android (Google) Code Review
5923f6f880 Merge change I6a0b14bd into eclair
* changes:
  Make VCardComposer create the instance for mHandlerList.
2009-10-06 13:48:11 -04:00
Android (Google) Code Review
1812987a10 Merge change I8333dcc4 into eclair
* changes:
  New section header and divider assets.
2009-10-06 13:14:45 -04:00
Android (Google) Code Review
b68a3424fc Merge change I76d7ba61 into eclair
* changes:
  Pixel tweak search dialog to match search widget
2009-10-06 12:49:51 -04:00
Android (Google) Code Review
e336514381 Merge change I24895c35 into eclair
* changes:
  Reimplement all the method of Paint for layoutlib
2009-10-06 12:49:01 -04:00
Android (Google) Code Review
b3e21a7c93 Merge change I5b650a61 into eclair
* changes:
  dumpstate: Emit a logcat message at beginning and end of execution.
2009-10-06 00:09:07 -04:00
Android (Google) Code Review
b608f6c350 Merge change I61aac7b3 into eclair
* changes:
  Add PERIOD char to CDMA address sugar list.
2009-10-05 22:19:46 -04:00
Android (Google) Code Review
8657c4d319 Merge change I4db3a5b3 into eclair
* changes:
  fix a javadoc build breakage
2009-10-05 20:22:27 -04:00
Android (Google) Code Review
0718996fe0 Merge change I34f51342 into eclair
* changes:
  Fix the layoutlib test to run from adt-tests.
2009-10-05 18:58:36 -04:00
Android (Google) Code Review
9c3fe94133 Merge change I8874a405 into eclair
* changes:
  Refactor class/method names used by layoutlib_create.
2009-10-05 18:37:36 -04:00
Android (Google) Code Review
8ca6c38ceb Merge change I9b771df3 into eclair
* changes:
  Make sure AsyncTask sens a null result to onPostExecute() when cancelled.
2009-10-05 18:28:26 -04:00
Android (Google) Code Review
8bdf7aff38 Merge change I89c40f50 into eclair
* changes:
  fix a javadoc build breakage
2009-10-05 17:23:13 -04:00
Android (Google) Code Review
e00c273cb8 Merge change I8d48149c into eclair
* changes:
  Don't reinflate search bar when dialog is already showing
2009-10-05 16:15:14 -04:00
Android (Google) Code Review
e3ba5c140e Merge change Iaca22686 into eclair
* changes:
  Work on issue #2163789: Way too much logging
2009-10-04 18:35:24 -04:00
Android (Google) Code Review
5053fcd11e Merge change Iee638412 into eclair
* changes:
  Fix issue #2161726: Car dock app bypasses setup wizard
2009-10-04 18:19:29 -04:00
Scott Main
b5e834ca25 am e9e1cdd5: decode the search string before putting it into the search control. this fixes a safari-only bug in which encoded chars were inserted into the search string.
Merge commit 'e9e1cdd556b40a04637b7de3d839b2a596df47e3' into eclair

* commit 'e9e1cdd556b40a04637b7de3d839b2a596df47e3':
  decode the search string before putting it into the search control.
2009-10-04 15:05:43 -07:00
Android (Google) Code Review
0b7b65da2f Merge change I0c4cec7e into eclair
* changes:
  Attempt to fix [2152536] ANR in browser
2009-10-02 23:35:12 -04:00
Android (Google) Code Review
09fa0b2d73 Merge change I7f047786 into eclair
* changes:
  Update the SimpleMesh API to support new attribute types.  Also spilt add/set commands to avoid permutation explosion.
2009-10-02 21:40:07 -04:00
Mathias Agopian
0b3ad46a26 Attempt to fix [2152536] ANR in browser
The ANR is caused by SurfaceFlinger waiting for buffers of a removed surface to become availlable.
When it is removed from the current list, a Surface is marked as NO_INIT, which causes SF to return
immediately in the above case. For some reason, the surface here wasn't marked as NO_INIT.

This change makes the code more robust by always (irregadless or errors) setting the NO_INIT status
in all code paths where a surface is removed from the list.

Additionaly added more information in the logs, should this happen again.
2009-10-02 18:12:30 -07:00
Android (Google) Code Review
b3e869c7a8 Merge change Ic0d82ef1 into eclair
* changes:
  [Issue 2161366] Changing capitalization of string "Via" to "via"
2009-10-02 19:17:30 -04:00
Android (Google) Code Review
c91af0c12e Merge change Iaf686344 into eclair
* changes:
  dumpstate: Display mtime instead of ctime
2009-10-02 16:34:02 -04:00
Android (Google) Code Review
4d15bec90d Merge change I80ce8833 into eclair
* changes:
  Icons again
2009-10-02 03:51:19 -04:00
Android (Google) Code Review
d835114b97 Merge change I3ca8fb69 into eclair
* changes:
  Import revised translations.  DO NOT MERGE
2009-10-02 00:47:08 -04:00
Android (Google) Code Review
e659abef6d Merge change I5dbd1994 into eclair
* changes:
  Fix rfcomm socket connect return code.
2009-10-01 22:46:23 -04:00
Android (Google) Code Review
c999d3f235 Merge change I15b0ebb9 into eclair
* changes:
  a simple test app for gralloc
2009-10-01 20:25:45 -04:00
Mathias Agopian
7460160b80 a simple test app for gralloc 2009-10-01 17:23:05 -07:00
Android (Google) Code Review
2a307faa64 Merge change I9e384ddd into eclair
* changes:
  Add a test pattern as rollo's icon
2009-10-01 19:49:27 -04:00
Marco Nelissen
77855f7a29 am 9b150b74: Close the cursor before assigning a new one to the same variable.
Merge commit '9b150b74573ce506abd00c692fb42f46980441a3' into eclair-plus-aosp

* commit '9b150b74573ce506abd00c692fb42f46980441a3':
  Close the cursor before assigning a new one to the same variable.
2009-10-01 08:36:00 -07:00
Daniel Sandler
29dd397239 am 87b94b13: Merge change I6e01fa52 into eclair
Merge commit '87b94b13ea8ad708d079ddfafe4801c12c38e57a' into eclair-plus-aosp

* commit '87b94b13ea8ad708d079ddfafe4801c12c38e57a':
  Remove unneeded icon.
2009-10-01 08:10:01 -07:00
Android (Google) Code Review
3431c6cba8 Merge change I6e01fa52 into eclair
* changes:
  Remove unneeded icon.
2009-10-01 11:01:34 -04:00
Michael Chan
ac9dabd315 am 5a463a69: Merge change Ic2a16d4f into eclair
Merge commit '5a463a693cae501f3e65936ea96e1ca1bae5fc3f' into eclair-plus-aosp

* commit '5a463a693cae501f3e65936ea96e1ca1bae5fc3f':
  b/2148252 Fix emulator
2009-10-01 08:00:16 -07:00
Android (Google) Code Review
00dcab7c05 Merge change Ic2a16d4f into eclair
* changes:
  b/2148252 Fix emulator
2009-10-01 10:52:01 -04:00
Mike Reed
ccc70b5842 am bbed0d68: hide setGammaForText, which is only used for calibrating new devices
Merge commit 'bbed0d68c815446400193bdc8b16fbf73e1ee664' into eclair-plus-aosp

* commit 'bbed0d68c815446400193bdc8b16fbf73e1ee664':
  hide setGammaForText, which is only used for calibrating new devices
2009-10-01 06:42:33 -07:00
Jeff Sharkey
855652f2c4 am c00099ef: Change intent flags for launching FastTrack.
Merge commit 'c00099ef62fc496429d0a06e580b600f61304f9c' into eclair-plus-aosp

* commit 'c00099ef62fc496429d0a06e580b600f61304f9c':
  Change intent flags for launching FastTrack.
2009-10-01 05:44:33 -07:00
Mathias Agopian
5db124cb8b am 271cfe85: Merge change Ia8826d67 into eclair
Merge commit '271cfe85ccfa6d94008dcebb3b97108ca325fe59' into eclair-plus-aosp

* commit '271cfe85ccfa6d94008dcebb3b97108ca325fe59':
  improve boot animation a bit
2009-10-01 03:22:36 -07:00
Android (Google) Code Review
3a6e128828 Merge change Ia8826d67 into eclair
* changes:
  improve boot animation a bit
2009-10-01 06:16:25 -04:00