OSDN Git Service

android-x86/frameworks-base.git
13 years agoMerge "Adding a feature to indicate that the device possesses low-latency audio....
Dan Morrill [Mon, 27 Sep 2010 17:30:41 +0000 (10:30 -0700)]
Merge "Adding a feature to indicate that the device possesses low-latency audio. The specific criteria for low-latency audio are defined in the CDD, but since that hasn't yet been settled for Gingerbread, this change doesn't go into details. We can do a docs change later once GB CDD is final." into gingerbread

13 years agoMerge "Fix track duration calculation if the start timestamp is non-zero" into ginger...
James Dong [Mon, 27 Sep 2010 17:08:52 +0000 (10:08 -0700)]
Merge "Fix track duration calculation if the start timestamp is non-zero" into gingerbread

13 years agoFix track duration calculation if the start timestamp is non-zero
James Dong [Fri, 24 Sep 2010 17:01:29 +0000 (10:01 -0700)]
Fix track duration calculation if the start timestamp is non-zero

o Updated the comments in the patch
o Added some additional checks on the timestamp

Change-Id: I8ad81eb6bfe358c1db5245cbb52efc905cdc234c

13 years agoMerge "Support other kinds of HTTP redirect in NuHTTPDataSource" into gingerbread
Andreas Huber [Mon, 27 Sep 2010 16:20:58 +0000 (09:20 -0700)]
Merge "Support other kinds of HTTP redirect in NuHTTPDataSource" into gingerbread

13 years agoSupport other kinds of HTTP redirect in NuHTTPDataSource
Andreas Huber [Mon, 27 Sep 2010 15:17:40 +0000 (08:17 -0700)]
Support other kinds of HTTP redirect in NuHTTPDataSource

Change-Id: I3268a94cfb48cee9caa8914804d7907ff91d8a8e
related-to-bug: 3037686

13 years agoFix the unhold issue especially if one is behind NAT.
Chung-yih Wang [Thu, 23 Sep 2010 15:23:11 +0000 (23:23 +0800)]
Fix the unhold issue especially if one is behind NAT.

+call startAudio() when call is established.

Change-Id: Ib6a1e34017fb83007ce275da1991058e8b803833

13 years agoMerge "Fix error in AudioEffect command status reporting." into gingerbread
Eric Laurent [Mon, 27 Sep 2010 15:41:00 +0000 (08:41 -0700)]
Merge "Fix error in AudioEffect command status reporting." into gingerbread

13 years agoMerge "Use buffered output during packages.xml write" into gingerbread
Kenny Root [Mon, 27 Sep 2010 15:03:47 +0000 (08:03 -0700)]
Merge "Use buffered output during packages.xml write" into gingerbread

13 years agoMerge "Fix bug #2585298 (google calendar sync clears eventTimezone field for recurrin...
Fabrice Di Meglio [Mon, 27 Sep 2010 09:16:01 +0000 (02:16 -0700)]
Merge "Fix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDay events)" into gingerbread

13 years agoMerge "DO NOT MERGE. Only 1 edge glow should be growing at a time." into gingerbread
Mindy Pereira [Mon, 27 Sep 2010 01:16:26 +0000 (18:16 -0700)]
Merge "DO NOT MERGE. Only 1 edge glow should be growing at a time." into gingerbread

13 years agoDO NOT MERGE. Only 1 edge glow should be growing at a time.
Mindy Pereira [Mon, 27 Sep 2010 00:26:17 +0000 (17:26 -0700)]
DO NOT MERGE. Only 1 edge glow should be growing at a time.

When a user action starts a new edge glow (on pull or absorb), cause
the edge glow on the opposite side to decay.
Fixes b/ star  3028395  Yellow color bar is displayed when user reaches the end of the message and keeps scrolling in Gmail.

Change-Id: Id06e00d1843b0467f6f9149c22b233e639fc55ac

13 years agoreconcile froyo-release into gingerbread
Jean-Baptiste Queru [Mon, 27 Sep 2010 00:29:28 +0000 (17:29 -0700)]
reconcile froyo-release into gingerbread

Change-Id: I4c6d47421ed7a26b65f4f2df105d8375fcc3d840

13 years agoAdding a feature to indicate that the device possesses low-latency audio.
Dan Morrill [Mon, 27 Sep 2010 00:28:30 +0000 (17:28 -0700)]
Adding a feature to indicate that the device possesses low-latency audio.
The specific criteria for low-latency audio are defined in the CDD, but since
that hasn't yet been settled for Gingerbread, this change doesn't go into
details. We can do a docs change later once GB CDD is final.

Change-Id: Ic5ad9d04e8ecd78c81b6f09439affec6bf8cb9b2

13 years agoMerge "Add debug functions." into gingerbread
John Wang [Sun, 26 Sep 2010 20:53:33 +0000 (13:53 -0700)]
Merge "Add debug functions." into gingerbread

13 years agoAdd debug functions.
John Wang [Fri, 24 Sep 2010 19:55:07 +0000 (12:55 -0700)]
Add debug functions.

