OSDN Git Service

android-x86/frameworks-base.git
14 years agoMerge change I5e482bbc into eclair
Android (Google) Code Review [Fri, 9 Oct 2009 23:07:12 +0000 (19:07 -0400)]
Merge change I5e482bbc into eclair

* changes:
  Add new RenderScript sample: ImageProcessing.

14 years agoAdd new RenderScript sample: ImageProcessing.
Romain Guy [Fri, 9 Oct 2009 23:05:25 +0000 (16:05 -0700)]
Add new RenderScript sample: ImageProcessing.

Change-Id: I5e482bbc34911c940a3a74258f8f8549b1939bc4

14 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Fri, 9 Oct 2009 22:33:08 +0000 (15:33 -0700)]
Import revised translations.  DO NOT MERGE

Approver: jerryw

14 years agoMake PhoneStateListeners not call TelephonyManager
Robert Greenwalt [Fri, 9 Oct 2009 04:15:52 +0000 (21:15 -0700)]
Make PhoneStateListeners not call TelephonyManager

Since the StatusBarPolicy is run in the System Process and shouldn't therefore call into
the Telephony process we decided to make sure all the needed info was passed along with the
original notifications.

bug: 2173053

14 years agoSetting WebCore cache limit depending on the memory class.
Grace Kloba [Fri, 9 Oct 2009 03:48:09 +0000 (20:48 -0700)]
Setting WebCore cache limit depending on the memory class.

Fix http://b/issue?id=2176656

14 years agoMerge change Iee649a81 into eclair
Android (Google) Code Review [Fri, 9 Oct 2009 03:19:03 +0000 (23:19 -0400)]
Merge change Iee649a81 into eclair

* changes:
  Add LAST_KMSG_KB variable, used to tune the size of /proc/last_kmsg uploads. See bug 2177046.

14 years agoAdd LAST_KMSG_KB variable, used to tune the size of /proc/last_kmsg uploads.
Dan Egnor [Fri, 9 Oct 2009 02:51:51 +0000 (19:51 -0700)]
Add LAST_KMSG_KB variable, used to tune the size of /proc/last_kmsg uploads.
See bug 2177046.

14 years agoMerge change I9485aec1 into eclair
Android (Google) Code Review [Fri, 9 Oct 2009 02:04:36 +0000 (22:04 -0400)]
Merge change I9485aec1 into eclair

* changes:
  Fix for 2177367: Reduce duration of vibrate in RotaryLockScreen

14 years agoFix for 2177367: Reduce duration of vibrate in RotaryLockScreen
Jim Miller [Fri, 9 Oct 2009 01:49:53 +0000 (18:49 -0700)]
Fix for 2177367: Reduce duration of vibrate in RotaryLockScreen

BUG=2177367

14 years agoFix issue #2176944: Need API so browser, others can determine memory size of device
Dianne Hackborn [Fri, 9 Oct 2009 00:55:49 +0000 (17:55 -0700)]
Fix issue #2176944: Need API so browser, others can determine memory size of device

Change-Id: I65d91cdb70df91b67fe84297dd6a94d26a785131

14 years agoMerge change I490e01ba into eclair
Android (Google) Code Review [Fri, 9 Oct 2009 01:38:39 +0000 (21:38 -0400)]
Merge change I490e01ba into eclair

* changes:
  Fix issue #2174566: HOT STABILITY: NPE in activity manager

14 years agoFix issue #2177262: Improve animations
Dianne Hackborn [Fri, 9 Oct 2009 01:34:57 +0000 (18:34 -0700)]
Fix issue #2177262: Improve animations

Slower is better.

Change-Id: Id609f253e43814b4c7689ed9b076ef75f4e345a6

14 years agoMerge change I88c6e267 into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 23:52:35 +0000 (19:52 -0400)]
Merge change I88c6e267 into eclair

* changes:
  Fix issue #2175693: Add vmallocinfo to dumpstate

14 years agoRemove STOPSHIP BT logging.
Nick Pelly [Thu, 8 Oct 2009 22:54:41 +0000 (00:54 +0200)]
Remove STOPSHIP BT logging.

