OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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

14 years agoMerge change I5be3d603 into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 18:36:43 +0000 (14:36 -0400)]
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

14 years agoMerge change I6a0b14bd into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 17:48:11 +0000 (13:48 -0400)]
Merge change I6a0b14bd into eclair

* changes:
  Make VCardComposer create the instance for mHandlerList.

14 years ago Make sdk version and code names static finals in PackageParser.
Suchi Amalapurapu [Tue, 6 Oct 2009 16:26:09 +0000 (09:26 -0700)]
Make sdk version and code names static finals in PackageParser.
    Remove api to set these values.
    Remove an unused method in AppSecurityPermissions

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

* changes:
  New section header and divider assets.

14 years agoMerge change I76d7ba61 into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 16:49:51 +0000 (12:49 -0400)]
Merge change I76d7ba61 into eclair

* changes:
  Pixel tweak search dialog to match search widget

14 years agoMerge change I24895c35 into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 16:49:01 +0000 (12:49 -0400)]
Merge change I24895c35 into eclair

* changes:
  Reimplement all the method of Paint for layoutlib

14 years agoMake VCardComposer create the instance for mHandlerList.
Daisuke Miyakawa [Tue, 6 Oct 2009 16:25:52 +0000 (09:25 -0700)]
Make VCardComposer create the instance for mHandlerList.

Previously the creation was delayed until addHandler(), which
had been required to be called.

However, after VCardComoser's support toward PBAP stuffs,
the guarantee was not true any more.

So by creating the instance in constructor, we refrain NPE during
finalize() when PBAP uses VCardComposer.

14 years agoMusic visualizer support hack.
Marco Nelissen [Sun, 20 Sep 2009 17:42:13 +0000 (10:42 -0700)]
Music visualizer support hack.
This currently assumes 44k stereo (won't crash on other formats, but won't give the correct results either), and links statically with libspeex to get FFT data, increasing the size of libmedia by about 45kb.

14 years agoNew section header and divider assets.
Evan Millar [Mon, 5 Oct 2009 23:07:15 +0000 (16:07 -0700)]
New section header and divider assets.

triaged bug http://b/issue?id=2153296

Tim Sullivan gave Dr. No approval.

Change-Id: I8333dcc4645529a03805aa76e32a3e9b90be58a7

14 years agoFix docs builds.
Nick Pelly [Tue, 6 Oct 2009 14:10:02 +0000 (16:10 +0200)]
Fix docs builds.

14 years agoProvide an API for apps to use a dynamic RFCOMM channel and SDP record.
Nick Pelly [Sat, 3 Oct 2009 03:34:18 +0000 (20:34 -0700)]
Provide an API for apps to use a dynamic RFCOMM channel and SDP record.

Hide listenUsingRfcommOn(int channel)
Add listenUsingRfcomm(String name, ParcelUuid uuid)

The new API automatically finds a free RFCOMM channel and registers an SDP
record with the given uuid and name. The SDP record is automatically
removed when the socket is closed, or if the application dies.

Apps are prevented from registering SDP records with the uuid of system
Bluetooth profiles, such as A2DP, HFP and OPP.

Apps are prevented from removing SDP records that they did not create. This is
tracked by pid.

TODO: Provide an API for the connecting app to look up an SDP record.

Bug: 2158900
DrNo: eastham
Joke: "What did the dog say to the tree? bark."
Change-Id: Ia92f51c34615a7270a403255ad2b8faa98c4a3f5

14 years agoPixel tweak search dialog to match search widget
Bjorn Bringert [Tue, 6 Oct 2009 09:11:27 +0000 (10:11 +0100)]
Pixel tweak search dialog to match search widget

- Remove one pixel of margin from the left of the voice
  search button icon.
- Move magnifying glass icon one pixel downwards (= remove
  one pixel of padding at the bottom and add one at the top).
- Remove one pixel of margin from the bottom of the button
  backgrounds.
