OSDN Git Service

android-x86/frameworks-base.git
14 years agoGrammar fixes.
Brad Fitzpatrick [Mon, 22 Mar 2010 17:10:51 +0000 (10:10 -0700)]
Grammar fixes.

Change-Id: I77672d2260c26aee146bb6a853137c14e3db1f28

14 years agouse the stream instead of the cursor data to return its size
Cary Clark [Mon, 22 Mar 2010 14:56:37 +0000 (10:56 -0400)]
use the stream instead of the cursor data to return its size

Most content providers set up the data size in the cursor that
provides the file name, but sound recorder does not. Use the
stream size instead, which will work with all sources and
probably is no slower.

fixes http://b/2529352 http://b/2524574

Change-Id: I32d101d07ca1d0fa2ff17c3c68393356902096d3

14 years agoImplements layoutTestController.overridePreference()
Steve Block [Fri, 19 Mar 2010 18:48:35 +0000 (18:48 +0000)]
Implements layoutTestController.overridePreference()

This change provides the infrastructure for
layoutTestController.overridePreference(). Currently, we only provide an
implementation for the preference 'WebKitOfflineWebApplicationCacheEnabled',
which is required by the layout test http/tests/appcache/disabled.html.

Change-Id: I8552f2f4e23b982db2d067ffa20c052e56d8fb7f

14 years agoRemoves most remaining appcache layout tests from the DumpRenderTree ignoreResults...
Steve Block [Fri, 19 Mar 2010 15:57:41 +0000 (15:57 +0000)]
Removes most remaining appcache layout tests from the DumpRenderTree ignoreResults list

The server serving the layout tests has now been updated to to reflect the
current version of WebKit (r54731) so serveral more tests now pass.

Change-Id: I95afa0012bf3fed15c733b0317ecd4c03f7a158f

14 years agoMerge "Implements layoutTestController.setAppCacheMaximumSize"
Steve Block [Mon, 22 Mar 2010 10:44:09 +0000 (03:44 -0700)]
Merge "Implements layoutTestController.setAppCacheMaximumSize"

14 years agoUpdate MediaRecorder.java documentation to mention it does not work on the emulator...
James Dong [Mon, 22 Mar 2010 06:23:50 +0000 (23:23 -0700)]
Update MediaRecorder.java documentation to mention it does not work on the emulator yet.

bug - 2532726

Change-Id: If6dbf0d89c4681a647419e1911213a4c22dc3dab

14 years agoIn some case, like in Email, the WebView can be
Grace Kloba [Sun, 21 Mar 2010 21:05:14 +0000 (14:05 -0700)]
In some case, like in Email, the WebView can be
detached from Window long after it is destroyed.
As we freed the native side by setting mWebViewCore
to null, we can't access settings any more. In this
case, just hide both styles of zoom control.

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

14 years agoImplements layoutTestController.setAppCacheMaximumSize
Steve Block [Fri, 19 Mar 2010 15:26:42 +0000 (15:26 +0000)]
Implements layoutTestController.setAppCacheMaximumSize

Change-Id: Ib64123738bc384213ef80e2e60e4a0d9407c09d8

14 years agoAs http header can't be empty, check length before
Grace Kloba [Sat, 20 Mar 2010 02:48:28 +0000 (19:48 -0700)]
As http header can't be empty, check length before
setting lastModified and etag to the cacheResult.

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

14 years agoDon't overscroll horizontally if the content just
Grace Kloba [Sat, 20 Mar 2010 00:23:38 +0000 (17:23 -0700)]
Don't overscroll horizontally if the content just
fit in the WebView.

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

14 years agoExplicitly dismiss the zoom control if
Grace Kloba [Sat, 20 Mar 2010 01:28:33 +0000 (18:28 -0700)]
Explicitly dismiss the zoom control if
 1. start double tap
 2. start pinch
 3. start a popup window
 4. about to detach from window
 5. WebView size change which happens when IME is up
    or rotation changed.

Partial fix http://b/issue?id=2530401. Dismiss the
zoom control of the main window when bringing up
the sub window

14 years agoMerge "Compare the cookie names to ensure a consistent ordering."
Patrick Scott [Sat, 20 Mar 2010 00:59:39 +0000 (17:59 -0700)]
Merge "Compare the cookie names to ensure a consistent ordering."

14 years agoMerge "b/2511635 Browser displays incorrect SSL cert information"
Brian Carlstrom [Sat, 20 Mar 2010 00:49:37 +0000 (17:49 -0700)]
Merge "b/2511635 Browser displays incorrect SSL cert information"