Do not merge.

Change-Id: I428bc0fc67030f24112f2e9c865824dfaea4897d
DrNo: eastham
Bug: 2089423
Joke: Why was Tigger looking in the toilet? To find Pooh

14 years agoBT API security audit: fix a couple of permission mistakes.
Nick Pelly [Thu, 8 Oct 2009 21:27:28 +0000 (23:27 +0200)]
BT API security audit: fix a couple of permission mistakes.

Make functions that are meant to be BLUETOOTH_ADMIN really
BLUETOOTH_ADMIN.

Add some missing javadoc for permissions.

The only functional change here is the BLUETOOTH->BLUETOOTH_ADMIN
changes. This is super safe because every system app that uses BT
has both permissions.

Change-Id: Iddc61f9fd5d81fe0171358665a0fa52f2fa02871
DrNo: eastham
Joke: How do you catch a rabbit? Hide behind a tree and make carrott noises.

14 years agoFix issue #2175693: Add vmallocinfo to dumpstate
Dianne Hackborn [Thu, 8 Oct 2009 17:49:12 +0000 (10:49 -0700)]
Fix issue #2175693: Add vmallocinfo to dumpstate

Change-Id: I88c6e2679919e56f581fcf79dbe683393dd8ce27

14 years agoFix issue #2174566: HOT STABILITY: NPE in activity manager
Dianne Hackborn [Thu, 8 Oct 2009 23:22:03 +0000 (16:22 -0700)]
Fix issue #2174566: HOT STABILITY: NPE in activity manager

- Don't crash if the service's app process doesn't have a thread (this
  can happen if we are currently starting the process and then try to
  start the service again).
- Be more robust about deciding to start a service's process: try each
  time it is started; the startProcess call will take care of ignoring
  it if the process is already started.
- Fix some issues where we would leave dead processes on the low memory
  list.

Change-Id: I490e01ba7b45adc191bab7ace377b6873e284897

14 years agoMerge change Ib96df854 into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 23:10:42 +0000 (19:10 -0400)]
Merge change Ib96df854 into eclair

* changes:
  add a way to easily catch and log GL errors (compile time flag)

14 years agoadd a way to easily catch and log GL errors (compile time flag)
Mathias Agopian [Thu, 8 Oct 2009 22:58:11 +0000 (15:58 -0700)]
add a way to easily catch and log GL errors (compile time flag)

14 years agoam 24c8645a: (-s ours) Import revised translations. DO NOT MERGE
Eric Fischer [Thu, 8 Oct 2009 22:03:24 +0000 (15:03 -0700)]
am 24c8645a: (-s ours) Import revised translations.  DO NOT MERGE

Merge commit '24c8645a995f58885fefcaade0681dd459452deb' into eclair

* commit '24c8645a995f58885fefcaade0681dd459452deb':
  Import revised translations.  DO NOT MERGE

14 years agoam ac62c84a: (-s ours) DO NOT MERGE merge from donut-gms
Jean-Baptiste Queru [Thu, 8 Oct 2009 22:03:15 +0000 (15:03 -0700)]
am ac62c84a: (-s ours) DO NOT MERGE merge from donut-gms

Merge commit 'ac62c84a321e2720ab99e37724aba0b6406f39a6' into eclair

* commit 'ac62c84a321e2720ab99e37724aba0b6406f39a6':
  Import revised translations.  DO NOT MERGE

14 years agoMerge change Iee227ace into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 21:58:11 +0000 (17:58 -0400)]
Merge change Iee227ace into eclair

* changes:
  GPS: Fix problem with SUPL when SUPL APN is already active.

14 years agoMerge change I80a6a229 into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 21:36:18 +0000 (17:36 -0400)]
Merge change I80a6a229 into eclair

* changes:
  Fix issue 2174002: After rejecting Call when device ringtone is mute and playing music, audio is not transfered to BT device.

14 years agoGPS: Fix problem with SUPL when SUPL APN is already active.
Mike Lockwood [Thu, 8 Oct 2009 19:45:03 +0000 (15:45 -0400)]
GPS: Fix problem with SUPL when SUPL APN is already active.

