12005 Commits

Author SHA1 Message Date
Shimeng (Simon) Wang
96fcb87ae1 Set initial view scale to be at least overview scale.
Some website will have an initial view scale which is less
than the overview scale and the page will display poorly.

This fix sets the initial scale and text wrap scale to be at least
overview scale to make the page looking good at first load.  When a page
is restored, the scale will not be changed.

Also make the reading level scale always bigger than overview
scale for consistency.

issue: 3226625
Change-Id: I8b77cf4fda454a35c3037fa09aaff1aac0c0f664
2010-11-29 13:32:52 -08:00
Cary Clark
6f5dfc6b3c scroll the selection when dragging near the edge
Also move a debug statement so it can report the
extra selection choice.

This does not scrolls overflow divs for now; once
Pat has that code checked in, this can adapt to
work for that as well.

requires a companion change in external/webkit

bug:3186988
Change-Id: I071ecd31d589e9ef715d2ecb12b1768696075686
2010-11-29 09:20:23 -05:00
Dianne Hackborn
f9d0be917b Implement rotation animations.
This introduces a small new feature for ScaleAnimation allowing
the scaling factor to be expressed as a percentage of the object
(which is the same as the existing float interpretation), a
percentage of the container, or a fixed dimension.  Maybe not
useful for anything else, but I needed it for this.

Also fix a bug in how transformation matrices were propagated
from the Animation to Surface Flinger, so that rotate and skew
animations will actually work. :p

Change-Id: I301f4caa2147aa35564b5e511cb9c0b368d2425d
2010-11-28 18:28:57 -08:00
Steve Block
5fd5d74f79 No longer need to pass storage paths to WebRequestContext.cleanupPrivateBrowsingFiles()
Requires the following changes to external/webkit and packages/apps/Browser
https://android-git.corp.google.com/g/81781
https://android-git.corp.google.com/g/81780

Bug: 3232569
Change-Id: I0247f3db25edfdc95363a5a94296458b20456a46
2010-11-26 11:55:35 +00:00
satok
440aab54ca Removed InputMethodSubtypePicker
Change-Id: I08abac5d65a30c02cc671f4f70e93df25b6c8a92
2010-11-25 19:53:56 +09:00
Gilles Debunne
d1544d38a2 Merge "Handle hiding timer reset on every move." 2010-11-24 17:13:01 -08:00
Gilles Debunne
2a7f346ff1 Handle hiding timer reset on every move.
updatePosition is the centralized place where this should happen.

Change-Id: If4aab404ab0f3988af96b8d2cb1b41f39f4afa50
2010-11-24 16:56:24 -08:00
Wink Saville
b0be5d1d4a Merge "Use apn types instead of host when sending notifications." 2010-11-24 16:50:32 -08:00
Wink Saville
26f5a384d8 Use apn types instead of host when sending notifications.
Previously we were passing the apn host not the type and this
caused us to sometimes not send out network change notifications.

Also rename of getActivceApn to getActiveApnHost to make
the method clearer on what is being returned and add some debug.

A future change will rename ApnSetting.apn to ApnSetting.host
and getActiveApnString.

bug: 2995554
Change-Id: I0c405b0f823f62c9596968c8516b820d9f8a94f2
2010-11-24 16:44:29 -08:00
Gilles Debunne
c4440f039e Lazy creation of selection and insertion handles.
Change-Id: I960f6988e8f4c6f933a40fca7dc860e58a6b67d3
2010-11-24 16:24:47 -08:00
Mindy Pereira
85265ad98f Merge "Per designers, update the algorithm for when effect is clipped or stretched." 2010-11-24 16:13:24 -08:00
Mindy Pereira
4e30d89ced Per designers, update the algorithm for when effect is clipped or stretched.
New algo is:
1) if view width < MIN_WIDTH (currently 300px), clip glow and edge to fit
2) else stretch glow and edge to fill width
3) make alpha and height of edge and glow 30% "more intense"

Change-Id: I8f121bb165a8fb835bc33950dbedd1bc80c5df65
2010-11-24 16:09:03 -08:00
Brad Fitzpatrick
49e57d33db Merge "Don't flash StrictMode from the system server." 2010-11-24 15:49:01 -08:00
Mindy Pereira
c041ae7fcf Merge "Use getDimensionPixel size instead of casting to an int." 2010-11-24 15:34:45 -08:00
Mindy Pereira
35c8be0655 Use getDimensionPixel size instead of casting to an int.
Change-Id: I907c8be25bd4cf0fefc2bb4e0282db2d136da099
2010-11-24 15:28:07 -08:00
Brad Fitzpatrick
f54545927f Don't flash StrictMode from the system server.
These are false positives from a developer's point of view.

