9489 Commits

Author SHA1 Message Date
Mike Reed
8f9268d15a Merge "If we detect a 9patch chunk, force the config chooser to avoid 565, with its pre-dithering madness" 2010-03-24 09:45:58 -07:00
Suchi Amalapurapu
b43bdf41f1 Merge "Add new activity manager method to get list of running applications installed on sdcard. Use new method in UsbStorageActivity. Fix moving dex files. moveDex should be suffixed with LI since it uses Installer" 2010-03-24 08:34:31 -07:00
Leon Scroggins
1bb1a911c3 If failUrl(now historyUrl) is null, use "about:blank" instead of "".
This prevents a crash that is caused by calling
WebView.loadDataWithBaseUrl with a null failUrl (which I have renamed
to historyUrl).  Also update the docs to be more accurate.

Fixes the general case of bug 2522457

Change-Id: I832351ce1e0016b00e924a2f9b0097ae15fba34a
2010-03-24 10:25:40 -04:00
Mike Reed
39f10ec7da If we detect a 9patch chunk, force the config chooser to avoid 565, with its pre-dithering madness
Change-Id: I0a2d1b094ccb16d479524779acec0216dc7a80ee
2010-03-24 10:12:35 -04:00
Leon Clarke
7f49b9e474 Merge "Fix for when flash loads cached crossdomain.xml files. Cache the x-permitted-cross-domain-policies header. http://b/issue?id=2519669" 2010-03-24 05:09:53 -07:00
Mathias Agopian
ff21e3776d Merge "another small step towards fixing [2501808] sapphire: OOM in GPU Surface area" 2010-03-23 20:17:13 -07:00
Neal Nguyen
d0f11ea9fd Merge "Adding some automated tests for apps on SD (and their corresponding apps)." 2010-03-23 18:31:26 -07:00
Neal Nguyen
7cbb92dff7 Adding some automated tests for apps on SD (and their corresponding apps).
Change-Id: I3af1a2d8fb658087c6945b2eb2b4233becb6053f
2010-03-23 18:27:59 -07:00
Mathias Agopian
f5e32f33ed another small step towards fixing [2501808] sapphire: OOM in GPU Surface area
release the Surface in SurfaceView when it's not visible, after it comes back from relayout(),
it should not be holding buffers at this point, but it's cleaner to have it in the released state.

also log a warning in Surface.finalize() when there is work to do, as it means Surface.release() wasn't
called when it should have.

Change-Id: Id637d4ec2916d8fd800b0344d8dec6cecce02051
2010-03-23 17:51:59 -07:00
Adam Powell
484c8a2887 Merge "Fix bug 2531732 - DateTimeView explodes on bad system date format." 2010-03-23 17:40:02 -07:00
Adam Powell
f3311c940a Fix bug 2531732 - DateTimeView explodes on bad system date format.
Fall back to a default date format instead of throwing an exception.

Change-Id: I827a81d9610ea7f9243c1c33579e7a5d3b423692
2010-03-23 17:32:41 -07:00
Christopher Tate
395f512646 Merge "Return the right thing from Context.getApplicationContext()" 2010-03-23 17:26:09 -07:00
Christopher Tate
eb9e9ec061 Return the right thing from Context.getApplicationContext()
Previously, this would always return the app context for the first application
ever instantiated in the process.  Usually this is fine, since usually there
will be one process per application, but in the case of shared-process apps,
it causes activities/views to try to access the wrong set of resources, be
unable to access their proper derived-class Application objects, etc.

Fixes bug #2513901

Change-Id: Ie19f2a86583c5d927db4d84a4262077450e37539
2010-03-23 17:14:36 -07:00
Suchi Amalapurapu
f7f5dda5e5 Add new activity manager method to get list of running applications installed on sdcard.
Use new method in UsbStorageActivity.
Fix moving dex files.
moveDex should be suffixed with LI since it uses Installer

Change-Id: Id5ef0254578e84b9aae2c2ac44f722eb5a0fda1c
2010-03-23 16:56:08 -07:00
Dianne Hackborn
310c07782d Merge "Fix issue #2538211: system server crash" 2010-03-23 16:44:48 -07:00
Adam Powell
a06150b2a0 Merge "Make WebView scroll bars compress during overscroll." 2010-03-23 16:40:36 -07:00
Adam Powell
2cd5c59b5a Make WebView scroll bars compress during overscroll.
Change-Id: Ia0caaf67088134efa78b5a0c87fea7a9be93f467
2010-03-23 16:34:34 -07:00
Dianne Hackborn
1c6a89491b Fix issue #2538211: system server crash
Change-Id: Ib440650129ca35e25c8c770113af21fef239178d
ClassCastException: com.android.internal.widget.PointerLocationView
2010-03-23 16:34:20 -07:00
Mathias Agopian
7739c28762 Merge "one step toward fixing [2501808] sapphire: OOM in GPU Surface area" 2010-03-23 16:29:03 -07:00
Xia Wang
e0a29d6f94 Merge " * Move connectivity manager test closer to source. * Add license header to java files * Remove google related information from the test" 2010-03-23 15:37:32 -07:00
Mathias Agopian
af1e11b849 one step toward fixing [2501808] sapphire: OOM in GPU Surface area
when a surface was returned from a remote process through the binder we
would leak its resources until a GC happened.