Use ConnectivityManager.CONNECTIVITY_ACTION broadcast in LocationManagerService
to notify GPS when SUPL connection is ready instead of TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED,
which is not sent in all cases.
Expand LocationProvider.updateNetworkState() to include NetworkInfo object.

Fixes bug b/2155661

Change-Id: Iee227ace7d536b36cf7973e3e6a8b7a621ce6565
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change Ie5d93b7e into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 20:11:13 +0000 (16:11 -0400)]
Merge change Ie5d93b7e into eclair

* changes:
  Set the Bond State to NONE when we receive a Agent Cancel.

14 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Thu, 8 Oct 2009 19:16:00 +0000 (12:16 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: I70d32c0d002d1ba3d08813c1e8985421fca81790

14 years agoFix issue 2174002: After rejecting Call when device ringtone is mute and playing...
Eric Laurent [Thu, 8 Oct 2009 17:58:19 +0000 (10:58 -0700)]
Fix issue 2174002: After rejecting Call when device ringtone is mute and playing music, audio is not transfered to BT device.

Added a workarouond to request the A2DP output standby directly to audio hardware when the sink is suspended as it seems that the suspend request often fails.

Also take into account resume requests received while a suspend request is pending.

14 years agoControl H icon display in Status bar.
John Wang [Thu, 8 Oct 2009 17:35:27 +0000 (10:35 -0700)]
Control H icon display in Status bar.

Bug 2138275. Add a config setting to control if status bar
should show different icons for UMTS and HSPA connnection.

14 years agoMerge change I95319bde into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 17:53:54 +0000 (13:53 -0400)]
Merge change I95319bde into eclair

* changes:
  Fixes #2175599. Prevents an NPE when AttachInfo is null.

14 years agoMerge change Ib977f2bd into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 17:49:39 +0000 (13:49 -0400)]
Merge change Ib977f2bd into eclair

* changes:
  Make vCard import Photo from vCard file :(

14 years agoFixes #2175599. Prevents an NPE when AttachInfo is null.
Romain Guy [Thu, 8 Oct 2009 17:48:54 +0000 (10:48 -0700)]
Fixes #2175599. Prevents an NPE when AttachInfo is null.

This bug was introduced by a change made to query the window's opacity.

Approved by mcleron.

Change-Id: I95319bde72b0faade095bbbbb317e84b9be8efa8

14 years agoDO NOT MERGE merge from donut-gms
Jean-Baptiste Queru [Thu, 8 Oct 2009 17:00:40 +0000 (10:00 -0700)]
DO NOT MERGE merge from donut-gms

14 years agoMerge change I50a321c9 into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 16:58:48 +0000 (12:58 -0400)]
Merge change I50a321c9 into eclair

* changes:
  LocationManagerService: Fix race when removing LocationListener

14 years agoMerge change Ib7c34cec into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 15:11:50 +0000 (11:11 -0400)]
Merge change Ib7c34cec into eclair

* changes:
  dumpstate: 'RAMCONSOLE' -> 'LAST KMSG'

14 years agodumpstate: 'RAMCONSOLE' -> 'LAST KMSG'
San Mehat [Thu, 8 Oct 2009 00:03:00 +0000 (17:03 -0700)]
dumpstate: 'RAMCONSOLE' -> 'LAST KMSG'

Signed-off-by: San Mehat <san@google.com>
14 years agoLocationManagerService: Fix race when removing LocationListener
Joshua Bartel [Mon, 5 Oct 2009 16:44:46 +0000 (12:44 -0400)]
LocationManagerService: Fix race when removing LocationListener

In LocationManagerService if a LocationListener is removed while it has
a pending broadcast the wake lock held while pending broadcasts are
outstanding do not get cleared properly.

There are 2 cases of this race that are fixed:

1. locationCallbackFinished was changed to check the mReceivers HashMap
directly instead of calling getReceiver.  getReceiver would add the
ILocationListener as a new Receiver if it did not exist which caused
a receiver that was removed when it still had a broadcast pending to
be added back in a bad state when the pending broadcast completed.

