OSDN Git Service

android-x86/frameworks-base.git
14 years agoMerge change I2a4b120c into eclair
Android (Google) Code Review [Tue, 10 Nov 2009 03:02:17 +0000 (19:02 -0800)]
Merge change I2a4b120c into eclair

* changes:
  Add more ringtones. Bug 2219950.

14 years agoAdd more ringtones. Bug 2219950.
Dave Sparks [Tue, 10 Nov 2009 00:50:55 +0000 (16:50 -0800)]
Add more ringtones. Bug 2219950.

14 years agoMerge change Ib12bcb7f into eclair
Android (Google) Code Review [Tue, 10 Nov 2009 00:52:54 +0000 (16:52 -0800)]
Merge change Ib12bcb7f into eclair

* changes:
  Support for fallback fonts in layoutlib.

14 years agoSupport for fallback fonts in layoutlib.
Xavier Ducrohet [Sun, 8 Nov 2009 23:15:01 +0000 (15:15 -0800)]
Support for fallback fonts in layoutlib.

BUG 2041229

Change-Id: Ib12bcb7f6d8f0e4c2b51871f8129ecf51fa938ee

14 years agoMerge change I47aa76bf into eclair
Android (Google) Code Review [Mon, 9 Nov 2009 21:46:17 +0000 (13:46 -0800)]
Merge change I47aa76bf into eclair

* changes:
  Add new notifications and ringtones.

14 years agoAdd new notifications and ringtones.
Dave Sparks [Mon, 9 Nov 2009 19:59:10 +0000 (11:59 -0800)]
Add new notifications and ringtones.

14 years agoMerge change I70e1f7a6 into eclair
Android (Google) Code Review [Mon, 9 Nov 2009 20:37:22 +0000 (12:37 -0800)]
Merge change I70e1f7a6 into eclair

* changes:
  Fix the selection of locale from SIM mcc.

14 years agoMerge change I73b60354 into eclair
Android (Google) Code Review [Mon, 9 Nov 2009 16:53:11 +0000 (08:53 -0800)]
Merge change I73b60354 into eclair

* changes:
  AudioFlinger: delete Track object when createTrack() fails due to lack of tracks in AudioMixer.

14 years agoMerge change Icaf932d0 into eclair
Android (Google) Code Review [Mon, 9 Nov 2009 16:09:35 +0000 (08:09 -0800)]
Merge change Icaf932d0 into eclair

* changes:
  Fix code example in Parcelable javadoc

14 years agoAudioFlinger: delete Track object when createTrack() fails due to lack of tracks...
Eric Laurent [Mon, 9 Nov 2009 12:45:39 +0000 (04:45 -0800)]
AudioFlinger: delete Track object when createTrack() fails due to lack of tracks in AudioMixer.

This problem was encountered as a side effect of issue 2245298.

14 years agoMerge change Ifb9d6df3 into eclair
Android (Google) Code Review [Mon, 9 Nov 2009 06:58:34 +0000 (22:58 -0800)]
Merge change Ifb9d6df3 into eclair

* changes:
  More log for issue 2242381.

14 years agoMerge change Ic42763b1 into eclair
Android (Google) Code Review [Mon, 9 Nov 2009 02:07:14 +0000 (18:07 -0800)]
Merge change Ic42763b1 into eclair

* changes:
  Fix issue #2242440: Window screen brightness attribute is broken

14 years agoFix issue #2242440: Window screen brightness attribute is broken
Dianne Hackborn [Mon, 9 Nov 2009 01:37:07 +0000 (17:37 -0800)]
Fix issue #2242440: Window screen brightness attribute is broken

Um okay, that was dumb.  And I guess this means it is time to make 6.xml.

Change-Id: Ic42763b1c8a13448cf6db20b4cd6daadc7786ac1

14 years agoUse SystemClock.elapsedRealtime() instead of sensor timestamp
Mike Lockwood [Mon, 9 Nov 2009 00:31:18 +0000 (19:31 -0500)]
Use SystemClock.elapsedRealtime() instead of sensor timestamp

when processing light and proximity events.
This should fix loss of 2 second hysterisis for light sensor (b/2243521)

Change-Id: Ia3ce331e67d803eb5e51810cb7161b7c528312d7
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change I1bc566a1 into eclair
Android (Google) Code Review [Sun, 8 Nov 2009 23:51:02 +0000 (15:51 -0800)]
Merge change I1bc566a1 into eclair