- Remove one pixel of padding from the left of the
  search button background.
- Remove one pixel of padding from the left and add one to
  the right of the voice search button background.

Fixes http://b/issue?id=2160857
"Pixel tweak search layouts to match widget"

Change-Id: I76d7ba6128f13f3d29b03a89e9862df355874e06

14 years agoMerge change I5b650a61 into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 04:09:07 +0000 (00:09 -0400)]
Merge change I5b650a61 into eclair

* changes:
  dumpstate: Emit a logcat message at beginning and end of execution.

14 years agodumpstate: Emit a logcat message at beginning and end of execution.
Mike Lockwood [Tue, 6 Oct 2009 03:23:40 +0000 (23:23 -0400)]
dumpstate: Emit a logcat message at beginning and end of execution.

Since the logcat is not printed until later in the output, this will
make it easier to determine at what point the user pressed the key sequence
to initiate the bugreport, which can be helpful when debugging timing dependent problems.

b/2164183

Change-Id: I5b650a6163c383183ff28e344dac36fab11a2c7b
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change I61aac7b3 into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 02:19:46 +0000 (22:19 -0400)]
Merge change I61aac7b3 into eclair

* changes:
  Add PERIOD char to CDMA address sugar list.

14 years agoReimplement all the method of Paint for layoutlib
Xavier Ducrohet [Tue, 6 Oct 2009 01:49:08 +0000 (18:49 -0700)]
Reimplement all the method of Paint for layoutlib

There were a few missing methods that should have been reimplmented
(because they were native).

Others have been added just to be sure so that we can test whether methods
are missing or not (test coming soon).

Change-Id: I24895c353e38545e9b1abe28d41224fdc78cadb1

14 years agoMerge change I4db3a5b3 into eclair
Android (Google) Code Review [Tue, 6 Oct 2009 00:22:27 +0000 (20:22 -0400)]
Merge change I4db3a5b3 into eclair

* changes:
  fix a javadoc build breakage

14 years agofix a javadoc build breakage
Fred Quintana [Tue, 6 Oct 2009 00:19:03 +0000 (17:19 -0700)]
fix a javadoc build breakage

14 years agoMerge change I34f51342 into eclair
Android (Google) Code Review [Mon, 5 Oct 2009 22:58:36 +0000 (18:58 -0400)]
Merge change I34f51342 into eclair

* changes:
  Fix the layoutlib test to run from adt-tests.

14 years agoFix issue #2166755: BroadcastReceiver trying to return result during a non-ordered...
Dianne Hackborn [Mon, 5 Oct 2009 20:58:17 +0000 (13:58 -0700)]
Fix issue #2166755: BroadcastReceiver trying to return result during a non-ordered broadcast

Tell the broadcast receiver whether it is getting an initial sticky value,
so it will be quiet about attempts to do ordered broadcast stuff.

Note that the original bug being reported was not actually a crash, just
an error log.  So all we are doing here is making the log quieter.

Change-Id: Iaf1b718d82093ec1197142410a64feff47eb3859

14 years agoMerge change I8874a405 into eclair
Android (Google) Code Review [Mon, 5 Oct 2009 22:37:36 +0000 (18:37 -0400)]
Merge change I8874a405 into eclair

* changes:
  Refactor class/method names used by layoutlib_create.

14 years agoFix the layoutlib test to run from adt-tests.
Xavier Ducrohet [Mon, 5 Oct 2009 22:28:33 +0000 (15:28 -0700)]
Fix the layoutlib test to run from adt-tests.

Change-Id: I34f513429593dce9f781ed8a08c4664a5d6f9aa8

14 years agoMerge change I9b771df3 into eclair
Android (Google) Code Review [Mon, 5 Oct 2009 22:28:26 +0000 (18:28 -0400)]
Merge change I9b771df3 into eclair

