OSDN Git Service

android-x86/frameworks-base.git
14 years agoRename ro.monkey to monkey.running
Ying Wang [Mon, 4 Jan 2010 19:56:24 +0000 (11:56 -0800)]
Rename ro.monkey to monkey.running

So that Monkey can set ro.mokey before running and reset it after running.

14 years agoMerge change Id8e98194 into eclair
Android (Google) Code Review [Wed, 23 Dec 2009 07:34:22 +0000 (23:34 -0800)]
Merge change Id8e98194 into eclair

* changes:
  Fix issues 2333450 and 2333559:

14 years agoMerge change I49c9a3a3 into eclair
Android (Google) Code Review [Wed, 23 Dec 2009 02:29:29 +0000 (18:29 -0800)]
Merge change I49c9a3a3 into eclair

* changes:
  Fix bug 2325244 screen turns black for a brief period of time

14 years agoFix issues 2333450 and 2333559:
Eric Laurent [Thu, 17 Dec 2009 11:12:59 +0000 (03:12 -0800)]
Fix issues 2333450 and 2333559:

Add new config values to AudioSystem::FOR_DOCK force usage to differenciate car and desk docks.
Use a receiver for the sticky Intent.ACTION_DOCK_EVENT in AudioService to detect the type
of dock and select force usage accordingly.

14 years agoMerge change Iccfa50fe into eclair
Android (Google) Code Review [Tue, 22 Dec 2009 17:50:42 +0000 (09:50 -0800)]
Merge change Iccfa50fe into eclair

* changes:
  Fix issue 2323920: Notification & A2DP audio stutter.

14 years agoFix issue 2323920: Notification & A2DP audio stutter.
Eric Laurent [Fri, 18 Dec 2009 13:47:48 +0000 (05:47 -0800)]
Fix issue 2323920: Notification & A2DP audio stutter.

Modified AudioFlinger duplicating output thread so that audio tracks are not mixed until both outputs (A2DP and hardware) have exited standby mode. This avoids to have one output far ahead of the other and audio frames dropped because the compensation mechanism cannot keep up.
Also calculate the maximum wait time in OutputTrack::write() based the on smallest frame count of all output threads instead of the frame count of the thread the OutputTrack is connected to. This avoids starving the thread with the smallest frame count by waiting too long on the other thread.
Since the frame count was reduced on hardware output to reduce latency the difference between A2DP and hardware outputs frame counts had become problematic.
Also increased the number of overflow buffers to cope with bigger timing differences among outputs.

14 years agoFix bug 2325244 screen turns black for a brief period of time
Jack Palevich [Mon, 21 Dec 2009 06:47:35 +0000 (14:47 +0800)]
Fix bug 2325244 screen turns black for a brief period of time

The problem was a black first frame when creating a surface, or a
garbage frame when the surface was resized.

The cause was lack of synchronization between the render thread and the
UI thread. The UI thread would typically return before the render thread
had a chance to draw its first frame.

The fix was to make the UI thread wait until at least one frame had been
rendered by the rendering thread.

The waiting is done in the surfaceChanged method because we know
that surfaceChanged will be called in both the surface created
and surface changed cases.

14 years agoMerge change I551ed729 into eclair
Android (Google) Code Review [Mon, 21 Dec 2009 22:17:15 +0000 (14:17 -0800)]
Merge change I551ed729 into eclair

* changes:
  Use UNDEFINED priorities when unpaired.

14 years agoMerge change I577dd1f3 into eclair
Android (Google) Code Review [Mon, 21 Dec 2009 22:16:44 +0000 (14:16 -0800)]
Merge change I577dd1f3 into eclair

* changes:
  Accept incoming connections if no other sink is in NonDisconnecting state.

14 years agoupload new dev site robots.txt to disallow old tutorial and
Scott Main [Mon, 21 Dec 2009 19:32:22 +0000 (11:32 -0800)]
upload new dev site robots.txt to disallow old tutorial and
samples directories (while old pages are still orphaned) and upload
new sitemap including new resources pages.

14 years agoMerge change I2703edac into eclair
Android (Google) Code Review [Sat, 19 Dec 2009 20:30:15 +0000 (12:30 -0800)]
Merge change I2703edac into eclair

* changes:
  docs: add new device features for the uses-feature manifest element and edit some other pieces.

14 years agodocs: add new device features for the uses-feature
Scott Main [Sat, 19 Dec 2009 08:55:18 +0000 (00:55 -0800)]
docs: add new device features for the uses-feature
manifest element and edit some other pieces.