implement writeToParcel to release the source when PARCELABLE_WRITE_RETURN_VALUE
is set

Change-Id: I6a9fa369b0d164a9ca1229b8a2944d3c132a3720
2010-03-23 15:31:21 -07:00
Xia Wang
fc2dbd0400 * Move connectivity manager test closer to source.
* Add license header to java files
 * Remove google related information from the test

Change-Id: I2e57960f9ac963cdf3591385e21ed68832f74bd0
2010-03-23 14:19:07 -07:00
Adam Powell
3daa6a557a Merge "Fix bug 2537626." 2010-03-23 14:10:50 -07:00
Adam Powell
886df67b3d Merge "Fix bug 2495033." 2010-03-23 14:10:00 -07:00
Adam Powell
83d570cb3f Fix bug 2537626.
Awaken scroll bars in onOverscrolled instead of based on the timing
reported by the Scroller's animation.

Change-Id: I8510b92b9fdf471fc8d6f8f089681eb23d10f190
2010-03-23 13:47:19 -07:00
Patrick Scott
300f2e95a4 Add on-demand setting for plugins.
Deprecate the old apis for enabling plugins in favor of the multi-state plugin
flag. Add the assets for WebView to display the plugin placeholder for on-demand
plugins.

Bug: 2411524
Change-Id: I5a35cc6d0afced1489f54d4dcb8bb92d36de52d8
2010-03-23 16:35:37 -04:00
Adam Powell
387d8f8a62 Fix bug 2495033.
AutoCompleteTextView now uses different logic to expand the dropdown
list of completion choices to cover the IME if present. Previously
this would happen whenever a touch down event occurred. Resizing the
dropdown could cause the parent view to animate a scroll and thereby
move the completion list up the screen. When this happened with a
finger down it would initiate a touch scroll on the completion
list. Prior to froyo this wasn't a problem since a list positioned at
the top could not scroll up, but with the addition of overscroll this
caused undesired behavior.

The completion list now will not expand to cover the IME on initial
touch down. Instead it will only expand if the user leaves a finger in
place for the duration of a timeout (currently 250ms) or if the user
explicitly begins a touch scroll on the completion list. This also has
a nice side effect where tapping a completion choice in the initial,
smaller list does not cause a split-second list expansion before the
list is dismissed.

Change-Id: If0994c68a91b3bfc3dcef660c67fde667a9727f9
2010-03-23 13:29:34 -07:00
Vasu Nori
7e6ee51359 Merge "print finalizer warning before closing the cursor in finalize" 2010-03-23 13:03:43 -07:00
Romain Guy
a961dc5ae2 Merge "Correctly bind spinner data to TextView. Bug http://code.google.com/p/android/issues/detail?id=7251" 2010-03-23 12:44:13 -07:00
Romain Guy
b187a847a5 Correctly bind spinner data to TextView.
Bug http://code.google.com/p/android/issues/detail?id=7251

Previously, a spinner using checkable list items would try to bind data as booleans
instead of text. This change takes this use case into account.

Change-Id: Ie4ced01e3c0235138e1dd68426d6a748c2843a9c
2010-03-23 12:42:51 -07:00
Derek Sollenberger
1fa70928d3 fixing problem with allocating too much memory to a surface by fixing
the size of the surface when it exceeds a threshold and resizing the
surface when it falls beneath the threshold.

This change also causes the surface to fix its size while it is
being zoomed in order to prevent the surface from getting multiple
surfaceChangedEvents as the result of a zoom.  This also allows us
to have a smooth zoom animation for the surface.

Change-Id: I30e208f98d3a32660032bf1df9de77d0a813d756
2010-03-23 15:34:33 -04:00
Gilles Debunne
0ee0a2ea57 New edge effect when OverScrolled.
The constant force that was applied has been replaced by a spring force
when the OverScroller goes beyond valid position values.

Bounce coefficient can be set for each directions.

