9587 Commits

Author SHA1 Message Date
Mike Lockwood
f5bd092b50 Improve wakelock debugging:
Throw NullPointerException if tag is null in PowerManager.newWakelock()
Print wakelock owner's uid and pid in dumpsys power output.

BUG: 2522675

Change-Id: I462c7f8c49f9896b2f58cef5a678ebd2c062a8f7
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-22 17:10:15 -04:00
Ben Murdoch
5b494c1ca4 Add an API on the Java side to allow WebKit to pause the current load. This is used when the plugin is streaming data but it's
buffer is full. In that case, WebCore instructs the laoder to pause loading to give the plugin a chance to clear it's buffer and
continue.

Requires an external/webkit change.

Change-Id: Iec96a6325d92e979cbdc53289c2a20cad940ded2
2010-03-22 20:50:16 +00:00
Leon Scroggins
0fc140431d Close Cursors in finally blocks.
Fix for http://b/issue?id=2533750

Change-Id: I3ebcc6147e4035ce1c4bf6b76a359ce14196e357
2010-03-22 16:33:07 -04:00
Mathias Agopian
a2d776b2d3 Merge "Updated to WMM2010" 2010-03-22 13:17:50 -07:00
Derek Sollenberger
2f47989f65 Merge "Adding a hidden method to check if a surface is fixed in size." 2010-03-22 13:10:50 -07:00
Marco Nelissen
47b464a92b Merge "Fix Tabwidget copy/paste bug." 2010-03-22 12:03:37 -07:00
Mark Wagner
437e59a220 Merge "null check" 2010-03-22 11:51:51 -07:00
Mark Wagner
b054f27536 null check
Change-Id: I3ee3efb8588a5b6b7368b8c5b0e43a07d1427ad8
2010-03-22 11:43:24 -07:00
Derek Sollenberger
7179b8133d Adding a hidden method to check if a surface is fixed in size.
Change-Id: I5d719d436aa1475dfb25f26c258a6f417a9b5c1c
2010-03-22 14:27:35 -04:00
Marco Nelissen
db54ea0fb6 Fix Tabwidget copy/paste bug.
Change-Id: I8e75ec65353748ec794862cfb0e76653ba4fc428
2010-03-22 11:20:48 -07:00
Marco Nelissen
8dfdf46fbf Merge "Fix javadoc copy/paste error." 2010-03-22 11:14:38 -07:00
Marco Nelissen
189f65c12f Fix javadoc copy/paste error.
Change-Id: I6a504176e96b8dc54356305cc00acfe3d1e5b1ed
2010-03-22 10:59:00 -07:00
Suchi Amalapurapu
e99bb5f10b Add new method call back in MountService.
PackageManager invokes this call back when its done handling
the media status update.
Add new uid check for updateExternalMediaStatus
Change killPids method in ActivityManager.
Remove mountsd command in Pm.java We cannot arbitrarily enable/disable
packages in PackageManager now.

Change-Id: I28dcba4afd2b4486f68abdaa1628a31b66544c91
2010-03-22 10:49:49 -07:00
San Mehat
cbf953ed09 Permissions: Change ASEC permissions from 'dangerous' -> 'signature'
Change-Id: I5e495332c45f718178486f2e07d37031e6fa5afc
Signed-off-by: San Mehat <san@google.com>
2010-03-22 10:31:12 -07:00
Brad Fitzpatrick
2e805b19cd Grammar fixes.
Change-Id: I77672d2260c26aee146bb6a853137c14e3db1f28
2010-03-22 10:10:51 -07:00
Cary Clark
ac96fa575f 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
2010-03-22 11:12:46 -04:00
Nick Pelly
82d8b2806b Merge "Everytime Bluetooth was turned off two file descriptors were not closed" 2010-03-22 07:07:15 -07:00
Steve Block
547b83328e Merge "Implements layoutTestController.setAppCacheMaximumSize" 2010-03-22 03:44:09 -07:00
Keith Ito
e41c317348 Advance encodedKeySearchIndex if encodedKey matches a suffix of a parameter.
Bug: 2524610
Change-Id: I51bbf8248133b61825d2ae14afe175cb4d0413b8
2010-03-21 14:41:20 -07:00
Grace Kloba
cad9ab60ce 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
2010-03-21 14:05:14 -07:00
Steve Block
427efcca19 Implements layoutTestController.setAppCacheMaximumSize
Change-Id: Ib64123738bc384213ef80e2e60e4a0d9407c09d8
2010-03-20 11:03:53 +00:00
Grace Kloba
7865fa9724 As http header can't be empty, check length before
setting lastModified and etag to the cacheResult.