2. removeUpdatesLocked was changed to decrement the pending broadcasts
when a Receiver is removed that has pending broadcasts.

Fixes bug b/2163871

Change-Id: I50a321c9b3359bf69845236dc4a4b9e38e847335
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoSet the Bond State to NONE when we receive a Agent Cancel.
Jaikumar Ganesh [Thu, 8 Oct 2009 09:27:52 +0000 (02:27 -0700)]
Set the Bond State to NONE when we receive a Agent Cancel.

Sometimes during OPP, we can get stuck in Pairing state when the remote
end, cancels the Pairing process - we will just get onAgentCancel
and thus not set the Pairing state properly.

DrNo: Eastham
Bug:2174874

14 years agoMerge change I29232f2a into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 08:49:23 +0000 (04:49 -0400)]
Merge change I29232f2a into eclair

* changes:
  Only dismiss search dialog after launching intent.

14 years agoMerge change Iea48361d into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 07:50:07 +0000 (03:50 -0400)]
Merge change Iea48361d into eclair

* changes:
  fix an NPE on a race condition that occurs when unbinding from an authenticator at the samer time that its process dies: bug 2171204

14 years agoMerge change Id8c9cb2f into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 04:58:46 +0000 (00:58 -0400)]
Merge change Id8c9cb2f into eclair

* changes:
  More fix #2163209: alarm clock rings but is hidden behind lock screen

14 years agoMore fix #2163209: alarm clock rings but is hidden behind lock screen
Dianne Hackborn [Thu, 8 Oct 2009 04:26:57 +0000 (21:26 -0700)]
More fix #2163209: alarm clock rings but is hidden behind lock screen

There was another way we could ignore the application windows flags
while the lock screen was displayed.  This is the infrastructure to
deal with that.

Change-Id: Id8c9cb2f7081df6757ccb797a7cde618e82f7b38

14 years agoMerge change I52479480 into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 04:07:05 +0000 (00:07 -0400)]
Merge change I52479480 into eclair

* changes:
  Retry overlay create if it fails. Bug 2153980.

14 years agoRetry overlay create if it fails. Bug 2153980.
Dave Sparks [Thu, 8 Oct 2009 02:18:20 +0000 (19:18 -0700)]
Retry overlay create if it fails. Bug 2153980.

Occasionally we see references to the overlay hanging around long
enough to cause problems in applications when they tried to destroy
the overlay and re-create it. This patch causes the camera HAL to
retry the overlay creation call if it fails every 20ms up to 50
times before it gives up.

14 years agoMerge change Ibd2197fb into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 01:18:01 +0000 (21:18 -0400)]
Merge change Ibd2197fb into eclair

* changes:
  Add script to script call support.  Add exception to catch out of bound index data when added to TriangleMeshBuilder.

14 years agoam 3161795b: when logging free space on /data, log /system and /cache as well
Doug Zongker [Thu, 8 Oct 2009 01:17:06 +0000 (18:17 -0700)]
am 3161795b: when logging free space on /data, log /system and /cache as well

Merge commit '3161795b2353171bb0636fb3ea6dab7dec80a4f4' into eclair

* commit '3161795b2353171bb0636fb3ea6dab7dec80a4f4':
  when logging free space on /data, log /system and /cache as well

14 years agoAdd script to script call support. Add exception to catch out of bound index data...
Jason Sams [Thu, 8 Oct 2009 01:14:01 +0000 (18:14 -0700)]
Add script to script call support.  Add exception to catch out of bound index data when added to TriangleMeshBuilder.

14 years agoMerge change I46b2df15 into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 01:09:49 +0000 (21:09 -0400)]
Merge change I46b2df15 into eclair

* changes:
  fix [2164183] sometimes device just wants to stay asleep

14 years agoMerge change Id23b791a into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 01:07:05 +0000 (21:07 -0400)]
Merge change Id23b791a into eclair

* changes:
  fix [2170283] SurfaceFlinger crashes on OOM.

14 years agofix [2170283] SurfaceFlinger crashes on OOM.
Mathias Agopian [Tue, 6 Oct 2009 22:58:44 +0000 (15:58 -0700)]
fix [2170283] SurfaceFlinger crashes on OOM.