Enable more debug in CallManager.

Change-Id: Iaf66e31dc67f7ca9123fe5d8b351a21b1ec8b987

13 years agoAdd necessary logic removed during backport
Daisuke Miyakawa [Sun, 26 Sep 2010 19:15:40 +0000 (12:15 -0700)]
Add necessary logic removed during backport

Makes importer import contcats into an appropriate group.
Without this logic, all imported contacts are stored in
"Other Groups".

This logic is removed in my previous submit, while
it shouldn't be.

Bug: 3036599
Change-Id: Ic1dc7253d807fbde4352afe2082984c3b7227267

13 years agoUse buffered output during packages.xml write
Kenny Root [Sun, 26 Sep 2010 18:19:47 +0000 (11:19 -0700)]
Use buffered output during packages.xml write

FileOutputStream writes data one byte at a time, so use the
BufferedOutputStream to wrap it and write once all the XML serialization
is done.

Change-Id: I419a6fcac2ac9a72a6cf41d4ca6e7ab6c7505618

13 years agoPrevent unhandled exception in NinePatchDrawable
Sonia Serafimova [Wed, 15 Sep 2010 11:18:44 +0000 (13:18 +0200)]
Prevent unhandled exception in NinePatchDrawable

Added null check in computeBitmapSize() to avoid unhandled
exception "java.lang.NullPointerException" at
android.graphics.Rect.<init>(Rect.java:72).

This problem was discovered in the wild.

Change-Id: I9d40629a052f1390e1811288af6209d8cc3f679b

13 years agoMerge changes I1f7c4535,I741c68a2 into gingerbread
Mathias Agopian [Sat, 25 Sep 2010 01:02:10 +0000 (18:02 -0700)]
Merge changes I1f7c4535,I741c68a2 into gingerbread

* changes:
  simple test app for screen capture API
  add support for [1974164] Be able to take a screen shot on the device

13 years agoDO NOT MERGE. Fix issue #3000764: API REVIEW: android.R.*
Dianne Hackborn [Sat, 25 Sep 2010 00:18:53 +0000 (17:18 -0700)]
DO NOT MERGE.  Fix issue #3000764: API REVIEW: android.R.*

Not going out in GB.

Change-Id: I9d4f5938ec7d2a54c0f72b8eb5a177ee66f12146

13 years agoMerge "do not merge - Asset update (pass #3)" into gingerbread
Patrick Dubroy [Fri, 24 Sep 2010 23:57:46 +0000 (16:57 -0700)]
Merge "do not merge - Asset update (pass #3)" into gingerbread