Change-Id: Ic8baf81c0e2cf559a38c1fe6adfa6e739dd3eaed
2010-11-24 15:27:51 -08:00
Gilles Debunne
2880294cc6 Lazily create the paste popup window.
Change-Id: I271a790bd652cdcdc221896ede9f99858a24cc7a
2010-11-24 14:16:14 -08:00
Gilles Debunne
9948ad7b37 Long press in empty space moves cursor and shows Paste affordance.
Change-Id: I487e9028201a90da76dff5390a64d2d57e7723ea
2010-11-24 14:00:46 -08:00
Gilles Debunne
e587d838e9 Comments on lazy controllers initialization.
Also a couple of bug fixes where the field value was used instead of the
get method().

Change-Id: Ia2c63158febc136065a6e12755c88e6d23ce6cc1
2010-11-24 13:48:24 -08:00
Brad Fitzpatrick
c1a968a8ed Option to enable StrictMode flashing on userdebug builds.
Change-Id: Ifc8e733ea0e0f6bda234a18ad84bcd230879e802
2010-11-24 13:41:48 -08:00
Jaikumar Ganesh
1c96a00685 Fix some formatting issues.
Review comments from a previous review.

Change-Id: Ifa6136f9bc5590ffb6a777240ad1e6607b616ca6
2010-11-24 13:07:29 -08:00
Jaikumar Ganesh
64ad5586c4 Merge "Update BT code for voice capability cases." 2010-11-24 12:44:04 -08:00
Joe Onorato
7750c2ac61 Merge "this should be @hidden" 2010-11-24 11:15:07 -08:00
Joe Onorato
a89e903fd4 this should be @hidden
Change-Id: Ib372fa15a5284b30e2edef5a1d90544eb2166ee4
2010-11-24 11:13:44 -08:00
Jaikumar Ganesh
58b93c3640 Update BT code for voice capability cases.
1. Disable PBAP and Headset / Handsfree records.
2. Add API to query for local adapter UUIDs.

Change-Id: Ic84ba6a49738adc89a8695d3a4890f08562e0621
2010-11-24 10:49:47 -08:00
Dianne Hackborn
a111187a5b Change rotation freeze to all be implemented in window manager.
Lots of work for no visible change in behavior, but now we can
do some fancier stuff...

Also allow rotation in all 4 directions.

Change-Id: I7e5e9537c5e359f69b83c10f65cc1ce95f371461
2010-11-24 10:41:07 -08:00
Joe Onorato
9fb2807e2b Merge "Allow status bar panels to be on top of the status bar." 2010-11-24 10:28:20 -08:00
Joe Onorato
29fc2c9705 Allow status bar panels to be on top of the status bar.
Change-Id: I3c74ece5f7042e6302717f4263746d59d5447ec9
2010-11-24 10:26:50 -08:00
Cary Clark
0df0269832 defer resume while selecting text
Allow scrolling, dragging, zooming to process normally
while selecting text, but prevent them from resuming
the webkit update until the selection is done.

Also, resume the webkit priority when resuming the
updates.

bug:3226364
Change-Id: Idfad6b63b6eb02208f977d89a8409377e9d731e7
2010-11-24 11:01:37 -05:00
Bjorn Bringert
93fbae34ce Merge "Don't drop zeros in the second position in formatDuration()" 2010-11-24 03:25:17 -08:00
Brad Fitzpatrick
4ffb3e097d Merge "Misc ActivityManagerNative cleanup." 2010-11-23 20:09:15 -08:00
satok
c90993f9e4 Merge "Add an API to set InputMethodAndSubtype" 2010-11-23 19:49:35 -08:00
satok
2820351489 Add an API to set InputMethodAndSubtype
Change-Id: I66f1a4c8e0d98705614f12a737e7efcd0263b72a
2010-11-24 12:28:45 +09:00
Brad Fitzpatrick
663f4f33e2 Misc ActivityManagerNative cleanup.
Change-Id: Ib1fba1a72d074a12b44cce64741071815cb680f3
2010-11-23 19:15:24 -08:00
Brad Fitzpatrick
1065685400 Fix potential weird StrictMode NPE.
Seen once in an eng build.  Could in theory happen if there was a
violation in the system server before the activity manager was
registered.