14 years agoMerge "Move the key feedback bubble to the side if there's not enough room above...
Amith Yamasani [Sat, 20 Mar 2010 00:31:31 +0000 (17:31 -0700)]
Merge "Move the key feedback bubble to the side if there's not enough room above. bug: 2519903"

14 years agoMove the key feedback bubble to the side if there's not enough room above. bug: 2519903
Amith Yamasani [Sat, 20 Mar 2010 00:21:44 +0000 (17:21 -0700)]
Move the key feedback bubble to the side if there's not enough room above. bug: 2519903

14 years agoMerge "libutils Condition are now PRIVATE by default"
Mathias Agopian [Sat, 20 Mar 2010 00:20:08 +0000 (17:20 -0700)]
Merge "libutils Condition are now PRIVATE by default"

14 years agob/2511635 Browser displays incorrect SSL cert information
Brian Carlstrom [Thu, 18 Mar 2010 23:56:41 +0000 (16:56 -0700)]
b/2511635 Browser displays incorrect SSL cert information

Two more cases of "View certificate" problems like b/2511635

One problem is that if there are multiple resources downloaded for a
page. In that case the mCertificate shown ends up being from the last
loaded resource instead of the main resource of the page. The solution
is to only set the certificate if the LoadListener is the
mIsMainResourceLoader as well as the mIsMainPageLoader.

A larger problem was the fact that the EventHandler.certificate
interface method (in this case the LoadListener.certificate
implementation) once per https connection instead of once per request
as was documented. That meant if an https connection was reused (which
happens frequently on login pages such as
https://www.google.com/accounts which use the POST -> redirect -> GET
idiom to avoid POST data page refresh warnings) then later pages never
were associated with an SslCertificate.

The solution was to change EventHandler.certificate to be called once
per request, specifcally before the request. This means we no longer
call the certificate method in the handleSslErrorRequest case, which
is okay because it includes the SslCertificate within the SslError and
that is what the BrowserActivity expects.

Change-Id: Icbd9bd98c89db82762d1d06de85e1cde2470300d

14 years agoMerge "Fix two AudioFocus issues: - if a focus owner abandons audio focus during...
Jean-Michel Trivi [Fri, 19 Mar 2010 23:31:34 +0000 (16:31 -0700)]
Merge "Fix two AudioFocus issues: - if a focus owner abandons audio focus during a call, the next  focus owner in the stack was never notified - if a focus owner requests the focus while alread owning it, and  the type of focus request changes, the previous focus owner was  not notified that the type of focus loss had changed."

14 years agoMerge "Fix bcm4329 FW dump in bugreport for user-debug build"
Dmitry Shmidt [Fri, 19 Mar 2010 23:26:52 +0000 (16:26 -0700)]
Merge "Fix bcm4329 FW dump in bugreport for user-debug build"

14 years agoFix bcm4329 FW dump in bugreport for user-debug build
Dmitry Shmidt [Fri, 19 Mar 2010 23:22:07 +0000 (16:22 -0700)]
Fix bcm4329 FW dump in bugreport for user-debug build

Change-Id: I56dfdc700db5704a91015ddcdc2adb0952b097ba
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
14 years agoChange api for webview overscroll background.
Grace Kloba [Fri, 19 Mar 2010 22:22:18 +0000 (15:22 -0700)]
Change api for webview overscroll background.

14 years agoMerge "Allow space in SSID"
Irfan Sheriff [Fri, 19 Mar 2010 23:17:00 +0000 (16:17 -0700)]
Merge "Allow space in SSID"

14 years agolibutils Condition are now PRIVATE by default
Mathias Agopian [Fri, 19 Mar 2010 23:14:13 +0000 (16:14 -0700)]
libutils Condition are now PRIVATE by default

Condition must be initialized with SHARED for the old behavior, where
they can be used accross processes.

Updated the two places android that require SHARED conditions.

PRIVATE conditions (and mutexes) use more efficient syscalls.

Change-Id: I9a281a4b88206e92ac559c66554e886b9c62db3a

14 years agoMerge "Use atomic++ rather than lock/++/unlock in the input dispatch code path"
Christopher Tate [Fri, 19 Mar 2010 23:13:33 +0000 (16:13 -0700)]
Merge "Use atomic++ rather than lock/++/unlock in the input dispatch code path"