14 years agoMerge change Iab5952e1 into eclair
Android (Google) Code Review [Sat, 19 Dec 2009 08:36:48 +0000 (00:36 -0800)]
Merge change Iab5952e1 into eclair

* changes:
  docs: add "required" attribute to the <uses-feature> docs and add a note to the CAMERA permission stating that it enables the <uses-feature> for camera. This is an incrimental update for the 2.0.1 docs. More changes to come for the 2.1 docs to include more features

14 years agodocs: add "required" attribute to the <uses-feature> docs
Scott Main [Fri, 18 Dec 2009 02:01:04 +0000 (18:01 -0800)]
docs: add "required" attribute to the <uses-feature> docs
and add a note to the CAMERA permission stating that it enables
the <uses-feature> for camera.
This is an incrimental update for the 2.0.1 docs. More changes
to come for the 2.1 docs to include more features

14 years agodoc change: add 7 diffs report.
Dirk Dougherty [Sat, 19 Dec 2009 06:52:59 +0000 (22:52 -0800)]
doc change: add 7 diffs report.

Bug: 2160782
Change-Id: Ic8444f43d21ffa0b6d7f679f80f86db88a95d189

14 years agoMerge change Ie4b0d302 into eclair
Android (Google) Code Review [Sat, 19 Dec 2009 01:13:53 +0000 (17:13 -0800)]
Merge change Ie4b0d302 into eclair

* changes:
  docs: update the site homepage with 2.1 announcement

14 years agoMerge change Ic31c0f62 into eclair
Android (Google) Code Review [Sat, 19 Dec 2009 01:12:36 +0000 (17:12 -0800)]
Merge change Ic31c0f62 into eclair

* changes:
  docs: update the Bluetooth guide with links to the sample app, scrub the sibling files, and revise the Bluetooth package summary to point to the BT dev guide.

14 years agoIssue #2335763: Cant dial emergency number on my device
Dianne Hackborn [Sat, 19 Dec 2009 00:02:50 +0000 (16:02 -0800)]
Issue #2335763: Cant dial emergency number on my device

This may fix the issue, but we have no repro steps so no way to
make sure.

What appeared to be going on was that the emergency dialer was
created, but still had the starting preview window above it.  We
were stuck in this state because the preview window didn't have
the "hide lock screen" flag set, so the lock screen would never
be removed, and thus we would never take care of finishing the
show of the emergency dialer (because it was not visible) and
thus not remove the starting window.

The solution here is to simply propagate the lock flags up to the
starting window.

Change-Id: I6da9f6494537f0661d9d230664ebf745c293ea7d

14 years agodoc change: Add ?details query to doc about Android Market.
Dirk Dougherty [Thu, 17 Dec 2009 22:49:26 +0000 (14:49 -0800)]
doc change: Add ?details query to doc about Android Market.

Bug: 2160782
Change-Id: I86d1339e5bc5a36dbd033a7938764818a27b4d81

14 years agoAccept incoming connections if no other sink is in NonDisconnecting state.
Jaikumar Ganesh [Thu, 17 Dec 2009 22:59:10 +0000 (14:59 -0800)]
Accept incoming connections if no other sink is in NonDisconnecting state.

Bluez sends SINK_STATE_CHANGE before onAgentAuthorize, so
we may be already in CONNECTING state. This will happen with
some A2DP kits which don't like us connecting and thus we will
never be able to connect to them.

Bug:2335345
Dr No: Hiroshi

14 years agoMerge change I75bb4c98 into eclair
Android (Google) Code Review [Thu, 17 Dec 2009 18:31:19 +0000 (10:31 -0800)]
Merge change I75bb4c98 into eclair

* changes:
  doc change: Move commit 4075b4ced from guide/appendix/faq to resources/faq.

14 years agoMerge change I3f67758f into eclair
Android (Google) Code Review [Thu, 17 Dec 2009 18:28:06 +0000 (10:28 -0800)]
Merge change I3f67758f into eclair

* changes:
  doc change: remove existing (unchanged since sdk) samples from zip. This now contains only new samples.

14 years agodoc change: Move commit 4075b4ced from guide/appendix/faq to resources/faq.
Dirk Dougherty [Thu, 17 Dec 2009 18:15:23 +0000 (10:15 -0800)]
doc change: Move commit 4075b4ced from guide/appendix/faq to resources/faq.

Bug: 2315781
Change-Id: I75bb4c98fa48af47c935787a5ab30ca7c1a8091d

