9412 Commits

Author SHA1 Message Date
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
Grace Kloba
f8338d4a98 Change overscroll background to be same as status
bar pulldown.

Fix http://b/issue?id=2520825
2010-03-18 23:00:51 -07:00
Dianne Hackborn
806da1d46c 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
2010-03-18 19:25:19 -07:00
Romain Guy
cdb86673a7 Force all views to relayout when ViewRoot is resized.
Bug #2519590

Change-Id: Ia6b9d4cf6d719f713703a1eb2e1ccdd5d61a5123
2010-03-18 18:54:50 -07:00
Adam Powell
e4ec08a838 Merge "Fix bug 2520540" 2010-03-18 18:22:57 -07:00
Dmitri Plotnikov
e6d36ffb2c Merge "Cleaning up list of common nicknames" 2010-03-18 18:18:02 -07:00
Eric Olsen
5e12aec163 Add the blacklist for the SCO connections
Change-Id: Ibfdfb21fb2f27d01d2b8bff48041398aa4308353
Signed-off-by: Eric Olsen <eolsen@android.com>
2010-03-18 18:08:02 -07:00
Suchi Amalapurapu
7942b33e89 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" 2010-03-18 18:07:54 -07:00
Wink Saville
e5bdecea28 Merge "Allow transitionTo in enter/exit." 2010-03-18 18:03:48 -07:00
Suchi Amalapurapu
90d8ee650b 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
2010-03-18 17:44:21 -07:00
Marco Nelissen
42a9c53788 Merge "Include "album artist" when inserting items in the media provider." 2010-03-18 17:23:32 -07:00
Marco Nelissen
abc2819328 Include "album artist" when inserting items in the media provider.
Change-Id: Ic34e2d54557409866dc35c29ee397afdfe874762
2010-03-18 17:15:56 -07:00
Adam Powell
e7fea45863 Fix bug 2520540
PreferenceActivity will now persist view hierarchy state properly.

Change-Id: I4e7fe036d0d0bced78e58e2a15808facf502e449
2010-03-18 17:08:15 -07:00
Wink Saville
e7be6a85da Allow transitionTo in enter/exit.
bug: 2435366
Change-Id: Id15c5e2cca49ced5ebbda24887f8c490e717f101
2010-03-18 17:03:30 -07:00
Irfan Sheriff
6d33c5adde Merge "Clean up changing AP configuration" 2010-03-18 16:42:48 -07:00
Dianne Hackborn
e2af5c882b 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
2010-03-18 16:32:58 -07:00
Adam Powell
9db133cbd9 Merge "Documentation fix" 2010-03-18 16:12:28 -07:00
Daniel Lehmann
d62d9eec0d Added a comment to make it clearer that the operation has to be the first
Bug:2521447

Change-Id: I155d0b328115d007116a0fe4560e703647ec2fb5
2010-03-18 16:08:30 -07:00
Irfan Sheriff
c2f54c267b Clean up changing AP configuration
Bug: 2527293
Change-Id: I35e82e24e27349e2966f88189ebca4246ad1a354
2010-03-18 16:02:56 -07:00
Gloria Wang
b127bf2e9c Merge "Release MediaPlayer if suspend() returns false." 2010-03-18 15:59:35 -07:00
Gloria Wang
047212fd4e Release MediaPlayer if suspend() returns false.
Change-Id: Ic6467a19bac453b72b56294487c9b835b20affd7
2010-03-18 15:44:30 -07:00
Daniel Lehmann
0c659fea07 Merge "Make the VCardEntry more robust against badly behaving resolvers. Additionally make the ImportTestResolver return the right result Bug:2521447" 2010-03-18 14:54:17 -07:00
Adam Powell
a0d6b59d87 Merge "Fix bug 2523989" 2010-03-18 13:52:08 -07:00