Fix http://b/issue?id=2531047
2010-03-19 19:48:28 -07:00
Grace Kloba
ee8500eeb0 Don't overscroll horizontally if the content just
fit in the WebView.

Fix http://b/issue?id=2530843
2010-03-19 19:40:17 -07:00
Grace Kloba
21817f6e29 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
2010-03-19 19:36:35 -07:00
Patrick Scott
1bb63afca1 Merge "Compare the cookie names to ensure a consistent ordering." 2010-03-19 17:59:39 -07:00
Brian Carlstrom
01c0c58190 Merge "b/2511635 Browser displays incorrect SSL cert information" 2010-03-19 17:49:37 -07:00
Amith Yamasani
be5b88b893 Merge "Move the key feedback bubble to the side if there's not enough room above. bug: 2519903" 2010-03-19 17:31:31 -07:00
Amith Yamasani
42973a4a03 Move the key feedback bubble to the side if there's not enough room above. bug: 2519903 2010-03-19 17:21:44 -07:00
Brian Carlstrom
dba8cb7637 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
2010-03-19 17:09:01 -07:00
Grace Kloba
f4418b0113 Change api for webview overscroll background. 2010-03-19 16:18:25 -07:00
Christopher Tate
4cee725b1f 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
2010-03-19 15:28:43 -07:00
Eric Olsen
db129b886f Merge "Add check for null name on SCO connect" 2010-03-19 14:51:53 -07:00
Dianne Hackborn
379232c8f5 Merge "Fix issue #2512131: Trackball goes up when moving" 2010-03-19 14:01:48 -07:00
Dianne Hackborn
7d9af5ae76 Fix issue #2512131: Trackball goes up when moving
Change-Id: Ib403de88f24bc1b6e5417732e3b69f89a5160bbc
2010-03-19 14:01:17 -07:00
Dianne Hackborn
1afd1c90eb 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
2010-03-19 13:59:07 -07:00
Eric Olsen
aa0071d11b Add check for null name on SCO connect
Change-Id: I5f5064fd57a5fffaf02b3e96b7faab219c490e86
Signed-off-by: Eric Olsen <eolsen@android.com>
2010-03-19 13:50:56 -07:00
Mike Reed
e5e63f4921 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
2010-03-19 15:54:20 -04:00
Patrick Scott
06312cae6b 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
2010-03-19 15:40:05 -04:00
Gilles Debunne
52964243dc 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
2010-03-19 12:23:09 -07:00
Kenny Root
415b46c32b Merge "Ensure adapter is not null in AutoCompleteTextView" 2010-03-19 11:59:56 -07:00
Gilles Debunne
8340afe0f6 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
2010-03-19 11:15:49 -07:00
Grace Kloba
bb1934a5ba Merge "Change overscroll background to be same as status bar pulldown." 2010-03-19 10:41:01 -07:00
Vasu Nori
cd40c355be Merge "limit sql statement in finalizer warning to 100 chars" 2010-03-19 10:38:29 -07:00
Vasu Nori
0a1344efc2 limit sql statement in finalizer warning to 100 chars
too long a sql statement reduces the amount of stack trace printed.

Change-Id: Id980b184850adb2bcb5e47eebe35796bc731a490
2010-03-19 10:37:09 -07:00
Eric Olsen
408f333b43 Merge "Add the blacklist for the SCO connections" 2010-03-19 10:26:53 -07:00
Kenny Root
7254afd4c2 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
2010-03-19 10:15:29 -07:00
Romain Guy
b05ec11868 Merge "Force all views to relayout when ViewRoot is resized. Bug #2519590" 2010-03-19 09:34:31 -07:00
Steve Block
d12b232575 Merge "Fix HttpAuthHandler for synchronous requests" 2010-03-19 08:47:56 -07:00
Cary Clark
cfe688d8d9 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
2010-03-19 10:52:41 -04:00
Steve Block
c877c6b87a 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
2010-03-19 13:48:49 +00:00