* changes:
  Make sure AsyncTask sens a null result to onPostExecute() when cancelled.

14 years agoMake sure AsyncTask sens a null result to onPostExecute() when cancelled.
Romain Guy [Mon, 5 Oct 2009 21:48:04 +0000 (14:48 -0700)]
Make sure AsyncTask sens a null result to onPostExecute() when cancelled.

This is in accordance to the documentation. This bug was approved by hackbod.
The change is safe and is a single line of code.

Change-Id: I9b771df3ae2aa4f496d15e6c43b677f3245539ac

14 years agoMerge change I89c40f50 into eclair
Android (Google) Code Review [Mon, 5 Oct 2009 21:23:13 +0000 (17:23 -0400)]
Merge change I89c40f50 into eclair

* changes:
  fix a javadoc build breakage

14 years agofix a javadoc build breakage
Fred Quintana [Mon, 5 Oct 2009 21:21:53 +0000 (14:21 -0700)]
fix a javadoc build breakage

14 years agoRefactor class/method names used by layoutlib_create.
Xavier Ducrohet [Mon, 5 Oct 2009 21:12:04 +0000 (14:12 -0700)]
Refactor class/method names used by layoutlib_create.

Information about classes and methods that are replaced, renamed, removed
into CreateInfo, so that it can be used by the tests.

Change-Id: I8874a40503249416621aa90b2ca02dcaf30ecd57

14 years agoMerge change I8d48149c into eclair
Android (Google) Code Review [Mon, 5 Oct 2009 20:15:14 +0000 (16:15 -0400)]
Merge change I8d48149c into eclair

* changes:
  Don't reinflate search bar when dialog is already showing

14 years agoDon't reinflate search bar when dialog is already showing
Bjorn Bringert [Mon, 5 Oct 2009 20:00:53 +0000 (21:00 +0100)]
Don't reinflate search bar when dialog is already showing

Change https://android-git.corp.google.com/g/27729 started reinflating
the entire search bar every time the search source was changed, to get
around problems with bad state in AutoCompleteTextView
(http://b/issue?id=2132686). This had some side-effects if the
search dialog was already visible, as it is when selecting a
source in "More results" or when presing the search key to go to
QSB from in-app search.

This change changes the reinflation to only happen if the dialog is
not already showing.

Fixes:

http://b/issue?id=2166640
"After selecting More results from suggestions, the search box is no longer visible."

http://b/issue?id=2166675
"Calling QSB with the hardware key does not place focus in the search tab."

http://b/issue?id=2166712
"back key has unexpected behaviour in QSB after selecting "More results" from suggestions."

Change-Id: I8d48149c3e9ad97ec11c49ec7efb356f27dfe4f6

14 years agoFix issue #2161169: onStop not being called.
Dianne Hackborn [Mon, 5 Oct 2009 19:44:13 +0000 (12:44 -0700)]
Fix issue #2161169: onStop not being called.

There was a bug with the starting window where it could be added to
the app window list twice, so the buddy list would end up with one
left over after all was done.  This would result in visibility
changes not being delivered to it correctly, delaying the dispatch
of onStop.

Change-Id: If1993eaf9cfbba1f523ce5aaa478be0239d0c7db

14 years agoaccount manager api review changes
Fred Quintana [Sat, 3 Oct 2009 00:19:31 +0000 (17:19 -0700)]
account manager api review changes

14 years agoAdd PERIOD char to CDMA address sugar list.
Tammo Spalink [Mon, 5 Oct 2009 06:20:06 +0000 (14:20 +0800)]
Add PERIOD char to CDMA address sugar list.

Addresses issue:
http://buganizer/issue?id=2164455

14 years agoMerge change Iaca22686 into eclair
Android (Google) Code Review [Sun, 4 Oct 2009 22:35:24 +0000 (18:35 -0400)]
Merge change Iaca22686 into eclair

* changes:
  Work on issue #2163789: Way too much logging