when running out of memory, a null handle is returned but the error code may not be set.
In that case we need to return NO_MEMORY instead of NO_ERROR, so that the calling code
won't try to dereference the null pointer.

14 years agofix [2164183] sometimes device just wants to stay asleep
Mathias Agopian [Thu, 8 Oct 2009 00:58:29 +0000 (17:58 -0700)]
fix [2164183] sometimes device just wants to stay asleep

When switching rapidily orientation back and forth, surfaces end-up
acquiring the freeze-lock when the first orientation change happens,
but never release it because by the time the 2nd orientation change
comes in, the surface size is back to its original size and
doesn't appear to have resized.

we now always release the freeze-lock when we receive a buffer of the
expected size.

14 years agoMake vCard import Photo from vCard file :(
Daisuke Miyakawa [Thu, 8 Oct 2009 00:25:50 +0000 (17:25 -0700)]
Make vCard import Photo from vCard file :(

Internal issue number: 2174296

14 years agoFix issue #2171460: Turn off background blurring of power dialog
Dianne Hackborn [Wed, 7 Oct 2009 23:13:39 +0000 (16:13 -0700)]
Fix issue #2171460: Turn off background blurring of power dialog

Change-Id: I521629e0ccd0116acf149eeb7476c8474fc7c74a

14 years agoMerge change Ie05f07df into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 00:25:08 +0000 (20:25 -0400)]
Merge change Ie05f07df into eclair

* changes:
  fix [2170319] gmail bulk operation checkbox latency on passion

14 years agowhen logging free space on /data, log /system and /cache as well
Doug Zongker [Wed, 7 Oct 2009 22:14:03 +0000 (15:14 -0700)]
when logging free space on /data, log /system and /cache as well

Report space free on system and cache so we can estimate bad block
statistics for devices in the field.

14 years agoMerge change I7a57637b into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 23:59:07 +0000 (19:59 -0400)]
Merge change I7a57637b into eclair

* changes:
  [Issue 2165234] Removing nickname clusters: John/Jack and Patrick/Rick.

14 years agofix [2170319] gmail bulk operation checkbox latency on passion
Mathias Agopian [Wed, 7 Oct 2009 23:44:10 +0000 (16:44 -0700)]
fix [2170319] gmail bulk operation checkbox latency on passion

This also fixes [2152536] ANR in browser

When SF is enqueuing buffers faster than SF dequeues them.
The update flag in SF is not counted and under some situations SF will only
dequeue the first buffer. The state at this point is not technically
corrupted, it's valid, but just delayed by one buffer.

In the case of the Browser ANR, because the last enqueued buffer was delayed
the resizing of the current buffer couldn't happen.

The system would always fall back onto its feet if anything -else- in
tried to draw, because the "late" buffer would be picked up then.

14 years agofix an NPE on a race condition that occurs when unbinding from an authenticator at...
Fred Quintana [Wed, 7 Oct 2009 23:36:48 +0000 (16:36 -0700)]
fix an NPE on a race condition that occurs when unbinding from an authenticator at the samer time that its process dies: bug 2171204

14 years agoMerge change Ieed8be00 into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 23:26:59 +0000 (19:26 -0400)]
Merge change Ieed8be00 into eclair

* changes:
  Introduce BluetoothAdapter.getDefaultAdapter().

14 years ago[Issue 2165234] Removing nickname clusters: John/Jack and Patrick/Rick.
Dmitri Plotnikov [Wed, 7 Oct 2009 00:57:16 +0000 (17:57 -0700)]
[Issue 2165234] Removing nickname clusters: John/Jack and Patrick/Rick.

Also adding some nicknames from Mike Hearn's list.

Change-Id: I7a57637bbdc267816e5e063fce4d2ac6a3136284

14 years agoIntroduce BluetoothAdapter.getDefaultAdapter().
Nick Pelly [Wed, 7 Oct 2009 22:12:45 +0000 (00:12 +0200)]
Introduce BluetoothAdapter.getDefaultAdapter().

This is the main entry point to the Bluetooth APIs, and returns the default
local Bluetooth adapter.