* changes:
  Ignore the light sensor if the screen is turning off.

14 years agoIgnore the light sensor if the screen is turning off.
Mike Lockwood [Sun, 8 Nov 2009 23:33:03 +0000 (18:33 -0500)]
Ignore the light sensor if the screen is turning off.

Fixes bug b/2202165.  The light sensor was interfering with the screen off animation.

Change-Id: I1bc566a164af689b60b066e6cb3dcbf7959bc50a
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoReset binder service threads' cgroup/priority after command completion
Christopher Tate [Sun, 8 Nov 2009 22:29:02 +0000 (14:29 -0800)]
Reset binder service threads' cgroup/priority after command completion

To prevent buggy command implementations from poisoning binder threads'
scheduling class & priority for future command execution, we now reset the
cgroup and thread priority to foreground/normal when a binder service thread
finishes executing the designated command.

Change-Id: Ibc0ab2485751453f6dc96fdb4eb877fd02796e3f

14 years agoMerge change I32d41651 into eclair
Android (Google) Code Review [Sun, 8 Nov 2009 18:19:59 +0000 (10:19 -0800)]
Merge change I32d41651 into eclair

* changes:
  Allow a GLThread to release and reacquire the EGL Surface as needed.

14 years agoAllow a GLThread to release and reacquire the EGL Surface as needed.
Jack Palevich [Sun, 8 Nov 2009 02:55:56 +0000 (10:55 +0800)]
Allow a GLThread to release and reacquire the EGL Surface as needed.

We currently only allow one GLThread to have an active EGL Surface at a
time.(This may be lifted in the future, when EGL and GL are reentrant.)

Prior to this change we would enforce this rule by having older GLThreads
quit when a new GLThread started. That had the drawback of leaving the
older GLSurfaceViews in a zombie state -- their GLThreads would be
gone.

We now enforce this rule by just releasing and reacquiring the EGL surface
context as needed.

Specific changes to the code:

created private helper methods - startEgl and stopEgl to help manage
starting and stopping EGL.

Move the calls to sGLThreadManager start and end from the outermost run
method into the startEgl / stopEgl methods.

Reworked the wait loop to handle starting and stopping EGL as needed.

needToWait() gets simpler -- just looks at current status.

sGLThreadManager.shouldQuit was replaced by shouldHaveEgl.

This is another step in fixing bug 2228262.

14 years agoMerge change I62704736 into eclair
Android (Google) Code Review [Sun, 8 Nov 2009 02:11:06 +0000 (18:11 -0800)]
Merge change I62704736 into eclair

* changes:
  Do not apply light sensor debounce logic while the light sensor is still warming up.

14 years agoDo not apply light sensor debounce logic while the light sensor is still warming up.
Mike Lockwood [Sun, 8 Nov 2009 01:33:47 +0000 (20:33 -0500)]
Do not apply light sensor debounce logic while the light sensor is still warming up.

This allows us to adjust immediately when we receive a correct light sensor reading
after the screen turns on.

Change-Id: I627047365640761727348e577c9164a6d6be2772
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoRemove "@hide pending API council" in webkit to expose
Grace Kloba [Thu, 22 Oct 2009 19:17:20 +0000 (12:17 -0700)]
Remove "@hide pending API council" in webkit to expose
the apis to SDK.

Remove @hide in GeolocationPermissions and WebStorage
to expose them to the SDK users.

Remove @hide for freeMemory() in WebView.

Remove @hide comment in CallbackProxy and
GoogleLocationSettingManager as they are not public class.

14 years agoMore log for issue 2242381.
Eric Laurent [Sat, 7 Nov 2009 08:01:32 +0000 (00:01 -0800)]
More log for issue 2242381.

Added more log in system dump for AudioFlinger and AudioPolicyService to help debug issue 2242381 and other issues where the audio driver hangs.

14 years agoMerge change I47ef4266 into eclair
Android (Google) Code Review [Sat, 7 Nov 2009 06:05:34 +0000 (01:05 -0500)]
Merge change I47ef4266 into eclair

* changes:
  Expose WallpaperSettingsActivity in the public API.

14 years agoMerge change I32ce8591 into eclair
Android (Google) Code Review [Sat, 7 Nov 2009 02:29:56 +0000 (21:29 -0500)]
Merge change I32ce8591 into eclair

* changes:
  Stop scrolling ListView when tapping a clickable item.