14 years agodoc change: remove existing (unchanged since sdk) samples from zip. This now contains...
Dirk Dougherty [Thu, 17 Dec 2009 18:07:46 +0000 (10:07 -0800)]
doc change: remove existing (unchanged since sdk) samples from zip. This now contains only new samples.

Bug:2160782
Change-Id: I3f67758f207df0fdde8a46d40ba8d5873097e460

14 years agoadd -since flag to droiddoc options for 7.xml,
Scott Main [Thu, 17 Dec 2009 05:41:10 +0000 (21:41 -0800)]
add -since flag to droiddoc options for 7.xml,
to apply api filtering to the reference

14 years agodocs: update the Bluetooth guide with links to the sample
Scott Main [Thu, 17 Dec 2009 02:32:55 +0000 (18:32 -0800)]
docs: update the Bluetooth guide with links to the sample
app, scrub the sibling files, and revise the Bluetooth package
summary to point to the BT dev guide.

14 years agoMerge change I7d67e1b3 into eclair
Android (Google) Code Review [Thu, 17 Dec 2009 02:20:05 +0000 (18:20 -0800)]
Merge change I7d67e1b3 into eclair

* changes:
  docs: small edits

14 years agodocs: small edits
Scott Main [Thu, 17 Dec 2009 02:14:37 +0000 (18:14 -0800)]
docs: small edits

14 years agoMerge change I354261e2 into eclair
Android (Google) Code Review [Wed, 16 Dec 2009 23:30:02 +0000 (15:30 -0800)]
Merge change I354261e2 into eclair

* changes:
  docs: small edit to live wallpaper sentence

14 years agodocs: small edit to live wallpaper sentence
Scott Main [Wed, 16 Dec 2009 23:25:35 +0000 (15:25 -0800)]
docs: small edit to live wallpaper sentence

14 years agoUpdating frameworks/base/docs/html/shareables/latest_samples.zip to reflect current...
Trevor Johns [Wed, 16 Dec 2009 23:10:46 +0000 (15:10 -0800)]
Updating frameworks/base/docs/html/shareables/latest_samples.zip to reflect current state of sample code as of 1d151678.

14 years agodocs: update the site homepage with 2.1 announcement
Scott Main [Wed, 16 Dec 2009 20:25:22 +0000 (12:25 -0800)]
docs: update the site homepage with 2.1 announcement

14 years agoMerge change I10073d50 into eclair
Android (Google) Code Review [Wed, 16 Dec 2009 20:14:11 +0000 (12:14 -0800)]
Merge change I10073d50 into eclair

* changes:
  Add Annotation for optional features.

14 years agoMerge change Iccb92649 into eclair
Android (Google) Code Review [Wed, 16 Dec 2009 19:14:40 +0000 (11:14 -0800)]
Merge change Iccb92649 into eclair

* changes:
  docs: fix typo

14 years agodocs: fix typo
Scott Main [Wed, 16 Dec 2009 19:13:40 +0000 (11:13 -0800)]
docs: fix typo

14 years agoMerge change I33eb64c0 into eclair
Android (Google) Code Review [Wed, 16 Dec 2009 19:11:02 +0000 (11:11 -0800)]
Merge change I33eb64c0 into eclair

* changes:
  docs: add 2.1 platform notes, win usb driver notes  and fix some javadocs for PhonestateListener

14 years agodocs: add developer dashboard page and add topic link
Scott Main [Thu, 10 Dec 2009 23:54:54 +0000 (15:54 -0800)]
docs: add developer dashboard page and add topic link
to it from the homepage (replacing the video topic)

14 years agoMerge change Ib43ec8f6 into eclair
Android (Google) Code Review [Wed, 16 Dec 2009 18:05:10 +0000 (10:05 -0800)]
Merge change Ib43ec8f6 into eclair

* changes:
  docs: fix some typos in the manifest docs samples and remove the "one or more of" phrase from the syntax snippet because it interferes with the syntax coloring.

14 years agoMerge change Ia36d8e74 into eclair
Android (Google) Code Review [Wed, 16 Dec 2009 17:59:12 +0000 (09:59 -0800)]
Merge change Ia36d8e74 into eclair

* changes:
  Updates to SDK troubleshooting doc, per bug 2315781.

14 years agodocs: add 2.1 platform notes, win usb driver notes
Scott Main [Tue, 15 Dec 2009 18:47:31 +0000 (10:47 -0800)]
docs: add 2.1 platform notes, win usb driver notes
 and fix some javadocs for PhonestateListener