It replaces context.getSystemService(Context.BLUETOOTH_SERVICE). This was
never in a public SDK release.

DrNo: eastham
Bug: 2158765
Joke: Why can't you play cards in the jungle? Because there's too many cheetas!
Change-Id: Ieed8be009ee5aba621cb69090ee8c8a9c19c840d

14 years agoMerge change Ia4879943 into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 22:04:45 +0000 (18:04 -0400)]
Merge change Ia4879943 into eclair

* changes:
  Encourage developers to connect RFCOMM by UUID instead of Channel.

14 years agoEncourage developers to connect RFCOMM by UUID instead of Channel.
Nick Pelly [Wed, 7 Oct 2009 05:44:03 +0000 (07:44 +0200)]
Encourage developers to connect RFCOMM by UUID instead of Channel.

Hide createRfcommSocket(int channel)
Add createRfcommSocketWithServiceRecord(UUID uuid)

Rename listenUsingRfcomm(String,UUID) -> listenUsingRfcommWithServiceRecord(..)

Now we have a complete API for developers to make peer-peer RFCOMM connections
with hard-coding the limited (30) RFCOMM channels, instead using SDP lookup
of an UUID.

This commit addresses two serious bugs:
- Do not throw IOException on accepting an incoming RFCOMM connection with
  BluetoothSocket. This was a regression from commit 24bb9b8af4ff6915
- Workaround failure of bluez to update SDP cache when channel changes by
  trying to use the same RFCOMM channel on the server every time, instead
  of picking server channels randomly. This is a pretty ugly workaround,
  and we are still trying to fix the caching issue - but with this
  workaround we are at least shippable and apps will work at least until
  they start colliding on the 30 RFCOMM channels.

DrNo: eastham
Bug: 2158900
Joke: What did the digital watch say to his mom? "Look mom no hands."
Change-Id: Ia4879943b83afac06b6f1a3f2391cf1628afce7d

14 years agoImprove drawing cache speed by selecting the correct opacity and keeping a 32 bits
Romain Guy [Wed, 7 Oct 2009 20:38:55 +0000 (13:38 -0700)]
Improve drawing cache speed by selecting the correct opacity and keeping a 32 bits
format when the window is 32 bits.

Change-Id: I46762def67fa7d6a331a75fa8660c6422394ccf2

14 years agoMerge change Ia78b0a2d into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 19:22:50 +0000 (15:22 -0400)]
Merge change Ia78b0a2d into eclair

* changes:
  add (hidden) setHasAlpha() to allow clients like the view's cache to hint that a bitmap is opaque.

14 years agoadd (hidden) setHasAlpha() to allow clients like the view's cache to hint that a...
Mike Reed [Wed, 7 Oct 2009 18:38:05 +0000 (11:38 -0700)]
add (hidden) setHasAlpha() to allow clients like the view's cache to hint that a bitmap is opaque.

Knowing that a 32bit bitmap is opaque is a performance boost for some blits.

14 years agoMerge change I9db1edea into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 18:36:15 +0000 (14:36 -0400)]
Merge change I9db1edea into eclair

* changes:
  Import revised translations.   DO NOT MERGE

14 years agoFix issue #2163654: deadlock, runtime restart
Dianne Hackborn [Wed, 7 Oct 2009 00:18:05 +0000 (17:18 -0700)]
Fix issue #2163654: deadlock, runtime restart

Don't hold a lock when the activity thread is telling the activity manager
to release a provider.

This requires that the activity manager now keep a reference count on the
providers, because without the lock it is possible for activity thread to
call in to request the provider again before it has finished telling
about the release.

Change-Id: I5f912903891f4edae85e28819d4e6f14b8f2e688

14 years agoOnly dismiss search dialog after launching intent.
Bryan Mawhinney [Wed, 7 Oct 2009 12:02:35 +0000 (13:02 +0100)]
Only dismiss search dialog after launching intent.

This fixes an NPE that occurs when launching the intent
tries to access state cleared by onStop.

Bug: 2171752
Change-Id: I29232f2a44d8dfa27b2c79933093c0c8983b2e92