Change-Id: I785f06848af0e2af4657be3a8edbbd658eeb3cf2
2010-11-23 19:01:13 -08:00
Adam Powell
83f5eccb0c Merge "Fix bug 3226108 - WebView would not update content properly after a fling." 2010-11-23 18:11:31 -08:00
Adam Powell
4c3ce84864 Fix bug 3226108 - WebView would not update content properly after a fling.
Change-Id: Ie5d163740ab1b919fef497c06caeb6807db0df52
2010-11-23 18:06:56 -08:00
Brad Fitzpatrick
ab0a3c05fc Merge "Misc Looper cleanups; add android.util.PrefixPrinter" 2010-11-23 17:59:53 -08:00
Vasu Nori
994b0d2b7d Merge "changes to support Change-Id: I572fdfd6d34dbb5a0577c6cf14664b6f2d5700b4" 2010-11-23 17:52:19 -08:00
Gilles Debunne
af150b5bbd Merge "Long press starts a new selection if one is already started." 2010-11-23 17:29:17 -08:00
Brad Fitzpatrick
1b29825cca Misc Looper cleanups; add android.util.PrefixPrinter
Change-Id: I0b9adce46cb785b4dd4e6296e1f97c8bcf0dbfbf
2010-11-23 17:17:33 -08:00
Gilles Debunne
710a910e73 Long press starts a new selection if one is already started.
Change-Id: Ide525ff0021cf145bb5d2b8db2d09b7b7909289b
2010-11-23 17:09:15 -08:00
Mindy Pereira
9123cbfe80 Merge "Create logic for applying padding only to custom preference layouts" 2010-11-23 15:34:27 -08:00
Mindy Pereira
2266b92072 Create logic for applying padding only to custom preference layouts
n the case of any standard PreferenceFragment layout, we can
change the list styling to add padding and set clipToPadding to false.
In this case, we don't want extra padding in the parent ViewGroup
(R.id.prefs).
When an app specifies a custom preference fragment layout, we want
to add the previously existing padding styles R.id.prefs.

Change-Id: Idfd77dcbef264c6f5f4121b66fd54c684ad0a288
2010-11-23 14:47:52 -08:00
Brad Fitzpatrick
07cb89432c Merge "StrictMode.Span annotations for ScrollView." 2010-11-23 14:15:00 -08:00
Chet Haase
2970c49938 various fixes for animations and javadocs
Issues around threading of animations and AnimatorSet bugs are
fixed in this change. Unrelated fixes to javadocs in other
framework classes are also part of the change.

Change-Id: I35f7e03ffdec9143bc2eb155e8f9384798ad35b3
2010-11-23 14:05:42 -08:00
satok
f3db1af8d5 Change return type of getShortcutInputMethodsAndSubtypes to Map<InputMethodInfo, List<InputMethodSubtype>>
bug: 3201828

- Brushed up the code

Change-Id: I11ad9d1d749bd8947144ca7f1676bab3cf777fd6
2010-11-24 06:32:44 +09:00
Brad Fitzpatrick
ce81f3a955 StrictMode.Span annotations for ScrollView.
Between the animation system, ListView, and this, we can now account
for the large majority of animations in-flight at any point and annotate
StrictMode violations accordingly.

Note that StrictMode.Span goes out of its way to not allocate memory
and is very light-weight, especially on user builds where it's a
no-op.

I've tested this with the LOG_V debugging in StrictMode and I think
I've gotten all the entry/exit cases of ScrollView's animations.  At
least, I'm not able to get it out-of-sync at least, even with
orientation changes during scroll/fling, etc.  It's possible I missed
a path, but that should show up as excessive false positives during
dropbox uploads if so.

Change-Id: I3b0545111a775d9fa8e171f2a190031f1b56c4c0
2010-11-23 12:44:08 -08:00
Mindy Pereira
b43d7589cf Merge "Update edge and glow rendering to match new specs." 2010-11-23 11:32:51 -08:00
Brad Fitzpatrick
05063d8a59 Merge "StrictMode fingerprinting / hashCode improvements." 2010-11-23 11:19:53 -08:00