Change-Id: If7d506d3f35b3451f590c54d6c04a1deb8d9ca95
2010-03-23 12:25:11 -07:00
Vasu Nori
2cc1df0438 print finalizer warning before closing the cursor in finalize
this will let us know which cursor is being finalized.
if the heapworker gets wedbed due to the close bug:2536922
then we will never see the warning and never know which cursor
caused this problem

Change-Id: I595cc1014ff7a1114079b33665c092c6a2f3a907
2010-03-23 12:17:25 -07:00
Dianne Hackborn
9818d7506e Merge "Improve switching to car mode, retain night mode option." 2010-03-23 11:54:09 -07:00
Dianne Hackborn
3cfb4bff4f Merge "Don't use dim behind for the search box." 2010-03-23 11:53:12 -07:00
Jean-Baptiste Queru
7be4c08e68 Merge "Make DownloadBase public" 2010-03-23 11:49:54 -07:00
Jean-Baptiste Queru
de08008fcf Make DownloadBase public
It's the base class for some public classes, so it needs to be public
as well according to the CTS rules.

Bug: 2537352
Change-Id: Ie2f8141d56907e1d0f4a3a040204b7b14d1fd79a
2010-03-23 11:37:38 -07:00
Leon Clarke
60708a7512 Fix for when flash loads cached crossdomain.xml files.
Cache the x-permitted-cross-domain-policies header.
http://b/issue?id=2519669
2010-03-23 18:36:58 +00:00
Daniel Lehmann
1c4027b68d Small speedup in getAsString and comment fix
Change-Id: I19744983bbc0f4b9060de326bd539137e373415b
2010-03-23 11:20:45 -07:00
Dianne Hackborn
e38ed5f18d Don't use dim behind for the search box.
This causes ugly artifacts, such as when dismissing, the full white
completions window disappears into the dimmed background and then
the dimmed background immediately starts undimming.  Likewise when
being displayed, the content behind dims down and then the full
white completions window appears on top.

Change-Id: Id33fb7a172796412143d84e4b3d8915624565f7d
2010-03-23 10:38:46 -07:00
Mike Reed
b64f6f8953 only send new visiblerect and size on onscrollchanged if we're not in overscroll mode
Change-Id: Ifa290121db8f0a3612f40c40bab4f92494ce93df
2010-03-23 11:43:02 -04:00
Kenny Root
b4882ca26f Merge "Advance encodedKeySearchIndex if encodedKey matches a suffix of a parameter." 2010-03-22 23:18:52 -07:00
satok
e3b2df827f Merge "Call super.close() in MargeCursor" 2010-03-22 22:40:10 -07:00
Dianne Hackborn
85f2c9ce5a Fix issue #2530103: ActivePassword data in Device Policy Manager needs to be persisted
Also fixes how the quality vs. mode is handled to be more consistent, which also
required introducing a new "alphabetic" quality since it is possible for the user
to enter such a password.

The current password quality and length is stored in the DPM, since at boot it
couldn't figure this out from the stored password.

Change-Id: I519d9b76dd0b4431bcf42920c34dda38c9f1136e
2010-03-22 22:20:26 -07:00
Dianne Hackborn
2ccda4dc8d Improve switching to car mode, retain night mode option.
Fiddle with how we go into car mode to try to ensure we get a clean
transition.  Also have the system take care of remembering the night
mode setting so it will stay at what you want.

Change-Id: Icb94fdd961c7a192f7707ec71544485a1ea12455
2010-03-22 21:49:15 -07:00
satok
f68258f454 Call super.close() in MargeCursor
Bug: 2524465
Change-Id: I1927940b4e3a9417b36ec6169da00475662b6004
2010-03-23 11:15:28 +09:00
Romain Guy
1a26c9aa0b Merge "Improve export to bitmap layers for HierarchyViewer." 2010-03-22 19:08:22 -07:00
Romain Guy
65554f2785 Improve export to bitmap layers for HierarchyViewer.
- Do not show layers with an invisible parent
- Correctly draw extras from dispatchDraw() (ListView's dividers for instance)

Change-Id: Id2e24ae9d52879290dffbf1cc446c5eda9522fbb
2010-03-22 18:58:21 -07:00
Shimeng (Simon) Wang
4d8ef42003 Check mWebViewCore to prevent potential NPE.
Bug:2532493
Change-Id: I917c57dced8638f36252638bb9814e26cdbc2768
2010-03-22 17:06:17 -07:00
The Android Open Source Project
02034d3568 merge from open-source master
Change-Id: Ie60db5faf407344b8fbe3d5c1e7c01e927ff251e
2010-03-22 15:55:38 -07:00