14 years agoMerge change I8385f59d into eclair
Android (Google) Code Review [Wed, 16 Dec 2009 05:24:15 +0000 (21:24 -0800)]
Merge change I8385f59d into eclair

* changes:
  sdk doc change for esr: Cleanup for resources tab content.

14 years agosdk doc change for esr: Cleanup for resources tab content.
Dirk Dougherty [Wed, 16 Dec 2009 02:42:17 +0000 (18:42 -0800)]
sdk doc change for esr: Cleanup for resources tab content.

Bug:2160782
Change-Id: I8385f59d764156ccc318f71e5d344c7f33330c40

14 years agoUpdates to SDK troubleshooting doc, per bug 2315781.
Katarina Stenstedt [Thu, 10 Dec 2009 19:35:18 +0000 (11:35 -0800)]
Updates to SDK troubleshooting doc, per bug 2315781.

Describes work-around for these problems: Sometimes you
can't view manifest files within Eclipse; you can't run
the GestureBuilder sample on the emulator or uninstall it
from the emulator.

Bug: 2315781
Change-Id: Ia36d8e74a9fccd106ce2cc5e9451846aacba9da4

14 years agoMerge change I0448ef20 into eclair
Android (Google) Code Review [Tue, 15 Dec 2009 16:50:20 +0000 (08:50 -0800)]
Merge change I0448ef20 into eclair

* changes:
  Fix SoundPool buffer size rounding error. Bug 2327620.

14 years agoFix SoundPool buffer size rounding error. Bug 2327620.
Dave Sparks [Tue, 15 Dec 2009 05:12:05 +0000 (21:12 -0800)]
Fix SoundPool buffer size rounding error. Bug 2327620.

AudioTrack was modified earlier to calculate minimum buffer size
based on the hardware reported latency. Previously, it was a
hard-coded value. As a result of this change, the minimum buffer
size is now variable based on hardware latency. On Passion, this
brought out a subtle rounding error in the buffer size calculation
in SoundPool. This can cause AudioTrack creation to fail based on
the requested sample rate. This fix calculates the total buffer
size first, and then does rounding before dividing by the number
of buffers.

14 years agoMerge change I0c8814d1 into eclair
Android (Google) Code Review [Tue, 15 Dec 2009 05:34:44 +0000 (21:34 -0800)]
Merge change I0c8814d1 into eclair

* changes:
  Removing copyrighted backgrounds/logos from ContactManager and Wiktionary samples.

14 years agoRemoving copyrighted backgrounds/logos from ContactManager and Wiktionary
Trevor Johns [Tue, 15 Dec 2009 01:25:36 +0000 (17:25 -0800)]
Removing copyrighted backgrounds/logos from ContactManager and Wiktionary
samples.

Bug: 2326131

14 years agoAdd Annotation for optional features.
Xavier Ducrohet [Tue, 15 Dec 2009 01:52:20 +0000 (17:52 -0800)]
Add Annotation for optional features.

This is used by the SDK to display available features in the
editors.

Change-Id: I10073d503d1b3dcb92a5dc526cd054285b85fa3a

14 years agoMerge change I8f657a99 into eclair
Android (Google) Code Review [Tue, 15 Dec 2009 01:41:15 +0000 (17:41 -0800)]
Merge change I8f657a99 into eclair

* changes:
  Avoid a crash trying to get a substring whose start is after its end.

14 years agoAvoid a crash trying to get a substring whose start is after its end.
Eric Fischer [Tue, 15 Dec 2009 01:33:11 +0000 (17:33 -0800)]
Avoid a crash trying to get a substring whose start is after its end.

Constrain the start of the extracted text, not just the end, to the length
of the content.

Approver: ryanpc
Bug: 2323813

14 years agoAdding list of articles to docs/html/resources/articles/index.jd.
Trevor Johns [Fri, 11 Dec 2009 14:22:05 +0000 (06:22 -0800)]
Adding list of articles to docs/html/resources/articles/index.jd.

14 years agodocs: fix some typos in the manifest docs samples and
Scott Main [Mon, 14 Dec 2009 22:37:53 +0000 (14:37 -0800)]
docs: fix some typos in the manifest docs samples and
remove the "one or more of" phrase from the syntax snippet
because it interferes with the syntax coloring.

14 years agoMerge change Ib1eb2e9e into eclair
Android (Google) Code Review [Mon, 14 Dec 2009 20:11:08 +0000 (12:11 -0800)]
Merge change Ib1eb2e9e into eclair