14 years agoMerge change I2c5f1e76 into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 05:55:33 +0000 (01:55 -0400)]
Merge change I2c5f1e76 into eclair

* changes:
  Fix back button handling in ACTV

14 years agochanges from Sync Manager API Review: bug 2164262
Fred Quintana [Wed, 7 Oct 2009 00:05:58 +0000 (17:05 -0700)]
changes from Sync Manager API Review: bug 2164262

14 years agoRevert "temporarily disable the use of glTexImage2D for sw buffers on sholes."
Mathias Agopian [Wed, 7 Oct 2009 05:23:23 +0000 (22:23 -0700)]
Revert "temporarily disable the use of glTexImage2D for sw buffers on sholes."

This reverts commit c131c5671965b69b0dee3e4afa3b3dd5e3c0c405.

Approved by Hiroshi

14 years agoMerge change I3429f77a into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 02:35:27 +0000 (22:35 -0400)]
Merge change I3429f77a into eclair

* changes:
  Suppress flaky test HeapTest#testOomeLarge.

14 years agoSuppress flaky test HeapTest#testOomeLarge.
Brett Chabot [Wed, 7 Oct 2009 02:13:31 +0000 (19:13 -0700)]
Suppress flaky test HeapTest#testOomeLarge.

BUG 2170975

14 years agoMerge change I4961c959 into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 02:10:17 +0000 (22:10 -0400)]
Merge change I4961c959 into eclair

* changes:
  fix [2152536] ANR in browser

14 years agofix [2152536] ANR in browser
Mathias Agopian [Wed, 7 Oct 2009 02:00:57 +0000 (19:00 -0700)]
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.

14 years agoFix issue 2139634: DTMF tones on Sholes popping, hissing (audio latency too high).
Eric Laurent [Tue, 6 Oct 2009 03:29:18 +0000 (20:29 -0700)]
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.

14 years agoFix failing unit test; the test was using a deprecated API making it fail on WVGA...
Romain Guy [Wed, 7 Oct 2009 01:38:27 +0000 (18:38 -0700)]
Fix failing unit test; the test was using a deprecated API making it fail on WVGA devices.

Change-Id: I407c7baa5606aaee875f51d6e96ce8a0117fc375

14 years agotemporarily disable the use of glTexImage2D for sw buffers on sholes.
Mathias Agopian [Wed, 7 Oct 2009 00:59:43 +0000 (17:59 -0700)]
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.

14 years agoMerge changes I430cf57b,I51f02f67,I464f13f3 into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 00:46:37 +0000 (20:46 -0400)]
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

14 years agofix [2168528] enable glTexImage2D code path in SF for software-only buffers
Mathias Agopian [Tue, 6 Oct 2009 01:20:39 +0000 (18:20 -0700)]
fix [2168528] enable glTexImage2D code path in SF for software-only buffers

14 years agoMerge change I996db8da into eclair
Android (Google) Code Review [Wed, 7 Oct 2009 00:18:40 +0000 (20:18 -0400)]
Merge change I996db8da into eclair

* changes:
  Fix tls crash on startup if more than one RS contexts are created in one process.

14 years agoFix tls crash on startup if more than one RS contexts are created in one process.
Jason Sams [Wed, 7 Oct 2009 00:16:55 +0000 (17:16 -0700)]
Fix tls crash on startup if more than one RS contexts are created in one process.

14 years agofix [2168531] have software-only gralloc buffer side-step the HAL
Mathias Agopian [Tue, 6 Oct 2009 01:19:57 +0000 (18:19 -0700)]
fix [2168531] have software-only gralloc buffer side-step the HAL

14 years agofix [2167050] glTexImage2D code path buggy in SurfaceFlinger
Mathias Agopian [Tue, 6 Oct 2009 00:07:12 +0000 (17:07 -0700)]
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.

14 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Tue, 6 Oct 2009 23:51:57 +0000 (16:51 -0700)]
Import revised translations.   DO NOT MERGE

Approver: jerryw

14 years agoMerge change I3d6cf8aa into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 22:34:40 +0000 (18:34 -0400)]
Merge change I3d6cf8aa into eclair