14 years agoUnhide new constants used in AudioFocus API to denote a situation
Jean-Michel Trivi [Fri, 19 Mar 2010 19:09:25 +0000 (12:09 -0700)]
Unhide new constants used in AudioFocus API to denote a situation
where a new focus owner signals it  allows other audio apps to keep
playing by ducking their audio streams.

Change-Id: I1109f44546f3cbcff8ad33ee21cfff50f4f12177

14 years agoAllow space in SSID
Irfan Sheriff [Fri, 19 Mar 2010 22:55:58 +0000 (15:55 -0700)]
Allow space in SSID

Bug: 2530930
Change-Id: Iaa6c44014d889ad0d023148b091fc01c22524bf3

14 years agoFix two AudioFocus issues:
Jean-Michel Trivi [Fri, 19 Mar 2010 22:31:20 +0000 (15:31 -0700)]
Fix two AudioFocus issues:
- if a focus owner abandons audio focus during a call, the next
 focus owner in the stack was never notified
- if a focus owner requests the focus while alread owning it, and
 the type of focus request changes, the previous focus owner was
 not notified that the type of focus loss had changed.

Change-Id: Iee6c6e17bcdd3c225a4b600f40ba434294870f17

14 years agoUse atomic++ rather than lock/++/unlock in the input dispatch code path
Christopher Tate [Fri, 19 Mar 2010 21:50:40 +0000 (14:50 -0700)]
Use atomic++ rather than lock/++/unlock in the input dispatch code path

Decouples the input dispatch thread from the battery-stats object lock regime,
to avoid the possibility of ever blocking the input dispatch thread on its
behalf.  The stats object is widely used and can sometimes be locked for a
very long time (on the order of seconds) during certain extensive dump
operations.

This change does not alter the data format of the battery stats' externalized
representations.

Fixes bug #2530346

Change-Id: Iee288be3bf4936641b532dceecb8f6de8f552bf0

14 years agoMerge "Add check for null name on SCO connect"
Eric Olsen [Fri, 19 Mar 2010 21:51:53 +0000 (14:51 -0700)]
Merge "Add check for null name on SCO connect"

14 years agoMerge "Fix wakelock"
Irfan Sheriff [Fri, 19 Mar 2010 21:08:01 +0000 (14:08 -0700)]
Merge "Fix wakelock"

14 years agoMerge "Fix issue #2512131: Trackball goes up when moving"
Dianne Hackborn [Fri, 19 Mar 2010 21:01:48 +0000 (14:01 -0700)]
Merge "Fix issue #2512131: Trackball goes up when moving"

14 years agoFix issue #2512131: Trackball goes up when moving
Dianne Hackborn [Fri, 19 Mar 2010 06:40:21 +0000 (23:40 -0700)]
Fix issue #2512131: Trackball goes up when moving

Change-Id: Ib403de88f24bc1b6e5417732e3b69f89a5160bbc

14 years agoMaybe fix issue #2457218: Corrupt batterystats.bin file preventing phone boot - LIBtt...
Dianne Hackborn [Fri, 19 Mar 2010 05:47:17 +0000 (22:47 -0700)]
Maybe fix issue #2457218: Corrupt batterystats.bin file preventing phone boot - LIBtt68127

No steps to repro, but makes the code more robust by using the standard
JournaledFile class and doing sanity checks on the input it reads.

This required moving the JournaledFile class in to the framework (and
we really should get rid of either it or AtomicFile, but they have
different recovery semantics so that is tough).  Also went through and
cleaned up the file management in various places.

Change-Id: Ieb7268d8435e77dff66b6e67bb63b62e5dea572e

14 years agoAdd check for null name on SCO connect
Eric Olsen [Fri, 19 Mar 2010 20:50:56 +0000 (13:50 -0700)]
Add check for null name on SCO connect

Change-Id: I5f5064fd57a5fffaf02b3e96b7faab219c490e86
Signed-off-by: Eric Olsen <eolsen@android.com>
14 years agoMerge "Grant permissions to apps on sd when enabling/disabling packages."
Suchi Amalapurapu [Fri, 19 Mar 2010 20:38:50 +0000 (13:38 -0700)]
Merge "Grant permissions to apps on sd when enabling/disabling packages."

14 years agoGrant permissions to apps on sd when enabling/disabling packages.
Suchi Amalapurapu [Fri, 19 Mar 2010 18:55:29 +0000 (11:55 -0700)]
Grant permissions to apps on sd when enabling/disabling packages.