* changes:
  sdk doc change for esr: Add "resources" tab content. Fix links pointing to the old locations. Change Android.mk to output samples files to resources/samples. Misc other fixes.

14 years agosdk doc change for esr: Add "resources" tab content. Fix links pointing to the old...
Dirk Dougherty [Fri, 11 Dec 2009 00:25:06 +0000 (16:25 -0800)]
sdk doc change for esr: Add "resources" tab content. Fix links pointing to the old locations. Change Android.mk to output samples files to resources/samples. Misc other fixes.

Bug: 2160782
Change-Id: Ib1eb2e9e3fe3a7b2ad16387dbf888646a1195221

14 years agoFix issue #2325782 Missing location features
Dianne Hackborn [Mon, 14 Dec 2009 18:49:42 +0000 (10:49 -0800)]
Fix issue #2325782 Missing location features

Change-Id: I56a07438b5840f530f7508b1ef4904cea737a550

14 years agoFix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).
Eric Laurent [Mon, 14 Dec 2009 11:45:41 +0000 (03:45 -0800)]
Fix issue 2324029: In-call (and other) audio screwed up after using Pandora (ERD72).

The problem is due to spurious headset connection indications received from event observer when a 3.5mm headset w/o mic is connected.
In this particular case, The HeadsetObserver first received a valid indication of headset with mic connection, followed by a headset with mic disconnection and finally a headset w/o mic connection.
The HeadsetObserver delays the headset disconnection intent to leave time to music app to pause music before the output path is switched.
As the last headset w/o mic connection indication is received from the event observer before the intent corresponding to the spurious headset with mic disconnection is broadcast, the later is discarded. Results a state where the headset with mic is always considered as connected.

The fix consists in not canceling pending intents when a new headset state is received and carrying the HeadsetObserver state with the delayed message triggering the broacast of the disconnection intent.

14 years agoam 6f95f461: Fix the dependencies to make online-sdk-docs.
Ying Wang [Sat, 12 Dec 2009 23:38:29 +0000 (15:38 -0800)]
am 6f95f461: Fix the dependencies to make online-sdk-docs.

Merge commit '6f95f461098d5b9e93212cf9cc7c7a6498eecf3a' into eclair

* commit '6f95f461098d5b9e93212cf9cc7c7a6498eecf3a':
  Fix the dependencies to make online-sdk-docs.

14 years agoFix #2269582 Sometimes camera preview screen is truncated
Dianne Hackborn [Fri, 11 Dec 2009 22:51:35 +0000 (14:51 -0800)]
Fix #2269582 Sometimes camera preview screen is truncated

There were a few places in the window manager where we wouldn't cause
a layout after making a window visible.  This would leave it using
whatever size and position it last have since we don't layout windows
when they are not visible.

Also includes a little part I missed in the security issue that
allowed wallpapers to see input on the lock screen.

Change-Id: Icd7e037ad9a67ac936bc7039d87ed68f49502d73

14 years agoMerge change I2ffe306f into eclair
Android (Google) Code Review [Sat, 12 Dec 2009 02:25:21 +0000 (18:25 -0800)]
Merge change I2ffe306f into eclair

* changes:
  Fix issue #2304284: contacts/dialer/recentcalls constantly flashing

14 years agoFix issue #2304284: contacts/dialer/recentcalls constantly flashing
Dianne Hackborn [Fri, 11 Dec 2009 23:24:33 +0000 (15:24 -0800)]
Fix issue #2304284: contacts/dialer/recentcalls constantly flashing

Make sure the application is always given the most recent configuration
when launcher.  Use the current configuration, instead of whatever happens
to be set by the app, for reporting what it was launched with.

Change-Id: I2ffe306f56cc9092b640546dd0a28d2c29b9c0b3

14 years agoMerge change I6dc8a694 into eclair
Android (Google) Code Review [Fri, 11 Dec 2009 22:54:19 +0000 (14:54 -0800)]
Merge change I6dc8a694 into eclair

* changes:
  Layoutlib: Add a constant for default density value.

14 years agoLayoutlib: Add a constant for default density value.
Xavier Ducrohet [Fri, 11 Dec 2009 22:20:54 +0000 (14:20 -0800)]
Layoutlib: Add a constant for default density value.

Change-Id: I6dc8a694bbdae2385d4e877ea04a6b4325a5719e

14 years agoFix #2320798: Device hang then runtime restart
Christopher Tate [Fri, 11 Dec 2009 20:11:31 +0000 (12:11 -0800)]
Fix #2320798: Device hang then runtime restart