13 years agodo not merge - Asset update (pass #3)
Patrick Dubroy [Fri, 24 Sep 2010 23:51:39 +0000 (16:51 -0700)]
do not merge - Asset update (pass #3)

- Updated network status icons & unlock screen

Change-Id: I429ea4bb6090acde1949023e82897712d9fdc924

13 years agoFixed some timeout and lock reentrance issues with broadcasts.
Jeff Brown [Thu, 23 Sep 2010 18:33:28 +0000 (11:33 -0700)]
Fixed some timeout and lock reentrance issues with broadcasts.

When starting a broadcast, the ActivityManagerService posts a delayed
BROADCAST_TIMEOUT_MSG to handle timeouts.  If a premature timeout occurs,
we post a new BROADCAST_TIMEOUT_MSG to extend the timeout time for the
current receiver.  However, if the current receiver does timeout, the
message is consumed and no replacement is ever posted.

To fix the dropped timeouts, we track whether we have a pending broadcast
timeout message and setup a new one when we begin working on the next receiver.

As a last resort, performNextBroadcast contains code to detect whether
a broadcast appears to be hung (timeout handling failed).  If so, it
calls broadcastTimeout to cause it to timeout immediately.
However, performNextBroadcast is holding on to the ActivityManagerService
lock while doing this but broadcastTimout expected to be called
while the lock was not held since after updating the broadcast record state,
it calls appNotResponding.

To fix the unintentended lock reentrance, changed broadcastTimeout to
assume the lock is already held (and the callers ensure this) then
added code to perform the ANR asynchronously.

Renamed a few methods to add "Locked" suffixes where appropriate and added
a few comments for tricky areas uncovered during review.

Change-Id: I3cb5b06d6b6a4a338f32c0998db721f6acf3b082

13 years agoIntent action to launch downloads UI.
Steve Howard [Fri, 24 Sep 2010 21:59:36 +0000 (14:59 -0700)]
Intent action to launch downloads UI.

Change-Id: Ifd21b9b916479062d51e60108d16ce3f46b453a5

13 years agoMerge "Some debugging support." into gingerbread
Dianne Hackborn [Fri, 24 Sep 2010 22:28:34 +0000 (15:28 -0700)]
Merge "Some debugging support." into gingerbread

13 years agoFix error in AudioEffect command status reporting.
Eric Laurent [Fri, 24 Sep 2010 18:52:04 +0000 (11:52 -0700)]
Fix error in AudioEffect command status reporting.

AudioEffect::command() should not interpret the status
returned in pReplyData unless the command is ENABLE or
DISABLE.

Also fixed:
- bug in Visualizer::getWAveForm() status reporting.
- wrong initialization value for capture buffer in visualizer engine.

Change-Id: I60fb0011f9dba96ee74661dec1e8ef441edcaf35

13 years agoSIP: longer timeout for making call, shorter for cancelling
Hung-ying Tyan [Thu, 23 Sep 2010 19:01:25 +0000 (03:01 +0800)]
SIP: longer timeout for making call, shorter for cancelling

http://b/3021865

Change-Id: I354ebcc00f1ac68e4b7b466745c36aeb314f9138

13 years agosimple test app for screen capture API
Mathias Agopian [Fri, 24 Sep 2010 22:01:49 +0000 (15:01 -0700)]
simple test app for screen capture API

Change-Id: I1f7c453508ccfd4faaa8b1279968a358ce3f1e5a

13 years agoadd support for [1974164] Be able to take a screen shot on the device
Mathias Agopian [Fri, 24 Sep 2010 18:26:58 +0000 (11:26 -0700)]
add support for [1974164] Be able to take a screen shot on the device

screenshots are taken using ISurfaceComposer::captureScreen() which returns
the size of the screenshot and an IMemoryHeap containing the data.
screenshots have limitations:
- they will always fail if a secure window is up on screen
- require GL_OES_framebuffer_object extension
- in some situation, video planes won't been captured

Change-Id: I741c68a2d2984fb139039301c3349e6780e2cd58

13 years agoMerge "fix problem in AudioEffect JNI setup." into gingerbread
Eric Laurent [Fri, 24 Sep 2010 20:43:54 +0000 (13:43 -0700)]
Merge "fix problem in AudioEffect JNI setup." into gingerbread

13 years agofix problem in AudioEffect JNI setup.
Eric Laurent [Fri, 24 Sep 2010 19:03:36 +0000 (12:03 -0700)]
fix problem in AudioEffect JNI setup.

There is a problem in AudioEffect and Visualizer native_setup() methods
that causes a crash in the application after the mediaserver process
has crashed and restarted.
The problem is that the native AudioEffect/Visualizer constructor is
called while the JNI is in critical state after calling
GetPrimitiveArrayCritical(). As the mediaserver process just restarted, the
first call to AudioSystem will cause the binder IAudioflinger interface to
be reteived and a callback send to AudioSystem JNI to clear the mediaserver
error state. This will call env->FindClass() and crash due to the JNI being
in critical state.

Also fixed a similar problem in AudioTrack JNI

Change-Id: I4a9026a3e26c7f78d9b4b4bec1aac90fbee2ab62

13 years agoSome debugging support.
Dianne Hackborn [Fri, 24 Sep 2010 18:16:23 +0000 (11:16 -0700)]
Some debugging support.

- New feature to "am monitor" to have it automatically launch
  gdbserv for you when a crash/ANR happens, and tell you how to
  run the client.

- Update dumpstate to match new location of binder debug logs

- Various commented out logs that are being used to track down
  issues.

Change-Id: Ia5dd0cd2df983a1fc6be697642a4590aa02a26a5

13 years agoMerge "Use the default SecureRandom provider." into gingerbread
Nick Kralevich [Fri, 24 Sep 2010 20:10:42 +0000 (13:10 -0700)]
Merge "Use the default SecureRandom provider." into gingerbread

13 years agoUse the default SecureRandom provider.
Nick Kralevich [Fri, 24 Sep 2010 18:48:37 +0000 (11:48 -0700)]
Use the default SecureRandom provider.

Don't be tricky when trying to set the seed for the secure
random number generator.  Setting the seed manually eliminates
the internal randomization the SecureRandom class does automatically,
reducing randomness.  Just use the default seed, which is designed
to be safe.

Change-Id: I5747c2b3a10cf04e33d2202195951ed5cb82b2fe

13 years agoMerge "Add new Alarm provider class for setting an alarm." into gingerbread
Patrick Scott [Fri, 24 Sep 2010 18:34:10 +0000 (11:34 -0700)]
Merge "Add new Alarm provider class for setting an alarm." into gingerbread

13 years agoMerge "Revert "Revert "Free created FileMap when uncompressing files""" into gingerbread
Kenny Root [Fri, 24 Sep 2010 18:33:35 +0000 (11:33 -0700)]
Merge "Revert "Revert "Free created FileMap when uncompressing files""" into gingerbread

13 years agoMerge "Add locking around ZIP seeking" into gingerbread
Kenny Root [Fri, 24 Sep 2010 18:33:29 +0000 (11:33 -0700)]
Merge "Add locking around ZIP seeking" into gingerbread

13 years agoAdd new Alarm provider class for setting an alarm.
Patrick Scott [Wed, 22 Sep 2010 12:16:53 +0000 (08:16 -0400)]
Add new Alarm provider class for setting an alarm.

The new class provides static variables for creating an intent to broadcast to
applications implementing the alarm clock.  A new permission has been added and
applications are recommended to require this permission if accepting the set
alarm broadcast.

Change-Id: I7b1014acdc54371cbda19bcf9b5c395b647aa413

13 years agoMerge "Instead of just writing one track to the .mp4 file, write all of them (at...
Andreas Huber [Fri, 24 Sep 2010 17:44:01 +0000 (10:44 -0700)]
Merge "Instead of just writing one track to the .mp4 file, write all of them (at most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool." into gingerbread

13 years agoMerge "Move long Connectivity tasks to handler thread." into gingerbread
Robert Greenwalt [Fri, 24 Sep 2010 17:42:46 +0000 (10:42 -0700)]
Merge "Move long Connectivity tasks to handler thread." into gingerbread

13 years agoMerge "Import revised translations. DO NOT MERGE" into gingerbread
Eric Fischer [Fri, 24 Sep 2010 17:37:04 +0000 (10:37 -0700)]
Merge "Import revised translations.  DO NOT MERGE" into gingerbread

13 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Fri, 24 Sep 2010 17:21:31 +0000 (10:21 -0700)]
Import revised translations.  DO NOT MERGE

Change-Id: Iec41808d7f6514cffc67a91e1b243fa063f04089

13 years agoInstead of just writing one track to the .mp4 file, write all of them (at most 1...
Andreas Huber [Fri, 24 Sep 2010 16:35:49 +0000 (09:35 -0700)]
Instead of just writing one track to the .mp4 file, write all of them (at most 1 video and 1 audio track). Also support httplive URIs in the stagefright commandline tool.

Change-Id: I67b287cf76546191f398939aabe4480d9e79a948

13 years agoMerge "Fix issue 3007862" into gingerbread
Eric Laurent [Fri, 24 Sep 2010 16:43:24 +0000 (09:43 -0700)]
Merge "Fix issue 3007862" into gingerbread

13 years agoFix issue 3007862
Eric Laurent [Thu, 23 Sep 2010 23:10:16 +0000 (16:10 -0700)]
Fix issue 3007862

Removed a cross deadlock condition between audioflinger and audio policy
service mutexes.
Audioflinger::createEffect() locks audioflinger mutex and then calls
AudioSystem::getOutputForEffect() which ends up in
AudioPolicyService::getOutputForEffect() which locks audio policy service
mutex. If at the same time, the command thread in audio policy service is
processing a command(set volume, set route...), the mutex is locked and the
command will call one audioflinger method which in turn will attempt to
lock audioflinger mutex.
The fix consists in releasing audioflinger mutex before calling
getOutputForEffect().

Change-Id: Id44e7feb36e0a295731f6aa97cf32d022edd34d0

13 years agoFix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDa...
Fabrice Di Meglio [Fri, 24 Sep 2010 16:18:25 +0000 (09:18 -0700)]
Fix bug #2585298 (google calendar sync clears eventTimezone field for recurring allDay events)

- force UTC timezone if recurrence is corresponding to an "allday" event

Change-Id: I3603438c0ad8019051ed4a8bd39d4aa7c0401eb1

13 years agoRevert "Revert "Free created FileMap when uncompressing files""
Kenny Root [Fri, 24 Sep 2010 16:11:28 +0000 (09:11 -0700)]
Revert "Revert "Free created FileMap when uncompressing files""

This revert reverts commit a19ef306bd0a257c67b50f5e0e669e9fe52b0889.

13 years agoMerge "Proper sync-frame detection for sources that don't already provide it." into...
Andreas Huber [Fri, 24 Sep 2010 15:17:20 +0000 (08:17 -0700)]
Merge "Proper sync-frame detection for sources that don't already provide it." into gingerbread

13 years agoAdd locking around ZIP seeking
Kenny Root [Fri, 24 Sep 2010 14:57:37 +0000 (07:57 -0700)]
Add locking around ZIP seeking

Since we switched to seeking to the LFH to verify its existence instead
of a huge mmap of the file, we have to guarantee that another seek
doesn't happen before we finish our read on the LFH.

Change-Id: If8135d9cb6f2f5cc4db734eafa4f6b5f6269c62a

13 years agoMerge "Use MOTOYA font for Japanese font" into gingerbread
satok [Fri, 24 Sep 2010 08:33:23 +0000 (01:33 -0700)]
Merge "Use MOTOYA font for Japanese font" into gingerbread

13 years agoSDP: remove dead code.
Chia-chi Yeh [Thu, 23 Sep 2010 09:11:02 +0000 (17:11 +0800)]
SDP: remove dead code.

Change-Id: I2a5764a2b9cabc54b0ac18666e494c1cb39c4e9b

13 years agoRefactoring SIP classes to get ready for API review.
Hung-ying Tyan [Wed, 15 Sep 2010 20:11:32 +0000 (04:11 +0800)]
Refactoring SIP classes to get ready for API review.

+ replace SipAudioCall and its Listener interfaces with real implementations,
  + remove SipAudioCallImpl.java, most of it is has become part of SipAudioCall,
+ add SipSession and its Listener classes to wrap ISipSession and ISipSessionListener,
+ move SipSessionState to SipSession.State,
+ make SipManager keep context and remove the context argument from many methods of its,
+ rename SipManager.getInstance() to newInstance(),
+ rename constant names for action strings and extra keys to follow conventions,
+ set thread names for debugging purpose.

Change-Id: Ie1790dc0e8f49c06c7fc80d33fec0f673a9c3044

13 years agoMerge "better fix for [3028370] GL get error should return a valid error if no contex...
Mathias Agopian [Fri, 24 Sep 2010 01:14:44 +0000 (18:14 -0700)]
Merge "better fix for [3028370] GL get error should return a valid error if no context is bound." into gingerbread

13 years agoSupport "seascape" rotation for "landscape-only" apps
Steve Howard [Thu, 23 Sep 2010 23:47:49 +0000 (16:47 -0700)]
Support "seascape" rotation for "landscape-only" apps

Change-Id: Ibbbd850dc2bfb741b39c04c982fbdd98f3fa4a67

13 years agoMerge "Crash apps when they provide bad notifications instead of crashing the system...
Joe Onorato [Thu, 23 Sep 2010 23:52:28 +0000 (16:52 -0700)]
Merge "Crash apps when they provide bad notifications instead of crashing the system process." into gingerbread

13 years agoCrash apps when they provide bad notifications instead of crashing the system process.
Joe Onorato [Thu, 23 Sep 2010 23:49:20 +0000 (16:49 -0700)]
Crash apps when they provide bad notifications instead of crashing the system process.

Bug: 2958415
Change-Id: I9cbef340fb20a64eca8493950b814399c26ce197

13 years agobetter fix for [3028370] GL get error should return a valid error if no context is...
Mathias Agopian [Thu, 23 Sep 2010 23:38:38 +0000 (16:38 -0700)]
better fix for [3028370] GL get error should return a valid error if no context is bound.

it turns out that we cannot return INVALID_OPERATION from glGetError() because the
GL spec says that it must be called in a loop until it returns GL_NO_ERROR.

now, we always return 0 from GL functions called from a thread with no
context bound. This means that glGetError() will return NO_ERROR in this case,
which is better than returning a random value (which could trap the app in a loop).

if this happens in the main thread of a process, we LOG an error message once.

Change-Id: Id59620e675a890286ef62a257c02b06e0fdcaf69

13 years agoMove long Connectivity tasks to handler thread.
Robert Greenwalt [Thu, 23 Sep 2010 17:05:56 +0000 (10:05 -0700)]
Move long Connectivity tasks to handler thread.

Reduce ANR potential.
bug:2942829

Change-Id: I21610b462d5ab91821015cd16eecd86d2c0580d1

13 years agoMerge "Handle OPTIONS requests from SIP servers." into gingerbread
Chung-yih Wang [Thu, 23 Sep 2010 23:36:18 +0000 (16:36 -0700)]
Merge "Handle OPTIONS requests from SIP servers." into gingerbread

13 years agoFix issue #3022508: Crash during media scan
Dianne Hackborn [Thu, 23 Sep 2010 05:34:31 +0000 (22:34 -0700)]
Fix issue #3022508: Crash during media scan

Don't kill processes for excessive wake lock use, even if they
are in the background, as long as they have running services.

Also fix some problems with this, such as not noting the kill
in battery stats.

And add killing of processes for cpu usage as well, along with
some optimizations to computing CPU usage.

And fix BatteryWaster to be better behaving for testing these
cases.

Add new "monitor" command to am to watch as the activity manager
does stuff (so we can catch things at the point of ANR).

Finally some miscellaneous debug output for the stuff here, as
well as in progress debugging of an ANR.

Change-Id: Ib32f55ca50fb7486b4be4eb5e695f8f60c882cd1

13 years agoMake the logging a little more targeted for the status bar multiple icon problem.
Joe Onorato [Thu, 23 Sep 2010 22:09:18 +0000 (15:09 -0700)]
Make the logging a little more targeted for the status bar multiple icon problem.

Change-Id: I726eef29281dce2a1b900c28ad55bf82cb50449a

13 years agoProper sync-frame detection for sources that don't already provide it.
Andreas Huber [Thu, 23 Sep 2010 22:01:30 +0000 (15:01 -0700)]
Proper sync-frame detection for sources that don't already provide it.

Change-Id: Iafeee847b015c5cf6bec6dd5fac22a8d3e8cb78e

13 years agoMerge "Doc change: ADT 0.9.9 version notes, size/sum update." into gingerbread
Dirk Dougherty [Thu, 23 Sep 2010 21:58:41 +0000 (14:58 -0700)]
Merge "Doc change: ADT 0.9.9 version notes, size/sum update." into gingerbread

13 years agoMerge "Enforce serial ordering of MotionEvents." into gingerbread
Jeff Brown [Thu, 23 Sep 2010 21:51:52 +0000 (14:51 -0700)]
Merge "Enforce serial ordering of MotionEvents." into gingerbread

13 years agoMerge "Better errors in PackageManagerTests" into gingerbread
Kenny Root [Thu, 23 Sep 2010 21:27:00 +0000 (14:27 -0700)]
Merge "Better errors in PackageManagerTests" into gingerbread

13 years agoMerge "Depending on our preference to write 2-byte or 4-byte NALs, patch the codec...
Andreas Huber [Thu, 23 Sep 2010 21:16:48 +0000 (14:16 -0700)]
Merge "Depending on our preference to write 2-byte or 4-byte NALs, patch the codec specific data 'avcC' accordingly." into gingerbread

13 years agoMerge "Fix a deadlock I ran into." into gingerbread
Dianne Hackborn [Thu, 23 Sep 2010 21:15:45 +0000 (14:15 -0700)]
Merge "Fix a deadlock I ran into." into gingerbread

13 years agoDepending on our preference to write 2-byte or 4-byte NALs, patch the codec specific...
Andreas Huber [Thu, 23 Sep 2010 21:08:32 +0000 (14:08 -0700)]
Depending on our preference to write 2-byte or 4-byte NALs, patch the codec specific data 'avcC' accordingly.

Change-Id: I1423923fafbcac6911218277e2bbfa068e49dcc6

13 years agoEnforce serial ordering of MotionEvents.
Jeff Brown [Thu, 23 Sep 2010 20:51:48 +0000 (13:51 -0700)]
Enforce serial ordering of MotionEvents.

This change modifies ViewRoot to wait until the MotionEvent has been
delivered before telling the input dispatcher that it is finished.
The serial ordering guarantee will be required by new features that
may need to transfer touch focus from one window to another.

Change-Id: I0a64d1f0c8bc3f08846f213d6e28ce48b1d48e58

13 years agoMerge "Add an aapt option to allow string variations for different devices." into...
Eric Fischer [Thu, 23 Sep 2010 20:47:06 +0000 (13:47 -0700)]
Merge "Add an aapt option to allow string variations for different devices." into gingerbread

13 years agofix [3028370] GL get error should return a valid error if no context is bound.
Mathias Agopian [Thu, 23 Sep 2010 18:32:52 +0000 (11:32 -0700)]
fix [3028370] GL get error should return a valid error if no context is bound.

glGetError() will now always return GL_INVALID_OPERATION if called from a thread
with no GL context bound.

Change-Id: I28ba458871db051bb4f5a26668a1fa123526869c

13 years agoHave DownloadManager pass file URIs for legacy external downloads
Steve Howard [Thu, 23 Sep 2010 01:56:29 +0000 (18:56 -0700)]
Have DownloadManager pass file URIs for legacy external downloads

DownloadManager was set up to return file URIs for public API
downloads to external, but to return content URIs for all others.
This included browser downloads, which are on external but don't go
through the public API.  Since the new downloads UI uses
DownloadManager, it was affected by this change when the user opened a
file from the UI.  Apparently numerous things don't handle content
URIs well, including music preview (clicking on downloaded mp3) and
package installer (clicking on downloaded APK), so this change makes
it generate file URIs for legacy external downloads.

Change-Id: I5c34d8ba188cc8b0d11865262cb451208be78eae

13 years agoTweaks to download manager API based on API review feedback
Steve Howard [Wed, 22 Sep 2010 22:57:25 +0000 (15:57 -0700)]
Tweaks to download manager API based on API review feedback

* improved documentation of the default destination on the download
  cache and the concomitant consequences

* removed NETWORK_WIMAX flag for setting allowed networks

* changed request headers behavior to support multiple instances of
  the same header (as allowed in the HTTP spec), renamed
  setRequestHeader() to addRequestHeader()

* accept user-facing strings as CharSequences instead of Strings

* new convenience methods setDestinationInExternalFilesDir() and
  setDestinationInExternalPublicDir() for setting a destination in
  either shared or app-private external storage directories

* renamed setMediaType() to setMimeType()

Change-Id: I8781e2214d939c340209cab917bbbba264ab919c

13 years agoDoc change: ADT 0.9.9 version notes, size/sum update.
Dirk Dougherty [Thu, 23 Sep 2010 18:48:54 +0000 (11:48 -0700)]
Doc change: ADT 0.9.9 version notes, size/sum update.

Change-Id: I824da2911e782b0eec1e684a1982750ac308977b

13 years agoam 5b7328f2: Merge "docs: add more info about state list drawable and onclick attribu...
Scott Main [Thu, 23 Sep 2010 18:41:48 +0000 (11:41 -0700)]
am 5b7328f2: Merge "docs: add more info about state list drawable and onclick attribute to Button bug:1062898" into froyo

Merge commit '5b7328f257a76ff6b7b60872d6a106002ff1f679' into gingerbread

* commit '5b7328f257a76ff6b7b60872d6a106002ff1f679':
  docs: add more info about state list drawable and onclick attribute to Button

13 years agoam 27de3a24: (-s ours) Doc change: ADT 0.9.9 version notes, size/sum update.
Dirk Dougherty [Thu, 23 Sep 2010 18:37:33 +0000 (11:37 -0700)]
am 27de3a24: (-s ours) Doc change: ADT 0.9.9 version notes, size/sum update.

Merge commit '27de3a240fcf6e5cdd1b228fa11ffcb4fdc73866' into gingerbread

* commit '27de3a240fcf6e5cdd1b228fa11ffcb4fdc73866':
  Doc change: ADT 0.9.9 version notes, size/sum update.

13 years agoMerge "docs: add more info about state list drawable and onclick attribute to Button...
Scott Main [Thu, 23 Sep 2010 18:23:48 +0000 (11:23 -0700)]
Merge "docs: add more info about state list drawable and onclick attribute to Button bug:1062898" into froyo

13 years agoBetter errors in PackageManagerTests
Kenny Root [Tue, 21 Sep 2010 23:30:56 +0000 (16:30 -0700)]
Better errors in PackageManagerTests

PackageManagerTests was catching assertion errors and just spitting out
a generic "Hey, there was an error!" message. This eliminates that and
adds some expected outcomes in the assertions.

Change-Id: I27baa3c57c85b0cae4ea76aaf1e2a9b61b2c32b7

13 years agoMerge "Fix issue 3022800." into gingerbread
Eric Laurent [Thu, 23 Sep 2010 18:07:06 +0000 (11:07 -0700)]
Merge "Fix issue 3022800." into gingerbread

13 years agoFix issue 3022800.
Eric Laurent [Wed, 22 Sep 2010 01:18:20 +0000 (18:18 -0700)]
Fix issue 3022800.

- Created sub-package android.media.audiofx for audio effects.
- Hid AudioEffect class contructor, methods and variables not needed by
applications
- Added more javadoc comments for AudioEffect Class

Change-Id: Ibbb40d4e714bb248aa32cf82d7763d74efae96d1

13 years agoMerge "Fix for IndexOutOfBounds in setComposingRegion." into gingerbread
Amith Yamasani [Thu, 23 Sep 2010 18:03:49 +0000 (11:03 -0700)]
Merge "Fix for IndexOutOfBounds in setComposingRegion." into gingerbread

13 years agoAdd an aapt option to allow string variations for different devices.
Eric Fischer [Wed, 15 Sep 2010 22:59:21 +0000 (15:59 -0700)]
Add an aapt option to allow string variations for different devices.

The --product option to aapt is a comma-separated list of characteristics
of the device being built for.  For example, --product nosdcard,grayscale
for a device with no SD card and a grayscale screen.

Strings can specify a product="characteristic" option to cause that version
of the string to be used only for that type of device.  All such strings
should also specify, at the end of the block, product="default", which
will be used if none of the variations match.  For example:

<string name="choose" product="bw">Choose black or white</string>
<string name="choose" product="grayscale">Choose a shade of gray</string>
<string name="choose" product="default">Choose a color</string>

The default characteristic will also be used when no --product option
is specified.

Change-Id: Ie6c1505599e02e15b7818e8be6ec47bc6ce71aaa

13 years agoDon't crash if we've never gotten a signal strength update.
Joe Onorato [Thu, 23 Sep 2010 16:50:04 +0000 (09:50 -0700)]
Don't crash if we've never gotten a signal strength update.

It looks like this timing bug has been there forever, and we're just starting to hit it now.

Bug: 3027952
Change-Id: I5c14ccd7f74205dc6930f4282cec0e23eeb54cab

13 years agoDoc change: ADT 0.9.9 version notes, size/sum update.
Dirk Dougherty [Thu, 23 Sep 2010 16:41:57 +0000 (09:41 -0700)]
Doc change: ADT 0.9.9 version notes, size/sum update.

Change-Id: I08ebfa95b0735964a888a89931a1f4c3bdf1862c

13 years agoIgnore errors from correction parameter query and config for M4v and H263 encoders
James Dong [Thu, 23 Sep 2010 00:37:42 +0000 (17:37 -0700)]
Ignore errors from correction parameter query and config for M4v and H263 encoders

This feature is not essential for camcorder application

Change-Id: Id560632207dcf24fe361280ebe8178ea7332f22d

13 years agoMerge "Use the advertised profile and level from M4V and H263 video encoders" into...
James Dong [Thu, 23 Sep 2010 17:11:04 +0000 (10:11 -0700)]
Merge "Use the advertised profile and level from M4V and H263 video encoders" into gingerbread

13 years agoHandle OPTIONS requests from SIP servers.
Chung-yih Wang [Thu, 23 Sep 2010 15:27:00 +0000 (23:27 +0800)]
Handle OPTIONS requests from SIP servers.

Change-Id: I849d5ea4c4c56a06d25ccdc6b959274c59c47200

13 years agoMerge "Cleanup Netd to prevent getting hung." into gingerbread
Robert Greenwalt [Thu, 23 Sep 2010 15:41:21 +0000 (08:41 -0700)]
Merge "Cleanup Netd to prevent getting hung." into gingerbread

13 years agoFix the build.
repo sync [Thu, 23 Sep 2010 06:52:24 +0000 (14:52 +0800)]
Fix the build.

Change-Id: I82210cb2d41f532583f83ea17e6f2d8d49280a30

13 years agoMerge changes I7efff4f2,I1631ee20,I14d9886a,Ic2858920,Iff588130,I37ba9d83 into ginger...
repo sync [Thu, 23 Sep 2010 06:14:15 +0000 (23:14 -0700)]
Merge changes I7efff4f2,I1631ee20,I14d9886a,Ic2858920,Iff588130,I37ba9d83 into gingerbread

* changes:
  SIP: Make SipAudioCallImpl use SimpleSessionDescription instead of javax.sdp.
  SDP: Add a simple class to help manipulate session descriptions.
  RTP: Add log throttle for "no data".
  RTP: Update native part to reflect the API change.
  RTP: Add two getters to retrieve the current configuration from AudioStream.
  RTP: Extend codec capability and update the APIs.

13 years agoSIP: Make SipAudioCallImpl use SimpleSessionDescription instead of javax.sdp.
repo sync [Wed, 22 Sep 2010 23:12:30 +0000 (07:12 +0800)]
SIP: Make SipAudioCallImpl use SimpleSessionDescription instead of javax.sdp.

Change-Id: I7efff4f29ca84c3e7c17ef066b7186b514a777b2

13 years agoUnhide BitmapRegionDecoder.
Wei-Ta Chen [Tue, 7 Sep 2010 09:32:18 +0000 (17:32 +0800)]
Unhide BitmapRegionDecoder.

1. Rename LargeBitmap to BitmapRegionDecoder
2. Move the instantiations of BitmapRegionDecoder out of BitmapFactory.
3. Remove the use of MemoryFile in BitmapRegionDecoder, since MemoryFile's API had been modified in master. Otherwise, the change will break the master build.
4. Move AssetStreamAdaptor, AutoFDSeek and nullObjectReturn to Utils.h because BitmapFactory.cpp and BitmapRegionDecoder.cpp both need to use these utility functions.

Most of the modifications, except for (2) and (3), were reviewed in https://android-git.corp.google.com/g/#change,64716 .
However, that change broke the master build due to (3) and was reverted eventually.
So, instead of withdrawing this change and waiting for that change to be checked in again, I merge the two changes into one.

Change-Id: I2202c0fbbbd6d6676bbd9637e690023ea4099c40

13 years agoFix a deadlock I ran into.
Dianne Hackborn [Thu, 23 Sep 2010 05:46:21 +0000 (22:46 -0700)]
Fix a deadlock I ran into.

Activity manager was calling into the backup service (and other
things) with its lock held.

Change-Id: Id55093e09cc5fe81b73b85968184816d956e0ae8

13 years agoSDP: Add a simple class to help manipulate session descriptions.
Chia-chi Yeh [Mon, 20 Sep 2010 08:34:18 +0000 (16:34 +0800)]
SDP: Add a simple class to help manipulate session descriptions.

Change-Id: I1631ee20e8b4a9ad8e2184356b5d13de66e03db1

13 years agoMerge "DO NOT MERGE Apply new styles to the status bar/notification shade" into ginge...
Adam Powell [Thu, 23 Sep 2010 04:08:10 +0000 (21:08 -0700)]
Merge "DO NOT MERGE Apply new styles to the status bar/notification shade" into gingerbread

13 years agoDO NOT MERGE Apply new styles to the status bar/notification shade
Adam Powell [Thu, 23 Sep 2010 03:17:34 +0000 (20:17 -0700)]
DO NOT MERGE Apply new styles to the status bar/notification shade

Change-Id: I5e89891852ff96f113083ac87bcfd74732c43faa

13 years agodocs: add more info about state list drawable and onclick attribute to Button
Scott Main [Thu, 23 Sep 2010 01:55:31 +0000 (18:55 -0700)]
docs: add more info about state list drawable and onclick attribute to Button
bug:1062898

Change-Id: I633c38fc20a2ebf894237f86648cc0fdc9488b1a

13 years agoDon't do single byte writes in DropBoxManagerService
Brad Fitzpatrick [Thu, 23 Sep 2010 00:49:16 +0000 (17:49 -0700)]
Don't do single byte writes in DropBoxManagerService

Bug: 3018772
Change-Id: I6990041f059aeb2a4c29e59b1a3d78d19bf9b02f

13 years agoUse the advertised profile and level from M4V and H263 video encoders
James Dong [Thu, 23 Sep 2010 00:42:09 +0000 (17:42 -0700)]
Use the advertised profile and level from M4V and H263 video encoders

This is already the case for AVC video encoder

Change-Id: I9cc97a03ab457b4bd0b21832c09f6d0aa7f5fc39

13 years agoFix for IndexOutOfBounds in setComposingRegion.
Amith Yamasani [Wed, 22 Sep 2010 23:58:13 +0000 (16:58 -0700)]
Fix for IndexOutOfBounds in setComposingRegion.

Bug: 3000457

Check upper and lower bounds of the composing region and clip them.

Change-Id: I8128a2b581ce3d8a9ff6c71cc648c3e87163b3f5