14 years agoExpose WallpaperSettingsActivity in the public API.
Charles Mendis [Sat, 7 Nov 2009 02:06:06 +0000 (18:06 -0800)]
Expose WallpaperSettingsActivity in the public API.

14 years agoStop scrolling ListView when tapping a clickable item.
Romain Guy [Sat, 7 Nov 2009 01:41:43 +0000 (17:41 -0800)]
Stop scrolling ListView when tapping a clickable item.

Bug #2210279.

Approved by mcleron.

Change-Id: I32ce8591b00fada95072513f5de69674b45e4cf3

14 years agoMerge change I9f3020db into eclair
Android (Google) Code Review [Sat, 7 Nov 2009 01:08:35 +0000 (20:08 -0500)]
Merge change I9f3020db into eclair

* changes:
  fix [2243164] live wallpaper screen artifacts at end of boot

14 years agofix [2243164] live wallpaper screen artifacts at end of boot
Mathias Agopian [Sat, 7 Nov 2009 00:30:18 +0000 (16:30 -0800)]
fix [2243164] live wallpaper screen artifacts at end of boot

make sure to glClear() the areas not touched by the animation

14 years agoMerge change Ia4424950 into eclair
Android (Google) Code Review [Sat, 7 Nov 2009 00:00:54 +0000 (19:00 -0500)]
Merge change Ia4424950 into eclair

* changes:
  Fix stupid bug in GLThreadManager implementation.

14 years agoFix stupid bug in GLThreadManager implementation.
Jack Palevich [Fri, 6 Nov 2009 23:49:15 +0000 (07:49 +0800)]
Fix stupid bug in GLThreadManager implementation.

The code intended to copy the old value of a field, before the
field was updated. However, what the code was actually doing was
copying the new value of the field, after the field was updated.

The fix was to move the copy to before the update.

This is work towards fixing bug 2228262

14 years agoam 0e08055a: Merge change I14a9acd3 into eclair-sdk
Scott Main [Fri, 6 Nov 2009 23:41:28 +0000 (15:41 -0800)]
am 0e08055a: Merge change I14a9acd3 into eclair-sdk

Merge commit '0e08055aa31c752732005fc48b09ee470a2c4822' into eclair

* commit '0e08055aa31c752732005fc48b09ee470a2c4822':
  docs: add new document for the win usb driver;

14 years agoMerge change Ic8093c11 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 22:03:52 +0000 (17:03 -0500)]
Merge change Ic8093c11 into eclair

* changes:
  Hold a lock while we access the preview heap.

14 years agoMerge change I14a9acd3 into eclair-sdk
Android (Google) Code Review [Fri, 6 Nov 2009 21:57:12 +0000 (16:57 -0500)]
Merge change I14a9acd3 into eclair-sdk

* changes:
  docs: add new document for the win usb driver; remove usb guide from the device document.

14 years agoMerge change Idc1396c8 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 21:56:51 +0000 (16:56 -0500)]
Merge change Idc1396c8 into eclair

* changes:
  Only use FLAG_ACTIVITY_CLEAR_TOP on the search intent when from global search.

14 years agodocs: add new document for the win usb driver;
Scott Main [Fri, 6 Nov 2009 02:53:59 +0000 (18:53 -0800)]
docs: add new document for the win usb driver;
remove usb guide from the device document.

14 years agoMerge change Icdd2864e into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 21:23:42 +0000 (16:23 -0500)]
Merge change Icdd2864e into eclair

* changes:
  b/2234854 Fixed Bluetooth API return codes for requesting permission to enable bluetooth

14 years agoMerge change Ie994c0e8 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 20:58:20 +0000 (15:58 -0500)]
Merge change Ie994c0e8 into eclair

* changes:
  Update CdmaSmsTest unit test.

14 years agoMerge change I3f0ded49 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 20:55:52 +0000 (15:55 -0500)]
Merge change I3f0ded49 into eclair

* changes:
  Increase light sensor delay from one to two seconds.

14 years agoIncrease light sensor delay from one to two seconds.
Mike Lockwood [Fri, 6 Nov 2009 20:53:59 +0000 (15:53 -0500)]
Increase light sensor delay from one to two seconds.

Change-Id: I3f0ded49cb447835133cf8d5d693260e8312aa89
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change Ibf6e51b7 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 20:00:31 +0000 (15:00 -0500)]
Merge change Ibf6e51b7 into eclair