The system_server process is deadlocking between event dispatch and window
manager code.  This change fixes the lock scoping to eliminate the deadlock.

Change-Id: I00f029e4d51d7432119ad3aeec260df215b52546

14 years agoUse UNDEFINED priorities when unpaired.
Jaikumar Ganesh [Fri, 11 Dec 2009 20:00:31 +0000 (12:00 -0800)]
Use UNDEFINED priorities when unpaired.

For the docks, we can set if a device is preferred or not
before pairing process. This was getting overridden when we pair.
This problem doesn't happen with normal headsets.

Dr No: Eastham
Bug: 2318290

14 years agofix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is...
Mathias Agopian [Fri, 11 Dec 2009 08:56:10 +0000 (00:56 -0800)]
fix [2269582] [TOP-10][Passion_1506][APT:Camera]Sometimes camera preview screen is truncated after launching and back to home screen by home key repeatedly

When a surface is removed from the screen while it holds a "freeze lock", the
release of that lock happens in the destructor as a "safety net". However, it
doesn't trigger an update at that point.

Make sure that "freeze locks" are released from the transaction at the point
a surface is removed from the screen (if it's not on screen, it shouldn't
prevent the screen to redraw, and therefore cannot hold a freeze lock).
The refresh corresponding to that transaction will pick it up as soon as possible.

14 years agoFix the dependencies to make online-sdk-docs.
Ying Wang [Fri, 11 Dec 2009 01:08:14 +0000 (17:08 -0800)]
Fix the dependencies to make online-sdk-docs.

Without the framework library, 'make online-sdk-docs' can not find symbols
 in the framework library.

14 years agoMerge change I18305fec into eclair
Android (Google) Code Review [Fri, 11 Dec 2009 01:03:30 +0000 (17:03 -0800)]
Merge change I18305fec into eclair

* changes:
  Add ContactManager, MultiResolution, Wiktionary, and WiktionarySimple to samples index. Also add latest samples zip file.

14 years agofix [2319255] crash in openGL : from the media recorder stress test.
Mathias Agopian [Thu, 10 Dec 2009 23:52:29 +0000 (15:52 -0800)]
fix [2319255] crash in openGL : from the media recorder stress test.

never call eglCreateImageKHR() with a NULL native buffer, which can
happen in OOM conditions.

14 years agoAdd ContactManager, MultiResolution, Wiktionary, and WiktionarySimple to samples...
Roman Nurik [Thu, 10 Dec 2009 17:42:51 +0000 (09:42 -0800)]
Add ContactManager, MultiResolution, Wiktionary, and WiktionarySimple to samples index. Also add latest samples zip file.

14 years agoMerge change I24bb662a into eclair
Android (Google) Code Review [Thu, 10 Dec 2009 07:42:13 +0000 (23:42 -0800)]
Merge change I24bb662a into eclair

* changes:
  Adding screenshots for development/samples/Wiktionary and development/samples/WiktionarySimple.

14 years agoFix media player decode function. Bug 2317821.
Dave Sparks [Thu, 10 Dec 2009 04:20:26 +0000 (20:20 -0800)]
Fix media player decode function. Bug 2317821.

There was a recent change to OpenCORE that broke the MediaPlayer::decode()
function for all OpenCORE supported formats (MP3, AAC, and AMR-NB/WB). The
affect is that SoundPool is unreliable for all of these formats. This patch
changes the logic in the AudioCache object that processes messages from the
media player. The old logic was fragile. This change should make it more
robust against changes.

14 years agoAdding screenshots for development/samples/Wiktionary and development/samples/Wiktion...
Trevor Johns [Thu, 10 Dec 2009 04:26:55 +0000 (20:26 -0800)]
Adding screenshots for development/samples/Wiktionary and development/samples/WiktionarySimple.

14 years agoMerge change Ia48b3f2a into eclair
Android (Google) Code Review [Thu, 10 Dec 2009 02:41:04 +0000 (18:41 -0800)]
Merge change Ia48b3f2a into eclair

* changes:
  Fix #2313887: Device doesn't boot after rebooting device...

14 years agoFix #2313887: Device doesn't boot after rebooting device...
Dianne Hackborn [Thu, 10 Dec 2009 02:26:21 +0000 (18:26 -0800)]
Fix #2313887: Device doesn't boot after rebooting device...

...in setup wizard ->Wifi setup screen.

We were stopped waiting for the wallpaper to draw, which it would never do
because it had been obscured and thus hidden.