Change-Id: I0f011bd4a3348ccd46fd7ae9765edf8933b94142

14 years agoFix wakelock
Irfan Sheriff [Fri, 19 Mar 2010 17:40:18 +0000 (10:40 -0700)]
Fix wakelock

Bug: 2413908
Change-Id: Ic7f2efa94b0ad1c561db0ffab8c531d19e6c235e

14 years agoremove special-case logic to allow the titlebar to always scroll off the screen....
Mike Reed [Fri, 19 Mar 2010 18:38:23 +0000 (14:38 -0400)]
remove special-case logic to allow the titlebar to always scroll off the screen. This means that we
now won't force pages to resize due to scrolling.

fixes http://b/issue?id=2512549

Change-Id: Icd91d032ccfc78db6011f293b33543ff2f27f3cf

14 years agoMerge "Ensure that binder incalls to the system process keep the fg cgroup"
Christopher Tate [Fri, 19 Mar 2010 19:42:29 +0000 (12:42 -0700)]
Merge "Ensure that binder incalls to the system process keep the fg cgroup"

14 years agoCompare the cookie names to ensure a consistent ordering.
Patrick Scott [Fri, 19 Mar 2010 19:40:05 +0000 (15:40 -0400)]
Compare the cookie names to ensure a consistent ordering.

Comparing the hash code provided a consistent order but it was not a logical,
testable order as the hash code was not related to lexicographic ordering.

Remove a spurious '=' from a comment.

Bug: 2527671
Change-Id: Ia2248cb8acbc4d5759a624eec13da3837f7406b8

14 years agoNew OverScroller with edge bouncing effect.
Gilles Debunne [Wed, 24 Feb 2010 19:05:19 +0000 (11:05 -0800)]
New OverScroller with edge bouncing effect.

OverScroller has been made a Scroller child class. Both use a physical constant deceleration
force to compute the animation. OverScroller also includes a rubber edge bounce effect.

Approved by Jim Palmer.

Change-Id: I3f43a03694b8cb6bfa0784c2663b37c9c39322cc

14 years agoMerge "Ensure adapter is not null in AutoCompleteTextView"
Kenny Root [Fri, 19 Mar 2010 18:59:56 +0000 (11:59 -0700)]
Merge "Ensure adapter is not null in AutoCompleteTextView"

14 years agoMerge "Add -e package description to InstrumentationTestRunner javadoc."
Brett Chabot [Fri, 19 Mar 2010 18:41:42 +0000 (11:41 -0700)]
Merge "Add -e package description to InstrumentationTestRunner javadoc."

14 years agoAdd -e package description to InstrumentationTestRunner javadoc.
Brett Chabot [Fri, 19 Mar 2010 03:03:31 +0000 (20:03 -0700)]
Add -e package description to InstrumentationTestRunner javadoc.

Bug 2528316

Change-Id: Ic707115e40a18521e0d57ee12f43df96be7033f2

14 years agoNew HeterogeneousExpandableList interface.
Gilles Debunne [Fri, 12 Mar 2010 00:25:13 +0000 (16:25 -0800)]
New HeterogeneousExpandableList interface.

This interface can be used in conjunction with ExpandableListAdapter to
declare more types of child and/or group views.

None of the ExpandableListAdapter implementations is heterogeneous in the
framework. BaseExpandableListAdapter was decalred to use this interface so that users
see the methods and can overload. DateSortedExpandableListAdapter was left unchanged.

This feature is related to http://b/issue?id=1459940

Change-Id: Ifc589b697913778b16abfdcaaa9f8f81e564add7

14 years agoMerge "Change overscroll background to be same as status bar pulldown."
Grace Kloba [Fri, 19 Mar 2010 17:41:01 +0000 (10:41 -0700)]
Merge "Change overscroll background to be same as status bar pulldown."

14 years agoMerge "limit sql statement in finalizer warning to 100 chars"
Vasu Nori [Fri, 19 Mar 2010 17:38:29 +0000 (10:38 -0700)]
Merge "limit sql statement in finalizer warning to 100 chars"

14 years agolimit sql statement in finalizer warning to 100 chars
Vasu Nori [Fri, 19 Mar 2010 05:17:24 +0000 (22:17 -0700)]
limit sql statement in finalizer warning to 100 chars

too long a sql statement reduces the amount of stack trace printed.

Change-Id: Id980b184850adb2bcb5e47eebe35796bc731a490