* changes:
  Set argv[0] from the main thread of an app, not a random binder thread

14 years agoOnly use FLAG_ACTIVITY_CLEAR_TOP on the search intent when from global search.
Evan Millar [Fri, 6 Nov 2009 19:59:39 +0000 (11:59 -0800)]
Only use FLAG_ACTIVITY_CLEAR_TOP on the search intent when from global search.

Fixes http://b/issue?id=2178591

14 years agoUpdate CdmaSmsTest unit test.
jsh [Fri, 6 Nov 2009 19:37:47 +0000 (11:37 -0800)]
Update CdmaSmsTest unit test.

Forgot to do this with previous check in.  Now that calculateLength() has
been fixed to match the actual encoding (ie, doesn't support single-segment
EMS), test case needs to be updated.

Fixes b/2244483

14 years agoMerge change I97b30e2f into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 19:49:39 +0000 (14:49 -0500)]
Merge change I97b30e2f into eclair

* changes:
  Revert jparks code from IPCThreadState.

14 years agoHold a lock while we access the preview heap.
Dave Sparks [Fri, 6 Nov 2009 19:47:13 +0000 (11:47 -0800)]
Hold a lock while we access the preview heap.

copyFrameAndPostCopiedFrame was not holding a lock while it accessed
the preview heap. If the client process is torn down while the heap
is accessed, the memcpy could access memory that was deallocated.

This patch creates a local sp reference to the preview heap while
holding the lock, then releases the lock. This should prevent the
heap from being pulled out from underneath us.

14 years agoMerge change I6ccd2ebc into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 19:39:22 +0000 (14:39 -0500)]
Merge change I6ccd2ebc into eclair

* changes:
  Expose PowerManager.isScreenOn in the public api.

14 years agoExpose PowerManager.isScreenOn in the public api.
Charles Mendis [Thu, 29 Oct 2009 18:06:59 +0000 (11:06 -0700)]
Expose PowerManager.isScreenOn in the public api.

Change-Id: I6ccd2ebcbf3f8ad9ffa4b86a9c037cb0c25a7b78

14 years agoSet argv[0] from the main thread of an app, not a random binder thread
Christopher Tate [Fri, 6 Nov 2009 19:30:20 +0000 (11:30 -0800)]
Set argv[0] from the main thread of an app, not a random binder thread

Change-Id: Ibf6e51b7975cdb5e6aa97591a571c599ecf84020

14 years agoRevert jparks code from IPCThreadState.
Evan Millar [Fri, 6 Nov 2009 19:25:23 +0000 (11:25 -0800)]
Revert jparks code from IPCThreadState.

14 years agoMerge change I4e9fe62b into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 19:23:14 +0000 (14:23 -0500)]
Merge change I4e9fe62b into eclair

* changes:
  do not merge -- original checkin to mr2 here:

14 years agoam 91bb62f0: New API 4 with new CDMA constants.
Xavier Ducrohet [Fri, 6 Nov 2009 18:00:29 +0000 (10:00 -0800)]
am 91bb62f0: New API 4 with new CDMA constants.

Merge commit '91bb62f0dc002065cb1932a96fecf15c1b92b6e9' into eclair

* commit '91bb62f0dc002065cb1932a96fecf15c1b92b6e9':
  New API 4 with new CDMA constants.

14 years agoMerge change Ic997acac into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 16:27:03 +0000 (11:27 -0500)]
Merge change Ic997acac into eclair