Change-Id: Ia48b3f2a46ca970f143cbaee99f5f2a054378986

14 years agoMerge change I06398298 into eclair
Android (Google) Code Review [Thu, 10 Dec 2009 02:20:21 +0000 (18:20 -0800)]
Merge change I06398298 into eclair

* changes:
  docs: add images used in BT developer guide.

14 years agodocs: add images used in BT developer guide.
Scott Main [Thu, 10 Dec 2009 02:11:16 +0000 (18:11 -0800)]
docs: add images used in BT developer guide.

needed (but not a dependency) by I1cd5c8282ba45d79da854db43d741b6fa049812b

14 years agoMerge change Ie4cdb5a3 into eclair
Android (Google) Code Review [Thu, 10 Dec 2009 02:09:49 +0000 (18:09 -0800)]
Merge change Ie4cdb5a3 into eclair

* changes:
  Add --custom-package to aapt

14 years agodocs: add the Bluetooth developer guide,
Scott Main [Thu, 10 Dec 2009 00:07:39 +0000 (16:07 -0800)]
docs: add the Bluetooth developer guide,
and make some revisions to the BT javadocs

14 years agoMerge change I3c299167 into eclair
Android (Google) Code Review [Thu, 10 Dec 2009 01:59:07 +0000 (17:59 -0800)]
Merge change I3c299167 into eclair

* changes:
  Import revised translations.  DO NOT MERGE

14 years agoMerge change I54400322 into eclair
Android (Google) Code Review [Thu, 10 Dec 2009 01:51:34 +0000 (17:51 -0800)]
Merge change I54400322 into eclair

* changes:
  Adding screenshots for development/samples/ContactManager documentation.

14 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Thu, 10 Dec 2009 01:06:04 +0000 (17:06 -0800)]
Import revised translations.  DO NOT MERGE

14 years agoMerge change Icced7a09 into eclair
Android (Google) Code Review [Thu, 10 Dec 2009 01:00:09 +0000 (17:00 -0800)]
Merge change Icced7a09 into eclair

* changes:
  Maintain a list of all Bluetooth docks.

14 years agoMaintain a list of all Bluetooth docks.
Jaikumar Ganesh [Wed, 9 Dec 2009 20:09:21 +0000 (12:09 -0800)]
Maintain a list of all Bluetooth docks.

With this change, isBluetoothDock API can be used anytime and is not in tied
to dock state. The Dock State is a sticky intent so users
can query for the dock state.

Dr No: Eastham
Bug: 2133530

14 years agofix [2315900] Monochrome camera preview screen after launching camera
Mathias Agopian [Wed, 9 Dec 2009 22:32:56 +0000 (14:32 -0800)]
fix [2315900] Monochrome camera preview screen after launching camera

this was introduced by a recent change. when we try to figure out the size of
the yuv->rgb temporary buffer, the output resolution has not been computed yet
and an invalid buffer size is used. most of the time the allocation fails
and the system reverts to "standard" GL will uses onle the Y plane.

the allocation of the temporary buffer is moved to onDraw(), the first
time it is called, by that time, the window is positioned properly.

14 years agoMerge change I0f73439a into eclair
Android (Google) Code Review [Wed, 9 Dec 2009 19:46:50 +0000 (11:46 -0800)]
Merge change I0f73439a into eclair

* changes:
  Partially fix bug 2111240 Detect docking / undocking event by reporting to the AudioPolicyManager a new forced usage AudioSystem::FOR_DOCK which can take the FORCE_NONE, FORCE_BT_DOCK or FORCE_WIRED_ACCESSORY values. This CL is complemented by an update of the APM to take into account the FOR_DOCK usage.

14 years agoMerge change Id22c0137 into eclair
Android (Google) Code Review [Wed, 9 Dec 2009 19:07:16 +0000 (11:07 -0800)]
Merge change Id22c0137 into eclair

* changes:
  Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.

14 years agoThrottle low priority RS threads by sleeping once per frame to avoid starving other...
Jason Sams [Wed, 9 Dec 2009 19:05:45 +0000 (11:05 -0800)]
Throttle low priority RS threads by sleeping once per frame to avoid starving other apps.

14 years agoMerge change Ib548dbb2 into eclair
Android (Google) Code Review [Wed, 9 Dec 2009 09:39:23 +0000 (01:39 -0800)]
Merge change Ib548dbb2 into eclair

* changes:
  improve video performance to minimize the tearing effect seen in 720p movies