14 years agoMerge "Add the blacklist for the SCO connections"
Eric Olsen [Fri, 19 Mar 2010 17:26:53 +0000 (10:26 -0700)]
Merge "Add the blacklist for the SCO connections"

14 years agoMerge "We should pass null for the album artist if it was not set, instead of a copy...
Marco Nelissen [Fri, 19 Mar 2010 17:25:13 +0000 (10:25 -0700)]
Merge "We should pass null for the album artist if it was not set, instead of a copy of the artist, since the media provider needs to know whether the album artist was actually set."

14 years agoEnsure adapter is not null in AutoCompleteTextView
Kenny Root [Fri, 19 Mar 2010 17:09:59 +0000 (10:09 -0700)]
Ensure adapter is not null in AutoCompleteTextView

A runnable is posted for AutoCompleteTextView's PopupDataSetObserver, but
there's a possibility that mAdapter would be set to null between when
the runnable is run and the time it is posted.

This fixes a monkey crash seen in build 29176.

Change-Id: Ie7be51db580d6e9775533890e5f6902409bec84d
MonkeyCrashID: 2071507494::1632:123:521

14 years agoMerge "Force all views to relayout when ViewRoot is resized. Bug #2519590"
Romain Guy [Fri, 19 Mar 2010 16:34:31 +0000 (09:34 -0700)]
Merge "Force all views to relayout when ViewRoot is resized. Bug #2519590"

14 years agoUse the new HSM capability that allows transitionTo in enter methods.
Wink Saville [Fri, 19 Mar 2010 16:03:13 +0000 (09:03 -0700)]
Use the new HSM capability that allows transitionTo in enter methods.

Change-Id: If87a30257111d4a2b0506428c75eae81a7ccf77b

14 years agoMerge "Add support for DUN over a cdma connection."
Robert Greenwalt [Fri, 19 Mar 2010 16:03:27 +0000 (09:03 -0700)]
Merge "Add support for DUN over a cdma connection."

14 years agoMerge "Fix Tethering Notifications for multiple ifaces"
Robert Greenwalt [Fri, 19 Mar 2010 16:02:00 +0000 (09:02 -0700)]
Merge "Fix Tethering Notifications for multiple ifaces"

14 years agoFix Tethering Notifications for multiple ifaces
Robert Greenwalt [Thu, 18 Mar 2010 23:28:30 +0000 (16:28 -0700)]
Fix Tethering Notifications for multiple ifaces

Used to see multiple notifications if usb tethering and wifi tethering were both used.

bug:2527862
Change-Id: Idc6299c0a70564dd7c8d8d7fe13bde83723134ae

14 years agoMerge "Fix HttpAuthHandler for synchronous requests"
Steve Block [Fri, 19 Mar 2010 15:47:56 +0000 (08:47 -0700)]
Merge "Fix HttpAuthHandler for synchronous requests"

14 years agoWe should pass null for the album artist if it was not set, instead of a copy
Marco Nelissen [Fri, 19 Mar 2010 15:05:53 +0000 (08:05 -0700)]
We should pass null for the album artist if it was not set, instead of a copy
of the artist, since the media provider needs to know whether the album artist
was actually set.

Change-Id: I29b885c8293609299a55babadf9ca2a30e20e5bd

14 years agocreate absolute layout if view layout can't be reused
Cary Clark [Fri, 19 Mar 2010 14:36:35 +0000 (10:36 -0400)]
create absolute layout if view layout can't be reused

The existing view layout may not be an absolute layout,
and will throw a ClassCastException. Check to see if it
is compatible before the cast.

Change-Id: I7309600a1e7405a29e49a3bab469a164d51126ae
http://b/2526854

14 years agoRemoves an appcache test from the DumpRenderTree ignoreResults list
Steve Block [Thu, 18 Mar 2010 15:16:35 +0000 (15:16 +0000)]
Removes an appcache test from the DumpRenderTree ignoreResults list

Android-specific results for this test were added in
https://android-git.corp.google.com/g/45462

Change-Id: I7716c2c061ab955d0bf96523b6aab747898cc4e7

14 years agoFix HttpAuthHandler for synchronous requests
Steve Block [Fri, 12 Mar 2010 18:49:48 +0000 (18:49 +0000)]
Fix HttpAuthHandler for synchronous requests

When HttpAuthHandler queries the WebViewClient to obtain a username and
password, we need to make sure that this is done synchronously when the request
is synchronous.