* changes:
  Make AudioPlayer a little less verbose, defer starting audio playback until after the first video frame has been decoded (if there's video at all).

14 years agodo not merge -- original checkin to mr2 here:
Cary Clark [Thu, 15 Oct 2009 19:29:08 +0000 (15:29 -0400)]
do not merge -- original checkin to mr2 here:

https://android-git.corp.google.com/g/#change,30204

check for native initialization before calling public function

Added more checks where it is possible to call a native function
after creating a WebView but before the native side is initialized.

These cases can be triggered by the monkey.

Fixes http://b/issue?id=2187719

14 years agojni: GpsLocationProvider: Check for pending callbacks before waiting
Jared Suttles [Wed, 4 Nov 2009 22:53:44 +0000 (16:53 -0600)]
jni: GpsLocationProvider: Check for pending callbacks before waiting

This change fixes a corner case where a callback may not get handled until
a second callback arrives.  This can happen because there is a significant
section of the wait_for_event function where the mutex is not locked, and
the sPendingCallbacks member could be updated.  We now check to see if
there is a pending callback to handle before we wait for another callback.

Change-Id: I20cfae1e780944bb74133940dda032efc4c55540
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
Signed-off-by: Jared Suttles <jared.suttles@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoFix a race condition that could result in the screen being forced off indefinitely...
Mike Lockwood [Fri, 6 Nov 2009 01:53:00 +0000 (20:53 -0500)]
Fix a race condition that could result in the screen being forced off indefinitely after a phone call.

This should fix a "black screen" bug that Motorola identified.
mProximitySensorActive was being set to true due to a proximity sensor change being posted
just after we disabled the proximity sensor.
Now we ignore proximity changes after the phone app releases the proximity lock after the call is done.

Change-Id: I417d423de3d43515389b1b7b008cdcb795cd10f6
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change I44d4cbec into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 08:07:01 +0000 (03:07 -0500)]
Merge change I44d4cbec into eclair

* changes:
  Fix some SMS encode issues.

14 years agoFix some SMS encode issues.
jsh [Fri, 6 Nov 2009 01:00:15 +0000 (17:00 -0800)]
Fix some SMS encode issues.

1. Spanish SMS 71-160 chars not sent. This was because calculateLength
allowed for single-segment EMS encoding, while encodeUserDataPayload
did not.  For now, change calculateLength to match encodeUserDataPayload
(ie, fallback to UTF16 in this case).  (b/2224849)
2. Unicode value of N w/tilde was incorrect. (b/2224849)
3. Add '\' and '/' to the list of valid separators in CDMA SMS numeric
addresses. (b/2236527)

14 years agoMerge change Ic9568e39 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 07:12:40 +0000 (02:12 -0500)]
Merge change Ic9568e39 into eclair

* changes:
  When tasks are moved to top or bottom, the app tokens are being rearranged. The window token rearrangement is defered if an animation is underway. Force a focus recomputation when the window tokens are finally rearranged so that we have a valid focused window.

14 years agoMerge change I971f6fd3 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 06:23:52 +0000 (01:23 -0500)]
Merge change I971f6fd3 into eclair

* changes:
  Improve GLSurfaceView to avoid deadlocks and race conditions.

14 years agoFix SDK build: a few things missing, a link that was wrong.
Dianne Hackborn [Fri, 6 Nov 2009 05:45:51 +0000 (21:45 -0800)]
Fix SDK build: a few things missing, a link that was wrong.

Change-Id: I55c9c510b3f0866ce6085927afa00b9fb69dd8c5

14 years agoFix issue #2243096: Need to expose live wallpaper APIs in SDK
Dianne Hackborn [Fri, 6 Nov 2009 01:52:19 +0000 (17:52 -0800)]
Fix issue #2243096: Need to expose live wallpaper APIs in SDK

Change-Id: I7e996bf549922c1bb8e8c00d051650ffe12d818c

14 years agoMerge change Ie71d9e42 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 03:20:02 +0000 (22:20 -0500)]
Merge change Ie71d9e42 into eclair

* changes:
  Another test for StatusBar test.

14 years agoWhen tasks are moved to top or bottom, the app tokens are being rearranged.
Suchi Amalapurapu [Fri, 6 Nov 2009 02:51:16 +0000 (18:51 -0800)]
When tasks are moved to top or bottom, the app tokens are being rearranged.
The window token rearrangement is defered if an animation is
underway. Force a focus recomputation when the window tokens are finally
rearranged so that we have a valid focused window.

14 years agoFix the build
Romain Guy [Fri, 6 Nov 2009 02:44:12 +0000 (18:44 -0800)]
Fix the build

Change-Id: Id7514858594772ab79c0f3db745b00f0bb59218b

14 years agob/2234854 Fixed Bluetooth API return codes for requesting permission to enable bluetooth
Michael Chan [Fri, 6 Nov 2009 02:29:01 +0000 (18:29 -0800)]
b/2234854 Fixed Bluetooth API return codes for requesting permission to enable bluetooth

14 years agoImprove GLSurfaceView to avoid deadlocks and race conditions.
Jack Palevich [Fri, 6 Nov 2009 02:21:46 +0000 (10:21 +0800)]
Improve GLSurfaceView to avoid deadlocks and race conditions.

This is work towards fixing bug 2228262

Specific issues fixed by this change:

+ GLThread names now include the thread id, making it easier to tell one
GLThread from another.

+ A private final static boolean LOG_THREADS can be set to true at compile
time to print out thread-related trace information, helpful for debugging
GLSurfaceView behavior. This static defaults to "false".

+ Changed calls to "notify" to "notifyAll" to make the code more
robust in case more than two threads are blocked on the same monitor.

+ Add a GLThreadManager to help manage the transition to
a new GLThread. Currently only one GLThread can be active in an address
space. When the second thread starts up, the GLThreadManager helps the old
GLThread to shut down,

+ Make sure we stop waiting for dead GLThreads. This is done by adding
checks for a variable mDone being true to our monitor wait loops. And
we use a "finally" clause at the end of GLThread.run() method to set mDone
and notifyAll any wait loops.

14 years agoFix the selection of locale from SIM mcc.
Robert Greenwalt [Fri, 6 Nov 2009 02:19:37 +0000 (18:19 -0800)]
Fix the selection of locale from SIM mcc.

Two issues - getting config then setting locale by mcc and then setting the config (to set
mcc/mnc) would overwrite the locale set in the middle.  Also, using a "new Configuration()"
instead of asking the ActivityManager.getConfiguration gets different values than the current
ones, and would also overwrite our change.

bug: 2241461
bug: 2239810

14 years agoMerge change I2c6e54e4 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 01:29:54 +0000 (20:29 -0500)]
Merge change I2c6e54e4 into eclair

* changes:
  Throttle proximity sensor values so we do not process more than one change a second.

14 years agoMake AudioPlayer a little less verbose, defer starting audio playback until after...
Andreas Huber [Fri, 6 Nov 2009 00:34:39 +0000 (16:34 -0800)]
Make AudioPlayer a little less verbose, defer starting audio playback until after the first video frame has been decoded (if there's video at all).

14 years agoMerge change Id0267cc0 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 00:25:11 +0000 (19:25 -0500)]
Merge change Id0267cc0 into eclair

* changes:
  Add needsOtaServiceProvisioning and used to not allow data calls until the device is provisioned.

14 years agoMerge change I4b03c2cd into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 00:15:56 +0000 (19:15 -0500)]
Merge change I4b03c2cd into eclair

* changes:
  Add windows media support check in MediaMetadataTest.java and MediaPlayerApiTest.java

14 years agoMerge change I1dc2ae28 into eclair
Android (Google) Code Review [Fri, 6 Nov 2009 00:03:09 +0000 (19:03 -0500)]
Merge change I1dc2ae28 into eclair

* changes:
  Fix bug 2242585 to unhide the new audio recording sources. Unhide CAMCORDER and VOICE_RECOGNITION in android.media.MediaRecorder

14 years agoFix bug 2242585 to unhide the new audio recording sources.
Jean-Michel Trivi [Thu, 5 Nov 2009 23:49:37 +0000 (15:49 -0800)]
Fix bug 2242585 to unhide the new audio recording sources.
Unhide CAMCORDER and VOICE_RECOGNITION in android.media.MediaRecorder

14 years agoMerge change Idf40f3b0 into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 23:42:14 +0000 (18:42 -0500)]
Merge change Idf40f3b0 into eclair

* changes:
  Prevent crash in Home when using widgets whose ids collide with Home's resources.

14 years agoPrevent crash in Home when using widgets whose ids collide with Home's
Romain Guy [Thu, 5 Nov 2009 21:36:15 +0000 (13:36 -0800)]
Prevent crash in Home when using widgets whose ids collide with Home's
resources.

Bug #2228943.

Approved by mcleron, triaged by ryanpc.

Change-Id: Idf40f3b09502ae5d0d3b9a6a72c265a2de2ffca2

14 years agolayout test rebase, bug fix
Guang Zhu [Thu, 5 Nov 2009 23:24:10 +0000 (15:24 -0800)]
layout test rebase, bug fix

* rebase layout test based on newly enabled http tests
* fix a bug in initializing parameters (should happen before super.onCreate)

14 years agoMerge change I0e27b5ca into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 22:39:56 +0000 (17:39 -0500)]
Merge change I0e27b5ca into eclair

* changes:
  Fix texture upload bug for narrow texture of less than 32bpp.

14 years agoMerge change I21d0dca3 into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 22:15:51 +0000 (17:15 -0500)]
Merge change I21d0dca3 into eclair