14 years agoAdding screenshots for development/samples/ContactManager documentation.
Trevor Johns [Tue, 24 Nov 2009 13:14:47 +0000 (05:14 -0800)]
Adding screenshots for development/samples/ContactManager documentation.

14 years agoimprove video performance to minimize the tearing effect seen in 720p movies
Mathias Agopian [Wed, 9 Dec 2009 03:29:38 +0000 (19:29 -0800)]
improve video performance to minimize the tearing effect seen in 720p movies

always rescale videos to their target size using copybit during yuv->rgb
conversion. this improves performance of the GPU pass and doesn't require
linear filtering to be enabled. Also always use 16-bits buffers.

the average processing time for 720p dropped from ~50ms to ~30ms

14 years agoMerge change Ifd95b9f5 into eclair
Android (Google) Code Review [Wed, 9 Dec 2009 02:40:37 +0000 (18:40 -0800)]
Merge change Ifd95b9f5 into eclair

* changes:
  Fix #2313382: SECURITY: Live wallpapers get touch events through the lock screen.

14 years agoFix #2313382: SECURITY: Live wallpapers get touch events through the lock screen.
Dianne Hackborn [Tue, 8 Dec 2009 23:51:43 +0000 (15:51 -0800)]
Fix #2313382: SECURITY: Live wallpapers get touch events through the lock screen.

This is a quick and dirty hack to not deliver touch events to the wallpaper when
they are being sent to the keyguard.  Perhaps we should have a separate window
flag for this, but...  bleah.  Maybe later.  Or maybe I'll use that secure flag.
Or something.

Change-Id: Ifd95b9f5b10db24a0854a93b925a833b24331b4c

14 years agoPorting change I064698b3 from mr2 to eclair.
Robert Greenwalt [Tue, 8 Dec 2009 23:37:47 +0000 (15:37 -0800)]
Porting change I064698b3 from mr2 to eclair.

Add support for "HANGED" driver state - we'll reboot the driver when requested (by the driver).

bug: 2310372

14 years agoMerge change If990cab0 into eclair
Android (Google) Code Review [Tue, 8 Dec 2009 22:07:50 +0000 (14:07 -0800)]
Merge change If990cab0 into eclair

* changes:
  Make sure to acknowledge stale broadcasts

14 years agoPaper over 2275704 by not having LotsOfApps installed on the monkeys builds.
Joe Onorato [Tue, 8 Dec 2009 22:02:09 +0000 (14:02 -0800)]
Paper over 2275704 by not having LotsOfApps installed on the monkeys builds.

14 years agoMake sure to acknowledge stale broadcasts
Christopher Tate [Tue, 8 Dec 2009 21:48:45 +0000 (13:48 -0800)]
Make sure to acknowledge stale broadcasts

If a broadcast arrives at a process but the receiver has been unregistered in
the interval between dispatch and its arrival on the receiving process's side,
we were simply dropping the broadcast entirely, leading to spurious ANRs and
potentially issues involving future broadcasts being timed out incorrectly.  Fix
this by making sure to correctly 'finish' a broadcast even when the recipient
app no longer has any receiver that matches the broadcast's profile.

Change-Id: If990cab021a26668052cb536753f6c308d80a5b4

14 years agoUpdating list of standard Intents in android.content.Intent
Trevor Johns [Fri, 20 Nov 2009 20:54:57 +0000 (12:54 -0800)]
Updating list of standard Intents in android.content.Intent
documentation.

14 years agoPartially fix bug 2111240 Detect docking / undocking event by reporting
Jean-Michel Trivi [Tue, 8 Dec 2009 02:40:56 +0000 (18:40 -0800)]
Partially fix bug 2111240 Detect docking / undocking event by reporting
to the AudioPolicyManager a new forced usage AudioSystem::FOR_DOCK
which can take the FORCE_NONE, FORCE_BT_DOCK or FORCE_WIRED_ACCESSORY
values. This CL is complemented by an update of the APM to take into
account the FOR_DOCK usage.

14 years agoDocument that some parameters will not be null and fix getSupportedPictureFormats.
Wu-cheng Li [Fri, 4 Dec 2009 11:59:18 +0000 (19:59 +0800)]
Document that some parameters will not be null and fix getSupportedPictureFormats.

14 years agoMerge change I705b1d33 into eclair
Android (Google) Code Review [Tue, 8 Dec 2009 01:17:47 +0000 (17:17 -0800)]
Merge change I705b1d33 into eclair

* changes:
  GpsLocationProvider: Do not release wakelock until the GPS engine is fully off