Bug: 2511043
Change-Id: I9ff2156cfb3c81edaf4a50ec7094a00a8f8ff91f

14 years agoChange overscroll background to be same as status
Grace Kloba [Fri, 19 Mar 2010 05:47:34 +0000 (22:47 -0700)]
Change overscroll background to be same as status
bar pulldown.

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

14 years agoFix SDK build Remove links to hidden constant in javadoc.
Jean-Michel Trivi [Fri, 19 Mar 2010 04:37:29 +0000 (21:37 -0700)]
Fix SDK build Remove links to hidden constant in javadoc.

Change-Id: I21495f0ef64b3dc154ce0e0ca2d44686afd752e9

14 years agoAttempt to fix the SDK build.
Eric Laurent [Fri, 19 Mar 2010 03:35:49 +0000 (20:35 -0700)]
Attempt to fix the SDK build.

Change-Id: I024df1b513da117057a21c27e6c0cd134cdd8023

14 years agoMerge "Fix issue #2512507: Shortcuts and Widgets lost on upgrading from Eclair to...
Dianne Hackborn [Fri, 19 Mar 2010 02:25:57 +0000 (19:25 -0700)]
Merge "Fix issue #2512507: Shortcuts and Widgets lost on upgrading from Eclair to FRE70D"

14 years agoFix issue #2512507: Shortcuts and Widgets lost on upgrading from Eclair to FRE70D
Dianne Hackborn [Thu, 18 Mar 2010 23:50:07 +0000 (16:50 -0700)]
Fix issue #2512507: Shortcuts and Widgets lost on upgrading from Eclair to FRE70D

Apps on the system partition are now allowed to change their certs, as
long as they are not using a shared user id.

Change-Id: I02ff7ac874dc649b7f8cbb705ae8d7ed31e1d125

14 years agoMerge "Make aapt warning concise"
Kenny Root [Fri, 19 Mar 2010 02:15:51 +0000 (19:15 -0700)]
Merge "Make aapt warning concise"

14 years agoForce all views to relayout when ViewRoot is resized.
Romain Guy [Fri, 19 Mar 2010 01:54:50 +0000 (18:54 -0700)]
Force all views to relayout when ViewRoot is resized.
Bug #2519590

Change-Id: Ia6b9d4cf6d719f713703a1eb2e1ccdd5d61a5123

14 years agoSupport focus requests where ducking of the loser of audio focus
Jean-Michel Trivi [Thu, 18 Mar 2010 23:51:04 +0000 (16:51 -0700)]
Support focus requests where ducking of the loser of audio focus
is acceptable for the new audio focus owner.

Change-Id: I965483f12eeb717115a8f6992d8f1ab7fafa4e45

14 years agoMerge "Only backup real files."
Dianne Hackborn [Fri, 19 Mar 2010 01:26:06 +0000 (18:26 -0700)]
Merge "Only backup real files."

14 years agoMerge "Unhide AudioManager API to control bluetooth SCO audio connection."
Eric Laurent [Fri, 19 Mar 2010 01:23:17 +0000 (18:23 -0700)]
Merge "Unhide AudioManager API to control bluetooth SCO audio connection."

14 years agoMerge "Fix bug 2520540"
Adam Powell [Fri, 19 Mar 2010 01:22:57 +0000 (18:22 -0700)]
Merge "Fix bug 2520540"

14 years agoUnhide AudioManager API to control bluetooth SCO audio connection.
Eric Laurent [Thu, 18 Mar 2010 19:38:54 +0000 (12:38 -0700)]
Unhide AudioManager API to control bluetooth SCO audio connection.

Needed for issue 2416481 in order to allow unbundled applications to play and record
audio to/from a bluetooth SCO headset while not in call.

Change-Id: Ie1f96ded991e65da538c2c4a58bfa1e548d58a01

14 years agoMerge "Cleaning up list of common nicknames"
Dmitri Plotnikov [Fri, 19 Mar 2010 01:18:02 +0000 (18:18 -0700)]
Merge "Cleaning up list of common nicknames"

14 years agoEnsure that binder incalls to the system process keep the fg cgroup
Christopher Tate [Fri, 19 Mar 2010 00:55:03 +0000 (17:55 -0700)]
Ensure that binder incalls to the system process keep the fg cgroup