* changes:
  Fix for bug 2158794. Hide MediaPlayer.invoke() and MediaPlayer.newRequest(), and Fix bad links in ToneGenerator documentation.

14 years agolayout lib tests cleanup
Xavier Ducrohet [Tue, 6 Oct 2009 19:04:03 +0000 (12:04 -0700)]
layout lib tests cleanup

- Move test files to their own package for easy binary inclusion
  in adt-test
- fix some tests and remove obsolete ones.

Change-Id: I5b967f29074fdad74073f9b37d903eabe8dc29e6

14 years agoAdd a test to make sure the replaced classes in layoutlib are correct.
Xavier Ducrohet [Tue, 6 Oct 2009 16:58:08 +0000 (09:58 -0700)]
Add a test to make sure the replaced classes in layoutlib are correct.

Change-Id: I9641635153c12e2c0a23583f7d094767533fc683

14 years agoFix for bug 2158794. Hide MediaPlayer.invoke() and MediaPlayer.newRequest(), and...
gwang@google.com [Fri, 2 Oct 2009 23:54:15 +0000 (16:54 -0700)]
Fix for bug 2158794. Hide MediaPlayer.invoke() and MediaPlayer.newRequest(), and Fix bad links in ToneGenerator documentation.

14 years agoMerge change Id8df149c into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 21:38:03 +0000 (17:38 -0400)]
Merge change Id8df149c into eclair

* changes:
  Turn some logging back on in ConnectionManager

14 years agoMerge change If933b13d into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 21:34:17 +0000 (17:34 -0400)]
Merge change If933b13d into eclair

* changes:
  Fix for 2161835: Tweaks to rotary lock screen:

14 years agoMerge change I516c3191 into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 21:32:13 +0000 (17:32 -0400)]
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.

14 years agoTurn some logging back on in ConnectionManager
Robert Greenwalt [Tue, 6 Oct 2009 21:12:53 +0000 (14:12 -0700)]
Turn some logging back on in ConnectionManager

Trimmed a bunch of logging out, but turned it on so we get the critical stuff.

bug: 2168291

14 years agoImplement data push from scripts. Fixes the problem where apps would have to poll...
Jason Sams [Tue, 6 Oct 2009 20:58:47 +0000 (13:58 -0700)]
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.

Change only impacts renderscript and renderscript apps.

14 years agoMerge change I547cff66 into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 20:32:44 +0000 (16:32 -0400)]
Merge change I547cff66 into eclair

* changes:
  Add zoom functions and sendCommand.

14 years agoAdd zoom functions and sendCommand.
Wu-cheng Li [Mon, 28 Sep 2009 23:14:58 +0000 (16:14 -0700)]
Add zoom functions and sendCommand.

b2060030

14 years agofix build breakage
Fred Quintana [Tue, 6 Oct 2009 20:21:23 +0000 (13:21 -0700)]
fix build breakage

14 years agoFix for 2161835: Tweaks to rotary lock screen:
Jim Miller [Mon, 5 Oct 2009 20:00:58 +0000 (13:00 -0700)]
Fix for 2161835: Tweaks to rotary lock screen:

- Make inactive dimples dim.
- When an item is grabbed, make all other dimples dim.

14 years agoFix back button handling in ACTV
Bjorn Bringert [Tue, 6 Oct 2009 08:26:06 +0000 (09:26 +0100)]
Fix back button handling in ACTV

AutoCompleteTextView.onKeyPreIme() used
getKeyDispatcherState().startTracking(event, this) to start tracking
the back button, but didn't update the state of the event
before checking event.isTracking().

Fixes http://b/issue?id=2167168
"AutoCompleteTextView back button handling is broken"

Change-Id: I2c5f1e761872b9e02d85ff6f958fabd558d041a0

14 years ago- hide Entity and all its references
Fred Quintana [Mon, 5 Oct 2009 21:21:12 +0000 (14:21 -0700)]
- hide Entity and all its references
- remove updateEntity and insertEntity, since they are not
  used
- add the RawContacts.Entity class, which is used in lieu of the
  android.content.Entity