* changes:
  Add BMW kits made by Motorola PCS to autoblack list for Bluetooth.

14 years agoAnother test for StatusBar test.
Joe Onorato [Thu, 5 Nov 2009 22:12:18 +0000 (17:12 -0500)]
Another test for StatusBar test.

14 years agoMerge change Ie80e2381 into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 21:50:34 +0000 (16:50 -0500)]
Merge change Ie80e2381 into eclair

* changes:
  DO NOT MERGE: Squashed commit of the following:

14 years agoThrottle proximity sensor values so we do not process more than one change a second.
Mike Lockwood [Thu, 5 Nov 2009 21:08:51 +0000 (16:08 -0500)]
Throttle proximity sensor values so we do not process more than one change a second.

This is to prevent a noisy proximity sensor from causing the screen to turn on and off
in rapid succession, which can trigger race conditions in the keyguard manager.

Change-Id: I2c6e54e4b41716e038854ed9a827c901579c8865
Signed-off-by: Mike Lockwood <lockwood@android.com>
14 years agoMerge change I14fb81af into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 21:08:40 +0000 (16:08 -0500)]
Merge change I14fb81af into eclair

* changes:
  Fix for 2221718: Hang in BatteryStatsService.noteBluetoothOn

14 years agoDO NOT MERGE: Squashed commit of the following:
Andreas Huber [Thu, 5 Nov 2009 20:04:22 +0000 (12:04 -0800)]
DO NOT MERGE: Squashed commit of the following:

commit 08259dd3dc9026887f9bbfedaf45866eb56ea9bc
Author: Andreas Huber <andih@google.com>
Date:   Thu Nov 5 12:02:31 2009 -0800

    DO NOT MERGE: Use PV for metadata extraction even if stagefright is used for playback.

commit 991832fe4dc012e51d3d9ed8d647c7f09991858f
Author: Andreas Huber <andih@google.com>
Date:   Thu Nov 5 11:24:11 2009 -0800

    DO NOT MERGE: Do not assert if we encounter OMX_StateInvalid. All bets are off though.

commit cec45cf302d9218fe79956cbe8a462d7ca3a10bb
Author: Andreas Huber <andih@google.com>
Date:   Mon Oct 26 16:11:54 2009 -0700

    DO NOT MERGE: When freeing an OMX node, attempt to transition it from its current state all the way to "Loaded" in order to properly free any allocated buffers.

commit 34a1e885ef9113d68acbc26d36fcc47fdebbed84
Author: Andreas Huber <andih@google.com>
Date:   Thu Nov 5 11:10:49 2009 -0800

    DO NOT MERGE: Fix heap corruptin in OMXNodeInstance.

commit 5a47f7439a1298b330541a7e4e647a8b44487388
Author: Andreas Huber <andih@google.com>
Date:   Thu Nov 5 11:08:19 2009 -0800

    DO NOT MERGE: Fix seek-on-initial-read behaviour of OMXCodec.

commit 45bed64722501b9f411a2940aff5aff4cc4d2e98
Author: Andreas Huber <andih@google.com>
Date:   Thu Nov 5 11:02:23 2009 -0800

    DO NOT MERGE: Renaming string.h to stagefright_string.h to avoid conflicts.

commit 6738e306a50196f31a73d4fc7b7c45faff639903
Author: Andreas Huber <andih@google.com>
Date:   Thu Oct 15 13:46:54 2009 -0700

    DO NOT MERGE: Reimplement the OMX backend for stagefright.

    Besides a major cleanup and refactoring, OMX is now a singleton living in the media server, it listens for death notifications of node observers/clients that allocated OMX nodes and performs/attempts cleanup.

    Changed APIs to conform to the rest of the system.

14 years agoMerge change Ia4eedace into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 21:01:50 +0000 (16:01 -0500)]
Merge change Ia4eedace into eclair

* changes:
  Now that UseBuffer on this component is fixed, let's use it.

14 years agoMerge change Id1458b01 into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 20:53:25 +0000 (15:53 -0500)]
Merge change Id1458b01 into eclair

* changes:
  New live wallpaper API to expose author and description strings.

14 years agoFix texture upload bug for narrow texture of less than 32bpp.
Jason Sams [Thu, 5 Nov 2009 20:44:58 +0000 (12:44 -0800)]
Fix texture upload bug for narrow texture of less than 32bpp.