On binder incalls, the handler thread is given the caller's priority by the
driver, but not the caller's cgroup.  We have explicit code that sets the
handler's cgroup to match the caller's, *except* that the system process
explicitly disables this behavior.  This led to a siuation in which we were
running binder incalls to the system process at nice=10 but cgroup=fg.

That's fine as far as it goes, except that if a GC happened in the handler
thread, it would be promoted to foreground priority and cgroup both, to avoid
having the GC take forever.  Then, when GC finished, the original priority
is reset, and the cgroup set *based on that priority*.  This would push the
handler thread into nice=10 cgroup=bg_non_interactive -- which matches the
caller, but is supposed to be impossible in the system process.

The end result of this was that we could be running "lengthy" operations in
the system process in the background.  Unfortunately, some of the operations
that wound up like this would hold important global system locks for up to
twenty seconds as a result, making the entire device unresponsive to input
for that period.

This CL fixes the binder incall setup to ensure that within the system process,
a binder incall is always begun from the normal foreground priority as well
as cgroup.  In practice now the device still becomes laggy/sluggish when the
offending lock-holding time-consuming incall occurs, but since it still runs
as a foreground task it is able to proceed to completion within a short time
rather than taking 20 seconds.

Fixes bug #2403717

Change-Id: Id046aeabd0e80c48eef94accc37842835eab308d

14 years agoAdd the blacklist for the SCO connections
Eric Olsen [Fri, 19 Mar 2010 01:08:02 +0000 (18:08 -0700)]
Add the blacklist for the SCO connections

Change-Id: Ibfdfb21fb2f27d01d2b8bff48041398aa4308353
Signed-off-by: Eric Olsen <eolsen@android.com>
14 years agoMerge "Switch default install location to unspecified. Add a new install location...
Suchi Amalapurapu [Fri, 19 Mar 2010 01:07:54 +0000 (18:07 -0700)]
Merge "Switch default install location to unspecified. Add a new install location unspecified for backward compatibility. There is not much difference between policies auto and unspecified. But we dont have to make any code changes in PackageParser based on our preference for install location. Add tests"

14 years agoMerge "Allow transitionTo in enter/exit."
Wink Saville [Fri, 19 Mar 2010 01:03:48 +0000 (18:03 -0700)]
Merge "Allow transitionTo in enter/exit."

14 years agoOnly backup real files.
Dianne Hackborn [Fri, 19 Mar 2010 00:45:15 +0000 (17:45 -0700)]
Only backup real files.

Fixes hang when backing up droid.

Change-Id: Ie8b5c9f76c39c2e6c2cdf1e3b03f56ae37912bad

14 years agoSwitch default install location to unspecified.
Suchi Amalapurapu [Thu, 18 Mar 2010 18:38:35 +0000 (11:38 -0700)]
Switch default install location to unspecified.
Add a new install location unspecified for backward compatibility.
There is not much difference between policies auto and unspecified.
But we dont have to make any code changes in PackageParser based
on our preference for install location.
Add tests

Change-Id: I563238133261d911d08fbc66344687b7dfc870b1

14 years agoAdd support for DUN over a cdma connection.
Robert Greenwalt [Thu, 18 Mar 2010 06:21:12 +0000 (23:21 -0700)]
Add support for DUN over a cdma connection.

It uses the data profile paramater when setting up the connection to indicate
it's a tethered connection.  We get different behavior from vzw afterwards, so
it is getting picked up.

bug:2422545
Change-Id: Ic022845088726d723813b82e166d15d7b2945da1

14 years agoMerge "Include "album artist" when inserting items in the media provider."
Marco Nelissen [Fri, 19 Mar 2010 00:23:32 +0000 (17:23 -0700)]
Merge "Include "album artist" when inserting items in the media provider."

14 years agoInclude "album artist" when inserting items in the media provider.
Marco Nelissen [Fri, 19 Mar 2010 00:10:38 +0000 (17:10 -0700)]
Include "album artist" when inserting items in the media provider.

Change-Id: Ic34e2d54557409866dc35c29ee397afdfe874762

14 years agoFix bug 2520540
Adam Powell [Thu, 18 Mar 2010 21:51:39 +0000 (14:51 -0700)]
Fix bug 2520540

PreferenceActivity will now persist view hierarchy state properly.

Change-Id: I4e7fe036d0d0bced78e58e2a15808facf502e449

14 years agoAllow transitionTo in enter/exit.
Wink Saville [Fri, 19 Mar 2010 00:03:30 +0000 (17:03 -0700)]
Allow transitionTo in enter/exit.