14 years agoNew API 4 with new CDMA constants.
Xavier Ducrohet [Wed, 4 Nov 2009 02:20:53 +0000 (18:20 -0800)]
New API 4 with new CDMA constants.

14 years agoNew live wallpaper API to expose author and description strings.
Daniel Sandler [Thu, 5 Nov 2009 20:05:27 +0000 (15:05 -0500)]
New live wallpaper API to expose author and description strings.

First in a sequence of CLs to address
http://b/issue?id=2235307 .

Change-Id: Id1458b01c8a7918f345823b45e5726e02285d8b5

14 years agoFix for 2221718: Hang in BatteryStatsService.noteBluetoothOn
Amith Yamasani [Thu, 5 Nov 2009 19:41:58 +0000 (11:41 -0800)]
Fix for 2221718: Hang in BatteryStatsService.noteBluetoothOn

This should remove the deadlock. I'm not absolutely positive that
it fixes it, as it's not easy to reproduce.

14 years agoAdd BMW kits made by Motorola PCS to autoblack list for Bluetooth.
Jaikumar Ganesh [Thu, 5 Nov 2009 19:27:28 +0000 (11:27 -0800)]
Add BMW kits made by Motorola PCS to autoblack list for Bluetooth.

This may force some Motorola headsets to thow up the Pairing Request.

Bug: 2210365
Dr No: Eastham

14 years agoMerge change I48cbd0bc into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 19:15:54 +0000 (14:15 -0500)]
Merge change I48cbd0bc into eclair

* changes:
  remove the SubscribedFeedsProvider since it has been moved to vendor/google

14 years agoNow that UseBuffer on this component is fixed, let's use it.
Andreas Huber [Thu, 5 Nov 2009 17:56:03 +0000 (09:56 -0800)]
Now that UseBuffer on this component is fixed, let's use it.

14 years agoMerge change I93f500a5 into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 07:55:26 +0000 (02:55 -0500)]
Merge change I93f500a5 into eclair

* changes:
  Fix issue 2203561: Sholes: audio playing out of earpiece.

14 years agoFix issue 2203561: Sholes: audio playing out of earpiece.
Eric Laurent [Wed, 4 Nov 2009 16:27:26 +0000 (08:27 -0800)]
Fix issue 2203561: Sholes: audio playing out of earpiece.

Create a new IAudioTrack interface to AudioFlinger when start() fails due to a broken pipe error.
Do the same if start fails due to the same error after time out in obtainBuffer().
Do not indicate that the AudioTrack is started to AudioPolicyManager if IAudioTrack start fails.
This avoids that an AudioTrack keeps a dead IAudioTrack after a media server crash.

Same modifications for AudioRecord.

Add a flag to ToneGenerator indicating that the callback thread can call Java. Without it, when the media server crashes and restarts, the AudioSystem error callback will crash in JNI if the IAudiotrack is created from AudioTrack callback thread.

14 years agoAdd windows media support check in MediaMetadataTest.java and MediaPlayerApiTest...
James Dong [Wed, 4 Nov 2009 02:02:30 +0000 (18:02 -0800)]
Add windows media support check in MediaMetadataTest.java and MediaPlayerApiTest.java

14 years agoMerge change I09282f5b into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 02:33:27 +0000 (21:33 -0500)]
Merge change I09282f5b into eclair

* changes:
  Fix the build (hopefully.)

14 years agoFix the build (hopefully.)
Romain Guy [Thu, 5 Nov 2009 02:32:48 +0000 (18:32 -0800)]
Fix the build (hopefully.)

Change-Id: I09282f5b4ff8b97f6beb1073223d8a943d3ecef4

14 years agoMerge change I9490271c into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 01:32:00 +0000 (20:32 -0500)]
Merge change I9490271c into eclair

* changes:
  Add BluetoothDevice to SDK AIDL list.

14 years agoMerge change I4499ad72 into eclair
Android (Google) Code Review [Thu, 5 Nov 2009 01:27:11 +0000 (20:27 -0500)]
Merge change I4499ad72 into eclair

* changes:
  Fix bad merge fixes build breakage.

14 years agoAdd BluetoothDevice to SDK AIDL list.
Nick Pelly [Thu, 5 Nov 2009 01:23:55 +0000 (17:23 -0800)]
Add BluetoothDevice to SDK AIDL list.

Bug: 2216702
Change-Id: I9490271ce4be465d5b3acc5e530feaf6e2fa3f57