bug: 2435366
Change-Id: Id15c5e2cca49ced5ebbda24887f8c490e717f101

14 years agoMerge "Clean up changing AP configuration"
Irfan Sheriff [Thu, 18 Mar 2010 23:42:48 +0000 (16:42 -0700)]
Merge "Clean up changing AP configuration"

14 years agoMerge "Fix issue #2438457: Resolving Flash artifacts while scrolling."
Dianne Hackborn [Thu, 18 Mar 2010 23:34:07 +0000 (16:34 -0700)]
Merge "Fix issue #2438457: Resolving Flash artifacts while scrolling."

14 years agoFix issue #2438457: Resolving Flash artifacts while scrolling.
Dianne Hackborn [Thu, 18 Mar 2010 22:44:34 +0000 (15:44 -0700)]
Fix issue #2438457: Resolving Flash artifacts while scrolling.

When the surface view scrolls off the screen it stops drawing, so
we stop moving it.  Add an observer to scrolls so we can continue
to update its position.

Change-Id: I2604cbbecd3e72be1a2a6bc5794e3e1c19317b9e

14 years agoMerge "Change opaque RS typedefs from void * to int. These will likely become int64_...
Jason Sams [Thu, 18 Mar 2010 23:30:43 +0000 (16:30 -0700)]
Merge "Change opaque RS typedefs from void * to int.  These will likely become int64_t once proper support for >32bits is worked out."

14 years agoChange opaque RS typedefs from void * to int. These will likely become int64_t once...
Jason Sams [Thu, 18 Mar 2010 23:29:59 +0000 (16:29 -0700)]
Change opaque RS typedefs from void * to int.  These will likely become int64_t once proper support for >32bits is worked out.

Change-Id: Ic30240fe6c79170a0a88fd51185a1f01bd616c45

14 years agoMerge "Documentation fix"
Adam Powell [Thu, 18 Mar 2010 23:12:28 +0000 (16:12 -0700)]
Merge "Documentation fix"

14 years agoMerge "Added a comment to make it clearer that the operation has to be the first...
Daniel Lehmann [Thu, 18 Mar 2010 23:09:57 +0000 (16:09 -0700)]
Merge "Added a comment to make it clearer that the operation has to be the first Bug:2521447"

14 years agoFix null pointer exception
Irfan Sheriff [Thu, 18 Mar 2010 21:29:59 +0000 (14:29 -0700)]
Fix null pointer exception

Bug: 2525763
Change-Id: If2f334187af26e0352d754d7e00a9ca3efc5dffa

14 years agoAdded a comment to make it clearer that the operation has to be the first
Daniel Lehmann [Thu, 18 Mar 2010 23:08:30 +0000 (16:08 -0700)]
Added a comment to make it clearer that the operation has to be the first
Bug:2521447

Change-Id: I155d0b328115d007116a0fe4560e703647ec2fb5

14 years agoClean up changing AP configuration
Irfan Sheriff [Thu, 18 Mar 2010 21:02:22 +0000 (14:02 -0700)]
Clean up changing AP configuration

Bug: 2527293
Change-Id: I35e82e24e27349e2966f88189ebca4246ad1a354

14 years agoMerge "Release MediaPlayer if suspend() returns false."
Gloria Wang [Thu, 18 Mar 2010 22:59:35 +0000 (15:59 -0700)]
Merge "Release MediaPlayer if suspend() returns false."

14 years agoMerge "Change global variables from extern to non static. Make script local global...
Jason Sams [Thu, 18 Mar 2010 22:52:47 +0000 (15:52 -0700)]
Merge "Change global variables from extern to non static.  Make script local global vars static."

14 years agoChange global variables from extern to non static. Make script local global vars...
Jason Sams [Thu, 18 Mar 2010 22:51:59 +0000 (15:51 -0700)]
Change global variables from extern to non static.  Make script local global vars static.

Change-Id: I73656978e0f0ceeb927afef292fc4ed9755b7214

14 years agoRelease MediaPlayer if suspend() returns false.
Gloria Wang [Thu, 18 Mar 2010 21:50:05 +0000 (14:50 -0700)]
Release MediaPlayer if suspend() returns false.

Change-Id: Ic6467a19bac453b72b56294487c9b835b20affd7

14 years agoMerge "Fix current.xml for previous changes"
Adam Powell [Thu, 18 Mar 2010 22:09:14 +0000 (15:09 -0700)]
Merge "Fix current.xml for previous changes"